﻿:root {
    --bg-black: #000000;
    --light-grey: #8e91a1;
    --white: #ffffff;
    --border-color: #262936;
    --transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--white);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.35;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.is-hidden {
    display: none !important;
}

/* Background */
.space-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at center, #090a12 0%, #000000 70%);
}

.stars-layer {
    position: absolute;
    width: 1px;
    height: 1px;
    background: transparent;
}

.comet {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.comet::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 110px;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7));
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) rotate(-35deg) scale(0);
        opacity: 0;
    }
    12% {
        opacity: 1;
        transform: translateX(-90px) translateY(60px) rotate(-35deg) scale(1);
    }
    100% {
        transform: translateX(-1250px) translateY(840px) rotate(-35deg) scale(0.3);
        opacity: 0;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 56px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-wrapper:hover {
    transform: translateY(-1px);
}

.logo-image {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.logo-text-brand {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 46px;
}

.nav a {
    text-decoration: none;
    color: var(--light-grey);
    font-size: 0.95rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--white);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.42);
}

.right-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    font-weight: 800;
    color: #f6f7fb;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
}

.social-link.youtube {
    border-color: rgba(255, 75, 75, 0.72);
}

.social-link.telegram {
    border-color: rgba(51, 168, 255, 0.72);
}

.social-link.discord {
    border-color: rgba(139, 147, 255, 0.74);
}

.account-entry {
    display: flex;
    align-items: center;
    gap: 0;
}

.account-avatar {
    display: none;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--white);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 11px 26px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.2);
}

/* Footer panel */
.site-footer-panel {
    width: min(1280px, calc(100% - 30px));
    margin: 76px auto 30px;
}

.site-footer-shell {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background:
        radial-gradient(130% 140% at 0% 0%, rgba(36, 45, 76, 0.35) 0%, rgba(19, 23, 35, 0.92) 62%, rgba(9, 12, 21, 0.98) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 34px 36px 20px;
}

.site-footer-top {
    display: grid;
    grid-template-columns: minmax(290px, 1.6fr) minmax(200px, 1fr) minmax(260px, 1.2fr);
    gap: 44px;
}

.site-footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.site-footer-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
}

.site-footer-brand-name {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
}

.site-footer-brand-text {
    max-width: 36ch;
    color: rgba(226, 232, 248, 0.82);
    font-size: 1.1rem;
    line-height: 1.5;
}

.site-footer-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer-links {
    display: grid;
    gap: 10px;
}

.site-footer-link {
    color: rgba(219, 228, 250, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.site-footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(158, 186, 255, 0.5);
    transform: translateX(2px);
}

.site-footer-divider {
    margin: 26px 0 16px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.site-footer-copy {
    color: rgba(212, 220, 241, 0.7);
    font-size: 0.92rem;
}

.site-footer-up {
    color: rgba(212, 220, 241, 0.82);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.site-footer-up:hover {
    color: #ffffff;
}

@media (max-width: 980px) {
    .site-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer-title {
        font-size: 1.45rem;
    }

    .site-footer-link {
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .site-footer-panel {
        width: calc(100% - 16px);
        margin: 48px auto 18px;
    }

    .site-footer-shell {
        border-radius: 20px;
        padding: 22px 16px 16px;
    }

    .site-footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer-brand-name {
        font-size: 1.35rem;
    }

    .site-footer-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .site-footer-brand-text,
    .site-footer-link {
        font-size: 0.95rem;
    }

    .site-footer-divider {
        margin: 18px 0 12px;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.contacts-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.contact-row {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-row a {
    color: #9dd4ff;
    text-decoration: none;
}

.contact-row a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Main hero */
.hero {
    min-height: 100vh;
    padding: 140px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 8vw, 6.2rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 26px;
    background: linear-gradient(180deg, #ffffff 32%, #5f6573 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title-line {
    display: block;
}

.hero-title-line-second {
    margin-top: 0.14em;
}

.hero p {
    font-size: clamp(1rem, 2.1vw, 1.8rem);
    color: var(--light-grey);
    margin-bottom: 42px;
}

.main-actions {
    display: flex;
    gap: 14px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.06rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hero.primary {
    color: #000;
    background: #fff;
    border: 1px solid #fff;
}

.btn-hero.secondary {
    color: #fff;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.btn-hero.small {
    font-size: 0.82rem;
    padding: 14px 26px;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.14);
}

/* About section */
.about-product {
    padding: 20px 20px 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.about-inner {
    width: min(980px, 100%);
    padding: 44px 42px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: linear-gradient(160deg, rgba(18, 20, 30, 0.98), rgba(9, 10, 15, 0.95));
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.38);
}

.about-label {
    margin-bottom: 14px;
    color: var(--light-grey);
    font-weight: 700;
    letter-spacing: 2.6px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.about-inner h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 16px;
    letter-spacing: 0.7px;
}

.about-text {
    max-width: 66ch;
    color: #c5cad9;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.home-video-carousel {
    width: min(980px, 100%);
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: linear-gradient(160deg, rgba(18, 20, 30, 0.98), rgba(9, 10, 15, 0.95));
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.home-video-track {
    position: relative;
    width: 100%;
}

.home-video-slide {
    display: none;
    padding: 14px;
}

.home-video-slide.is-active {
    display: block;
}

.youtube-preview {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    overflow: hidden;
    background: #0b0b0d;
    text-decoration: none;
    transition: var(--transition);
}

.youtube-preview:hover {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.local-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #08090d;
}

.local-video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.youtube-preview-meta {
    padding: 14px 14px 16px;
}

.youtube-preview-title {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-preview-channel {
    margin-top: 8px;
    color: #a4abc2;
    font-size: 0.9rem;
}

.home-video-next {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.home-video-next:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-50%) scale(1.06);
}

.home-video-next.is-left {
    right: auto;
    left: 14px;
}

/* Products page */
.catalog-main {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 140px 20px 90px;
}

.catalog-overline {
    margin-bottom: 14px;
    color: var(--light-grey);
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.catalog-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 14px;
}

.catalog-subtitle {
    max-width: 65ch;
    color: #c2c6d5;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr);
    gap: 18px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    background: linear-gradient(165deg, rgba(22, 25, 35, 0.96), rgba(10, 11, 17, 0.95));
}

.product-card h2 {
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.product-description {
    color: #bcc2d4;
    margin-bottom: 18px;
}

.product-features {
    margin-bottom: 26px;
    padding-left: 20px;
    color: #d7dceb;
}

.product-features li {
    margin-bottom: 8px;
}

.product-platform-note {
    margin-bottom: 18px;
    color: #78c5ff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.product-price {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.product-purchase-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.purchase-label {
    display: block;
    margin-bottom: 8px;
    color: #aeb6cd;
    font-size: 0.9rem;
    font-weight: 700;
}

.purchase-plan-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.purchase-plan-tab {
    border: 1px solid rgba(120, 136, 255, 0.36);
    border-radius: 10px;
    background: linear-gradient(165deg, rgba(16, 19, 32, 0.96), rgba(9, 10, 16, 0.95));
    color: #d9e1ff;
    padding: 10px 8px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    text-align: left;
}

.purchase-plan-tab:hover {
    border-color: rgba(154, 169, 255, 0.72);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.purchase-plan-tab.active {
    border-color: rgba(157, 170, 255, 0.95);
    background: linear-gradient(165deg, rgba(32, 38, 70, 0.98), rgba(16, 20, 36, 0.96));
    box-shadow: 0 0 0 2px rgba(126, 143, 255, 0.28);
}

.purchase-plan-name {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 0;
}

.purchase-selected-info {
    color: #cad2ed;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.purchase-note {
    min-height: 20px;
    margin-top: 10px;
    color: #9ff6b0;
    font-size: 0.9rem;
}

.purchase-help {
    margin-top: 10px;
    border: 1px solid rgba(120, 136, 255, 0.35);
    border-radius: 10px;
    background: rgba(120, 136, 255, 0.08);
    padding: 10px 12px;
}

.purchase-help p {
    margin: 0 0 6px;
    color: #d5ddf5;
    font-size: 0.86rem;
}

.purchase-help p:last-child {
    margin-bottom: 0;
}

.purchase-login-required {
    color: #dbe3ff !important;
    background: rgba(120, 136, 255, 0.14) !important;
    border-color: rgba(120, 136, 255, 0.65) !important;
}

/* Cabinet */
.cabinet-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 130px 20px 70px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
}

.cabinet-sidebar {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(16, 18, 26, 0.95), rgba(8, 9, 14, 0.95));
    padding: 24px;
    height: fit-content;
}

.cabinet-sidebar h1 {
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.cabinet-tab {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: #d8ddec;
    padding: 12px;
    margin-bottom: 10px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.cabinet-tab:hover,
.cabinet-tab.active {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cabinet-tab-danger {
    border-color: rgba(255, 96, 96, 0.45);
    color: #ffb1b1;
}

.cabinet-tab-danger:hover {
    border-color: rgba(255, 96, 96, 0.75);
    background: rgba(255, 96, 96, 0.16);
    color: #ffd8d8;
}

.cabinet-content {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(16, 18, 26, 0.95), rgba(8, 9, 14, 0.95));
    padding: 28px;
}

.cabinet-panel {
    display: none;
}

.cabinet-panel.active {
    display: block;
}

.cabinet-panel h2 {
    margin-bottom: 14px;
    font-size: 1.55rem;
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: #090b11;
}

.profile-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-upload-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#avatarUpload {
    display: none;
}

.profile-note {
    color: #9da5bc;
    font-size: 0.8rem;
}

.profile-notice {
    min-height: 18px;
    margin-bottom: 8px;
    color: #9ff6b0;
    font-size: 0.86rem;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-row span {
    color: #abb2c8;
}

.cabinet-panel p {
    color: #c4cadb;
    margin-bottom: 16px;
}

.cabinet-list {
    padding-left: 18px;
    color: #d6ddef;
}

.cabinet-list li {
    margin-bottom: 8px;
}

.faq-block {
    margin-top: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.faq-block h2,
.faq-block h3 {
    margin-bottom: 10px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.faq-item + .faq-item {
    margin-top: 10px;
}

.faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    color: #eef2ff;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ea7c7;
    font-size: 1.05rem;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    margin: 0;
    padding: 0 14px 14px;
    color: #c7cde1;
    line-height: 1.45;
}

.faq-emulators {
    padding: 0 14px 8px;
    display: grid;
    gap: 10px;
}

.faq-emulator-row {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.18);
}

.faq-emulator-row strong {
    color: #e8edff;
}

.faq-emulator-row .btn-hero {
    width: auto;
    min-width: 130px;
    padding: 10px 16px;
    font-size: 0.74rem;
}

.faq-official-note {
    color: #97f0b2 !important;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 2px !important;
}

.subscription-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.subscription-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subscription-card-info small {
    color: #9ea6bd;
}

.mini-product-card {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.mini-product-card h3 {
    margin-bottom: 10px;
}

.mini-product-card p {
    margin-bottom: 14px;
}

.mini-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-section {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.compact-section[open] {
    background: rgba(255, 255, 255, 0.04);
}

.compact-section > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.compact-section > summary::-webkit-details-marker {
    display: none;
}

.compact-section > summary h3 {
    margin: 0;
}

.compact-section > summary::after {
    content: "Открыть";
    font-size: 0.78rem;
    color: #aeb6cd;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 4px 10px;
}

.compact-section[open] > summary::after {
    content: "Скрыть";
}

.compact-section > :not(summary) {
    margin-top: 12px;
}

.settings-section h3 {
    margin-bottom: 10px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-form.inline-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.settings-form.inline-actions input {
    flex: 1;
    margin-bottom: 0;
    min-width: 220px;
}

.settings-form.inline-actions .btn-hero {
    white-space: nowrap;
}

.settings-field span {
    display: block;
    margin-bottom: 6px;
    color: #aeb6cd;
    font-size: 0.9rem;
}

.settings-field {
    display: block;
}

.settings-checkbox,
.settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d5dcef;
}

.settings-checkbox input,
.settings-toggle input {
    width: auto;
    margin: 0;
}

.settings-hint {
    margin-top: 8px;
    color: #9ea6bd;
    font-size: 0.86rem;
}

.settings-status {
    min-height: 18px;
    margin-bottom: 14px;
    color: #9ff6b0;
    font-size: 0.9rem;
}

.installer-block {
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.installer-block h3 {
    margin-bottom: 10px;
}

.tutorial-placeholder {
    margin-top: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ea5bc;
    padding: 14px;
}

.activation-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.activation-row input {
    flex: 1;
    min-width: 240px;
    margin-bottom: 0;
}

.mini-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mini-product-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.mini-product-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.mini-product-item p {
    font-size: 0.87rem;
    color: #bec5db;
    margin-bottom: 8px;
}

.mini-product-item .mini-product-id,
.mini-product-item .mini-product-duration {
    color: #aeb6cd;
    font-size: 0.83rem;
    margin-bottom: 6px;
}

.mini-product-item-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-product-item-cta .btn-hero {
    width: 100%;
}

.mini-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mini-price-old {
    color: #868ea3;
    text-decoration: line-through;
    font-size: 0.85rem;
}

.mini-price-new {
    font-size: 0.95rem;
    font-weight: 800;
}

.owner-product-form textarea {
    min-height: 90px;
    resize: vertical;
}

.owner-products-intro {
    color: #c9d0e7;
}

.owner-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.owner-subtab {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    color: #d8dff3;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.owner-subtab.active,
.owner-subtab:hover {
    background: rgba(111, 132, 255, 0.2);
    border-color: rgba(111, 132, 255, 0.7);
    color: #fff;
}

.owner-subtab-panel {
    display: none;
}

.owner-subtab-panel.active {
    display: block;
}

.owner-product-form {
    gap: 12px;
}

.owner-product-form .settings-field span {
    font-size: 0.86rem;
    color: #bcc5df;
}

.grid-inline-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.inline-box {
    margin-bottom: 0;
    min-height: 52px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.03);
}

.owner-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.owner-products-workspace {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.owner-products-workspace h3 {
    margin-bottom: 10px;
}

.owner-product-title {
    margin-bottom: 8px;
}

.owner-plan-rows {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.owner-plan-row {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 0.8fr auto;
    gap: 8px;
    align-items: end;
}

.owner-plan-cell {
    margin-bottom: 0;
}

.owner-plan-cell input {
    margin-bottom: 0;
}

.owner-plan-remove-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 96, 96, 0.6);
    background: rgba(255, 96, 96, 0.12);
    color: #ffd8d8;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.owner-plan-remove-btn:hover {
    background: rgba(255, 96, 96, 0.2);
    border-color: rgba(255, 96, 96, 0.9);
}

.owner-plan-add-btn {
    margin-top: 2px;
    min-width: 44px;
    padding: 0 14px;
    font-size: 1.1rem;
    line-height: 1;
}

.owner-plan-summary {
    margin-top: 12px;
    margin-bottom: 8px;
    padding-left: 18px;
    color: #bec6dd;
    font-size: 0.9rem;
}

.owner-plan-summary li {
    margin-bottom: 6px;
}

.owner-product-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.owner-product-tile {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    color: #ecf1ff;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.owner-product-tile strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.owner-product-tile span {
    color: #aeb6cd;
    font-size: 0.8rem;
}

.owner-product-tile:hover,
.owner-product-tile.active {
    border-color: rgba(111, 132, 255, 0.7);
    background: rgba(111, 132, 255, 0.15);
}

.owner-product-tile-empty {
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 12px;
    color: #aeb6cd;
    text-align: center;
}

.owner-product-editor {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.owner-editor-id-line {
    color: #aeb6cd;
    margin-bottom: 8px !important;
}

.owner-editor-total-line {
    color: #d8dff3;
    font-weight: 700;
    margin-top: 6px !important;
}

.owner-product-card,
.owner-key-card,
.owner-promo-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.owner-product-card h4,
.owner-key-card h4,
.owner-promo-card h4 {
    margin-bottom: 12px;
}

.owner-product-media {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.owner-product-media img {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.owner-product-media input[type="file"] {
    margin-bottom: 0;
}

.owner-product-main-fields {
    display: grid;
    gap: 10px;
}

.owner-file-field input[type="file"] {
    margin-bottom: 0;
}

.owner-product-card textarea {
    min-height: 72px;
    resize: vertical;
}

.owner-product-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.owner-meta-field {
    margin-bottom: 0;
}

.owner-meta-field input {
    margin-bottom: 0;
}

.owner-flag-field {
    margin-bottom: 0;
    min-height: 48px;
}

.owner-product-total {
    margin-top: 10px;
}

.product-duration-note {
    color: #aeb6cd;
    margin-bottom: 14px;
}

.owner-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.owner-card-actions .btn-hero {
    flex: 1;
    min-width: 120px;
}

.generated-box {
    min-height: 48px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.28);
    white-space: pre-wrap;
    word-break: break-word;
    color: #eaf0ff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
}

.generated-box:empty {
    display: none;
}

.owner-key-meta {
    color: #b7bfd7;
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.owner-item-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.owner-item-summary::-webkit-details-marker {
    display: none;
}

.owner-item-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.owner-item-title {
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.owner-item-subtitle {
    font-size: 0.84rem;
    color: #aeb6cd;
    word-break: break-word;
}

.owner-status-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.owner-status-badge.free {
    background: rgba(79, 201, 116, 0.15);
    border-color: rgba(79, 201, 116, 0.45);
    color: #b8f6c9;
}

.owner-status-badge.used {
    background: rgba(71, 135, 255, 0.16);
    border-color: rgba(71, 135, 255, 0.45);
    color: #c8dfff;
}

.owner-status-badge.revoked {
    background: rgba(255, 93, 93, 0.16);
    border-color: rgba(255, 93, 93, 0.45);
    color: #ffd1d1;
}

.owner-item-body {
    margin-top: 10px;
}

.owner-key-card.owner-key-item[open],
.user-admin-card.user-admin-item[open] {
    background: rgba(255, 255, 255, 0.045);
}

.owner-users-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.user-admin-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.user-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.user-admin-grid-readonly {
    gap: 10px;
}

.user-readonly-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    min-height: 54px;
}

.user-readonly-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    color: #aeb6cd;
}

.user-readonly-item strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    word-break: break-word;
}

.user-admin-grid .full-span {
    grid-column: 1 / -1;
}

.user-admin-hint {
    color: #aeb6cd;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.user-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-admin-actions .btn-hero {
    flex: 1;
    min-width: 130px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-card {
    position: relative;
    width: min(460px, 100%);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: linear-gradient(170deg, #10131d 0%, #0b0d14 100%);
    padding: 48px 34px 34px;
    transform: translateY(36px) scale(0.95);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.25, 1.15), opacity 0.33s ease;
}

.modal-overlay.active .auth-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: none;
    background: transparent;
    color: #a7afc4;
    font-size: 1.35rem;
    cursor: pointer;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 1px;
    font-size: 1.45rem;
}

.auth-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-tab {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #cad1e3;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    color: #000;
    background: #fff;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

input,
textarea,
select {
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 13px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #07080c;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #6f84ff;
    box-shadow: 0 0 0 3px rgba(111, 132, 255, 0.18);
}

.full-width {
    width: 100%;
    margin-top: 8px;
}

.auth-message {
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
    color: #ff8080;
    font-size: 0.9rem;
}

.auth-message.success {
    color: #9ff6b0;
}

/* Turnstile Security Gate */
body.turnstile-locked {
    overflow: hidden;
}

body.turnstile-locked > *:not(.turnstile-screen) {
    display: none !important;
}

.turnstile-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 30% 18%, rgba(105, 49, 173, 0.26), rgba(2, 3, 8, 0.95) 55%);
    backdrop-filter: blur(6px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

.turnstile-screen.is-hide {
    opacity: 0;
    visibility: hidden;
}

.turnstile-card {
    width: min(560px, 100%);
    padding: 26px 24px;
    border-radius: 18px;
    border: 1px solid rgba(111, 132, 255, 0.34);
    background: linear-gradient(170deg, rgba(13, 14, 24, 0.96), rgba(7, 8, 14, 0.98));
    box-shadow: 0 0 42px rgba(128, 75, 228, 0.24);
    text-align: center;
}

.turnstile-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: #9b4dff;
    animation: turnstile-spin 0.9s linear infinite;
}

.turnstile-title {
    margin-bottom: 14px;
    font-size: clamp(1.22rem, 3.1vw, 1.85rem);
    line-height: 1.2;
}

.turnstile-widget-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.turnstile-hint {
    color: #b8bfd6;
    font-size: 0.92rem;
}

@keyframes turnstile-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1160px) {
    .header {
        height: auto;
        padding: 14px 20px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .nav {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
    }

    .right-section {
        margin-left: auto;
    }

    .hero {
        padding-top: 180px;
    }

    .cabinet-main {
        padding-top: 170px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .logo-text-brand {
        font-size: 0.97rem;
    }

    .social-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .right-section {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .nav {
        gap: 20px;
    }

    .main-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
    }

    .hero h1 {
        max-width: 16ch;
    }

    .about-inner {
        padding: 34px 22px;
    }

    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .product-card,
    .cabinet-content,
    .cabinet-sidebar {
        padding: 24px 18px;
    }

    .profile-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-form.inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-form.inline-actions input {
        min-width: 0;
        width: 100%;
    }

    .grid-inline-4,
    .owner-product-meta,
    .user-admin-grid {
        grid-template-columns: 1fr;
    }

    .owner-product-media {
        grid-template-columns: 1fr;
    }

    .owner-product-media img {
        width: 100%;
        height: 170px;
    }

    .owner-plan-row {
        grid-template-columns: 1fr;
    }

    .owner-plan-remove-btn {
        width: 100%;
    }

    .activation-row input {
        min-width: 0;
    }

    .purchase-plan-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-emulator-row {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-emulator-row .btn-hero {
        width: 100%;
    }
}
