@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─────────────────── TOKENS ─────────────────── */
:root {
    --bg:               #08080a;
    --bg-card:          rgba(255,255,255,0.03);
    --bg-card-hover:    rgba(255,255,255,0.055);
    --border:           rgba(255,255,255,0.07);
    --border-hover:     rgba(139,107,255,0.5);
    --text:             #f0f1f7;
    --text-dim:         #7c7f99;
    --text-dimmer:      #4a4d63;
    --accent:           #8b6bff;
    --accent-2:         #3a2678;
    --accent-grad:      linear-gradient(135deg, #8b6bff 0%, #3a2678 100%);
    --success:          #2de9a0;
    --danger:           #ff4f67;
    --warning:          #ffbc2e;
    --risk:             #ff9a3c;
    --radius:           18px;
    --radius-sm:        11px;
    --radius-xs:        7px;
}

/* ─────────────────── RESET ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

a { color: inherit; text-decoration: none; }

/* ─────────────────── CUSTOM CURSOR ───────────────────
   Small dot + a slightly-lagging ring, no blur/glow/trail.
   Only active on devices with a real mouse (see cursor.js). */
html.xy-custom-cursor,
html.xy-custom-cursor a,
html.xy-custom-cursor button,
html.xy-custom-cursor input,
html.xy-custom-cursor textarea,
html.xy-custom-cursor select,
html.xy-custom-cursor label {
    cursor: none;
}
.xy-cursor-dot,
.xy-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    will-change: transform;
}
.xy-cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    transition: opacity 0.15s ease;
}
.xy-cursor-ring {
    width: 26px;
    height: 26px;
    border: 1.5px solid rgba(240,241,247,0.35);
    transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.xy-cursor-ring.xy-cursor-hover {
    width: 38px;
    height: 38px;
    border-color: rgba(139,107,255,0.7);
}
.xy-cursor-ring.xy-cursor-active {
    width: 20px;
    height: 20px;
}

/* ═══════════════════════════════════════════════
   PAGE BUILD-IN ANIMATION SYSTEM
   Minimal: a short, gentle fade + tiny rise, no bounce.
   ═══════════════════════════════════════════════ */

body.is-loading .animate-in {
    opacity: 0;
    transform: translateY(8px);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
    transition-delay: calc(var(--delay, 0) * 70ms);
}

/* keep content above ambient */
.topnav, .container, footer { position: relative; z-index: 1; }

/* ─────────────────── AMBIENT BACKGROUND ───────────────────
   Minimal: two very faint color blobs that drift slightly toward
   the mouse (see cursor.js), no grid texture. Just enough so wide
   screens don't feel flat, and reacts a little to the cursor. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--blob1-x, 12%) var(--blob1-y, 15%), rgba(139,107,255,0.07), transparent 40%),
        radial-gradient(circle at var(--blob2-x, 90%) var(--blob2-y, 85%), rgba(58,38,120,0.10), transparent 45%);
}

/* ─────────────────── TAB SWITCH TRANSITION ─────────────────── */
/* Simple, minimal crossfade - no movement, no bounce. */
.tab-content-area {
    position: relative;
    min-height: 100px;
    opacity: 1;
    transition: opacity 0.18s ease;
}

.tab-content-area.tab-loading {
    opacity: 0;
}

/* ─────────────────── NAV ─────────────────── */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 44px;
    max-width: 1120px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: -0.01em;
    color: var(--text);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

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

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-xs);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 0.85em;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.discord-login-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
}

.nav-links { display: flex; gap: 4px; }

.nav-links a {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9em;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active {
    color: var(--text);
    background: rgba(139,107,255,0.12);
    box-shadow: inset 0 0 0 1px rgba(139,107,255,0.35);
}


/* ─────────────────── LAYOUT ─────────────────── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 44px 100px;
}

/* ─────────────────── GRADIENT TEXT ─────────────────── */
.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ─────────────────── INDEX HERO ─────────────────── */
.hero {
    min-height: calc(100vh - 64px);
    padding: 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(139,107,255,0.1);
    border: 1px solid rgba(139,107,255,0.25);
    padding: 6px 16px;
    border-radius: var(--radius-xs);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.6em, 5vw, 4em);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.05em;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 440px;
}

/* No badge/subtext on this hero (index.php) — keep buttons close to headline */
.hero-no-sub h1 { margin-bottom: 32px; }

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.93em;
    transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
}
/* View Products and Join Discord share the same pill design (dark
   translucent fill + border) and the same minimal hover glow -
   each just tints in its own brand color. */
.cta-btn.primary,
.cta-btn.secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
}
.cta-btn.primary:hover {
    background: rgba(139,107,255,0.08);
    border-color: rgba(139,107,255,0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139,107,255,0.2);
}
.cta-btn.secondary:hover {
    background: rgba(88,101,242,0.08);
    border-color: rgba(88,101,242,0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(88,101,242,0.2);
}

/* ─────────────────── PRODUCT THUMBNAILS ─────────────────── */
/*
 * 16:9 throughout (matches the shape client pictures are cropped
 * to on upload) instead of the old square boxes - a square box
 * with object-fit:cover was cropping the sides off an otherwise
 * correctly-cropped 16:9 image, so it never actually looked 16:9.
 */
.product-thumb {
    position: relative;
    width: 220px;
    aspect-ratio: 16 / 9;
    height: auto;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
    overflow: hidden;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.product-thumb.thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-thumb.thumb-empty img { display: none; }
.product-thumb.thumb-empty::after {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent);
    opacity: 0.25;
}
.product-thumb-sm { width: 64px; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-xs); }
.product-thumb-sm.thumb-empty::after { width: 14px; height: 14px; border-radius: 3px; }
.product-thumb-md { width: 220px; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-sm); }
/* hero preview - the big image on a product's own detail page */
.product-thumb-lg {
    width: 360px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--radius);
}
.product-thumb-lg.thumb-empty::after { width: 56px; height: 56px; border-radius: 12px; }

/* ─────────────────── INFO PAGE HEADER ─────────────────── */
.info-header {
    padding: 60px 0 48px;
}
.info-label {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.info-header h1 {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* ─────────────────── INFO CARD GRID ─────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.info-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.info-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(139,107,255,0.15);
}
.info-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.025);
    overflow: hidden;
}
.info-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.info-card-media.thumb-empty::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent);
    opacity: 0.25;
    transform: translate(-50%, -50%);
}
.info-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,4,6,0.85) 0%, rgba(4,4,6,0.35) 45%, rgba(4,4,6,0) 75%);
    pointer-events: none;
}
.price-chip {
    /* iOS 26 "liquid glass" style - light, frosted, and translucent
       enough that the picture behind it stays visible. */
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(255,255,255,0.06);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    font-size: 0.76em;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.info-card-media-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
}
.info-card-body { padding: 16px 20px 20px; }
.info-card-name { font-weight: 700; font-size: 1.08em; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.info-card-meta {
    font-size: 0.83em;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.info-card-cta {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
}

/* ─────────────────── STATUS BADGES ─────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}
.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-undetected {
    color: var(--success);
    background: rgba(45,233,160,0.1);
    border: 1px solid rgba(45,233,160,0.35);
}
.status-undetected::before { background: var(--success); box-shadow: 0 0 6px var(--success); }

.status-detected {
    color: var(--danger);
    background: rgba(255,79,103,0.1);
    border: 1px solid rgba(255,79,103,0.35);
}
.status-detected::before { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* ── Risk: orange / amber ── */
.status-risk {
    color: var(--risk);
    background: rgba(255,154,60,0.1);
    border: 1px solid rgba(255,154,60,0.35);
}
.status-risk::before {
    background: var(--risk);
    box-shadow: 0 0 6px var(--risk);
    animation: blink 1.8s ease-in-out infinite;
}

.status-updating {
    color: var(--warning);
    background: rgba(255,188,46,0.1);
    border: 1px solid rgba(255,188,46,0.35);
}
.status-updating::before {
    background: var(--warning);
    box-shadow: 0 0 6px var(--warning);
    animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.25;} }

.status-badge-lg { font-size: 0.85em; padding: 6px 14px; }
.status-badge-lg::before { width: 8px; height: 8px; }

.in-dev-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.in-dev-badge-lg { font-size: 0.82em; padding: 5px 13px; }

/* ─────────────────── PROGRESS BAR ─────────────────── */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    /* Dedicated gradient (not the dark button one) - the button's
       accent-grad fades to a near-black purple at its far end, which on
       a short/thin bar made the fill look like it stopped short of the
       real percentage instead of reaching it. This stays bright the
       whole way across. */
    background: linear-gradient(90deg, #6f4bff 0%, #a78bff 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(139,107,255,0.5);
}

/* ─────────────────── STAT ROW ─────────────────── */
.stat-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.stat-chip {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.8em;
    color: var(--text-dim);
    line-height: 1.3;
}
.stat-chip strong {
    color: var(--text);
    font-size: 1.2em;
    font-weight: 800;
    display: block;
}

/* ─────────────────── PRODUCT DETAIL HEADER ─────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.88em;
    margin: 36px 0 28px;
    transition: color 0.15s;
}
.back-link:hover { color: var(--text); }

.product-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.pdh-left { flex: 1; min-width: 240px; }
.pdh-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.pdh-title-row h1 {
    font-size: 1.8em;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.pdh-right { display: flex; align-items: flex-start; padding-top: 4px; }

/* ─────────────────── PRODUCT HERO (picture with name/status on top of it) ─────────────────── */
.product-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
}
.product-hero-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    padding: 0;
    margin: 0;
    background: #000;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
}
.product-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.product-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,4,6,0.92) 0%, rgba(4,4,6,0.55) 32%, rgba(4,4,6,0) 65%);
    pointer-events: none;
}
.product-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 24px;
    text-align: left;
}
.product-hero-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.product-hero-title-row h1 {
    font-size: clamp(1.5em, 3vw, 2.1em);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.hero-zoom-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--text);
    background: rgba(8,8,10,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}
.product-hero-media:hover .hero-zoom-hint,
.product-hero-media:focus-visible .hero-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}
.product-hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    flex-wrap: wrap;
}
.phf-stats { flex: 1; min-width: 240px; }

/* ─────────────────── PRODUCT LAYOUT (hero + pricing side by side) ─────────────────── */
.product-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.product-hero-col {
    flex: 1 1 62%;
    min-width: 0;
}
.pricing-panel {
    flex: 0 0 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 28px;
    position: sticky;
    top: 20px;
}
.pricing-panel-title {
    font-size: 1.05em;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.pricing-empty {
    color: var(--text-dim);
    font-size: 0.88em;
    margin-bottom: 16px;
}
.pricing-fallback-btn { width: 100%; }
.currency-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 16px;
}
.currency-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.76em;
    font-weight: 700;
    color: var(--text-dim);
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.currency-toggle-btn:hover { color: var(--text); }
.currency-toggle-btn.active {
    background: var(--accent);
    color: #fff;
}
.pricing-tier-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pricing-tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color 0.15s;
}
.pricing-tier:hover { border-color: rgba(139,107,255,0.35); }
.pricing-tier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pricing-tier-label {
    font-weight: 700;
    font-size: 0.92em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pricing-tier-price {
    font-size: 0.85em;
    color: var(--accent);
    font-weight: 700;
}
.pricing-tier-btn {
    padding: 9px 16px;
    font-size: 0.8em;
    flex-shrink: 0;
}
.pricing-note {
    font-size: 0.78em;
    color: var(--text-dim);
    margin-top: 14px;
    line-height: 1.5;
}

/* ─────────────────── PICTURE LIGHTBOX ─────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(4,4,6,0.9);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 78vh;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
    touch-action: none;
    cursor: zoom-in;
}
.lightbox-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); border-color: var(--border-hover); }
.lightbox-hint {
    margin-top: 14px;
    font-size: 0.8em;
    color: var(--text-dim);
    text-align: center;
}

@media (max-width: 720px) {
    .topnav { padding: 18px 24px; }
    .container { padding-left: 24px; padding-right: 24px; }
    .product-hero-overlay { padding: 16px 18px; }
    .product-hero-footer { padding: 16px 18px; flex-wrap: wrap; }
    .hero-zoom-hint { opacity: 1; transform: none; top: 12px; right: 12px; }
    .lightbox-stage { max-height: 60vh; }
    .info-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ─────────────────── TAB BAR ─────────────────── */
.tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.tab-btn {
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.9em;
    color: var(--text-dim);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-bottom: none;
    transition: color 0.15s, background 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    color: var(--text);
    background: var(--bg-card);
    border-color: var(--border);
    border-bottom-color: var(--bg);
}

/* ─────────────────── NOT FINISHED NOTICE ─────────────────── */
.not-finished-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
}
.nfn-icon { font-size: 1.5em; flex-shrink: 0; margin-top: 2px; }
.not-finished-notice strong { font-size: 1em; font-weight: 700; }
.not-finished-notice p { color: var(--text-dim); font-size: 0.88em; margin-top: 5px; }

/* ─────────────────── MODULES GRID ─────────────────── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.module-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 0.9em;
    font-weight: 500;
    transition: border-color 0.15s;
}
.module-card.done {
    border-color: rgba(255,255,255,0.1);
}
.module-card.pending { color: var(--text-dim); }
.module-icon {
    font-style: normal;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}
.module-card.done .module-icon { color: var(--success); }
.module-card.pending .module-icon { color: var(--text-dimmer); }
.module-name { line-height: 1.35; margin-right: auto; }
.module-status-badge { margin-left: auto; }

/* ─────────────────── CHANGELOG ─────────────────── */
.changelog-list { display: flex; flex-direction: column; gap: 12px; }
.changelog-entry {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: border-color 0.15s;
}
.changelog-entry:hover { border-color: rgba(255,255,255,0.12); }
.changelog-date {
    flex-shrink: 0;
    width: 96px;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--accent);
    padding-top: 3px;
}
.changelog-body h3 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 5px;
}
.changelog-body p {
    font-size: 0.88em;
    color: var(--text-dim);
    line-height: 1.55;
}

/* ─────────────────── CHANGE.PHP ─────────────────── */
.page-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 48px 0 28px;
}
.page-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 900;
    letter-spacing: -0.04em;
}
.page-sub { color: var(--text-dim); font-size: 0.9em; margin-top: 6px; }

.switcher-form { display: flex; flex-direction: column; gap: 4px; }
.switcher-label { font-size: 0.75em; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

.stats-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 16px;
}
.panel-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.panel-head h2 { font-size: 1.05em; font-weight: 800; letter-spacing: -0.01em; }
.panel-hint { font-size: 0.83em; color: var(--text-dim); line-height: 1.55; }

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 0.82em;
    color: var(--text-dim);
    letter-spacing: 0.01em;
}
.label-dim { font-weight: 500; }

input[type="text"], select, textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92em;
    margin-bottom: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
input[type="text"]:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,107,255,0.15);
}
textarea { resize: vertical; line-height: 1.5; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c7f99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: calc(100% - 14px) center;
    background-repeat: no-repeat;
    padding-right: 36px;
    cursor: pointer;
}

button {
    background: var(--accent-grad);
    color: #0a0814;
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.88em;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(139,107,255,0.3);
    transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
}
button:hover { filter: brightness(1.1); box-shadow: 0 10px 28px rgba(139,107,255,0.45); }
button:active { transform: scale(0.98); }

.ghost-btn {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.76em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.ghost-btn:hover {
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(139,107,255,0.2);
    filter: none;
}

/* ─── Status dot (used inline in mini-status-selector) ─── */
.so-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.so-undetected { background: var(--success); box-shadow: 0 0 6px var(--success); }
.so-detected   { background: var(--danger);  box-shadow: 0 0 6px var(--danger); }
.so-risk       { background: var(--risk);    box-shadow: 0 0 6px var(--risk); }
.so-updating   { background: var(--warning); box-shadow: 0 0 6px var(--warning); animation: blink 1.2s ease-in-out infinite; }

/* ─── Toggle list ─── */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}
.toggle-list::-webkit-scrollbar { width: 4px; }
.toggle-list::-webkit-scrollbar-track { background: transparent; }
.toggle-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 999px; }

.toggle-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,79,103,0.04);
    border: 1px solid rgba(255,79,103,0.2);
    border-radius: var(--radius-xs);
    padding: 12px 15px;
    user-select: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.toggle-row:hover { border-color: rgba(255,79,103,0.4); background: rgba(255,79,103,0.07); }
.toggle-row.checked {
    background: rgba(45,233,160,0.05);
    border-color: rgba(45,233,160,0.35);
}
.toggle-row.checked:hover { border-color: rgba(45,233,160,0.6); background: rgba(45,233,160,0.09); }

.toggle-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.toggle-row .name { font-weight: 500; font-size: 0.9em; flex: 1; min-width: 0; }

.status-pill {
    font-size: 0.72em;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    color: var(--danger);
    background: rgba(255,79,103,0.1);
    border: 1px solid rgba(255,79,103,0.3);
    flex-shrink: 0;
    pointer-events: none;
}
.toggle-row.checked .status-pill {
    color: var(--success);
    background: rgba(45,233,160,0.1);
    border-color: rgba(45,233,160,0.35);
}

.remove-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    border: 1px solid var(--border);
    font-size: 1em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.remove-btn:hover {
    color: var(--danger);
    border-color: rgba(255,79,103,0.5);
    background: rgba(255,79,103,0.08);
    filter: none;
}

/* ── Pricing tier editor rows (admin panel) ── */
.pricing-row {
    background: rgba(139,107,255,0.04);
    border: 1px solid rgba(139,107,255,0.2);
    border-radius: var(--radius-xs);
    padding: 10px 12px;
}
.pricing-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-label-input {
    flex: 2;
    min-width: 100px;
    margin-bottom: 0 !important;
}
.pricing-price-wrap {
    flex: 1;
    min-width: 90px;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pricing-price-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,107,255,0.15);
}
.pricing-currency {
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}
.pricing-price-input {
    border: none !important;
    background: transparent !important;
    padding: 12px 0 12px 6px !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}
.pricing-row-prices {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.pricing-price-group {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pricing-currency-name {
    font-size: 0.7em;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Per-module mini status selector ── */
.mini-status-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.08);
}
.mini-status-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.76em;
    font-family: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}
.mini-status-opt:hover { color: var(--text); border-color: rgba(255,255,255,0.18); filter: none; }
.mini-status-opt.sel {
    color: var(--text);
    background: rgba(139,107,255,0.08);
    border-color: rgba(139,107,255,0.4);
    box-shadow: 0 0 12px rgba(139,107,255,0.12);
}

/* ─── Save row (actual server-side persistence) ─── */
.save-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}
.save-btn {
    background: var(--accent-grad);
    color: #0a0814;
}
.save-btn:disabled {
    opacity: 0.6;
    cursor: default;
    filter: none;
    box-shadow: none;
}
.save-status {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-dim);
    transition: opacity 0.2s ease;
}
.save-status.ok { color: var(--success); }
.save-status.err { color: var(--danger); }

/* ─── Collapsible raw JSON (secondary, de-emphasized) ─── */
.raw-json-details {
    margin-top: 18px;
}
.raw-json-details summary {
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 700;
    color: var(--text-dim);
    list-style: none;
    padding: 4px 0;
    transition: color 0.15s;
}
.raw-json-details summary::-webkit-details-marker { display: none; }
.raw-json-details summary:hover { color: var(--text); }
.raw-json-details summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.15s;
}
.raw-json-details[open] summary::before { transform: rotate(90deg); }
.raw-json-details .output-block { margin-top: 10px; }

/* ─── Output blocks ─── */
.output-block {
    border: 1px solid rgba(45,233,160,0.25);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0,0,0,0.25);
}
.output-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(45,233,160,0.05);
    border-bottom: 1px solid rgba(45,233,160,0.18);
}
.file-chip {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.79em;
    color: rgba(45,233,160,0.9);
    font-weight: 600;
}
.output-block pre {
    margin: 0;
    padding: 16px 18px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.82em;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 340px;
    overflow-y: auto;
}

/* ─────────────────── BUY BUTTON ─────────────────── */
.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #0a0814;
    font-weight: 700;
    font-size: 0.88em;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(139,107,255,0.35);
    transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
}
.buy-btn:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139,107,255,0.5); }
.buy-btn:active { transform: scale(0.98); }

/* ─────────────────── EMPTY STATE ─────────────────── */
.empty-state {
    color: var(--text-dim);
    background: var(--bg-card);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 40px 24px;
    text-align: center;
    font-size: 0.92em;
}

/* ─────────────────── FOOTER ─────────────────── */
footer {
    text-align: center;
    color: var(--text-dimmer);
    font-size: 0.79em;
    padding: 32px 20px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE - comprehensive mobile overhaul
   ═══════════════════════════════════════════════ */

@media (max-width: 680px) {
    /* ── Layout ── */
    .topnav {
        padding: 16px 18px;
        gap: 8px;
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .nav-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
    }
    .container {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 60px;
    }

    /* ── Nav brand + links ── */
    .brand { font-size: 0.97em; }
    .nav-links a {
        padding: 7px 12px;
        font-size: 0.85em;
    }
    .nav-right { gap: 8px; }
    .discord-login-btn {
        padding: 7px 12px;
        font-size: 0.76em;
    }
    .discord-login-btn svg { width: 13px; height: 13px; }

    /* ── Product layout: stack hero + pricing panel ── */
    .product-layout {
        flex-direction: column;
    }
    .pricing-panel {
        flex-basis: auto;
        width: 100%;
        position: static;
    }

    /* ── Hero ── */
    .hero {
        min-height: calc(100svh - 56px);
        padding: 0;
        gap: 0;
    }
    .hero-badge {
        font-size: 0.68em;
        padding: 5px 13px;
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: clamp(1.9em, 8vw, 2.5em);
        letter-spacing: -0.035em;
        margin-bottom: 14px;
    }
    .hero-sub {
        font-size: 0.95em;
        margin-bottom: 28px;
        padding: 0 8px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }
    .cta-btn {
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9em;
    }

    /* ── Info grid: single column ── */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ── Info / product list header ── */
    .info-header {
        padding: 32px 0 28px;
    }
    .info-header h1 {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }

    /* ── Product detail header (no-thumb layout) ── */
    .product-detail-header {
        flex-direction: column;
        padding: 20px 18px;
        gap: 16px;
    }
    .pdh-title-row {
        gap: 10px;
    }
    .pdh-title-row h1 {
        font-size: 1.4em;
    }
    .pdh-right {
        width: 100%;
        padding-top: 0;
    }
    .buy-btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Product hero (thumbnail layout) ── */
    .product-hero {
        margin-bottom: 20px;
    }
    .product-hero-overlay {
        padding: 14px 16px;
    }
    .product-hero-title-row h1 {
        font-size: 1.25em;
    }
    .product-hero-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 16px;
    }
    .phf-stats {
        min-width: 0;
        width: 100%;
    }
    .pdh-right,
    .product-hero-footer .pdh-right {
        width: 100%;
    }
    .hero-zoom-hint {
        opacity: 1;
        transform: none;
        top: 10px;
        right: 10px;
        font-size: 0.72em;
        padding: 5px 10px;
    }

    /* ── Stat row / chips ── */
    .stat-row {
        gap: 8px;
    }
    .stat-chip {
        padding: 8px 12px;
        font-size: 0.78em;
    }

    /* ── Tab bar ── */
    .tab-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 2px;
    }
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85em;
        white-space: nowrap;
    }

    /* ── Module grid: 1 column on small screens ── */
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .module-card {
        padding: 12px 14px;
        gap: 6px 10px;
        font-size: 0.88em;
    }

    /* ── Changelog ── */
    .changelog-entry {
        flex-direction: column;
        gap: 6px;
        padding: 16px 18px;
    }
    .changelog-date {
        width: auto;
        font-size: 0.75em;
    }

    /* ── Thumbs ── */
    .product-thumb-md { width: 120px; height: auto; }
    .product-thumb-lg { width: 200px; height: auto; }

    /* ── Back link ── */
    .back-link {
        margin: 22px 0 18px;
    }

    /* ── Page title row (change.php) ── */
    .page-title-row {
        flex-direction: column;
        gap: 12px;
    }

    /* ── Mini status selector ── */
    .mini-status-selector {
        flex-direction: column;
        align-items: stretch;
    }
    .mini-status-opt {
        justify-content: flex-start;
    }

    /* ── Lightbox ── */
    .lightbox { padding: 12px; }
    .lightbox-stage {
        max-height: 55vh;
    }
    .lightbox-hint {
        font-size: 0.72em;
        margin-top: 10px;
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 1.2em;
    }

    /* ── Footer ── */
    footer {
        padding: 24px 16px;
        font-size: 0.75em;
    }

    /* ── Auth pages ── */
    .auth-container { padding-top: 32px; }
    .auth-card { padding: 22px 18px; }
}

/* ─────────────────── AUTH PAGES (login / setup / account) ─────────────────── */
.auth-container {
    max-width: 460px;
    padding-top: 60px;
}
.auth-card { padding: 30px 32px; }

input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92em;
    margin-bottom: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
input[type="password"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,107,255,0.15);
}

.field-error {
    background: rgba(255,79,103,0.1);
    border: 1px solid rgba(255,79,103,0.3);
    color: var(--danger);
    font-size: 0.85em;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.field-success {
    background: rgba(45,233,160,0.1);
    border: 1px solid rgba(45,233,160,0.3);
    color: var(--success);
    font-size: 0.85em;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.lock-banner {
    background: rgba(255,188,46,0.1);
    border: 1px solid rgba(255,188,46,0.35);
    color: var(--warning);
    font-size: 0.85em;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ─────────────────── PICTURE CROP EDITOR ─────────────────── */
.crop-modal {
    position: fixed;
    inset: 0;
    background: rgba(4,4,6,0.78);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.crop-modal-inner {
    background: #0d0d11;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    max-width: 680px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.crop-modal-inner h3 { font-size: 1.05em; font-weight: 800; margin-bottom: 6px; }
.crop-modal-inner .panel-hint { margin-bottom: 18px; }
.crop-stage {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    touch-action: none;
}
.crop-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}
/* Faint rule-of-thirds guide, purely visual, to help composition */
.crop-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.16) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.16) 1px, transparent 1px);
    background-position: 33.333% 0, 66.666% 0, 0 33.333%, 0 66.666%;
    background-size: 1px 100%, 1px 100%, 100% 1px, 100% 1px;
    background-repeat: no-repeat;
}
.crop-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    margin: 16px auto 4px;
}
#cropZoom {
    flex: 1;
    accent-color: var(--accent);
}
.crop-zoom-btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.crop-zoom-btn:hover { background: rgba(255,255,255,0.09); border-color: var(--border-hover); }
.crop-zoom-pct {
    font-size: 0.78em;
    font-weight: 700;
    color: var(--text-dim);
    min-width: 42px;
    text-align: right;
    flex-shrink: 0;
}
.crop-reset-btn { padding: 6px 12px; font-size: 0.82em; flex-shrink: 0; }
.crop-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

/* ─────────────────── HIGH-CONTRAST PRICING ENHANCEMENTS ─────────────────── */
.price-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(10, 10, 18, 0.88);
    border: 1px solid rgba(139, 107, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.5), 0 0 10px rgba(139, 107, 255, 0.15);
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    font-size: 0.82em !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    padding: 6px 13px !important;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-tier-price {
    font-size: 1.15em !important;
    color: #38BDF8 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
    letter-spacing: 0.01em;
}

.pricing-row {
    background: rgba(22, 22, 34, 0.9) !important;
    border: 1px solid rgba(139, 107, 255, 0.3) !important;
    border-radius: var(--radius-sm) !important;
    padding: 14px 16px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.pricing-price-wrap {
    background: rgba(12, 12, 20, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.pricing-price-wrap:focus-within {
    border-color: #8B6BFF !important;
    box-shadow: 0 0 0 3px rgba(139, 107, 255, 0.25) !important;
}

.pricing-price-input {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.95em !important;
}

.pricing-currency {
    color: #A78BFA !important;
    font-weight: 800 !important;
}

.pricing-currency-name {
    font-size: 0.74em !important;
    font-weight: 800 !important;
    color: #C4B5FD !important;
    letter-spacing: 0.04em !important;
}

/* ─────────────────── SECTION HEADERS ─────────────────── */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 80px auto 0;
    padding: 0 16px;
}
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(139, 107, 255, 0.1);
    border: 1px solid rgba(139, 107, 255, 0.3);
    border-radius: 999px;
    font-size: 0.76em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #C4B5FD;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.2em;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #FFF;
    margin: 0 0 12px;
}
.section-sub {
    font-size: 0.95em;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────── WHY CHOOSE XYVRA ─────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 107, 255, 0.4);
    background: rgba(139, 107, 255, 0.04);
    box-shadow: 0 12px 32px rgba(139, 107, 255, 0.12);
}
.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 107, 255, 0.22), rgba(67, 24, 138, 0.22));
    border: 1px solid rgba(139, 107, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4B5FD;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(139, 107, 255, 0.2);
}
.feature-title {
    font-size: 1.15em;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.feature-desc {
    color: var(--text-dim);
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────── TIKTOK 9:16 SHOWCASE ─────────────────── */
.tiktok-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 36px auto 0;
}
@media (max-width: 860px) {
    .tiktok-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
.tiktok-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background: #090912;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.tiktok-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(139, 107, 255, 0.6);
    box-shadow: 0 20px 48px rgba(139, 107, 255, 0.28);
}
.tiktok-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tiktok-card:hover .tiktok-thumb {
    transform: scale(1.06);
}
.tiktok-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 80%, #07070D 100%);
}
.tiktok-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 0.72em;
    font-weight: 800;
    color: #FFF;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tiktok-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 2px solid rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.45),
        0 0 0 0 rgba(139, 107, 255, 0),
        inset 0 1px 0 rgba(255,255,255,0.25);
    transition:
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
    z-index: 2;
    pointer-events: none;
}
.tiktok-play-btn svg {
    margin-left: 4px;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
    width: 26px;
    height: 26px;
}
.tiktok-card:hover .tiktok-play-btn {
    transform: translate(-50%, -50%) scale(1.0);
    background: rgba(139, 107, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 6px 40px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(139, 107, 255, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.3);
}
.tiktok-card:active .tiktok-play-btn {
    transform: translate(-50%, -50%) scale(0.94);
}
.tiktok-info {
    position: relative;
    z-index: 2;
    padding: 20px;
}
.tiktok-title {
    color: #FFF;
    font-size: 0.98em;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tiktok-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.78em;
    color: #A78BFA;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─────────────────── FAQ ACCORDION ─────────────────── */
.faq-wrap {
    max-width: 820px;
    margin: 36px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}
.faq-item.active {
    border-color: rgba(139, 107, 255, 0.4);
    background: rgba(139, 107, 255, 0.035);
    box-shadow: none;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.02em;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}
.faq-question:hover {
    color: #C4B5FD;
}
.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-dim);
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #8B6BFF;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 22px;
    color: var(--text-dim);
    font-size: 0.92em;
    line-height: 1.65;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 22px 20px;
}

/* ─────────────────── SCROLL BUILD-IN ANIMATION ─────────────────── */
/* scroll-reveal: overridden below by enhanced version */

/* scroll-stagger: overridden below by enhanced version */

/* ─────────────────── VIDEO MODAL ─────────────────── */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.video-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}
.video-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #FFF;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.video-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.video-modal-frame {
    width: 100%;
    height: 100%;
    border: none;
}


/* ═══════════════════════════════════════════════════════════════════
   ENHANCED DESIGN SYSTEM — glows, hero fullscreen, license panel
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Hero: always fills the full viewport, nothing bleeds below it ─── */
.hero {
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 80px;
    position: relative;
    overflow: hidden;
    /* Ensure nothing below bleeds into hero viewport */
    z-index: 1;
}
/* Stronger ambient glow radiating behind hero heading */
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 500px;
    transform: translate(-50%, -60%);
    background: radial-gradient(ellipse, rgba(139,107,255,0.13) 0%, rgba(139,107,255,0.04) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(30px);
}
.hero > * { position: relative; z-index: 1; }

/* Grid overlay on hero for depth */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139,107,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,107,255,0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Hero h1 — bigger, bolder */
.hero h1 {
    font-size: clamp(3em, 6.5vw, 5.2em);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.04;
    margin-bottom: 0;
    text-shadow: 0 0 80px rgba(139,107,255,0.25);
}
.hero-no-sub h1 { margin-bottom: 32px; }

/* Gradient text — vivid double-gradient with glow */
.gradient-text {
    background: linear-gradient(130deg, #a78bff 0%, #7c3aed 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(139,107,255,0.45));
}

/* CTA buttons — premium glassmorphism style */
.cta-btn.primary {
    background: linear-gradient(135deg, rgba(139,107,255,0.18), rgba(79,70,229,0.1));
    border: 1px solid rgba(139,107,255,0.45);
    color: #e0d9ff;
    box-shadow: 0 0 24px rgba(139,107,255,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}
.cta-btn.primary:hover {
    background: linear-gradient(135deg, rgba(139,107,255,0.28), rgba(79,70,229,0.18));
    border-color: rgba(139,107,255,0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139,107,255,0.3), 0 0 0 1px rgba(139,107,255,0.2);
}
.cta-btn.secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}
.cta-btn.secondary:hover {
    background: rgba(88,101,242,0.1);
    border-color: rgba(88,101,242,0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88,101,242,0.2);
}

/* ─── Feature cards — glass + accent glow on hover ─── */
.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 28px 26px 26px;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx,50%) var(--my,0%), rgba(139,107,255,0.09) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139,107,255,0.38);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(139,107,255,0.12);
    background: linear-gradient(135deg, rgba(139,107,255,0.07), rgba(255,255,255,0.025));
}
.feature-card:hover::before { opacity: 1; }

/* ─── Scroll-stagger — more dramatic stagger values ─── */
.scroll-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.scroll-stagger > *:nth-child(2) { transition-delay: 0.13s; }
.scroll-stagger > *:nth-child(3) { transition-delay: 0.22s; }
.scroll-stagger > *:nth-child(4) { transition-delay: 0.31s; }
.scroll-stagger > *:nth-child(5) { transition-delay: 0.40s; }
.scroll-stagger > *:nth-child(6) { transition-delay: 0.49s; }

/* Reveal animation: slide up AND scale, feel more dramatic */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
    /* Ensure sections below hero never peek into view before scroll */
    will-change: opacity, transform;
}
.scroll-reveal.scroll-built {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ─── Nav — glass pill ─── */
.topnav {
    background: rgba(8,8,10,0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.055);
    position: sticky;
    top: 0;
    z-index: 200;
    max-width: 100%;
    padding: 16px 44px;
}

/* ─── Section heading glow ─── */
.section-title {
    text-shadow: 0 0 60px rgba(139,107,255,0.2);
}

/* ─── Info card — hover glow ─── */
.info-card:hover {
    border-color: rgba(139,107,255,0.5);
    box-shadow: 0 20px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,107,255,0.15), 0 0 40px rgba(139,107,255,0.08);
}

/* ─── Ambient body background — bigger, more vivid blobs ─── */
body::before {
    background:
        radial-gradient(ellipse 60% 55% at var(--blob1-x, 12%) var(--blob1-y, 20%), rgba(139,107,255,0.11), transparent 70%),
        radial-gradient(ellipse 55% 50% at var(--blob2-x, 88%) var(--blob2-y, 80%), rgba(58,38,120,0.14), transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 50%, rgba(79,70,229,0.05), transparent 70%);
}

/* ══════════════════════════════════════════════════════
   LICENSE MANAGEMENT PANEL (change.php)
   ══════════════════════════════════════════════════════ */
.lic-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139,107,255,0.18), rgba(79,70,229,0.1));
    border: 1px solid rgba(139,107,255,0.45);
    color: #c4b5fd;
    font-weight: 700;
    font-size: 0.84em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.lic-nav-btn:hover {
    background: linear-gradient(135deg, rgba(139,107,255,0.28), rgba(79,70,229,0.18));
    border-color: rgba(139,107,255,0.7);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139,107,255,0.25);
    color: #e0d9ff;
}
.lic-panel {
    background: linear-gradient(135deg, rgba(139,107,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(139,107,255,0.2);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 24px;
}
.lic-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.lic-panel-head h2 {
    font-size: 1.15em;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 9px;
}
.lic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,107,255,0.18);
    color: #c4b5fd;
    font-size: 0.72em;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(139,107,255,0.3);
    min-width: 26px;
}
.lic-create-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 26px;
}
.lic-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.lic-field label { font-size: 0.75em; font-weight: 700; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.lic-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-top: 4px; }
.lic-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 0.83em;
}
.lic-table th {
    background: rgba(255,255,255,0.035);
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.78em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.lic-table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
    color: var(--text);
    white-space: nowrap;
}
.lic-table tr:last-child td { border-bottom: none; }
.lic-table tr:hover td { background: rgba(139,107,255,0.04); }
.lic-key-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.78em;
    color: var(--text-dim);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
}
.lic-key-cell:hover { color: var(--accent); }
.lic-status-active   { color: #2de9a0; font-weight: 700; }
.lic-status-expired  { color: var(--danger); font-weight: 700; }
.lic-status-revoked  { color: var(--text-dim); }
.lic-status-banned   { color: var(--danger); }
.lic-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.lic-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--radius-xs);
    font-size: 0.78em;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    background: none;
    color: var(--text-dim);
    font-family: inherit;
    white-space: nowrap;
}
.lic-action-btn:hover { transform: translateY(-1px); }
.lic-action-dl   { border-color: rgba(139,107,255,0.3); color: #c4b5fd; background: rgba(139,107,255,0.08); }
.lic-action-dl:hover { background: rgba(139,107,255,0.16); border-color: rgba(139,107,255,0.6); box-shadow: 0 4px 12px rgba(139,107,255,0.2); }
.lic-action-reset { border-color: rgba(255,188,46,0.3); color: #ffbc2e; background: rgba(255,188,46,0.05); }
.lic-action-reset:hover { background: rgba(255,188,46,0.1); border-color: rgba(255,188,46,0.5); }
.lic-action-del  { border-color: rgba(255,79,103,0.3); color: #ff4f67; background: rgba(255,79,103,0.05); }
.lic-action-del:hover { background: rgba(255,79,103,0.1); border-color: rgba(255,79,103,0.5); }
.lic-empty { text-align: center; padding: 32px 16px; color: var(--text-dim); font-size: 0.9em; }
.lic-new-row {
    animation: licRowIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes licRowIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ── FAQ glow bug fix: kill any inherited text-shadow / filter inside FAQ ── */
.faq-wrap .faq-question { text-shadow: none; filter: none; }
.faq-wrap .faq-answer   { text-shadow: none; filter: none; }
.faq-item { isolation: isolate; }

/* ── Scroll-driven reveal: fade + rise, triggered by scroll position ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
    will-change: opacity, transform;
}
.scroll-reveal.scroll-built {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger: each child reveals slightly later */
.scroll-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.scroll-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.scroll-stagger > *:nth-child(4) { transition-delay: 0.35s; }
.scroll-stagger > *:nth-child(5) { transition-delay: 0.45s; }
.scroll-stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* Section heads also stagger on reveal */
.scroll-reveal .section-head { transition-delay: 0s; }
.scroll-reveal .scroll-stagger > * { }

/* ── Parallax depth layer on hero ── */
.hero-parallax {
    will-change: transform;
    transition: none;
}
/* ── FORCE REMOVE ALL GLOW/SHADOW FROM FAQ ── */
.faq-wrap * {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}
.faq-question {
    text-shadow: none !important;
}
.faq-answer {
    text-shadow: none !important;
}
/* Restore active item border — no box-shadow but proper border color */
.faq-item {
    box-shadow: none !important;
}
.faq-item.active {
    box-shadow: none !important;
    border-color: rgba(139, 107, 255, 0.4) !important;
    background: rgba(139, 107, 255, 0.035) !important;
}
/* FAQ section-title: no glow (only the FAQ section, not all sections) */
.faq-section .section-title,
.faq-section .section-head .section-title {
    text-shadow: none !important;
    filter: none !important;
}