/* ============================================================
   THOMASAI 3.0 — SYMMETRIC DESIGN SYSTEM
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Surfaces */
    --bg: #0b0b0a;
    --bg-soft: #131210;
    --bg-card: #181714;
    --bg-elev: #1f1d18;
    --bg-elevated: #1f1d18;

    /* Ink */
    --ink: #f5f2eb;
    --ink-dim: #9d978a;
    --ink-faint: #5c574e;
    --ink-ghost: #2e2b25;

    /* Lines */
    --line: #1f1d19;
    --line-bright: #302d27;
    --line-accent: #3d362b;

    /* Brand */
    --accent: #ff8c42;
    --accent-soft: #ffa366;
    --accent-deep: #cc6a30;
    --accent-glow: rgba(255, 140, 66, 0.15);
    --accent-bg: rgba(255, 140, 66, 0.06);

    /* Status */
    --green: #21d07a;
    --red: #ff4444;
    --blue: #5b9eff;

    /* Spacing scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-7: 32px;
    --s-8: 40px;
    --s-9: 56px;
    --s-10: 72px;

    /* Layout */
    --rail-w: 220px;
    --container-max: 1200px;
    --content-max: 760px;

    /* Type */
    --serif: 'Instrument Serif', 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;

    /* Radii */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-full: 999px;

    /* Easing */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --sh-1: 0 1px 2px rgba(0,0,0,0.4);
    --sh-2: 0 4px 12px rgba(0,0,0,0.5);
    --sh-3: 0 12px 32px rgba(0,0,0,0.4);
    --sh-glow: 0 0 0 1px var(--accent), 0 8px 32px var(--accent-glow);
}

/* Subtle ambient grain on the body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1200px 800px at 100% 0%, rgba(255,140,66,0.04), transparent 60%),
        radial-gradient(1000px 700px at 0% 100%, rgba(91,158,255,0.03), transparent 60%);
}

::selection { background: var(--accent); color: var(--bg); }

html, body { height: 100%; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   LAYOUT — SYMMETRIC GRID
   ============================================================ */

.app {
    display: grid;
    grid-template-columns: var(--rail-w) 1fr;
    grid-template-rows: 60px 1fr 36px;
    grid-template-areas:
        "topbar topbar"
        "rail   main"
        "footer footer";
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
}

/* Topbar */
.topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--s-7);
    border-bottom: 1px solid var(--line);
    background: rgba(11,11,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}
.brand {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.brand-mark {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    position: relative;
    transition: all .35s var(--ease);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}
.brand-mark::after {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    background: var(--accent);
    bottom: -2px; right: -2px;
    box-shadow: 0 0 8px var(--accent);
}
.brand-mark:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow), inset 0 0 12px rgba(255,140,66,0.1);
    transform: rotate(-3deg);
}
.brand-name {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: -0.02em;
}
.brand-name em { font-style: italic; color: var(--accent); }
.brand-version {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    margin-left: var(--s-2);
    padding: 3px 6px;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
}
.status-pill {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: 5px 10px;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
}
.status-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(33,208,122,0.4);
}

/* Rail (Sidebar Nav) */
.rail {
    grid-area: rail;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11,11,10,0.85) 0%, rgba(11,11,10,0.4) 100%);
    display: flex;
    flex-direction: column;
    padding: var(--s-7) 0;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.rail-section {
    padding: 0 var(--s-6);
    margin-bottom: var(--s-6);
}
.rail-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--ink-faint);
    margin-bottom: var(--s-4);
    text-transform: uppercase;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: 11px 12px;
    margin: 0 -12px 2px;
    border-radius: var(--r-md);
    color: var(--ink-dim);
    cursor: pointer;
    position: relative;
    transition: color .2s var(--ease), background .2s var(--ease), transform .25s var(--ease);
}
.nav-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px; height: 22px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    transition: transform .3s var(--ease);
    transform-origin: center;
}
.nav-item:hover {
    color: var(--ink);
    background: rgba(255,255,255,0.02);
}
.nav-item.active {
    color: var(--ink);
    background: linear-gradient(90deg, var(--accent-bg), transparent);
}
.nav-item.active::before {
    transform: translateY(-50%) scaleY(1);
    box-shadow: 0 0 12px var(--accent);
}
.nav-icon {
    font-size: 16px;
    color: var(--ink-faint);
    min-width: 20px;
    transition: color .2s;
}
.nav-item:hover .nav-icon { color: var(--ink); }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-num {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-faint);
    min-width: 18px;
    transition: color .2s;
}
.nav-item.active .nav-num { color: var(--accent); }
.nav-text {
    font-family: var(--serif);
    font-size: 18px;
    font-style: italic;
}
.rail-divider {
    height: 1px;
    background: var(--line);
    margin: 0 var(--s-6) var(--s-5);
}
.rail-stats {
    padding: 0 var(--s-6);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    line-height: 2;
    margin-top: auto;
}
.rail-stats i {
    font-size: 8px;
    margin-right: 6px;
    color: var(--ink-faint);
}
.rail-stats .status-dot {
    color: #00ff00;
}
.rail-stats span { color: var(--accent); }

/* Main Content */
.main {
    grid-area: main;
    position: relative;
    overflow: hidden;
}

/* Panels */
.panel {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
}
.panel.active { display: flex; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-4) var(--s-8);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11,11,10,0.85), rgba(11,11,10,0.55));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
    min-height: 64px;
    position: relative;
}
.panel-head::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
}
.panel-title {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
}
.panel-num {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--accent);
}
.panel-title-text {
    font-family: var(--serif);
    font-size: 24px;
    font-style: italic;
    letter-spacing: -0.02em;
}
.panel-actions {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

/* Common: Hero Block */
.hero {
    padding: var(--s-9) var(--s-8) var(--s-7);
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
}
/* When .hero sits inside an already-padded *-content wrapper, kill the outer padding */
.plans-content .hero,
.news-content .hero,
.cta-panel .hero,
.settings-content .hero,
.games-content .hero,
.stream-overlay .hero,
.chat-welcome.hero,
.proxy-content .hero {
    padding: 0;
    margin-bottom: var(--s-8);
    max-width: none;
}

/* Centered hero variant for plans */
.plans-content .hero {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.plans-content .hero .hero-eyebrow {
    justify-content: center;
}
.plans-content .hero .hero-eyebrow::before {
    display: none;
}
.plans-content .hero .hero-lede {
    margin-left: auto;
    margin-right: auto;
}
.hero-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--accent);
    margin-bottom: var(--s-5);
    display: flex;
    align-items: center;
    gap: var(--s-3);
    text-transform: uppercase;
}
.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.hero-h1 {
    font-family: var(--serif);
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: var(--s-5);
    font-weight: 400;
}
.hero-h1 em {
    font-style: italic;
    color: var(--accent);
    position: relative;
}
.hero-h1 em::after {
    content: '';
    position: absolute;
    left: 0; right: 8%;
    bottom: 0.05em;
    height: 2px;
    background: var(--accent);
    opacity: 0.25;
}
.hero-lede {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-dim);
    font-style: italic;
    max-width: 560px;
}

/* Form Controls */
.input {
    background: var(--bg-card);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    padding: 12px 14px;
    outline: none;
    transition: all .2s var(--ease);
    width: 100%;
}
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.input::placeholder { color: var(--ink-faint); }

.select {
    background: var(--bg-card);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
    transition: all .2s;
}
.select:hover { border-color: var(--line-accent); }
.select:focus { border-color: var(--accent); }
.select option { background: var(--bg-card); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--r-sm);
    color: #fff;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 11px 18px;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: var(--sh-2);
}
.btn-ghost {
    background: transparent;
    border-color: var(--line-bright);
    color: var(--ink-dim);
}
.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--ink-dim);
    color: var(--ink);
    transform: none;
    box-shadow: none;
}
.btn-danger {
    background: transparent;
    border-color: var(--red);
    color: var(--red);
}
.btn-danger:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line-bright);
    background: transparent;
    color: var(--ink-dim);
    border-radius: var(--r-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.btn-icon:hover { border-color: var(--ink); color: var(--ink); }
.btn-icon.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

/* ============================================================
   SCROLLBARS
   ============================================================ */
.scrollable { overflow-y: auto; }
.scrollable::-webkit-scrollbar { width: 6px; }
.scrollable::-webkit-scrollbar-track { background: transparent; }
.scrollable::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 3px; }
.scrollable::-webkit-scrollbar-thumb:hover { background: var(--line-accent); }

/* ============================================================
   AI PANEL
   ============================================================ */
.chat-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.chat-messages {
    flex: 1;
    padding: var(--s-8);
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
}
.chat-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-8);
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
}
.chat-welcome .hero-lede { margin-bottom: var(--s-9); }
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.feat {
    background: var(--bg);
    padding: var(--s-6);
    transition: all .3s var(--ease);
    cursor: default;
}
.feat:hover {
    background: rgba(255,140,66,0.04);
}
.feat:hover .feat-num { color: var(--accent-soft); }
.feat:hover .feat-title { color: var(--accent); }
.feat-num {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: var(--s-3);
}
.feat-title {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    margin-bottom: var(--s-2);
}
.feat-desc {
    font-size: 12px;
    color: var(--ink-dim);
    line-height: 1.55;
}

.msg {
    display: flex;
    gap: var(--s-4);
    animation: msgIn .35s var(--ease);
}
@keyframes msgIn { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:translateY(0)} }
.msg-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-dim);
}
.msg.user .msg-avatar {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}
.msg-body { flex: 1; min-width: 0; }
.msg-who {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: var(--s-2);
}
.msg-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    word-wrap: break-word;
}
.msg.user .msg-text { color: var(--ink-dim); }
.msg-text pre {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: var(--s-4);
    margin: var(--s-3) 0;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
}
.msg-text code {
    font-family: var(--mono);
    font-size: 12px;
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--line);
}
.msg-text strong { color: var(--accent); font-weight: 600; }
.msg-text a { color: var(--accent); text-decoration: underline; }
.msg-img {
    max-width: 320px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-bright);
    margin-top: var(--s-2);
    display: block;
}

.typing { display: flex; gap: 5px; align-items: center; padding: var(--s-2) 0; }
.t-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: tdot 1.4s infinite ease-in-out;
}
.t-dot:nth-child(2){animation-delay:.15s}
.t-dot:nth-child(3){animation-delay:.3s}
@keyframes tdot { 0%,60%,100%{transform:scale(.5);opacity:.3} 30%{transform:scale(1.2);opacity:1} }

/* Composer */
.composer {
    border-top: 1px solid var(--line);
    background: rgba(11,11,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--s-5) var(--s-8);
    flex-shrink: 0;
}
.composer-inner {
    max-width: 880px;
    margin: 0 auto;
}
.composer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-2);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.composer-box {
    display: flex;
    align-items: flex-end;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: var(--bg-card);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    transition: all .2s var(--ease);
}
.composer-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.composer-textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    outline: none;
    min-height: 24px;
    max-height: 200px;
}
.composer-textarea::placeholder {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-faint);
}
.composer-actions {
    display: flex;
    gap: var(--s-2);
    align-items: center;
}
.composer-img-preview {
    margin-bottom: var(--s-3);
    display: flex;
    gap: var(--s-2);
    align-items: center;
}
.composer-img-preview img {
    height: 80px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-bright);
}
.btn-send {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-send:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   STREAM (PICTURES) PANEL
   ============================================================ */
.stream-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
}
.stream-overlay {
    padding: var(--s-9) var(--s-8) var(--s-8);
    max-width: 1400px;
    margin: 0 auto;
}
.stream-search-row {
    display: flex;
    gap: var(--s-3);
    margin-bottom: var(--s-8);
    max-width: 500px;
}
.stream-section {
    margin-bottom: var(--s-8);
}
.stream-section-title {
    font-family: var(--serif);
    font-size: 28px;
    font-style: italic;
    margin-bottom: var(--s-2);
}
.stream-section-subtitle {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    text-transform: uppercase;
    margin-bottom: var(--s-5);
}
.stream-row {
    display: flex;
    gap: var(--s-4);
    overflow-x: auto;
    padding-bottom: var(--s-4);
    scrollbar-width: thin;
    scrollbar-color: var(--line-bright) transparent;
}
.stream-row::-webkit-scrollbar { height: 6px; }
.stream-row::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 3px; }

.stream-item {
    flex: 0 0 180px;
    cursor: pointer;
    transition: transform .3s var(--ease);
}
.stream-item:hover { transform: translateY(-4px); }
.stream-poster-wrap {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: var(--s-3);
    border: 1px solid var(--line);
    background: var(--bg-card);
}
.stream-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.stream-item:hover .stream-poster { transform: scale(1.05); }
.stream-rating {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--green);
    font-family: var(--mono);
}
.stream-info { padding: 0 var(--s-1); }
.stream-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: var(--s-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stream-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--ink-faint);
    letter-spacing: 0.1em;
}
.stream-badge {
    padding: 2px 6px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-weight: 700;
}

/* Stream Player */
.stream-player {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9998;
    display: none;
    flex-direction: column;
}
.stream-player.active { display: flex; }
.stream-player-bar {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-5);
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid var(--line);
}
.stream-player iframe {
    flex: 1;
    border: none;
    background: #000;
}

/* ============================================================
   GAMES PANEL
   ============================================================ */
.games-body {
    flex: 1;
    overflow-y: auto;
}
.games-content {
    padding: var(--s-9) var(--s-8) var(--s-8);
    max-width: 1400px;
    margin: 0 auto;
}
.games-controls {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-6);
    margin-bottom: var(--s-5);
    flex-wrap: wrap;
}
.games-controls .input { flex: 1; min-width: 240px; }

.cat-bar {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    padding: var(--s-4) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: var(--s-7);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 4;
}
.cat-btn {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all .2s;
}
.cat-btn:hover {
    border-color: var(--line-accent);
    color: var(--ink);
}
.cat-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.cat-btn-count {
    margin-left: 6px;
    color: var(--ink-faint);
    font-size: 9px;
}
.cat-btn.active .cat-btn-count { color: rgba(255,255,255,0.7); }

.games-stats {
    display: flex;
    gap: var(--s-6);
    margin-bottom: var(--s-6);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--ink-faint);
    text-transform: uppercase;
}
.games-stats b {
    color: var(--accent);
    font-weight: 600;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--s-4);
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--sh-3), 0 0 0 1px var(--accent-glow);
}
.game-card-img {
    aspect-ratio: 4/3;
    background:
        repeating-linear-gradient(45deg, var(--bg-soft) 0 8px, var(--bg-card) 8px 16px);
    overflow: hidden;
    position: relative;
}
.game-card-img::before {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: 32px;
    opacity: 0.3;
    z-index: 0;
}
.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
    position: relative;
    z-index: 1;
}
.game-card:hover .game-card-img img {
    transform: scale(1.06);
}
.game-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all .2s;
    z-index: 5;
    backdrop-filter: blur(4px);
}
.game-card:hover .game-card-fav { opacity: 1; }
.game-card-fav:hover { background: var(--accent); border-color: var(--accent); }
.game-card-fav.is-fav {
    opacity: 1;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.game-card-body {
    padding: var(--s-3);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.game-card-name {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-card-tags {
    display: flex;
    gap: var(--s-1);
    flex-wrap: wrap;
}
.game-tag {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 6px;
    background: var(--bg-soft);
    border-radius: 2px;
    color: var(--ink-dim);
}
.game-tag.action { background: rgba(255,68,68,0.12); color: #ff6b6b; }
.game-tag.racing { background: rgba(91,158,255,0.12); color: var(--blue); }
.game-tag.sports { background: rgba(33,208,122,0.12); color: var(--green); }
.game-tag.shooting { background: rgba(255,68,68,0.12); color: #ff6b6b; }
.game-tag.skill { background: rgba(255,140,66,0.12); color: var(--accent-soft); }
.game-tag.strategy { background: rgba(155,89,182,0.12); color: #c39bd3; }
.game-tag.io { background: rgba(253,121,168,0.12); color: #fd79a8; }
.game-tag.puzzle { background: rgba(162,155,254,0.12); color: #a29bfe; }

.empty-state {
    padding: var(--s-9);
    text-align: center;
    color: var(--ink-faint);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    grid-column: 1 / -1;
}

/* Games player overlay */
.game-player {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9998;
    display: none;
    flex-direction: column;
}
.game-player.active { display: flex; }
.game-player-bar {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-5);
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid var(--line);
}
.game-player-title {
    font-family: var(--serif);
    font-size: 18px;
    font-style: italic;
    color: var(--ink);
    flex: 1;
}
.game-player iframe {
    flex: 1;
    border: none;
    background: #fff;
}

/* ============================================================
   PROXY PANEL
   ============================================================ */
.proxy-content {
    padding: var(--s-9) var(--s-8) var(--s-8);
    max-width: var(--container-max);
    margin: 0 auto;
}
.proxy-search-row {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-6);
    margin-bottom: var(--s-5);
}
.proxy-search-row .input { flex: 1; }
.proxy-quick {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    align-items: center;
    padding: var(--s-4) 0;
    border-top: 1px solid var(--line);
}
.proxy-quick-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    text-transform: uppercase;
    margin-right: var(--s-2);
}
.proxy-quick-btn {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink-dim);
    font-family: var(--sans);
    font-size: 12px;
    transition: all .2s;
}
.proxy-quick-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.proxy-frame-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: 5;
    display: none;
    flex-direction: column;
}
.proxy-frame-overlay.active { display: flex; }
.proxy-toolbar {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-5);
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
}
.proxy-toolbar .url-display {
    flex: 1;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-dim);
    padding: 8px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.proxy-frame-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.proxy-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.proxy-lock-overlay.hidden {
    display: none;
}

.lock-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.lock-text {
    font-family: 'Instrument Serif', serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
}

.lock-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--ink-dim);
}

/* ============================================================
   PLANS PANEL
   ============================================================ */
.plans-content {
    padding: var(--s-9) var(--s-8);
    max-width: var(--container-max);
    margin: 0 auto;
}

.vip-donation-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    margin-bottom: var(--s-6);
}

.vip-header {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
}

.vip-icon {
    font-size: 32px;
}

.vip-title {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    flex: 1;
}

.vip-badge {
    background: var(--accent);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.vip-features {
    display: grid;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

.vip-feature {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.feature-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.feature-text {
    font-size: 14px;
    color: var(--ink-dim);
}

.redeem-section {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-5);
}

.redeem-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-dim);
    margin-bottom: var(--s-3);
}

.redeem-bar {
    display: flex;
    gap: var(--s-2);
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    margin-top: var(--s-7);
}
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-7) var(--s-6);
    display: flex;
    flex-direction: column;
    transition: all .25s var(--ease);
    position: relative;
}
.plan-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-bright);
}
.plan-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(255,140,66,0.12);
}
.plan-card.vip {
    border-color: rgba(33,208,122,0.4);
    background: linear-gradient(135deg, rgba(33,208,122,0.05), var(--bg-card));
}
.plan-banner {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
}
.plan-tier {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-faint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: var(--s-2);
}
.plan-name {
    font-family: var(--serif);
    font-size: 36px;
    font-style: italic;
    line-height: 1;
    margin-bottom: var(--s-2);
}
.plan-card.popular .plan-name { color: var(--accent); }
.plan-card.vip .plan-name { color: var(--green); }
.plan-price {
    font-family: var(--sans);
    margin-bottom: var(--s-3);
}
.plan-price b {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}
.plan-price small {
    font-size: 12px;
    color: var(--ink-dim);
    margin-left: 4px;
}
.plan-tagline {
    font-size: 12px;
    color: var(--ink-dim);
    line-height: 1.5;
    margin-bottom: var(--s-5);
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-5);
    flex: 1;
}
.plan-features li {
    font-size: 13px;
    color: var(--ink);
    padding: var(--s-2) 0 var(--s-2) 22px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.plan-features li.muted { color: var(--ink-faint); }
.plan-features li.muted::before { content: "✕"; color: var(--ink-faint); }

.redeem-bar {
    margin-top: var(--s-7);
    padding: var(--s-5);
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border: 1px solid var(--accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    flex-wrap: wrap;
}

/* ============================================================
   NEWS PANEL
   ============================================================ */
.news-content {
    padding: var(--s-9) var(--s-8);
    max-width: var(--container-max);
    margin: 0 auto;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-4);
    margin-top: var(--s-7);
}
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-5);
    transition: all .25s var(--ease);
}
.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--sh-2);
}
.news-card-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--s-3);
}
.news-card-url {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    word-break: break-all;
}
.news-card-url:hover { text-decoration: underline; }

/* ============================================================
   SETTINGS PANEL
   ============================================================ */
.settings-content {
    padding: var(--s-9) var(--s-8);
    max-width: 1100px;
    margin: 0 auto;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--s-5);
    margin-top: var(--s-7);
}
.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-6);
}
.settings-card-title {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    color: var(--ink);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--line);
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-3) 0;
    gap: var(--s-3);
}
.settings-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.settings-row label {
    font-size: 13px;
    color: var(--ink-dim);
}
.settings-row input[type="color"] {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
    background: none;
    cursor: pointer;
}
.settings-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
.settings-row select {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink);
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}
.settings-row .btn { padding: 8px 14px; font-size: 10px; }

.settings-about {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--s-7);
}
.settings-about-h {
    font-family: var(--serif);
    font-size: 36px;
    font-style: italic;
    color: var(--accent);
    margin-bottom: var(--s-2);
}
.settings-about-sub {
    font-size: 13px;
    color: var(--ink-dim);
    margin-bottom: var(--s-2);
}
.settings-links {
    display: flex;
    justify-content: center;
    gap: var(--s-5);
    margin-top: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}
.settings-links a {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    transition: color .2s;
}
.settings-links a:hover { color: var(--accent-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--s-7);
    border-top: 1px solid var(--line);
    background: rgba(11,11,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    text-transform: uppercase;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
}
.footer-r { display: flex; gap: var(--s-5); align-items: center; }
.footer-r a { color: var(--ink-faint); transition: color .2s; }
.footer-r a:hover { color: var(--accent); }

/* ============================================================
   MODALS
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--s-5);
}
.modal.active { display: flex; }
.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-card {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    padding: var(--s-7) var(--s-6);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal-close {
    position: absolute;
    top: var(--s-3);
    right: var(--s-3);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--ink-dim);
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    transition: all .2s;
}
.modal-close:hover { background: var(--bg-card); color: var(--ink); }
.modal-h {
    font-family: var(--serif);
    font-size: 28px;
    font-style: italic;
    color: var(--ink);
    margin-bottom: var(--s-5);
}
.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s var(--ease), visibility .6s;
}
.intro-content { text-align: center; }
.intro-title {
    font-family: var(--serif);
    font-size: 72px;
    font-style: italic;
    color: var(--ink);
    margin-bottom: var(--s-3);
    opacity: 0;
    transform: translateY(20px);
    animation: introUp .8s forwards .2s var(--ease-spring);
    letter-spacing: -0.03em;
    position: relative;
}
.intro-title::after {
    content: '.';
    color: var(--accent);
}
.intro-version {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--ink-dim);
    opacity: 0;
    animation: introFade .8s forwards .6s;
}
.intro-loader {
    margin-top: var(--s-6);
    display: flex;
    gap: var(--s-2);
    justify-content: center;
    opacity: 0;
    animation: introFade .8s forwards .9s;
}
.intro-loader span {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: loadPulse 1.2s infinite;
}
.intro-loader span:nth-child(2) { animation-delay: .2s; }
.intro-loader span:nth-child(3) { animation-delay: .4s; }
@keyframes introUp { to { opacity: 1; transform: translateY(0); } }
@keyframes introFade { to { opacity: 1; } }
@keyframes loadPulse { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }

/* ============================================================
   GENERIC CARD + CTA PANEL + PLAN CARDS v2
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-6);
    transition: all .25s var(--ease);
}
.card:hover {
    border-color: var(--line-bright);
    transform: translateY(-2px);
}

/* Centered CTA panel for Roblox / News */
.cta-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-9) var(--s-8);
}
.cta-panel .hero {
    text-align: left;
    max-width: 640px;
}
.cta-actions {
    margin-top: var(--s-7);
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
}
.cta-actions .btn { padding: 13px 24px; font-size: 11px; }

/* ============================================================
   LOGIN NOTE (Roblox)
   ============================================================ */
.login-note {
    margin-top: var(--s-7);
    padding: var(--s-5) var(--s-6);
    background:
        radial-gradient(400px 200px at 0% 0%, rgba(255,140,66,0.06), transparent 60%),
        var(--bg-soft);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    max-width: 520px;
    position: relative;
    overflow: hidden;
}
.login-note::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0.6;
}
.login-note-head {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--line);
}
.login-note-num {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}
.login-note-title {
    font-family: var(--serif);
    font-size: 16px;
    font-style: italic;
    color: var(--ink);
}
.login-note-rows {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.login-note-row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 8px 0;
}
.login-note-key {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    min-width: 70px;
}
.login-note-val {
    flex: 1;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
    background: var(--bg);
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    user-select: all;
    overflow-x: auto;
    white-space: nowrap;
}
.login-note-copy {
    background: transparent;
    border: 1px solid var(--line-bright);
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all .2s var(--ease);
}
.login-note-copy:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}
.login-note-copy.is-copied {
    border-color: var(--green);
    color: var(--green);
    background: rgba(33,208,122,0.08);
}
.login-note-foot {
    margin-top: var(--s-4);
    padding-top: var(--s-3);
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ============================================================
   PAYMENT MODAL — CASH APP
   ============================================================ */
.plan-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
}
.plan-buy-btn {
    padding: 14px 28px;
    font-size: 12px;
    letter-spacing: 0.22em;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: 0 8px 24px -6px rgba(255,140,66,0.5);
}
.plan-buy-btn:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px -6px rgba(255,140,66,0.7);
}

.pay-card {
    max-width: 640px;
    width: 100%;
    padding: var(--s-8) var(--s-7);
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(255,140,66,0.08), transparent 60%),
        var(--bg-card);
    border: 1px solid var(--line-bright);
    text-align: center;
}
.pay-head { margin-bottom: var(--s-7); }
.pay-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s-3);
}
.pay-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: var(--s-3);
}
.pay-title em { font-style: italic; color: var(--accent); }
.pay-lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    color: var(--ink-dim);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.5;
}

.pay-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--s-6);
    align-items: center;
    margin-bottom: var(--s-7);
    text-align: left;
}

.pay-qr-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    background: #000;
    padding: 14px;
    border-radius: 6px;
    box-shadow:
        0 0 0 1px rgba(255,140,66,0.25),
        0 16px 40px -10px rgba(255,140,66,0.3),
        0 4px 16px rgba(0,0,0,0.5);
}
.pay-qr {
    width: 100%;
    height: 100%;
    display: block;
}
.pay-qr-brand {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #00D632;
    color: #000;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 214, 50, 0.4);
    white-space: nowrap;
}
.pay-qr-brand-dot {
    width: 6px; height: 6px;
    background: #000;
    border-radius: 50%;
}

.pay-details {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.pay-row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.pay-row:last-child { border-bottom: none; }
.pay-key {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    min-width: 68px;
}
.pay-val {
    flex: 1;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}
.pay-cashtag {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s;
}
.pay-cashtag:hover { color: var(--accent-soft); text-decoration: underline; }
.pay-note-val { font-style: italic; }
.pay-badge {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 3px 8px;
    border: 1px solid var(--accent);
    border-radius: var(--r-sm);
    background: var(--accent-bg);
}

.pay-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    text-align: left;
    padding: var(--s-5) var(--s-6);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.pay-steps li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-4);
    font-size: 13px;
    color: var(--ink-dim);
    line-height: 1.5;
}
.pay-steps li b { color: var(--ink); font-weight: 600; }
.pay-steps li code {
    font-family: var(--mono);
    font-size: 11px;
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--accent);
    border: 1px solid var(--line);
}
.pay-step-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    min-width: 24px;
    padding-top: 1px;
}

.pay-foot {
    display: flex;
    gap: var(--s-3);
    justify-content: center;
    margin-bottom: var(--s-5);
    flex-wrap: wrap;
}
.pay-open-btn {
    background: #00D632;
    color: #000;
    border-color: #00D632;
    font-weight: 700;
}
.pay-open-btn:hover {
    background: #00ee38;
    border-color: #00ee38;
    box-shadow: 0 8px 24px rgba(0, 214, 50, 0.4);
}

.pay-fine {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
    .pay-card { padding: var(--s-6) var(--s-5); }
    .pay-body {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .pay-details { width: 100%; }
}

/* ============================================================
   PLANS — PREMIUM
   ============================================================ */

/* Status banner */
.plan-status-banner {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin: 0 auto var(--s-7);
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}
.plan-status-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--accent-bg) 50%, transparent);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.plan-status-banner.is-vip {
    border-color: rgba(255,140,66,0.35);
    background: linear-gradient(135deg, rgba(255,140,66,0.08), var(--bg-soft));
}
.plan-status-banner.is-vip::before { opacity: 1; }
.psb-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ink-faint);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
    flex-shrink: 0;
    z-index: 1;
}
.plan-status-banner.is-vip .psb-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-bg), 0 0 12px var(--accent);
}
.psb-text { flex: 1; z-index: 1; text-align: center; }
.psb-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
}
.psb-value {
    font-family: var(--serif);
    font-size: 18px;
    font-style: italic;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.psb-action {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 6px 12px;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
    z-index: 1;
}
.psb-action.unlocked {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* Plan deck */
.plan-deck {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: var(--s-5);
    max-width: 1000px;
    margin: 0 auto;
}
.plan-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .25s var(--ease);
}
.plan-card.free {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
}
.plan-card.elite {
    border-color: rgba(255,140,66,0.35);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(255,140,66,0.08), transparent 60%),
        linear-gradient(180deg, var(--bg-elev), var(--bg-card));
    box-shadow:
        0 1px 0 rgba(255,255,255,0.03) inset,
        0 24px 60px -20px rgba(255,140,66,0.18),
        0 8px 32px rgba(0,0,0,0.4);
}
.plan-card.elite:hover { transform: translateY(-4px); }
.plan-card.free:hover { transform: translateY(-2px); border-color: var(--line-bright); }

.plan-card.elite.is-active {
    border-color: var(--accent);
    box-shadow:
        0 0 0 1px var(--accent),
        0 24px 60px -20px rgba(255,140,66,0.32),
        inset 0 0 60px rgba(255,140,66,0.04);
}

/* Shine element removed — hidden if still in DOM */
.plan-shine { display: none; }

.plan-ribbon {
    position: absolute;
    top: 18px;
    right: -32px;
    transform: rotate(35deg);
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 4px 36px;
    box-shadow: 0 4px 12px rgba(255,140,66,0.4);
    z-index: 2;
}

.plan-card-head {
    margin-bottom: var(--s-5);
    text-align: center;
}
.plan-tier {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-faint);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: var(--s-2);
}
.plan-card.elite .plan-tier { color: var(--accent); }
.plan-name {
    font-family: var(--serif);
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-weight: 400;
}
.plan-name em {
    font-style: italic;
    color: var(--accent);
}

.plan-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
    flex-wrap: wrap;
}
.plan-price-major {
    font-family: var(--serif);
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
}
.plan-card.elite .plan-price-major { color: var(--accent); }
.plan-price-strike {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink-faint);
    text-decoration: line-through;
    text-decoration-color: var(--accent);
    font-style: italic;
}
.plan-price-meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.plan-rule {
    height: 1px;
    background: linear-gradient(90deg, var(--line-bright), transparent);
    margin: 0 0 var(--s-5);
}
.plan-card.elite .plan-rule {
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.4;
}

.plan-feat {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.plan-feat li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    padding: 10px 0;
    font-size: 14px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.plan-feat li:last-child { border-bottom: none; }
.plan-feat li b {
    font-weight: 600;
    color: var(--ink);
}
.plan-card.elite .plan-feat li b { color: var(--accent); }
.pf-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--bg-soft);
    color: var(--ink-faint);
    border: 1px solid var(--line);
}
.pf-mark.pf-ok {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: rgba(255,140,66,0.3);
}
.pf-mute { color: var(--ink-faint); }
.pf-mute b { color: var(--ink-faint) !important; }

.plan-cta-row {
    margin-top: auto;
    padding-top: var(--s-4);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-align: center;
}
.plan-card.elite .plan-cta-row {
    color: var(--accent);
}

/* ============================================================
   REDEEM VAULT
   ============================================================ */
.redeem-vault {
    margin: var(--s-9) auto 0;
    padding: var(--s-9) var(--s-7);
    text-align: center;
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(255,140,66,0.06), transparent 60%),
        var(--bg-soft);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}
.redeem-vault::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, transparent 0 80px, rgba(255,255,255,0.012) 80px 81px);
    pointer-events: none;
}

.vault-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
    padding-top: 6px;
}
.vault-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--accent);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
}
.vault-line {
    flex: 1;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    opacity: 0.5;
    min-height: 80px;
}

.vault-body { position: relative; }
.vault-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
}
.vault-eyebrow::before,
.vault-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}
.vault-title {
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--s-4);
    font-weight: 400;
    color: var(--ink);
}
.vault-title em {
    font-style: italic;
    color: var(--accent);
}
.vault-lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    line-height: 1.5;
    color: var(--ink-dim);
    max-width: 560px;
    margin: 0 auto var(--s-7);
}

.vault-form {
    display: flex;
    gap: var(--s-3);
    margin: 0 auto var(--s-5);
    align-items: stretch;
    justify-content: center;
    max-width: 560px;
}
.vault-input-wrap {
    position: relative;
    flex: 1;
    max-width: 420px;
}
.vault-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.6em;
    text-align: center;
    text-transform: uppercase;
    padding: 18px 24px;
    outline: none;
    transition: all .25s var(--ease);
    text-indent: 0.6em;
}
.vault-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), inset 0 0 24px rgba(255,140,66,0.06);
    background: var(--bg-soft);
}
.vault-input::placeholder {
    color: var(--ink-ghost);
    font-weight: 400;
}
.vault-input-grid {
    position: absolute;
    inset: 18px 24px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    pointer-events: none;
}
.vault-input-grid span {
    border-bottom: 1px solid var(--line);
    align-self: end;
    height: 1px;
}
.vault-btn {
    padding: 0 28px !important;
    font-size: 12px !important;
    letter-spacing: 0.22em;
    white-space: nowrap;
}

.vault-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    flex-wrap: wrap;
    gap: var(--s-5);
    max-width: 560px;
    margin: 0 auto;
}
.vault-link {
    color: var(--ink-dim);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    transition: color .2s;
}
.vault-link:hover { color: var(--accent); }
.vault-link-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}
.vault-meta {
    color: var(--ink-faint);
    padding: 5px 10px;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
}
.vault-meta.unlocked {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-bg);
}

/* ============================================================
   PLAN TRUST ROW
   ============================================================ */
.plan-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    margin: var(--s-9) auto 0;
    padding-top: var(--s-7);
    border-top: 1px solid var(--line);
    max-width: 1000px;
    text-align: center;
}
.trust-item { padding: 0 var(--s-2); }
.trust-num {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: var(--s-3);
}
.trust-h {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    color: var(--ink);
    margin-bottom: var(--s-2);
    letter-spacing: -0.01em;
}
.trust-d {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-dim);
}

/* Legacy plan-foot/status/link kept for backwards compat (unused now) */
.plan-status {
    color: var(--ink-faint);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.plan-status.unlocked { color: var(--accent); }

/* News content needs same padding as other -content wrappers */
.news-content {
    padding: var(--s-9) var(--s-8);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elev);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    padding: 12px 20px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    box-shadow: var(--sh-3);
    opacity: 0;
    transition: opacity .25s var(--ease), transform .35s var(--ease);
    z-index: 10000;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-ok {
    border-color: rgba(33,208,122,0.5);
    color: var(--green);
    box-shadow: 0 8px 24px rgba(33,208,122,0.15);
}
.toast-err {
    border-color: rgba(255,68,68,0.5);
    color: var(--red);
    box-shadow: 0 8px 24px rgba(255,68,68,0.15);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .feat-grid { grid-template-columns: 1fr 1fr; }
    .feat-grid .feat:first-child { grid-column: 1 / -1; }
    .plans-grid { grid-template-columns: 1fr; }
    .plan-cards { grid-template-columns: 1fr; }
    .plan-deck { grid-template-columns: 1fr; }
    .plan-trust { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 720px) {
    .redeem-vault {
        grid-template-columns: 1fr;
        padding: var(--s-7) var(--s-5);
        gap: var(--s-4);
    }
    .vault-spine { flex-direction: row; padding: 0; }
    .vault-num { writing-mode: horizontal-tb; transform: none; }
    .vault-line { width: auto; height: 1px; min-height: 0; flex: 1; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
    .vault-form { flex-direction: column; }
    .vault-input-wrap { max-width: none; }
    .vault-btn { padding: 14px 28px !important; }
    .plan-name { font-size: 36px; }
    .plan-price-major { font-size: 44px; }
    .plan-card { padding: var(--s-6); }
}

@media (max-width: 900px) {
    .app {
        grid-template-columns: 1fr;
        grid-template-rows: 60px auto 1fr 36px;
        grid-template-areas:
            "topbar"
            "rail"
            "main"
            "footer";
    }
    .rail {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: var(--s-3) var(--s-5);
    }
    .rail-section {
        display: flex;
        gap: var(--s-4);
        padding: 0;
        margin: 0;
    }
    .rail-label, .rail-divider, .rail-stats { display: none; }
    .nav-item {
        padding: 8px 12px;
        margin: 0;
        white-space: nowrap;
    }
    .nav-item::before { display: none !important; }
    .nav-item.active {
        color: var(--accent);
        background: var(--accent-bg);
    }
    .hero { padding: var(--s-7) var(--s-5); }
    .panel-head { padding: var(--s-3) var(--s-5); }
    .chat-messages { padding: var(--s-5); }
    .composer { padding: var(--s-3) var(--s-5); }
    .games-content, .stream-overlay, .news-content, .plans-content, .proxy-content, .settings-content {
        padding: var(--s-7) var(--s-5);
    }
}

@media (max-width: 560px) {
    .hero-h1 { font-size: 38px !important; }
    .feat-grid { grid-template-columns: 1fr; }
    .feat-grid .feat:first-child { grid-column: auto; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-3); }
    .stream-item { flex: 0 0 130px; }
    .topbar { padding: 0 var(--s-4); }
    .topbar-meta { display: none; }
    .footer { padding: 0 var(--s-4); font-size: 8px; }
    .plans-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ROBLOX — FALLBACK BANNER
   ============================================================ */
.roblox-fallback {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: 14px 16px;
    margin: var(--s-5) 0;
    background: linear-gradient(135deg, rgba(255,68,68,0.08), var(--bg-soft));
    border: 1px solid rgba(255,68,68,0.4);
    border-left: 3px solid var(--red);
    border-radius: var(--r-md);
}
.rf-mark {
    width: 28px; height: 28px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255,68,68,0.5);
}
.rf-body { flex: 1; min-width: 0; }
.rf-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 4px;
    font-weight: 700;
}
.rf-link {
    display: inline-block;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-decoration: none;
    word-break: break-all;
    transition: color .2s;
}
.rf-link:hover { color: var(--accent); text-decoration: underline; }
.rf-copy {
    flex-shrink: 0;
    background: transparent;
    color: var(--ink-dim);
    border: 1px solid var(--line-bright);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
}
.rf-copy:hover, .rf-copy.is-copied {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   v3.5 — WHAT'S NEW PILL
   ============================================================ */
.whats-new-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    padding: 7px 14px 7px 10px;
    margin-bottom: var(--s-6);
    background: linear-gradient(90deg, var(--accent-bg), transparent);
    border: 1px solid rgba(255,140,66,0.28);
    border-radius: var(--r-full);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all .25s var(--ease);
    width: fit-content;
}
.whats-new-pill:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
}
.wnp-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}
.wnp-tag {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.22em;
}
.wnp-text {
    color: var(--ink-dim);
    letter-spacing: 0.12em;
    text-transform: none;
    font-family: var(--sans);
    font-size: 12px;
}
.wnp-arrow {
    color: var(--accent);
    font-size: 12px;
    transition: transform .25s var(--ease);
}
.whats-new-pill:hover .wnp-arrow { transform: translateX(3px); }

/* ============================================================
   v3.5 — WHY VIP BENEFITS GRID
   ============================================================ */
.why-vip {
    margin: var(--s-9) auto 0;
    max-width: 1100px;
    padding-top: var(--s-7);
    border-top: 1px solid var(--line);
}
.why-head {
    text-align: center;
    margin-bottom: var(--s-7);
}
.why-head .hero-eyebrow { justify-content: center; }
.why-head .hero-eyebrow::before { display: none; }
.why-title {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: var(--s-3);
}
.why-title em {
    font-style: italic;
    color: var(--accent);
}
.why-lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-dim);
    max-width: 540px;
    margin: 0 auto;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.why-card {
    background: var(--bg-card);
    padding: var(--s-6);
    transition: all .3s var(--ease);
    cursor: default;
    position: relative;
}
.why-card:hover {
    background: linear-gradient(180deg, rgba(255,140,66,0.05), rgba(255,140,66,0.01));
}
.why-card:hover .why-h { color: var(--accent); }
.why-num {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: var(--s-3);
    text-transform: uppercase;
}
.why-h {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: var(--s-3);
    transition: color .25s var(--ease);
}
.why-d {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-dim);
}

/* ============================================================
   v3.5 — COMPARISON TABLE
   ============================================================ */
.compare-wrap {
    margin: var(--s-9) auto 0;
    max-width: 1000px;
    padding-top: var(--s-7);
    border-top: 1px solid var(--line);
}
.compare-head {
    text-align: center;
    margin-bottom: var(--s-6);
}
.compare-head .hero-eyebrow { justify-content: center; }
.compare-head .hero-eyebrow::before { display: none; }
.compare-title {
    font-family: var(--serif);
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-weight: 400;
}
.compare-title em {
    font-style: italic;
    color: var(--accent);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    font-size: 14px;
}
.compare-table thead {
    background: var(--bg-soft);
}
.compare-table th {
    padding: 14px 18px;
    text-align: left;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 700;
    border-bottom: 1px solid var(--line-bright);
}
.compare-table th.ct-vip {
    color: var(--accent);
    background: linear-gradient(180deg, rgba(255,140,66,0.08), transparent);
}
.compare-table th.ct-feat { width: 50%; }
.compare-table th.ct-free, .compare-table th.ct-vip { width: 25%; text-align: center; }
.compare-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.compare-table td:first-child {
    font-family: var(--sans);
    color: var(--ink-dim);
    font-weight: 500;
}
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
    text-align: center;
    font-family: var(--mono);
    font-size: 13px;
}
.compare-table td:nth-child(3) {
    background: rgba(255,140,66,0.04);
}
.compare-table td b {
    color: var(--accent);
    font-weight: 600;
}
.compare-table td.ct-no {
    color: var(--ink-faint);
}
.compare-table td.ct-yes {
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.015); }
.compare-table tbody tr:last-child {
    background: linear-gradient(180deg, transparent, rgba(255,140,66,0.04));
}

/* ============================================================
   v3.5 — VALUE BAR
   ============================================================ */
.value-bar {
    margin: var(--s-9) auto 0;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-6) var(--s-7);
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(255,140,66,0.06), transparent 60%),
        var(--bg-soft);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    gap: var(--s-4);
}
.value-stat {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.value-num {
    font-family: var(--serif);
    font-size: clamp(36px, 4.5vw, 56px);
    font-style: italic;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin-bottom: var(--s-2);
}
.value-lbl {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.value-divider {
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, transparent, var(--line-bright), transparent);
}

/* ============================================================
   v3.5 — TESTIMONIAL QUOTE STRIP
   ============================================================ */
.quote-strip {
    margin: var(--s-9) auto 0;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
}
.quote-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-6);
    position: relative;
    transition: all .25s var(--ease);
}
.quote-card:hover {
    border-color: var(--line-bright);
    transform: translateY(-2px);
}
.quote-mark {
    position: absolute;
    top: 0;
    left: var(--s-5);
    font-family: var(--serif);
    font-size: 64px;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
}
.quote-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    margin: var(--s-5) 0 var(--s-4);
    position: relative;
    z-index: 1;
}
.quote-by {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding-top: var(--s-3);
    border-top: 1px solid var(--line);
}

/* ============================================================
   v3.5 — CHANGELOG (NEWS PANEL)
   ============================================================ */
.changelog-header {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-5) var(--s-6);
    margin: var(--s-7) 0 var(--s-7);
    background: linear-gradient(135deg, rgba(255,140,66,0.08), var(--bg-soft));
    border: 1px solid rgba(255,140,66,0.25);
    border-radius: var(--r-md);
    flex-wrap: wrap;
}
.cl-tag {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 5px 10px;
    border-radius: var(--r-sm);
    box-shadow: 0 0 16px var(--accent-glow);
}
.cl-version {
    font-family: var(--serif);
    font-size: 32px;
    font-style: italic;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
    flex: 1;
}
.cl-meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.changelog-section {
    margin-bottom: var(--s-9);
}
.cl-section-head {
    display: flex;
    align-items: baseline;
    gap: var(--s-4);
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--line);
}
.cl-section-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--accent);
    text-transform: uppercase;
    min-width: 40px;
}
.cl-section-title {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1;
    color: var(--ink);
    flex: 1;
    letter-spacing: -0.02em;
}
.cl-section-title em {
    font-style: italic;
    color: var(--accent);
}
.cl-section-count {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 4px 10px;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
}
.cl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s-4);
}
.cl-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-bright);
    border-radius: var(--r-md);
    padding: var(--s-5);
    transition: all .25s var(--ease);
    position: relative;
}
.cl-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-bright);
}
.cl-card.cl-new { border-left-color: var(--accent); }
.cl-card.cl-new:hover { box-shadow: -3px 0 16px var(--accent-glow); }
.cl-card.cl-tweak { border-left-color: var(--blue); }
.cl-card.cl-tweak:hover { box-shadow: -3px 0 16px rgba(91,158,255,0.18); }
.cl-card.cl-fix { border-left-color: var(--green); }
.cl-card.cl-fix:hover { box-shadow: -3px 0 16px rgba(33,208,122,0.18); }
.cl-card.cl-soon {
    border-left-color: var(--ink-faint);
    border-left-style: dashed;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
}
.cl-card.cl-soon:hover { box-shadow: -3px 0 16px rgba(255,255,255,0.04); }
.cl-card-tag {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: var(--s-3);
    display: inline-block;
    padding: 3px 8px;
    border-radius: 2px;
}
.cl-card.cl-new .cl-card-tag {
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid rgba(255,140,66,0.3);
}
.cl-card.cl-tweak .cl-card-tag {
    background: rgba(91,158,255,0.1);
    color: var(--blue);
    border: 1px solid rgba(91,158,255,0.3);
}
.cl-card.cl-fix .cl-card-tag {
    background: rgba(33,208,122,0.1);
    color: var(--green);
    border: 1px solid rgba(33,208,122,0.3);
}
.cl-card.cl-soon .cl-card-tag {
    background: var(--bg-soft);
    color: var(--ink-faint);
    border: 1px dashed var(--line-bright);
}
.cl-card-h {
    font-family: var(--serif);
    font-size: 18px;
    font-style: italic;
    color: var(--ink);
    margin-bottom: var(--s-2);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.cl-card-d {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-dim);
}

/* ============================================================
   v3.5 — RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 1100px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-strip { grid-template-columns: 1fr; }
    .value-bar { flex-wrap: wrap; padding: var(--s-5); }
    .value-divider { display: none; }
    .value-stat { flex: 0 0 48%; padding: var(--s-3) 0; }
}
@media (max-width: 720px) {
    .why-grid { grid-template-columns: 1fr; }
    .changelog-header { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
    .cl-version { font-size: 26px; }
    .compare-table { font-size: 12px; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
    .whats-new-pill { font-size: 9px; }
    .wnp-text { font-size: 11px; }
}

