:root {
    /* Переменные для стандартной темы (из style.css) */
    --bg-color: #4d4d5a;
    --grad-1: rgb(224, 23, 231);
    --grad-2: rgb(37, 202, 252);
    --grad-3: rgba(255, 0, 128, 1);
    --grad-4: rgb(138, 45, 231);
    
    --container-bg: rgba(15, 15, 20, 0.75);
    --container-border: rgba(255, 255, 255, 0.1);
    --tabs-bg: rgba(0, 0, 0, 0.2);


    --btn-mini-bg: rgba(4, 190, 254, 0.1);
    --btn-mini-color: #04BEFE;
    --btn-mini-border: rgba(4, 190, 254, 0.2);
    --btn-mini-hover-bg: #04BEFE;
    
    --btn-full-bg: linear-gradient(90deg, #04BEFE, #2575fc);
    --btn-full-color: white;
    --btn-full-hover-bg: linear-gradient(90deg, #03a9e1, #1e62d6);
    --btn-full-border: none;

    --arrow-color: rgba(255, 255, 255, 0.2);
    --arrow-active-color: #04BEFE;
    --link-color: #04BEFE;


    --theme-color: rgba(255, 255, 255, 0.05);
    --theme-border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme {
    /* Переменные для темной темы (из style2.css) */
    --bg-color: #121212;
    --grad-1: rgb(61, 9, 63);
    --grad-2: rgb(11, 59, 73);
    --grad-3: rgb(126, 20, 71);
    --grad-4: rgb(32, 10, 54);
    
    --container-bg: #242424;
    --container-border: #555555;
    --tabs-bg: #141414;



    --btn-mini-bg: rgba(0, 0, 0, 0.3);
    --btn-mini-color: #eaeaea;
    --btn-mini-border: #444;
    --btn-mini-hover-bg: #ffffff; /* При наведении в темной теме кнопка белая */
    --btn-mini-hover-color: #111;

    --btn-full-bg: rgba(0, 0, 0, 0.3);
    --btn-full-color: #fff;
    --btn-full-border: 1px solid #444;
    --btn-full-hover-bg: #ffffff;
    --btn-full-hover-color: #000;

    --arrow-color: rgba(255, 255, 255, 0.2);
    --arrow-active-color: #ffffff;
    --link-color: #ffffff;


    --theme-color: rgba(255, 255, 255, 0.2);
    --theme-border-color: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color); /* Использование переменной */
    background-image:
        radial-gradient(at 0% 0%, var(--grad-1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--grad-2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--grad-3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--grad-4) 0px, transparent 50%);
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    transition: background-color 1.5s ease;
}

/* --- Animations --- */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-badge {
    0% { opacity: 0.8; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(0.95); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* --- Main Layout --- */

.main-container {
    width: 96vw;
    height: 98vh;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: var(--container-bg);
    border: 1px solid var(--container-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: all 1.0s ease; 
}

.tabs {
    display: flex;
    padding: 20px 40px;
    background: var(--tabs-bg);
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.content-wrapper {
    padding: 40px 50px;
    flex-grow: 1;
    overflow-y: auto;
    color: white;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.content-wrapper::-webkit-scrollbar { width: 6px; }
.content-wrapper::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 6px; }

.section-header {
    margin-bottom: 45px;
}

.section-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active { display: block; }

/* --- Grid & Interaction Buttons --- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.btn-int {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 20px;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; 
    animation: fadeInUp 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.btn-int:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 245, 253, 0.05);
    border-radius: 10px;
    transition: 0.3s;
}

.icon-box i { font-size: 50px; transition: 0.3s; }
.btn-int:hover .icon-box { background: rgba(255, 255, 255, 0.1);}

.custom-icon-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: 0.3s;
}

.btn-int:hover .custom-icon-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px #1bd96a);
}

/* --- Product Cards --- */

.products-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 950px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.product-main {
    padding: 24px 32px;
    display: flex;
    align-items: center;
}

.product-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
}

.product-img {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    margin-right: 20px;
    flex-shrink: 0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.product-info {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Product Details Section --- */

.product-details {
    max-height: 0;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.details-inner {
    padding: 30px 5%;
    display: flex;
    flex-direction: column;
    min-height: min-content;
    pointer-events: auto;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.desc-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 1rem;
}

.desc-text p { margin-bottom: 15px; }
.desc-text h3 { color: #fff; margin: 20px 0 10px 0; font-size: 1.2rem; font-weight: 700; }
.desc-text ul { margin-left: 20px; margin-bottom: 20px; list-style-type: square; }
.desc-text li { margin-bottom: 8px; }
.desc-text strong { color: #fff; font-weight: 600; }
.desc-text a { color: var(--link-color); border-bottom: 1px dashed var(--link-color); }
.desc-text a:hover { border-bottom-style: solid; }

.product-card.open {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-card.open .product-details { 
    max-height: 8000px; 
    transition: max-height 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.open .arrow { 
    transform: rotate(180deg); 
    color: var(--arrow-active-color);
}

/* --- Badges & Tags --- */

.btn-with-badge {
    position: relative;
    display: inline-block;
}

.badge {
    position: absolute;
    color: #2e2e2e;
    top: -20px;
    right: -14px;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 10;
    white-space: nowrap;
    animation: pulse-badge 2s infinite;
}

.badge-new { background: linear-gradient(90deg, #15fe00 0%, #4ffebb 100%); box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4); }
.badge-beta { background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%); box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4); }
.badge-hot, .badge-update { background: linear-gradient(90deg, #f6d365 0%, #fda085 100%); box-shadow: 0 4px 15px rgba(253, 160, 133, 0.4); }

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    max-width: 85%;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.product-card:hover .tag { border-color: rgba(255, 203, 252, 0.2); color: white; }

/* --- Icons Hover Effects --- */

.btn-int:hover .fa-discord { color: #5865F2; filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.7)); transform: scale(1.1); }
.btn-int:hover .fa-github { color: #fff; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)); transform: scale(1.1);}
.btn-int:hover .modrinth-icon { color: #14e46a; filter: drop-shadow(0 0 10px rgba(27, 217, 106, 0.7)); transform: scale(1.1);}
.btn-int:hover .fa-donate { color: #e4d614; filter: drop-shadow(0 0 10px rgba(223, 184, 14, 0.7)); transform: scale(1.1);}

/* --- Buttons & Price --- */

.btn-mini-wrapper {
    margin-left: auto;
    margin-right: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: fit-content;
    transition: all 0.5s ease;
}

.product-card.open .btn-mini-wrapper {
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
}

.btn-mini {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--btn-mini-bg);
    color: var(--btn-mini-color);
    border: 1px solid var(--btn-mini-border);
    transition: 0.3s;
}

.btn-mini:hover {
    background: var(--btn-mini-hover-bg);
    color: var(--btn-mini-hover-color, white);
    box-shadow: 0 0 20px rgba(4, 190, 254, 0.4);
}

.details-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 14px 60px;
    background: var(--btn-full-bg);
    color: var(--btn-full-color);
    border: var(--btn-full-border);
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    flex: 1 1 auto;
    min-width: 200px;
}

.btn-full:hover {
    background: var(--btn-full-hover-bg);
    color: var(--btn-full-hover-color, white);
}

.btn-download { background: linear-gradient(90deg, #1bd96a, #15ad55); }
.btn-download:hover { box-shadow: 0 10px 25px rgba(27, 217, 106, 0.4); }

.product-card.open .btn-full { opacity: 1; transform: translateY(0); }
.product-card.open .btn-full:nth-child(1) { transition-delay: 0.15s; }
.product-card.open .btn-full:nth-child(2) { transition-delay: 0.25s; }

.price-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1bd96a;
    background: rgba(27, 217, 106, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(27, 217, 106, 0.2);
    margin-right: -2px;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

/* --- Language Switcher / Dropdown --- */

.lang-switch {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: rgba(255, 255, 255, 0.07);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.dropbtn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #04BEFE;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 10px;
    background: transparent;
    z-index: 100;
}

.dropdown-list-wrapper {
    background: #2b2b46;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.5);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.dropdown-content a {
    color: #ccc;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background: rgba(4, 190, 254, 0.1);
    color: #04BEFE;
}

.dropdown:hover .dropdown-content { display: block; }

/* --- Responsive Media Queries --- */

@media (max-width: 768px) {
    body { align-items: flex-start; }

    .main-container {
        width: 100vw;
        height: 100vh;
        height: 100svh;
        border-radius: 0;
    }

    .tabs {
        padding: 10px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        justify-content: space-between;
        overflow: visible;
        flex-wrap: wrap;
    }

    .tabs-buttons-wrapper {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 5px;
        flex-grow: 1;
        scrollbar-width: none; 
    }

    .tabs-buttons-wrapper::-webkit-scrollbar { display: none; }

    .tab-btn {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        flex-shrink: 0;
    }

    .lang-switch {
        width: 100%;
        justify-content: right;
        margin-top: 5px;
        margin-right: 2px;
    }

    .matrix-toggle-btn {
        height: 35px;
        margin-left: 20px;
    }

    .dropbtn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .dropdown-content {
        right: 0;
        left: auto;
    }

    .section-header h1 { font-size: 2rem; }
    .content-wrapper { padding: 20px; }

    .product-main {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        position: relative;
    }

    .product-img {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .product-info {
        max-width: 100%;
        margin-right: 0;
        padding-right: 40px;
        margin-bottom: 15px;
    }

    .badge {
        font-size: 8.8px;
        padding: 4px 8px;
        top: -18px;
        right: -12px;
    }

    .btn-mini-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .product-content-header {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .arrow {
        position: absolute;
        right: 15px;
        top: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 40%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }

    .details-inner { padding: 0 20px 20px 20px; }

    .details-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .btn-full {
        width: 100%;
        padding: 14px 20px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .btn-int { padding: 20px 10px; }

    .product-tags {
        max-width: 100%;
    }

    .cursor-follower {
        display: none !important;
    }
}

.tabs {
    position: relative;
}
.tab-btn.active {
    box-shadow: 0 0 20px rgba(4, 190, 254, 0.05);
    border: 1px solid rgba(4, 190, 254, 0.05);
    transform: scale(1.05);
}

.typing-container {
    display: inline-flex;
    align-items: center;
    min-height: 1.2em;
    min-height: 3.5rem;
    margin-bottom: 12px;
}

.typing-text {
    border-right: 3px solid #ffffff;
    margin-bottom: 0 !important;
    min-width: 1px;
    font-size: 2.8rem;
    padding-right: 5px;
    animation: blink-cursor 0.75s step-end infinite;
    line-height: 1.2;
    min-width: 2px;
    white-space: nowrap;
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: #ffffff; }
}
.typing-text.typing {
    animation: none;
    border-color: #ffffff;
}


.matrix-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.matrix-toggle-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: none;
    opacity: 0.4;
    transition: opacity 1.5s ease-in-out;
}

body.matrix-active {
    background: #000 !important;
}

body.matrix-active .matrix-toggle-btn {
    color: #00ff41;
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.05);
}

body.matrix-active .main-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(1.5px);
    border-color: rgba(0, 255, 64, 0.28); 
    transition: all 1.5s ease; 
}

body.matrix-active .product-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 65, 0.2);
}

body.matrix-active .section-header p {
    color: rgba(255, 255, 255, 0.6);
}


#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: #04befe;
    transform: translateY(-5px);
}

body.matrix-active #back-to-top {
    border-color: #00ff41;
    color: #00ff41;
}

body.matrix-active #back-to-top:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px #00ff41;
}

.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000 !important;
    opacity: 0;
    visibility: hidden;
    z-index: -2; /* Ниже контента, но выше основного фона */
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

body.matrix-active .matrix-overlay {
    opacity: 1;
    visibility: visible;
}

body.matrix-active #matrix-canvas {
    display: block;
    opacity: 0.4;  
}

.tab-btn-theme {
    background: var(--theme-color);
    border: 1px solid var(--theme-border-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}


body.matrix-active .btn-full {
    font-weight: bold;
    text-shadow: none;
    border: 1px solid #444;
    background: rgba(66, 85, 70, 0.3) !important;
    color: #eaeaea !important;
}

body.matrix-active .btn-mini {
    font-weight: bold;
    text-shadow: none;

    background: rgba(0, 0, 0, 0.096) !important;
    color: #eaeaea !important;
}


.tab-btn-theme:hover {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

body.matrix-active .btn-mini:hover, 
body.matrix-active .btn-full:hover {
    background: #109431 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}


#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #00ff41;
    font-family: 'Courier New', Courier, monospace;
    padding: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Позволяет прокручивать вручную, если нужно */
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
}

#boot-screen::-webkit-scrollbar { display: none; } /* Скрываем скроллбар в Chrome/Safari */

#boot-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
}

#boot-log {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.boot-line {
    display: block;
    margin-bottom: 2px;
    min-height: 1.2em;
}

.cursor {
    color: #00ff41;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
}