/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --bg-primary: #08090e;
    --bg-secondary: #0e1017;
    --bg-tertiary: #161820;
    --bg-card: #11131b;
    --bg-card-hover: #181b25;
    --bg-input: #0c0d14;
    --bg-sidebar: #0a0b12;

    --border-primary: #1a1d2a;
    --border-secondary: #252838;
    --border-accent: #0143bb;

    --text-primary: #e4e6ee;
    --text-secondary: #8b8fa4;
    --text-muted: #545770;
    --text-accent: #4d8fff;

    --accent-primary: #0143bb;
    --accent-primary-hover: #0255dd;
    --accent-primary-glow: rgba(1, 67, 187, 0.25);
    --accent-secondary: #4d8fff;
    --accent-green: #22c55e;
    --accent-green-glow: rgba(34, 197, 94, 0.15);
    --accent-yellow: #eab308;
    --accent-yellow-glow: rgba(234, 179, 8, 0.15);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.15);
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.15);

    --discord-color: #5865F2;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.25);
    --shadow-modal: 0 16px 64px rgba(0, 0, 0, 0.5);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    --sidebar-width: 240px;
    --header-height: 56px;
}

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

html { font-size: 14px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

code {
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--accent-secondary);
}

a { color: var(--accent-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   Landing Page
   ============================================ */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #06070b 0%, #0b0d13 55%, #06132e 100%);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    --lp-grid-offset-x: 0px;
    --lp-grid-offset-y: 0px;
    transition: background 360ms ease;
}

.landing-page::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 120;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(77, 143, 255, 0.22) 0%, rgba(77, 143, 255, 0.05) 28%, rgba(0, 0, 0, 0.78) 74%);
}

.landing-page::before {
    content: '';
    position: fixed;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border-radius: 50%;
    border: 1px solid rgba(123, 178, 255, 0.0);
    box-shadow: 0 0 0 rgba(77, 143, 255, 0);
    z-index: 121;
    pointer-events: none;
    opacity: 0;
}

.landing-page.is-apparating {
    animation: lp-blackhole-suck 650ms linear forwards;
    transform-origin: 50% 45%;
}

.landing-page.is-apparating::after {
    animation: lp-blackhole-vortex 650ms linear forwards;
}

.landing-page.is-apparating::before {
    animation: lp-blackhole-core 650ms ease-out forwards;
}

/* Background effects */
.lp-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.lp-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 45%, rgba(77, 143, 255, 0.05) 0%, transparent 65%),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    background-position:
        center center,
        calc(50% + var(--lp-grid-offset-x)) calc(50% + var(--lp-grid-offset-y)),
        calc(50% + var(--lp-grid-offset-x)) calc(50% + var(--lp-grid-offset-y));
    mask-image: radial-gradient(ellipse 82% 62% at 50% 42%, black 24%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 82% 62% at 50% 42%, black 24%, transparent 78%);
    transition: background-position 120ms linear, background-image 360ms ease;
}

.lp-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(96px);
    opacity: 0.28;
    transition: background 360ms ease;
}

.lp-bg-orb--1 {
    width: 288px;
    height: 288px;
    top: 80px;
    left: 40px;
    background: rgba(1, 67, 187, 0.24);
    animation: lp-bg-pulse 4s ease-in-out infinite;
}

.lp-bg-orb--2 {
    width: 384px;
    height: 384px;
    top: 160px;
    right: 80px;
    background: rgba(77, 143, 255, 0.16);
    animation: lp-bg-pulse 4s ease-in-out infinite 1s;
}

.lp-bg-orb--3 {
    width: 320px;
    height: 320px;
    bottom: 80px;
    left: 25%;
    background: rgba(1, 67, 187, 0.14);
    animation: lp-bg-pulse 4s ease-in-out infinite 2s;
}

.lp-bg-symbol {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    transition: color 360ms ease;
}

.landing-page.is-theme-spv5 {
    background: linear-gradient(135deg, #0a0607 0%, #160709 55%, #31080A 100%);
}

.landing-page.is-theme-spv5 .lp-bg-grid {
    background-image:
        radial-gradient(circle at 50% 45%, rgba(116, 38, 42, 0.09) 0%, transparent 65%),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
}

.landing-page.is-theme-spv5 .lp-bg-orb--1 {
    background: rgba(49, 8, 10, 0.35);
}

.landing-page.is-theme-spv5 .lp-bg-orb--2 {
    background: rgba(95, 31, 35, 0.22);
}

.landing-page.is-theme-spv5 .lp-bg-orb--3 {
    background: rgba(49, 8, 10, 0.26);
}

.landing-page.is-theme-spv5 .lp-bg-symbol--1,
.landing-page.is-theme-spv5 .lp-bg-symbol--3,
.landing-page.is-theme-spv5 .lp-bg-symbol--4,
.landing-page.is-theme-spv5 .lp-bg-symbol--6,
.landing-page.is-theme-spv5 .lp-bg-symbol--7,
.landing-page.is-theme-spv5 .lp-bg-symbol--9,
.landing-page.is-theme-spv5 .lp-bg-symbol--10,
.landing-page.is-theme-spv5 .lp-bg-symbol--12 {
    color: rgba(116, 38, 42, 0.22);
}

.landing-page.is-theme-spv5 .lp-bg-symbol--2,
.landing-page.is-theme-spv5 .lp-bg-symbol--5,
.landing-page.is-theme-spv5 .lp-bg-symbol--8,
.landing-page.is-theme-spv5 .lp-bg-symbol--11 {
    color: rgba(49, 8, 10, 0.32);
}

.landing-page.is-theme-ultrarj {
    background: linear-gradient(135deg, #06090a 0%, #0d1411 55%, #182620 100%);
}

.landing-page.is-theme-ultrarj .lp-bg-grid {
    background-image:
        radial-gradient(circle at 50% 45%, rgba(124, 158, 132, 0.08) 0%, transparent 65%),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
}

.landing-page.is-theme-ultrarj .lp-bg-orb--1 {
    background: rgba(88, 121, 97, 0.28);
}

.landing-page.is-theme-ultrarj .lp-bg-orb--2 {
    background: rgba(124, 158, 132, 0.2);
}

.landing-page.is-theme-ultrarj .lp-bg-orb--3 {
    background: rgba(88, 121, 97, 0.18);
}

.landing-page.is-theme-ultrarj .lp-bg-symbol--1,
.landing-page.is-theme-ultrarj .lp-bg-symbol--3,
.landing-page.is-theme-ultrarj .lp-bg-symbol--4,
.landing-page.is-theme-ultrarj .lp-bg-symbol--6,
.landing-page.is-theme-ultrarj .lp-bg-symbol--7,
.landing-page.is-theme-ultrarj .lp-bg-symbol--9,
.landing-page.is-theme-ultrarj .lp-bg-symbol--10,
.landing-page.is-theme-ultrarj .lp-bg-symbol--12 {
    color: rgba(124, 158, 132, 0.22);
}

.landing-page.is-theme-ultrarj .lp-bg-symbol--2,
.landing-page.is-theme-ultrarj .lp-bg-symbol--5,
.landing-page.is-theme-ultrarj .lp-bg-symbol--8,
.landing-page.is-theme-ultrarj .lp-bg-symbol--11 {
    color: rgba(88, 121, 97, 0.22);
}

.landing-page.is-theme-exclusiva {
    background: linear-gradient(135deg, #080909 0%, #101111 55%, #1a1b1b 100%);
}

.landing-page.is-theme-exclusiva .lp-bg-grid {
    background-image:
        radial-gradient(circle at 50% 45%, rgba(41, 42, 42, 0.18) 0%, transparent 65%),
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
}

.landing-page.is-theme-exclusiva .lp-bg-orb--1 {
    background: rgba(41, 42, 42, 0.28);
}

.landing-page.is-theme-exclusiva .lp-bg-orb--2 {
    background: rgba(69, 72, 72, 0.2);
}

.landing-page.is-theme-exclusiva .lp-bg-orb--3 {
    background: rgba(41, 42, 42, 0.2);
}

.landing-page.is-theme-exclusiva .lp-bg-symbol--1,
.landing-page.is-theme-exclusiva .lp-bg-symbol--2,
.landing-page.is-theme-exclusiva .lp-bg-symbol--3,
.landing-page.is-theme-exclusiva .lp-bg-symbol--4,
.landing-page.is-theme-exclusiva .lp-bg-symbol--5,
.landing-page.is-theme-exclusiva .lp-bg-symbol--6,
.landing-page.is-theme-exclusiva .lp-bg-symbol--7,
.landing-page.is-theme-exclusiva .lp-bg-symbol--8,
.landing-page.is-theme-exclusiva .lp-bg-symbol--9,
.landing-page.is-theme-exclusiva .lp-bg-symbol--10,
.landing-page.is-theme-exclusiva .lp-bg-symbol--11,
.landing-page.is-theme-exclusiva .lp-bg-symbol--12 {
    color: rgba(138, 146, 146, 0.2);
}

.lp-bg-symbol--1 {
    color: rgba(77, 143, 255, 0.2);
    font-size: 3.5rem;
}

.lp-bg-symbol--2 {
    color: rgba(1, 67, 187, 0.2);
    font-size: 2.8rem;
}

.lp-bg-symbol--3 {
    color: rgba(77, 143, 255, 0.18);
    font-size: 3.2rem;
}

.lp-bg-symbol--4 {
    color: rgba(77, 143, 255, 0.16);
    font-size: 2.9rem;
}

.lp-bg-symbol--5 {
    color: rgba(1, 67, 187, 0.18);
    font-size: 2.6rem;
}

.lp-bg-symbol--6 {
    color: rgba(77, 143, 255, 0.15);
    font-size: 2.8rem;
}

.lp-bg-symbol--7 {
    color: rgba(77, 143, 255, 0.14);
    font-size: 2.4rem;
}

.lp-bg-symbol--8 {
    color: rgba(1, 67, 187, 0.16);
    font-size: 2.5rem;
}

.lp-bg-symbol--9 {
    color: rgba(77, 143, 255, 0.14);
    font-size: 2.7rem;
}

.lp-bg-symbol--10 {
    color: rgba(77, 143, 255, 0.17);
    font-size: 2.9rem;
}

.lp-bg-symbol--11 {
    color: rgba(1, 67, 187, 0.16);
    font-size: 2.6rem;
}

.lp-bg-symbol--12 {
    color: rgba(77, 143, 255, 0.15);
    font-size: 2.8rem;
}

@keyframes lp-bg-pulse {
    0%, 100% { transform: scale(1); opacity: 0.28; }
    50% { transform: scale(1.08); opacity: 0.4; }
}

@keyframes lp-blackhole-suck {
    0% {
        transform: scale(1);
        filter: blur(0px) brightness(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.05);
        filter: blur(12px) brightness(0.35);
        opacity: 0.14;
    }
}

@keyframes lp-blackhole-vortex {
    0% {
        opacity: 0;
        transform: scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.38);
        filter: blur(2.2px);
    }
}

@keyframes lp-blackhole-core {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.8);
        border-color: rgba(123, 178, 255, 0.08);
        box-shadow: 0 0 0 rgba(77, 143, 255, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(12);
        border-color: rgba(123, 178, 255, 0.0);
        box-shadow: 0 0 0 rgba(77, 143, 255, 0);
    }
}

/* Landing Navbar */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(6, 7, 11, 0.34) 0%, rgba(6, 7, 11, 0.12) 100%);
    backdrop-filter: blur(10px) saturate(110%);
    -webkit-backdrop-filter: blur(10px) saturate(110%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    text-decoration: none;
}

.landing-nav-brand:hover { text-decoration: none; opacity: 0.9; }
.landing-nav-brand img { border-radius: 6px; }

.lp-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.lp-nav-cta:hover {
    border-color: rgba(77, 143, 255, 0.4);
    background: rgba(77, 143, 255, 0.08);
    color: #fff;
    box-shadow: 0 0 20px rgba(77, 143, 255, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Hero  centered single column */
.lp-hero {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    text-align: center;
}

.lp-hero-content {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lp-fade-up 0.8s ease-out both;
}

.lp-hero-content--catalog {
    max-width: 1880px;
    width: 100%;
}

@keyframes lp-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    margin-bottom: 44px;
}

.lp-badge::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 143, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    animation: lp-glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.lp-badge-logo {
    width: 180px;
    height: 180px;
    animation: lp-float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.1));
    transition: filter 0.3s ease;
}

.lp-badge-logo--scripts {
    margin-top: -100px;
}

.lp-badge:hover .lp-badge-logo {
    filter: drop-shadow(0 4px 30px rgba(77, 143, 255, 0.3));
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes lp-glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.lp-title {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 22px;
    min-height: 2.2em;
}

.lp-title.is-typing::after {
    content: "|";
    margin-left: 4px;
    color: var(--text-primary);
    animation: lp-caret-blink 0.8s step-end infinite;
}

@keyframes lp-caret-blink {
    50% { opacity: 0; }
}

.lp-accent {
    background: linear-gradient(135deg, #35579a 0%, #8c99ae 50%, #4d8fff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lp-gradient-shift 6s ease infinite;
}

@keyframes lp-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lp-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 40px;
}

.lp-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.lp-btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    backdrop-filter: blur(8px);
}

.lp-btn--ghost:hover {
    border-color: rgba(77, 143, 255, 0.4);
    background: rgba(77, 143, 255, 0.08);
    color: #fff;
    box-shadow: 0 0 20px rgba(77, 143, 255, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.lp-btn--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.lp-catalog {
    width: min(1720px, 100%);
    margin-top: 18px;
}

.lp-catalog-count {
    text-align: left;
    color: var(--text-secondary);
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.lp-catalog-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 10px;
}

.lp-catalog {
    position: relative;
}

.lp-catalog-nav {
    position: absolute;
    top: 54%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    width: 66px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 8;
    transition: all var(--transition-normal);
}

.lp-catalog-nav:hover {
    background: rgba(77, 143, 255, 0.14);
    border-color: rgba(77, 143, 255, 0.68);
    color: #fff;
    box-shadow: 0 0 20px rgba(77, 143, 255, 0.1);
}

.lp-catalog-nav--prev { left: 16%; }
.lp-catalog-nav--next { left: 84%; }

.lp-catalog-counter {
    margin-top: 14px;
    text-align: center;
    color: rgba(224, 236, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lp-catalog-scroll-hint {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(204, 225, 255, 0.92);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(77, 143, 255, 0.35);
    animation: lp-scroll-hint-pulse 1.8s ease-in-out infinite;
}

.lp-catalog-scroll-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.9rem;
    animation: lp-scroll-rotate 1.5s linear infinite;
}

.lp-catalog-scroll-text {
    opacity: 0.9;
}

@keyframes lp-scroll-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lp-catalog-matrix-hint {
    margin-top: 6px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #9ec7ff;
    opacity: 0;
    transform: translateY(-3px);
    pointer-events: none;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    text-shadow: 0 0 10px rgba(77, 143, 255, 0.38);
}

.lp-catalog.is-away-from-matrix .lp-catalog-matrix-hint {
    opacity: 1;
    transform: translateY(0);
    animation: lp-matrix-hint-blink 1.2s ease-in-out infinite;
}

@keyframes lp-matrix-hint-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.62; }
}

@keyframes lp-scroll-hint-pulse {
    0%, 100% { opacity: 0.78; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

.lp-product-card--matrix {
    --card-accent-rgb: 77, 143, 255;
    --card-bg-start: rgba(22, 36, 70, 0.9);
    --card-bg-end: rgba(16, 25, 46, 0.94);
    --card-bg-start-solid: rgba(22, 36, 70, 0.98);
    --card-bg-end-solid: rgba(16, 25, 46, 1);
    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(77, 143, 255, 0.28),
        0 0 40px rgba(77, 143, 255, 0.32);
}

.lp-product-card--matrix::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(77, 143, 255, 0.0), rgba(145, 192, 255, 0.32), rgba(77, 143, 255, 0.0));
    opacity: 0;
    pointer-events: none;
    animation: lp-matrix-shine 2.1s ease-in-out infinite;
}

.lp-product-card--matrix .lp-product-badge-featured {
    background: rgba(77, 143, 255, 0.34);
    border-color: rgba(126, 184, 255, 0.82);
    color: #edf5ff;
    box-shadow: 0 0 12px rgba(77, 143, 255, 0.34);
    animation: lp-matrix-badge-pulse 1.3s ease-in-out infinite;
}

.lp-product-card--spv5 {
    --card-accent-rgb: 49, 8, 10;
    --card-bg-start: rgba(56, 14, 17, 0.92);
    --card-bg-end: rgba(31, 9, 11, 0.96);
    --card-bg-start-solid: rgba(61, 15, 18, 0.98);
    --card-bg-end-solid: rgba(35, 10, 12, 0.99);
    background: linear-gradient(180deg, rgba(62, 16, 19, 0.98) 0%, rgba(36, 10, 12, 0.99) 100%) !important;
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(104, 42, 45, 0.28),
        0 0 32px rgba(104, 42, 45, 0.24);
}

.lp-product-card--spv5::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(165deg, rgba(122, 53, 56, 0.2) 0%, transparent 55%);
}

.lp-product-card--spv5::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(49, 8, 10, 0.0), rgba(145, 82, 86, 0.24), rgba(49, 8, 10, 0.0));
    opacity: 0;
    pointer-events: none;
    animation: lp-spv5-shine 2.4s ease-in-out infinite;
}

.lp-product-card--spv5 .lp-product-badge-featured {
    background: rgba(122, 53, 56, 0.32) !important;
    border-color: rgba(165, 103, 108, 0.62) !important;
    color: #ffeaf0 !important;
}

.lp-product-card--spv5 .lp-product-badge-theme {
    background: rgba(73, 24, 27, 0.38) !important;
    border-color: rgba(122, 53, 56, 0.62) !important;
    color: #ffdbe4 !important;
}

.lp-product-card--ultrarj {
    --card-accent-rgb: 124, 158, 132;
    --card-bg-start: rgba(40, 56, 45, 0.9);
    --card-bg-end: rgba(26, 38, 31, 0.94);
    --card-bg-start-solid: rgba(45, 62, 50, 0.97);
    --card-bg-end-solid: rgba(29, 42, 34, 0.99);
    background: linear-gradient(180deg, rgba(50, 69, 55, 0.97) 0%, rgba(30, 45, 36, 0.99) 100%) !important;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(124, 158, 132, 0.28),
        0 0 32px rgba(124, 158, 132, 0.2);
}

.lp-product-card--ultrarj::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(165deg, rgba(124, 158, 132, 0.18) 0%, transparent 55%);
}

.lp-product-card--ultrarj::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(124, 158, 132, 0.0), rgba(161, 198, 171, 0.24), rgba(124, 158, 132, 0.0));
    opacity: 0;
    pointer-events: none;
    animation: lp-ultrarj-shine 2.5s ease-in-out infinite;
}

.lp-product-card--ultrarj .lp-product-badge-featured {
    background: rgba(124, 158, 132, 0.3) !important;
    border-color: rgba(161, 198, 171, 0.66) !important;
    color: #eef8f1 !important;
}

.lp-product-card--ultrarj .lp-product-badge-theme {
    background: rgba(88, 121, 97, 0.32) !important;
    border-color: rgba(124, 158, 132, 0.62) !important;
    color: #e3f0e7 !important;
}

.lp-product-card--ultrarj .lp-product-cta {
    border-color: rgba(124, 158, 132, 0.34);
    background: rgba(124, 158, 132, 0.05);
}

.lp-product-card--ultrarj .lp-product-cta:hover {
    border-color: rgba(124, 158, 132, 0.5);
    background: rgba(124, 158, 132, 0.12);
    box-shadow: 0 0 20px rgba(124, 158, 132, 0.16);
}

.lp-product-card--exclusiva {
    --card-accent-rgb: 41, 42, 42;
    --card-bg-start: rgba(41, 42, 42, 0.9);
    --card-bg-end: rgba(24, 25, 25, 0.94);
    --card-bg-start-solid: rgba(46, 47, 47, 0.97);
    --card-bg-end-solid: rgba(28, 29, 29, 0.99);
    background: linear-gradient(180deg, rgba(49, 50, 50, 0.97) 0%, rgba(30, 31, 31, 0.99) 100%) !important;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(128, 138, 138, 0.2),
        0 0 28px rgba(80, 86, 86, 0.22);
}

.lp-product-card--exclusiva::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(165deg, rgba(173, 184, 184, 0.12) 0%, transparent 55%);
}

.lp-product-card--exclusiva::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(170, 180, 180, 0.0), rgba(170, 180, 180, 0.2), rgba(170, 180, 180, 0.0));
    opacity: 0;
    pointer-events: none;
    animation: lp-exclusiva-shine 2.5s ease-in-out infinite;
}

.lp-product-card--exclusiva .lp-product-badge-featured {
    background: rgba(96, 104, 104, 0.34) !important;
    border-color: rgba(170, 180, 180, 0.5) !important;
    color: #eef0f0 !important;
}

.lp-product-card--exclusiva .lp-product-badge-theme {
    background: rgba(60, 64, 64, 0.36) !important;
    border-color: rgba(132, 142, 142, 0.5) !important;
    color: #dde2e2 !important;
}

.lp-product-card--exclusiva .lp-product-cta {
    border-color: rgba(128, 138, 138, 0.3);
    background: rgba(90, 98, 98, 0.08);
}

.lp-product-card--exclusiva .lp-product-cta:hover {
    border-color: rgba(170, 180, 180, 0.45);
    background: rgba(170, 180, 180, 0.12);
    box-shadow: 0 0 18px rgba(128, 138, 138, 0.18);
}

.lp-product-card--spv5 .lp-product-cta:hover {
    border-color: rgba(122, 53, 56, 0.48);
    background: rgba(122, 53, 56, 0.14);
    box-shadow: 0 0 20px rgba(122, 53, 56, 0.16);
}

.lp-product-card--spv5 .lp-product-cta {
    border-color: rgba(122, 53, 56, 0.36);
    background: rgba(122, 53, 56, 0.08);
}

@keyframes lp-spv5-shine {
    0%, 100% { opacity: 0; }
    45% { opacity: 0.6; }
}

@keyframes lp-ultrarj-shine {
    0%, 100% { opacity: 0; }
    45% { opacity: 0.56; }
}

@keyframes lp-exclusiva-shine {
    0%, 100% { opacity: 0; }
    45% { opacity: 0.52; }
}

.lp-catalog-row--single-carousel .lp-product-card--matrix.is-active {
    transform: translateX(-50%) scale(1.07);
}

.lp-catalog-row--single-carousel .lp-product-card--matrix.is-prev {
    transform: translateX(-118%) scale(0.94);
}

.lp-catalog-row--single-carousel .lp-product-card--matrix.is-next {
    transform: translateX(18%) scale(0.94);
}

.lp-product-card--matrix:hover,
.lp-catalog-row--single-carousel .lp-product-card--matrix:hover,
.lp-catalog-row--single-carousel .lp-product-card--matrix.is-active:hover {
    transform: translateX(-50%) scale(1.07);
}

@keyframes lp-matrix-shine {
    0%, 100% { opacity: 0; }
    45% { opacity: 0.7; }
}

@keyframes lp-matrix-badge-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.12); }
}

.lp-catalog-row--single-carousel {
    position: relative;
    width: min(980px, 100%);
    margin: 18px auto 0;
    min-height: 620px;
    overflow: visible;
    perspective: 1400px;
}

.lp-catalog-row--single-carousel .lp-product-card {
    position: absolute;
    left: 50%;
    top: 30px;
    width: min(460px, 31vw);
    background: linear-gradient(180deg, var(--card-bg-start-solid) 0%, var(--card-bg-end-solid) 100%);
    transform: translateX(-50%) translateZ(0) rotateY(0deg) scale(1);
    opacity: 0;
    pointer-events: none;
    transition: transform 460ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 330ms ease;
}

.lp-catalog-row--single-carousel .lp-product-card img {
    height: 252px;
}

.lp-catalog-row--single-carousel .lp-product-body {
    padding: 22px 18px 30px;
}

.lp-catalog-row--single-carousel .lp-product-body p {
    min-height: 138px;
}

.lp-catalog-row--single-carousel .lp-product-card.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 4;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.52);
}

.lp-catalog-row--single-carousel .lp-product-card.is-prev,
.lp-catalog-row--single-carousel .lp-product-card.is-next {
    opacity: 0.45;
    z-index: 3;
    pointer-events: none;
}

.lp-catalog-row--single-carousel .lp-product-card.is-hidden {
    opacity: 0;
    z-index: 1;
}

.lp-catalog-row--single-carousel .lp-product-card.is-prev {
    transform: translateX(-118%) scale(0.9);
}

.lp-catalog-row--single-carousel .lp-product-card.is-next {
    transform: translateX(18%) scale(0.9);
}

.lp-product-card {
    --card-bg-start: rgba(22, 36, 70, 0.88);
    --card-bg-end: rgba(16, 25, 46, 0.92);
    --card-bg-start-solid: rgba(22, 36, 70, 0.96);
    --card-bg-end-solid: rgba(16, 25, 46, 0.98);
    --card-accent-rgb: 77, 143, 255;
    background: linear-gradient(180deg, var(--card-bg-start) 0%, var(--card-bg-end) 100%);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.lp-product-card img {
    width: 100%;
    height: 226px;
    object-fit: cover;
}

.lp-product-body {
    padding: 20px 18px 24px;
    text-align: left;
}

.lp-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.lp-product-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-product-body h3 {
    font-size: 1.55rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lp-product-body p {
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 102px;
    margin-bottom: 16px;
}

.lp-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all var(--transition-normal);
}

.lp-product-cta svg {
    flex-shrink: 0;
}

.lp-product-cta:hover {
    border-color: rgba(var(--card-accent-rgb), 0.4);
    background: rgba(var(--card-accent-rgb), 0.08);
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--card-accent-rgb), 0.1);
    transform: translateY(-1px);
}

.lp-product-card--featured {
    position: relative;
    transform: translateY(-14px) scale(1.03);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(77, 143, 255, 0.22),
        0 0 34px rgba(77, 143, 255, 0.25);
    z-index: 2;
}

.lp-product-card--featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(77, 143, 255, 0.13) 0%, transparent 55%);
    pointer-events: none;
}

.lp-catalog-row--single-carousel[data-carousel-dir='next'].is-animating .lp-product-card.is-active {
    animation: lp-carousel-in-next 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lp-catalog-row--single-carousel[data-carousel-dir='next'].is-animating .lp-product-card.is-prev {
    animation: lp-carousel-out-next 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lp-catalog-row--single-carousel[data-carousel-dir='prev'].is-animating .lp-product-card.is-active {
    animation: lp-carousel-in-prev 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lp-catalog-row--single-carousel[data-carousel-dir='prev'].is-animating .lp-product-card.is-next {
    animation: lp-carousel-out-prev 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes lp-carousel-in-next {
    0% { transform: translateX(18%) rotateY(-18deg) scale(0.9); opacity: 0.45; }
    100% { transform: translateX(-50%) rotateY(0deg) scale(1); opacity: 1; }
}

@keyframes lp-carousel-out-next {
    0% { transform: translateX(-50%) rotateY(0deg) scale(1); opacity: 1; }
    100% { transform: translateX(-118%) rotateY(18deg) scale(0.9); opacity: 0.45; }
}

@keyframes lp-carousel-in-prev {
    0% { transform: translateX(-118%) rotateY(18deg) scale(0.9); opacity: 0.45; }
    100% { transform: translateX(-50%) rotateY(0deg) scale(1); opacity: 1; }
}

@keyframes lp-carousel-out-prev {
    0% { transform: translateX(-50%) rotateY(0deg) scale(1); opacity: 1; }
    100% { transform: translateX(18%) rotateY(-18deg) scale(0.9); opacity: 0.45; }
}

.lp-product-badge-featured {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #dbe9ff;
    background: rgba(var(--card-accent-rgb), 0.26);
    border: 1px solid rgba(var(--card-accent-rgb), 0.5);
}

.lp-product-badge-theme {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #dbe9ff;
    background: rgba(var(--card-accent-rgb), 0.22);
    border: 1px solid rgba(var(--card-accent-rgb), 0.45);
}

.lp-product-release {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(224, 236, 255, 0.92);
    background: rgba(9, 18, 36, 0.55);
    border: none;
}

.lp-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 143, 255, 0.36);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 0 18px rgba(77, 143, 255, 0.15);
}

.lp-product-card--featured:hover {
    transform: translateY(-18px) scale(1.035);
}

.lp-catalog-row--single-carousel .lp-product-card:hover,
.lp-catalog-row--single-carousel .lp-product-card--featured:hover {
    transform: translateX(-50%) translateY(0) rotateY(0deg) scale(1);
}

.lp-catalog-intro {
    position: absolute;
    top: calc(100% - 68px);
    left: 50%;
    transform: translateX(-50%);
    width: min(840px, 90vw);
    text-align: center;
    pointer-events: none;
    z-index: 3;
}

.lp-catalog-title {
    margin: 42px 0 0;
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.lp-catalog-subtitle {
    margin: 20px 0 0;
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.55;
}

.bm-page {
    width: min(1180px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.bm-features-grid {
    width: min(1050px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bm-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 18px 14px;
    text-align: center;
    transition: all var(--transition-normal);
}

.bm-feature-icon {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.bm-feature-icon--green { color: #22c55e; }
.bm-feature-icon--category { color: #4a8fe8; }
.bm-feature-icon--yellow { color: #eab308; }
.bm-feature-icon--performance { color: #4a8fe8; }
.bm-feature-icon--blue { color: #60a5fa; }
.bm-feature-icon--purple { color: #a78bfa; }
.bm-feature-icon--size { color: #4a8fe8; }
.bm-feature-icon--update { color: #4a8fe8; }

.bm-feature-card h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.bm-feature-card p {
    color: var(--text-secondary);
    font-size: 1.12rem;
}

.bm-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-normal);
}

.bm-main-stack {
    width: min(1050px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.bm-sheet {
    width: min(980px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bm-sheet--packages {
    gap: 10px;
    width: 100%;
}

.bm-sheet--video {
    gap: 14px;
    width: 100%;
}

.bm-sheet--structure {
    gap: 18px;
}

.bm-top-grid {
    --bm-top-card-height: 900px;
    width: 1050px;
    display: flex;
    justify-content: center;
    align-items: start;
    position: relative;
}

.bm-sheet--structure-side {
    width: 250px;
    position: absolute;
    left: -290px;
    top: 0;
}

.bm-offer-carousel {
    width: 100%;
    position: relative;
    min-height: 900px;
    perspective: 1200px;
}

.bm-offer-card {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(930px, 100%);
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
}

.bm-offer-card.is-active {
    transform: translateX(-50%) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}

.bm-offer-card.is-prev,
.bm-offer-card.is-next {
    opacity: 0;
    z-index: 1;
}

.bm-offer-card.is-prev {
    transform: translateX(-106%) rotateY(14deg) scale(0.94);
}

.bm-offer-card.is-next {
    transform: translateX(6%) rotateY(-14deg) scale(0.94);
}

.bm-offer-card.is-hidden {
    opacity: 0;
    z-index: 1;
}

.bm-offer-carousel[data-carousel-dir='next'].is-animating .bm-offer-card.is-active {
    animation: lp-carousel-in-next 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bm-offer-carousel[data-carousel-dir='next'].is-animating .bm-offer-card.is-prev {
    animation: lp-carousel-out-next 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bm-offer-carousel[data-carousel-dir='prev'].is-animating .bm-offer-card.is-active {
    animation: lp-carousel-in-prev 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bm-offer-carousel[data-carousel-dir='prev'].is-animating .bm-offer-card.is-next {
    animation: lp-carousel-out-prev 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bm-offer-carousel-meta {
    width: min(930px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: -12px;
    margin-bottom: 0;
    position: relative;
    z-index: 4;
    min-height: 44px;
}

.bm-offer-counter {
    margin-top: 0;
}

.bm-offer-scroll-hint {
    margin-top: 0;
}

.bm-section-divider {
    width: min(930px, 100%);
    height: 1px;
    margin: 2px 0 4px;
    background: linear-gradient(
        90deg,
        rgba(130, 170, 225, 0) 0%,
        rgba(130, 170, 225, 0.34) 20%,
        rgba(130, 170, 225, 0.44) 50%,
        rgba(130, 170, 225, 0.34) 80%,
        rgba(130, 170, 225, 0) 100%
    );
}

.bm-video-heading {
    margin: 0;
    text-align: center;
    font-size: 3.1rem;
}

.bm-video-panel {
    width: min(1010px, 100%);
    margin-top: 2px;
    padding: 0;
    overflow: hidden;
}

.bm-video-link {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
}

.bm-video-thumb {
    width: 100%;
    min-height: 460px;
    height: 460px;
    object-fit: cover;
    display: block;
}

.bm-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(11, 24, 48, 0.72);
    border: 1px solid rgba(145, 192, 255, 0.55);
    box-shadow: 0 0 26px rgba(74, 143, 232, 0.35);
}

.bm-video-cta {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(220, 236, 255, 0.94);
    text-shadow: 0 0 10px rgba(74, 143, 232, 0.35);
}

.bm-structure-card {
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: var(--bm-top-card-height);
}

.bm-sheet--packages .bm-offer-card.bm-buy-panel {
    height: var(--bm-top-card-height);
}

.bm-structure-title {
    margin: 0 0 10px;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-align: center;
}

.bm-tree-wrap {
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    max-height: 760px;
    height: calc(var(--bm-top-card-height) - 140px);
    overflow: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bm-tree-node {
    margin: 0;
    width: 100%;
}

.bm-tree-node + .bm-tree-node {
    margin-top: 4px;
}

.bm-tree-node > summary {
    list-style: none;
}

.bm-tree-node > summary::-webkit-details-marker {
    display: none;
}

.bm-tree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 8px 10px;
    transition: background-color 0.2s ease;
}

.bm-tree-row:hover {
    background: transparent;
}

.bm-tree-row--child {
    padding-left: 30px;
}

.bm-tree-children {
    margin-top: 2px;
}

.bm-tree-node:not([open]) .bm-tree-children {
    display: none;
}

.bm-tree-node:not([open]) .bm-tree-chevron {
    transform: rotate(90deg);
}

.bm-tree-chevron {
    width: 14px;
    color: #9ca3af;
    flex: 0 0 auto;
    transition: transform 0.15s ease;
}

.bm-tree-chevron--leaf {
    opacity: 0;
}

.bm-tree-folder {
    width: 16px;
    color: #4f9bff;
    flex: 0 0 auto;
}

.bm-tree-label {
    font-size: 14px;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-structure-hint {
    margin: 12px 2px 0;
    color: var(--text-secondary);
    font-size: 0.74rem;
    text-align: center;
}

.bm-buy-panel h4 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.bm-packages-inline-item h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bm-package-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.bm-package-list li {
    color: var(--text-secondary);
    line-height: 1.45;
    font-size: 1rem;
}

.bm-packages-inline {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
}

.bm-packages-inline-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.bm-packages-inline-item h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bm-buy-panel {
    padding: 22px;
    width: 100%;
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* Keep carousel cards layered in the same plane */
.bm-offer-carousel .bm-offer-card.bm-buy-panel {
    position: absolute;
    inset: 0 auto auto 50%;
    width: min(930px, 100%);
}

.bm-buy-panel--center {
    text-align: center;
}

.bm-buy-panel--center .bm-badges,
.bm-buy-panel--center .bm-price-row {
    justify-content: center;
}

.bm-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.bm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.bm-badge--primary { background: rgba(77, 143, 255, 0.22); color: #93c5fd; border-color: rgba(77, 143, 255, 0.34); }
.bm-badge--success { background: rgba(34, 197, 94, 0.2); color: #86efac; border-color: rgba(34, 197, 94, 0.34); }
.bm-badge--danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border-color: rgba(239, 68, 68, 0.34); }

.bm-buy-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.bm-package-heading {
    margin: 0 0 10px;
    text-align: center;
    font-size: 3.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.08;
}

.bm-buy-desc,
.bm-offer {
    color: var(--text-secondary);
}

.bm-buy-desc {
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.bm-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.bm-price-current {
    font-size: 2.65rem;
    font-weight: 800;
    color: var(--accent-secondary);
    text-shadow: 0 0 20px rgba(74, 143, 232, 0.35);
}

.bm-price-currency {
    color: #ffffff;
}

.bm-price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.6rem;
}

.bm-offer {
    margin-bottom: 16px;
}

.bm-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.bm-pay-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-normal);
}

.bm-feature-card:hover,
.bm-panel:hover:not(.bm-offer-card):not(.bm-structure-card),
.bm-pay-item:hover {
    border-color: rgba(77, 143, 255, 0.4);
    background: rgba(77, 143, 255, 0.08);
    box-shadow: 0 0 20px rgba(77, 143, 255, 0.1);
    transform: translateY(-1px);
}

.bm-offer-card:hover {
    transform: translateX(-50%) rotateY(0deg) scale(1);
    border-color: var(--border-secondary);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.bm-pay-item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-bottom: 6px;
}

.bm-pay-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.bm-pay-item span {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.bm-checklist {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0;
}

.bm-checklist li {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-checklist li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
}

.bm-buy-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 13px 16px;
    background: linear-gradient(180deg, #4a8fe8 0%, #3d79d0 100%);
    border: 1px solid rgba(115, 175, 255, 0.55);
    color: #edf5ff;
    text-decoration: none;
    font-weight: 700;
}

.bm-buy-btn:hover {
    text-decoration: none;
    filter: brightness(1.05);
}

.bm-buy-btn.is-active {
    border-color: rgba(77, 143, 255, 0.62);
    box-shadow: 0 0 20px rgba(77, 143, 255, 0.16);
}

/* Footer */
.lp-footer {
    position: relative;
    z-index: 1;
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.lp-footer span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.lp-footer-year {
    margin-top: 6px;
}


/* Login error overlay */
.login-error-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-error-card {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow-modal);
}

.login-error-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-red-glow);
    color: var(--accent-red);
    margin: 0 auto 16px;
}

.login-error-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Landing responsive */
@media (max-width: 768px) {
    .landing-nav-inner { padding: 0 16px; }
    .lp-hero { padding: 100px 20px 48px; }
    .lp-title { font-size: 2.2rem; }
    .lp-desc { font-size: 0.9rem; }
    .lp-actions { flex-direction: column; align-items: center; width: 100%; }
    .lp-btn { width: 100%; max-width: 260px; justify-content: center; }
    .lp-footer { padding: 16px; }
    .lp-catalog-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-product-body h3 { font-size: 1.25rem; }
    .lp-product-cta { font-size: 0.8rem; padding: 11px 12px; }
    .lp-catalog-title { font-size: 1.7rem; }
    .lp-catalog-subtitle { font-size: 0.9rem; }
    .lp-product-card--featured {
        transform: translateY(-8px) scale(1.015);
    }
    .bm-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-main-stack { width: 100%; }
    .bm-offer-carousel { min-height: 960px; }
    .bm-offer-carousel-meta { letter-spacing: 0.06em; }
    .bm-packages-inline { grid-template-columns: 1fr; }
    .bm-buy-panel h2 { font-size: 2rem; }
    .bm-price-current { font-size: 2rem; }
    .bm-price-old { font-size: 1.2rem; }
    .lp-catalog-nav {
        font-size: 1.55rem;
        width: 52px;
        height: 60px;
        top: 52%;
    }
    .lp-catalog-nav--prev { left: 9%; }
    .lp-catalog-nav--next { left: 91%; }
    .lp-catalog-row--single-carousel { min-height: 520px; }
    .lp-catalog-row--single-carousel .lp-product-card { width: min(500px, 92%); }
    .lp-catalog-counter { margin-top: 10px; font-size: 0.84rem; }
    .lp-catalog-scroll-hint { font-size: 0.66rem; gap: 6px; }
}

@media (max-width: 520px) {
    .lp-catalog-row { grid-template-columns: 1fr; }
    .lp-catalog-count { font-size: 1.05rem; }
    .lp-product-card--featured {
        transform: translateY(-4px) scale(1.01);
    }
    .lp-catalog-nav { display: none; }
    .lp-catalog-row--single-carousel { min-height: 500px; }
    .lp-catalog-row--single-carousel .lp-product-card { width: 96%; }
    .bm-features-grid { grid-template-columns: 1fr; }
    .bm-offer-carousel { min-height: 1020px; }
    .bm-offer-card.is-prev,
    .bm-offer-card.is-next {
        transform: translateX(-50%) rotateY(0deg) scale(0.92);
        opacity: 0;
    }
    .bm-pay-grid { grid-template-columns: 1fr; }
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    background: var(--discord-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-discord:hover {
    background: #4752d4;
    text-decoration: none;
}

/* ============================================
   Main Layout
   ============================================ */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border-primary);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.sidebar-logo img { border-radius: 4px; }
.sidebar-logo svg { color: var(--accent-primary); }

.sidebar-nav {
    flex: 1;
    padding: 10px 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-secondary) transparent;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 18px 14px 6px;
}

.nav-label:first-child { padding-top: 6px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    user-select: none;
    margin-bottom: 1px;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-item.active {
    background: var(--accent-primary-glow);
    color: var(--text-accent);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
}

.nav-item.active svg { color: var(--accent-primary); }

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-item:hover svg { color: var(--text-secondary); }

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--border-primary);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1px;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-logout:hover {
    color: var(--accent-red);
    background: var(--accent-red-glow);
}

/* ============================================
   Mobile Header & Overlay
   ============================================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 11, 18, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 150;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.btn-menu {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.mobile-title {
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 190;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 36px 64px;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.page-header-actions h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
}

.page-header-actions p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Stat Cards
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    transition: border-color var(--transition-fast);
}

.stat-card:hover { border-color: var(--border-secondary); }

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-card-icon.blue { background: var(--accent-blue-glow); color: var(--accent-blue); }
.stat-card-icon.green { background: var(--accent-green-glow); color: var(--accent-green); }
.stat-card-icon.yellow { background: var(--accent-yellow-glow); color: var(--accent-yellow); }
.stat-card-icon.red { background: var(--accent-red-glow); color: var(--accent-red); }
.stat-card-icon.accent { background: var(--accent-primary-glow); color: var(--accent-secondary); }

.stat-card-value {
    font-size: 1.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-card-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.card + .card { margin-top: 20px; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2 svg { color: var(--accent-primary); width: 16px; height: 16px; }

/* ============================================
   Tables
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    text-align: left;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-primary);
}

.data-table th:first-child { padding-left: 20px; }
.data-table th:last-child { padding-right: 20px; }

.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-primary);
    vertical-align: middle;
    font-size: 0.84rem;
}

.data-table td:first-child { padding-left: 20px; }
.data-table td:last-child { padding-right: 20px; }

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover { background: var(--bg-card-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

.table-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.table-empty svg { opacity: 0.25; margin-bottom: 12px; }
.table-empty p { font-size: 0.85rem; }

/* Table cell utilities */
.cell-mono {
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.cell-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

/* Discord user cell in license table */
.discord-user-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background 0.15s;
    max-width: 180px;
}
.discord-user-cell:hover {
    background: var(--hover);
}
.discord-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.discord-user-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1;
}

.badge-green { background: var(--accent-green-glow); color: var(--accent-green); }
.badge-yellow { background: var(--accent-yellow-glow); color: var(--accent-yellow); }
.badge-red { background: var(--accent-red-glow); color: var(--accent-red); }
.badge-blue { background: var(--accent-blue-glow); color: var(--accent-blue); }
.badge-gray { background: rgba(100, 100, 120, 0.12); color: var(--text-muted); }
.badge-accent { background: var(--accent-primary-glow); color: var(--accent-secondary); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-md { padding: 10px 20px; font-size: 0.85rem; border-radius: var(--radius-md); }

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-primary-hover);
    box-shadow: 0 0 20px var(--accent-primary-glow);
}

.btn-ghost {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--accent-red-glow);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
    border-color: var(--accent-red);
}

.btn-success {
    background: var(--accent-green-glow);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-success:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--accent-green);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.btn-icon:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.btn-icon.edit:hover { color: var(--accent-blue); border-color: var(--accent-blue); background: var(--accent-blue-glow); }
.btn-icon.delete:hover { color: var(--accent-red); border-color: var(--accent-red); background: var(--accent-red-glow); }
.btn-icon.download:hover { color: var(--accent-green); border-color: var(--accent-green); background: var(--accent-green-glow); }
.btn-icon.auth-shield { color: var(--accent-yellow); }
.btn-icon.auth-shield:hover { color: var(--accent-yellow); border-color: var(--accent-yellow); background: var(--accent-yellow-glow); }

/* File Drop Zone */
.file-drop-zone {
    border: 2px dashed var(--border-primary);
    border-radius: 10px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}
.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: var(--accent-blue);
    background: var(--accent-blue-glow);
    color: var(--accent-blue);
}

/* ============================================
   Forms / Inputs
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group .hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.form-input::placeholder { color: var(--text-muted); }

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23545770' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 36px;
    height: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-checkbox input[type="checkbox"]:checked::after {
    left: 18px;
    background: white;
}

/* ============================================
   Search & Filter Bar
   ============================================ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.toolbar .form-select {
    padding: 9px 32px 9px 14px;
    background-color: var(--bg-primary);
    font-size: 0.82rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
    flex: 1;
    min-width: 180px;
    max-width: 300px;
}

.search-box:focus-within { border-color: var(--accent-primary); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    width: 100%;
}

.search-box input::placeholder { color: var(--text-muted); }

.filter-group {
    display: flex;
    gap: 2px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 3px;
    border: 1px solid var(--border-primary);
}

.filter-btn {
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-btn:hover { color: var(--text-secondary); }
.filter-btn.active { background: var(--accent-primary); color: white; font-weight: 600; }

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
}

.page-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    min-width: 80px;
    text-align: center;
}

/* ============================================
   Modal — Glassmorphism
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 11, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.15s ease;
}

.modal {
    position: relative;
    background: rgba(17, 19, 27, 0.62);
    backdrop-filter: blur(28px) saturate(1.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
    border: 1px solid rgba(77, 143, 255, 0.2);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(1, 67, 187, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    animation: slideUp 0.25s ease;
    isolation: isolate;
}

.modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(77, 143, 255, 0.1) 0%,
        rgba(1, 67, 187, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.modal > * {
    position: relative;
    z-index: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 12px rgba(77, 143, 255, 0.15);
}

.modal-close {
    background: rgba(22, 24, 32, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(77, 143, 255, 0.15);
    color: var(--text-muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: rgba(77, 143, 255, 0.35);
    background: rgba(24, 27, 37, 0.75);
    box-shadow: 0 0 16px rgba(77, 143, 255, 0.12);
}

.modal-body { padding: 20px 24px 8px; }

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 24px 24px;
    border-top: 1px solid rgba(77, 143, 255, 0.12);
    margin-top: 12px;
    padding-top: 16px;
    background: linear-gradient(to top, rgba(1, 67, 187, 0.06), transparent);
}

.modal .form-input,
.modal .form-select,
.modal .form-textarea {
    background: rgba(12, 13, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-color: rgba(77, 143, 255, 0.14);
}

.modal .form-input:focus,
.modal .form-select:focus,
.modal .form-textarea:focus {
    border-color: rgba(77, 143, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(1, 67, 187, 0.18);
    background: rgba(14, 16, 23, 0.7);
}

.modal .btn-ghost {
    background: rgba(22, 24, 32, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(77, 143, 255, 0.12);
}

.modal .btn-ghost:hover:not(:disabled) {
    background: rgba(24, 27, 37, 0.65);
    border-color: rgba(77, 143, 255, 0.25);
}

.modal .btn-primary {
    box-shadow: 0 4px 20px rgba(1, 67, 187, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   Toast
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
    width: 100%;
    max-width: 440px;
    padding: 0 16px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-primary);
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    pointer-events: auto;
    width: 100%;
}

.toast.toast-out { animation: toastOut 0.25s ease both; }

.toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.toast.toast-success .toast-icon { color: var(--accent-green); background: var(--accent-green-glow); }
.toast.toast-error .toast-icon { color: var(--accent-red); background: var(--accent-red-glow); }
.toast.toast-info .toast-icon { color: var(--accent-blue); background: var(--accent-blue-glow); }

.toast.toast-success { border-color: rgba(34, 197, 94, 0.2); }
.toast.toast-error { border-color: rgba(239, 68, 68, 0.2); }
.toast.toast-info { border-color: rgba(59, 130, 246, 0.2); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-8px) scale(0.96); }

}

/* Progress toast */
.toast-progress {
    flex-direction: row;
    gap: 12px;
}

.toast-progress-body {
    flex: 1;
    min-width: 0;
}

.toast-progress-title {
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-progress-bar {
    width: 100%;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.toast-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.toast-progress.toast-success .toast-progress-fill { background: var(--accent-green); }
.toast-progress.toast-error .toast-progress-fill { background: var(--accent-red); }

.progress-spin {
    animation: spin 0.8s linear infinite;
}

/* ============================================
   Upload Zone
   ============================================ */
.upload-zone {
    border: 2px dashed var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(1, 67, 187, 0.04);
}

.upload-icon {
    margin-bottom: 14px;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.upload-icon svg { width: 36px; height: 36px; }

.upload-zone:hover .upload-icon { color: var(--accent-primary); }

.upload-text {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.upload-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.upload-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.upload-buttons .btn { pointer-events: auto; }

.upload-options {
    margin-top: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
}

/* ============================================
   Upload Queue
   ============================================ */
.queue-card { margin-top: 20px; }

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.queue-header h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.queue-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
}

.queue-item .q-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.queue-item .q-info { flex: 1; min-width: 0; }

.queue-item .q-name {
    font-weight: 500;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item .q-size {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.queue-item .q-status { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.queue-item .q-status-text { font-size: 0.78rem; color: var(--text-muted); }
.queue-item .q-status-text.uploading { color: var(--accent-blue); }
.queue-item .q-status-text.success { color: var(--accent-green); }
.queue-item .q-status-text.error { color: var(--accent-red); }

.queue-item .progress-bar {
    width: 100%;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.queue-item .progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.queue-item .progress-fill.complete { background: var(--accent-green); }
.queue-item .progress-fill.error { background: var(--accent-red); }

.btn-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-remove:hover { color: var(--accent-red); background: var(--accent-red-glow); }

/* ============================================
   Obfuscation Cards (list)
   ============================================ */
.obf-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.obf-card:hover { background: var(--bg-card-hover); border-color: var(--border-secondary); }

.obf-status-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.obf-status-icon.finished { background: var(--accent-green-glow); color: var(--accent-green); }
.obf-status-icon.processing { background: var(--accent-yellow-glow); color: var(--accent-yellow); }
.obf-status-icon.expired { background: rgba(100, 100, 120, 0.12); color: var(--text-muted); }
.obf-status-icon.processing svg { animation: spin 2s linear infinite; }

.obf-info { flex: 1; min-width: 0; }
.obf-name {
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obf-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.obf-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Batch cards (obfuscation folders) */
.batch-card {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.batch-card:hover { border-color: var(--border-secondary); }

.batch-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}

.batch-header:hover { background: var(--bg-card-hover); }

.batch-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-primary-glow);
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.batch-info { flex: 1; min-width: 0; }

.batch-name {
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.batch-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.batch-actions .chevron {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.batch-actions .chevron.expanded { transform: rotate(90deg); }

.batch-files {
    border-top: 1px solid var(--border-primary);
    padding: 8px 18px 8px 70px;
    display: none;
}

.batch-files.show { display: block; }

.batch-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--accent-green); }
.dot-yellow { background: var(--accent-yellow); }
.dot-gray { background: var(--text-muted); }
.dot-muted { background: var(--text-muted); opacity: 0.4; }

.batch-progress {
    width: 100%;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.batch-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.btn-gofile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
    background: var(--accent-green-glow);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-gofile:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--accent-green);
    text-decoration: none;
}

/* ============================================
   Obfuscation List (history)
   ============================================ */
.obf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 80px;
}

/* ============================================
   Spinner & States
   ============================================ */
.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 24px;
    color: var(--text-muted);
    gap: 10px;
}

.empty-state svg { opacity: 0.2; }
.empty-state p { font-size: 0.85rem; margin-top: 2px; }

.spinner {
    width: 26px;
    height: 26px;
    border: 3px solid var(--border-secondary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ============================================
   Plan Card
   ============================================ */
.plan-card {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color var(--transition-fast);
}

.plan-card:hover { border-color: var(--border-secondary); }

.plan-permission {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 4px 0;
}

.plan-permission + .plan-permission {
    border-top: 1px solid var(--border-primary);
    padding-top: 8px;
}

.plan-permission-name { color: var(--text-secondary); }
.plan-permission-value { font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); }

/* ============================================
   Log Entry
   ============================================ */
.log-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.log-card:hover { background: var(--bg-card-hover); }

.log-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.log-info { flex: 1; min-width: 0; }

.log-type {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.log-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   Tooltip
   ============================================ */
[data-tooltip] { position: relative; }

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 50;
}

[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* ============================================
   Confirm Dialog
   ============================================ */
.confirm-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 4px;
    text-align: center;
    padding: 8px 0;
}

.confirm-highlight {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-red);
    background: var(--accent-red-glow);
    padding: 1px 8px;
    border-radius: var(--radius-sm);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    html { font-size: 13px; }

    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }

    .sidebar-overlay.open { display: block; }

    .mobile-header { display: flex; }

    .main-content {
        margin-left: 0;
        padding-top: var(--header-height);
    }

    .content-wrapper { padding: 20px 14px 48px; }

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

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .toolbar { flex-direction: column; align-items: stretch; }
    .search-box { max-width: none; }

    .card { padding: 18px; }
    .card-header { padding-bottom: 14px; margin-bottom: 16px; }

    .page-header h1, .page-header-actions h1 { font-size: 1.35rem; }

    .modal { margin: 12px; max-height: calc(100vh - 24px); }
    .modal-body { padding: 16px 20px; }
    .modal-header { padding: 20px 20px 0; }
    .modal-footer { padding: 0 20px 20px; }

    .toast-container { max-width: 100%; top: 12px; }
    .toast { font-size: 0.82rem; padding: 12px 16px; }

    .batch-files { padding-left: 48px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .upload-zone { padding: 32px 16px; }
    .upload-buttons { flex-direction: column; }
    .page-header-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-secondary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   Copy Button
   ============================================ */
.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all var(--transition-fast);
    vertical-align: middle;
}

.copy-btn:hover { color: var(--accent-secondary); background: var(--accent-primary-glow); }

/* ============================================
   Metadata display
   ============================================ */
.meta-json {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: var(--bg-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-secondary);
    max-height: 120px;
    overflow-y: auto;
}

/* Basematrix fixed layout (non-responsive by request) */
#landingPage .bm-page {
    width: 1180px !important;
    max-width: 1180px !important;
}

#landingPage .bm-main-stack {
    width: 1050px !important;
}

#landingPage .bm-features-grid {
    width: 1050px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#landingPage .bm-top-grid {
    width: 1050px !important;
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
}

#landingPage .bm-sheet--structure-side {
    width: 250px !important;
    position: absolute !important;
    left: -290px !important;
    top: 0 !important;
}

#landingPage .bm-sheet--packages .bm-offer-carousel {
    width: 100% !important;
    min-height: 900px !important;
}

#landingPage .bm-sheet--packages .bm-offer-carousel .bm-offer-card.bm-buy-panel {
    width: 100% !important;
}

#landingPage .bm-sheet--packages .bm-offer-carousel-meta {
    width: 100% !important;
}

#landingPage .bm-video-panel,
#landingPage .bm-structure-card {
    width: 1010px !important;
}

#landingPage .bm-video-panel {
    width: 1010px !important;
}

#landingPage .bm-sheet--structure-side .bm-structure-card {
    width: 250px !important;
}

/* ============================================
   Chat — Perfil e Conversa
   ============================================ */
.auth-tabs {
    display: flex;
    gap: 8px;
    padding: 0 24px 12px;
    border-bottom: 1px solid rgba(77, 143, 255, 0.12);
}

.auth-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(77, 143, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab:hover {
    color: var(--text-primary);
    border-color: rgba(77, 143, 255, 0.3);
}

.auth-tab.active {
    background: rgba(1, 67, 187, 0.2);
    border-color: rgba(77, 143, 255, 0.45);
    color: var(--text-primary);
}

.chat-modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.chat-photo-upload {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.chat-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(77, 143, 255, 0.25);
    background: rgba(22, 24, 32, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    overflow: hidden;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chat-photo-upload:hover .chat-photo-preview {
    border-color: rgba(77, 143, 255, 0.5);
    background: rgba(24, 27, 37, 0.6);
    box-shadow: 0 0 24px rgba(77, 143, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chat-photo-upload.has-photo .chat-photo-preview {
    border-style: solid;
    border-color: rgba(1, 67, 187, 0.55);
    box-shadow: 0 0 20px rgba(1, 67, 187, 0.15);
}

.chat-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-field-locked {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.chat-field-locked .form-input {
    cursor: not-allowed;
}

/* Chat page layout */
.chat-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #06070b 0%, #0b0d13 55%, #06132e 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

.chat-nav .landing-nav-inner {
    max-width: 900px;
}

.chat-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(30, 31, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
}

.discord-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-nav-name {
    color: #f2f3f5;
    font-weight: 600;
}

.chat-user-badge img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-nav-back {
    text-decoration: none;
}

.chat-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 76px 16px 32px;
    position: relative;
    z-index: 1;
}

.chat-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 420px;
}

.chat-header {
    text-align: center;
    flex-shrink: 0;
}

.chat-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.chat-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    margin-bottom: 4px;
    background: rgba(30, 31, 34, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    scrollbar-width: thin;
    scrollbar-color: #3f4147 transparent;
}

.chat-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #949ba4;
    text-align: center;
    padding: 40px 20px;
}

.chat-empty-state p {
    font-size: 0.9rem;
}

/* Discord-style messages */
.discord-msg {
    display: flex;
    gap: 16px;
    padding: 4px 16px 6px 72px;
    position: relative;
    margin-top: 17px;
    transition: background 0.1s ease;
}

.discord-msg:hover {
    background: rgba(4, 4, 5, 0.07);
}

.discord-msg__avatar {
    position: absolute;
    left: 16px;
    top: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #313338;
    cursor: pointer;
}

.discord-msg__body {
    flex: 1;
    min-width: 0;
}

.discord-msg__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.375;
    margin-bottom: 2px;
}

.discord-msg__name {
    font-weight: 600;
    font-size: 1rem;
    color: #f2f3f5;
    cursor: pointer;
}

.discord-msg__name:hover {
    text-decoration: underline;
}

.discord-msg__tag {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    height: 15px;
    background: #3f4147;
    color: #dbdee1;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 3px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.discord-msg__device {
    display: inline-flex;
    align-items: center;
    color: #23a559;
    opacity: 0.95;
}

.discord-msg__device svg {
    display: block;
}

.discord-msg__time {
    font-size: 0.75rem;
    color: #949ba4;
    font-weight: 400;
    margin-left: 2px;
}

.discord-msg__text {
    color: #dbdee1;
    font-size: 1rem;
    line-height: 1.375;
    white-space: pre-wrap;
    word-break: break-word;
}

.discord-msg__prefix {
    color: #4d8fff;
    font-family: var(--font-mono);
    font-weight: 600;
}

.discord-msg__media,
.chat-message-media {
    margin-top: 6px;
}

.discord-msg__media img,
.discord-msg__media video,
.chat-message-media img,
.chat-message-media video {
    max-width: min(100%, 400px);
    max-height: 300px;
    border-radius: 8px;
    display: block;
}

/* Discord info panel */
.discord-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.discord-info-panel {
    width: 100%;
    max-width: 380px;
    background: rgba(30, 31, 34, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 24px 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.2s ease;
}

.discord-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.discord-info-header h3 {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f2f3f5;
    margin-right: 30px;
}

.discord-info-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3f4147;
    border: none;
    border-radius: 6px;
    color: #dbdee1;
    cursor: pointer;
    transition: background 0.15s;
}

.discord-info-back:hover {
    background: #4e5058;
}

.discord-info-divider {
    height: 1px;
    background: #3f4147;
    margin-bottom: 16px;
}

.discord-info-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.discord-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.discord-info-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #949ba4;
    text-transform: uppercase;
}

.discord-info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f2f3f5;
    text-align: right;
}

.discord-info-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.discord-info-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3f4147;
}

.discord-info-esc {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #949ba4;
    text-transform: uppercase;
}

/* Chat status & admin */
.chat-status-banner {
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-size: 0.85rem;
    text-align: center;
}

.admin-panel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-panel-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

.discord-admin-badge {
    padding: 1px 6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
}

.admin-panel {
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-block-form {
    margin-bottom: 16px;
}

.admin-block-form label {
    display: block;
    font-size: 0.75rem;
    color: #949ba4;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-block-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-block-row .form-input {
    flex: 1;
    min-width: 60px;
}

.admin-block-row .form-select {
    flex: 1;
    min-width: 120px;
}

.admin-users-list h4 {
    font-size: 0.75rem;
    color: #949ba4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.admin-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #3f4147;
    font-size: 0.85rem;
    color: #dbdee1;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 0.72rem;
}

/* Input bar — glassmorphism */
.chat-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px;
    background: rgba(17, 19, 27, 0.55);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(77, 143, 255, 0.18);
    border-radius: var(--radius-lg);
    margin-top: 0;
    flex-shrink: 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chat-input {
    flex: 1;
    background: rgba(12, 13, 20, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(77, 143, 255, 0.14);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    padding: 10px 14px;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chat-input:focus {
    outline: none;
    border-color: rgba(77, 143, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(1, 67, 187, 0.18);
    background: rgba(14, 16, 23, 0.65);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-attach-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 24, 32, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(77, 143, 255, 0.18);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-attach-btn:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: rgba(77, 143, 255, 0.4);
    background: rgba(24, 27, 37, 0.75);
    box-shadow: 0 0 16px rgba(77, 143, 255, 0.12);
}

.chat-attach-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-attach-btn.is-uploading {
    animation: lp-bg-pulse 1s ease-in-out infinite;
}

.chat-perm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 67, 187, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(77, 143, 255, 0.3);
    border-radius: var(--radius-md);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 16px rgba(1, 67, 187, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-send-btn:hover:not(:disabled) {
    background: rgba(2, 85, 221, 0.95);
    box-shadow: 0 4px 20px rgba(1, 67, 187, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .discord-msg {
        padding-left: 60px;
        gap: 12px;
    }

    .discord-msg__avatar {
        width: 36px;
        height: 36px;
        left: 12px;
    }

    .chat-user-badge span:not(.chat-message-badge) {
        display: none;
    }

    .chat-container {
        height: calc(100vh - 180px);
        min-height: 380px;
    }
}
