:root {
    --surface-0: #07080d;
    --surface-1: rgba(17, 18, 27, 0.82);
    --surface-2: rgba(23, 24, 35, 0.78);
    --surface-3: rgba(255, 255, 255, 0.055);
    --line-soft: rgba(255, 255, 255, 0.09);
    --line-bright: rgba(255, 255, 255, 0.16);
    --accent-pink: #cf304e;
    --accent-pink-hover: #e03b59;
    --accent-active-pill: rgba(207, 48, 78, 0.14);
    --accent-active-text: #e85470;
    --text-muted: #8f93a5;
}

html {
    scroll-behavior: smooth;
}

body {
    --accent-color: #cf304e;
    --accent-hover: #e03b59;
    --accent-border: rgba(207, 48, 78, 0.26);
    --accent-bg: rgba(207, 48, 78, 0.08);
    --accent-r: 207;
    --accent-g: 48;
    --accent-b: 78;
    background:
        radial-gradient(800px 520px at 14% 4%, rgba(150, 18, 48, 0.035), transparent 70%),
        radial-gradient(780px 560px at 88% 18%, rgba(42, 54, 72, 0.045), transparent 68%),
        var(--surface-0);
}

body::after {
    background: radial-gradient(circle at 50% 22%, transparent 8%, rgba(5, 6, 10, 0.9) 82%);
    z-index: -1;
}

#ambient-shader-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    opacity: 0.58;
    mix-blend-mode: normal;
}

.bg-gradient-1,
.bg-gradient-2,
.bg-gradient-3 {
    display: none;
}

.nav-floating-wrapper {
    top: 20px !important;
    padding: 0 20px !important;
}

.nav-floating-wrapper nav {
    height: 62px !important;
    max-height: 62px !important;
    max-width: 1160px !important;
    padding: 0 18px 0 22px !important;
    background: rgba(14, 15, 23, 0.68) !important;
    border-color: var(--line-soft) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.025) inset !important;
}

.nav-links {
    gap: 8px !important;
}

.nav-links a {
    position: relative;
    padding: 10px 14px !important;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.065);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-pink);
    box-shadow: 0 0 12px rgba(207, 48, 78, 0.45);
}

.hero {
    min-height: 92vh !important;
    height: auto !important;
    padding: 178px 24px 128px !important;
    isolation: isolate;
}

.hero::before {
    content: none;
}

.hero .badge {
    padding: 9px 14px;
    margin-bottom: 26px;
    background: rgba(207, 48, 78, 0.075);
    border-color: rgba(207, 48, 78, 0.24);
    box-shadow: none;
}

.hero h1 {
    max-width: 980px;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 7vw, 5.9rem) !important;
    letter-spacing: -0.055em;
    text-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
}

.hero h1::after {
    content: "";
    display: block;
    width: 92px;
    height: 4px;
    margin: 24px auto 0;
    border-radius: 999px;
    background: var(--accent-pink);
    box-shadow: 0 0 18px rgba(207, 48, 78, 0.32);
}

.subtitle {
    max-width: 680px !important;
    margin-bottom: 38px !important;
    color: #a8adbd !important;
    font-size: 1rem;
}

.hero-btns {
    gap: 12px !important;
}

.hero-btns .btn {
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 12px;
}

.btn-primary,
.btn-modal,
.btn-cabinet-buy {
    color: #fff !important;
    background: #cf304e !important;
    box-shadow: 0 9px 24px rgba(159, 23, 52, 0.23) !important;
}

.btn-primary:hover,
.btn-modal:hover,
.btn-cabinet-buy:hover {
    background: #e03b59 !important;
    box-shadow: 0 12px 28px rgba(159, 23, 52, 0.3) !important;
}

.btn-ghost,
.btn-cabinet-download,
.btn-form-action {
    color: #e4e6ec !important;
    background: #22252d !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

.btn-ghost:hover,
.btn-cabinet-download.unlocked:hover,
.btn-form-action:hover {
    color: #fff !important;
    background: #2d303a !important;
    border-color: rgba(255, 255, 255, 0.23) !important;
}

.btn:focus-visible,
.btn-modal:focus-visible,
.sidebar-tab-btn:focus-visible,
.btn-cabinet-buy:focus-visible,
.btn-cabinet-download:focus-visible,
.btn-form-action:focus-visible,
.cabinet-text-input:focus-visible {
    outline: 2px solid #e85470 !important;
    outline-offset: 3px;
}

.section-container {
    max-width: 1160px !important;
    margin-bottom: 130px !important;
}

.section-header {
    max-width: 650px;
    margin-bottom: 30px !important;
}

.section-header h2,
.screenshots-header h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
    letter-spacing: -0.04em;
}

.card {
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(22, 23, 34, 0.86), rgba(12, 13, 20, 0.9)) !important;
    border-color: var(--line-soft) !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
}

.card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(207, 48, 78, 0.3) !important;
}

.chat-message,
.stat-item {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.035) !important;
}

.user-icon {
    background: #b62544 !important;
    color: #fff !important;
    box-shadow: none;
}

.screenshot-slider .slider-container {
    border-radius: 20px !important;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.38);
}

/* Cabinet */
body:has(.cabinet-wrapper) {
    padding-top: 0 !important;
}

.cabinet-wrapper {
    max-width: 1180px !important;
    margin: 136px auto 90px !important;
    padding: 0 24px !important;
}

.cabinet-grid {
    grid-template-columns: 286px minmax(0, 1fr) !important;
    gap: 24px !important;
}

.cabinet-sidebar {
    position: sticky;
    top: 104px;
}

.profile-capsule-card,
.sidebar-nav-card,
.cabinet-content-card {
    background: linear-gradient(145deg, rgba(22, 23, 33, 0.88), rgba(12, 13, 19, 0.9)) !important;
    border-color: var(--line-soft) !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3) !important;
}

.profile-capsule-card {
    min-height: 84px;
    padding: 15px 16px !important;
    border-radius: 18px !important;
}

.profile-avatar-circle {
    border-color: rgba(207, 48, 78, 0.58) !important;
    box-shadow: 0 0 22px rgba(207, 48, 78, 0.15);
}

.profile-meta-username {
    font-size: 0.96rem !important;
    letter-spacing: -0.025em;
}

.sidebar-nav-card {
    padding: 12px !important;
    border-radius: 18px !important;
}

.sidebar-tab-btn {
    min-height: 44px;
    padding: 10px 12px !important;
    border-radius: 11px !important;
}

.sidebar-tab-btn.active {
    background: rgba(207, 48, 78, 0.14) !important;
    box-shadow: inset 3px 0 0 var(--accent-pink);
}

.sidebar-tab-btn.admin-btn,
.sidebar-tab-btn.admin-btn i {
    color: #99b8c6 !important;
}

.sidebar-tab-btn.admin-btn:hover {
    color: #d5e4ec !important;
    background: rgba(124, 166, 185, 0.11) !important;
}

.sidebar-category-header {
    padding: 16px 12px 6px !important;
    color: #717687 !important;
}

.cabinet-content-card {
    padding: 36px 40px !important;
    border-radius: 22px !important;
    min-height: 555px !important;
}

.admin-pane__head {
    margin-bottom: 22px;
}

.admin-pane__head .pane-head-subtitle {
    margin-bottom: 0 !important;
}

.admin-panel-frame {
    display: block;
    width: 100%;
    min-height: 760px;
    height: 760px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: #090a0f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.pane-head-title {
    font-size: clamp(1.45rem, 2.6vw, 2rem) !important;
    letter-spacing: -0.045em;
}

.pane-head-subtitle {
    max-width: 620px;
    margin-bottom: 28px !important;
    color: #7f8494 !important;
}

.specs-list {
    padding: 6px 0;
}

.spec-item-row {
    min-height: 58px;
    padding: 13px 0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.075) !important;
}

.spec-item-left {
    color: #daddE8 !important;
}

.spec-item-left i {
    color: var(--accent-pink) !important;
    filter: none;
}

.spec-item-right {
    max-width: 56%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-action-buttons {
    margin-top: 32px !important;
    gap: 12px !important;
}

.btn-cabinet-buy,
.btn-cabinet-download {
    min-height: 52px;
    border-radius: 13px !important;
    padding: 14px 18px !important;
}

.btn-cabinet-download.unlocked {
    background: #22252d !important;
}

.form-card-block,
.stat-card-box,
.config-card {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.032) !important;
}

@media (max-width: 860px) {
    .cabinet-sidebar {
        position: static;
    }

    .cabinet-grid {
        grid-template-columns: 1fr !important;
    }

    .sidebar-nav-card {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .sidebar-category-header {
        grid-column: 1 / -1;
    }

    .sidebar-tab-btn.logout-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .nav-floating-wrapper {
        top: 12px !important;
        padding: 0 12px !important;
    }

    .nav-floating-wrapper nav {
        height: 56px !important;
        max-height: 56px !important;
        padding: 0 12px 0 14px !important;
    }

    .hero {
        padding: 142px 18px 92px !important;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.6rem) !important;
    }

    .hero-btns {
        width: 100%;
        flex-direction: column;
        max-width: 320px;
    }

    .hero-btns .btn {
        justify-content: center;
        width: 100%;
    }

    .section-container,
    .cabinet-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .cabinet-wrapper {
        margin-top: 112px !important;
    }

    .cabinet-content-card {
        padding: 26px 20px !important;
    }

    .admin-panel-frame {
        min-height: 860px;
    }

    .spec-item-row {
        align-items: flex-start;
        gap: 14px;
    }

    .spec-item-left {
        min-width: 0;
    }

    .spec-item-left span {
        line-height: 1.35;
    }

    .spec-item-right {
        max-width: 48%;
        padding-top: 2px;
    }

    .cabinet-action-buttons {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
