/**
 * DEBILEX BOTS — subdomain landing (bots.debilex.com)
 * Derived from the main gold/black theme (home.css) with a denser, dashboard-style
 * "operations panel" variant: darker surfaces, a slightly brighter brand gold and
 * tighter, condensed typography so the bots subdomain feels distinct yet familiar.
 * Self-contained (single CSS request) — mirrors the home landing philosophy.
 */

:root {
    /* Surfaces — a touch darker than home for the "control panel" feel */
    --bg: #000204;
    --bg-2: #04070A;
    --header-bg: #000002;
    --surface: #05080A;
    --surface-2: #080C0E;
    --surface-3: #0B1013;
    /* Purple-tinted borders — subtle marker that sets the bots subdomain
       apart from home's neutral-grey framing, while keeping the gold theme. */
    --line: #2A2440;
    --line-2: #3A335C;

    /* Brand gold — subtly brighter than home's #FFC107 to mark the subdomain */
    --gold: #F8C900;
    --gold-bright: #FFD600;
    --gold-dark: #9C7C00;
    --gold-soft: rgba(248, 201, 0, 0.12);
    --gold-line: rgba(248, 201, 0, 0.18);
    --gold-glow: rgba(248, 201, 0, 0.35);

    --text: #F2F2F2;
    --muted: #A3A6A8;
    --muted-2: #70767A;

    /* Platform + status accents (shared with home) */
    --blue: #279FE5;   --blue-soft: rgba(39, 159, 229, 0.14);
    --purple: #7060DF; --purple-soft: rgba(112, 96, 223, 0.16);
    --green: #16D766;  --green-soft: rgba(22, 215, 102, 0.14);
    --orange: #FF9800; --orange-soft: rgba(255, 152, 0, 0.14);
    --red: #FF352F;    --red-soft: rgba(255, 53, 47, 0.14);
    --white-soft: rgba(255, 255, 255, 0.06);

    --radius: 8px;
    --radius-sm: 6px;
    --maxw: 1240px; /* match home.css for cross-site consistency */

    --font: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-cond: 'Barlow Condensed', 'Bebas Neue', var(--font);
    --font-display: 'Bebas Neue', 'Barlow Condensed', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background:
        radial-gradient(70% 55% at 78% 8%, rgba(248, 201, 0, 0.06), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: 'Roboto Mono', ui-monospace, 'Courier New', monospace; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.shell { padding-bottom: 40px; }

/* Shared panel */
.panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, rgba(255, 255, 255, 0) 100%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.panel-pad { padding: 20px; }
.section { margin-top: 15px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold);
}
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-title {
    font-family: var(--font-cond); font-weight: 700;
    font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text);
    display: flex; align-items: center; gap: 9px;
}
.sec-title .ico { color: var(--gold); display: inline-flex; }
.sec-link {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}
.sec-link:hover { color: var(--gold); }

/* SOON tag (matches home nav-soon convention) */
.soon-tag {
    display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 7px; border-radius: 6px;
    font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--gold-soft); color: var(--gold);
}

/* ---------------------------------------------------------------- */
/* Buttons                                                          */
/* ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font); font-weight: 700; font-size: 13px;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 11px 18px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #161200;
    box-shadow: 0 0 18px rgba(248, 201, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-gold:hover { box-shadow: 0 6px 26px rgba(248, 201, 0, 0.32); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold { background: transparent; border-color: var(--gold-line); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold-soft); border-color: var(--gold); }
.btn-sm { padding: 8px 13px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- */
/* Header                                                           */
/* ---------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(0, 0, 2, 0.82);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 63px; }
.nav__logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav__logo img { height: 30px; width: auto; }
.logo-badge {
    font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
    text-transform: uppercase; color: #161200; background: var(--gold);
    padding: 2px 8px; border-radius: 5px; line-height: 1.4;
}
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 6px; flex: 1; }
.nav__links a {
    font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 7px 11px; border-radius: 7px; transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav__links a.is-active { color: var(--gold); }
.nav-soon { opacity: .5; pointer-events: none; cursor: default; }
.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Language switcher (ported from home.css) */
.lang-switch { position: relative; }
.lang-switch__btn {
    display: flex; align-items: center; gap: 6px; background: transparent;
    border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px;
    color: var(--muted); cursor: pointer;
}
.lang-switch__btn:hover { border-color: var(--gold-line); color: var(--gold); }
.lang-switch__btn img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.lang-switch__menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
    padding: 6px; display: none; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); z-index: 120;
}
.lang-switch.open .lang-switch__menu { display: block; }
.lang-switch__menu a {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 7px; font-size: 14px; color: var(--muted);
}
.lang-switch__menu a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.lang-switch__menu a.is-active { color: var(--gold); }
.lang-switch__menu img { width: 20px; height: 15px; border-radius: 2px; }

/* ---------------------------------------------------------------- */
/* Hero                                                             */
/* ---------------------------------------------------------------- */
.hero { padding-top: 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.92fr 302px; gap: 16px; align-items: stretch; }

.hero-copy { padding: 8px 4px 4px; display: flex; flex-direction: column; }
.hero-title {
    font-family: var(--font-cond); font-weight: 800;
    font-size: clamp(34px, 4.4vw, 43px); line-height: 0.98; letter-spacing: 0.01em;
    text-transform: uppercase; color: var(--text); margin: 14px 0 0;
}
.hero-title .gold { color: var(--gold); display: block; font-size: 1.32em; line-height: 0.95; }
.hero-desc { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 42ch; margin-top: 16px; }

.hero-benefits { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.benefit { display: flex; align-items: flex-start; gap: 9px; max-width: 150px; }
.benefit__ico {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
    display: grid; place-items: center; color: var(--gold);
    background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.benefit__txt { font-size: 12px; line-height: 1.35; color: var(--text); font-weight: 600; }
.benefit__txt span { color: var(--muted); font-weight: 500; }

.hero-actions { display: flex; gap: 11px; margin-top: auto; padding-top: 26px; flex-wrap: wrap; }

/* Central mascot / radar */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-stage__glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 46%, rgba(248, 201, 0, 0.22), transparent 46%),
        radial-gradient(circle at 50% 46%, rgba(248, 201, 0, 0.10), transparent 64%);
    pointer-events: none;
}
/* Concentric radar rings (approximates the mockup tech circle) */
.hero-stage__ring {
    position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
    border-radius: 50%; border: 1px solid var(--gold-line); pointer-events: none;
}
.hero-stage__ring.r1 { width: 300px; height: 300px; opacity: 0.55; }
.hero-stage__ring.r2 { width: 220px; height: 220px; opacity: 0.4; }
.hero-stage__ring.r3 { width: 140px; height: 140px; opacity: 0.3; }
.hero-stage__mascot { position: relative; z-index: 2; max-height: 400px; width: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
/* Floating platform badges around the mascot */
.plat-badge {
    position: absolute; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: var(--surface-3); border: 1px solid var(--line-2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.plat-badge.tg { top: 26%; left: 4%; background: #229ED9; }
.plat-badge.x  { top: 12%; right: 8%; background: #0b0b0b; border-color: var(--line-2); }
.plat-badge.dc { top: 52%; right: 2%; background: #5865F2; }

/* Popular bots panel */
.popular { display: flex; flex-direction: column; }
.popular__head {
    padding: 13px 16px; border-bottom: 1px solid var(--line);
    font-family: var(--font-cond); font-weight: 700; font-size: 13px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
}
.popular__list { display: flex; flex-direction: column; }
.pbot { display: flex; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pbot__avatar {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
    background: var(--surface-2); border: 1px solid var(--line-2);
}
.pbot__body { flex: 1; min-width: 0; }
.pbot__name { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--text); }
.pbot__name .verified { color: var(--blue); flex-shrink: 0; }
.pbot__platform { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
.pbot__desc { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 6px; }
.pbot__count {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
    background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
    white-space: nowrap;
}
.popular__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 13px 16px; margin-top: auto;
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
}
.popular__foot:hover { color: var(--gold-bright); }

/* ---------------------------------------------------------------- */
/* Platform cards                                                   */
/* ---------------------------------------------------------------- */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plat-card {
    position: relative; padding: 18px; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--surface-2);
    display: flex; flex-direction: column; gap: 11px; min-height: 190px;
}
.plat-card__ico {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
}
.plat-card__title { font-size: 15px; font-weight: 700; color: var(--text); }
.plat-card__desc { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; }
.plat-card__meta { display: flex; gap: 16px; font-size: 11px; }
.plat-card__meta b { color: var(--text); font-weight: 700; }
.plat-card__meta span { color: var(--muted-2); }
.plat-card__meta .metric { display: flex; align-items: center; gap: 5px; }

.acc-blue   { --acc: var(--blue);   --acc-soft: var(--blue-soft); }
.acc-purple { --acc: var(--purple); --acc-soft: var(--purple-soft); }
.acc-green  { --acc: var(--green);  --acc-soft: var(--green-soft); }
.acc-white  { --acc: #d6d8da;       --acc-soft: var(--white-soft); }
.plat-card .plat-card__ico { background: var(--acc-soft); color: var(--acc); }
.plat-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    background: var(--acc-soft); border: 1px solid var(--acc); color: var(--acc);
    transition: background .18s, transform .15s;
}
.plat-btn:hover { transform: translateY(-1px); }
.plat-badge-soon {
    position: absolute; top: 14px; right: 14px;
    padding: 3px 8px; border-radius: 6px; font-size: 9px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase; background: var(--gold-soft); color: var(--gold);
}

/* ---------------------------------------------------------------- */
/* Modules (real modular system)                                    */
/* ---------------------------------------------------------------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mod-card {
    padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--acc, var(--gold));
    border-radius: var(--radius); background: var(--surface-2);
    display: flex; flex-direction: column; gap: 9px;
    transition: transform .15s ease, border-color .15s ease;
}
.mod-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mod-card__head { display: flex; align-items: center; gap: 9px; }
.mod-card__ico { font-size: 20px; line-height: 1; }
.mod-card__badge {
    margin-left: auto; padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--acc-soft, var(--gold-soft)); color: var(--acc, var(--gold));
}
.mod-card__name { font-size: 14px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.02em; }
.mod-card__desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.mod-cmds { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.mod-cmds code {
    padding: 3px 7px; border-radius: 5px; font-size: 11px; font-weight: 600;
    background: var(--white-soft); border: 1px solid var(--line); color: #cbd5e1;
}
.mod-cmds .more {
    padding: 3px 7px; border-radius: 5px; font-size: 11px; font-weight: 800;
    background: var(--gold-soft); color: var(--gold);
}

/* ---------------------------------------------------------------- */
/* Capabilities + stats                                             */
/* ---------------------------------------------------------------- */
.caps-stats { display: grid; grid-template-columns: 1fr 320px; gap: 15px; align-items: stretch; }
.caps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.cap-item { padding: 4px 16px; border-left: 1px solid var(--line); }
.cap-item:first-child { border-left: 0; padding-left: 4px; }
.cap-ico {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold);
    margin-bottom: 12px;
}
.cap-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.02em; }
.cap-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

.stats-list { display: flex; flex-direction: column; gap: 4px; }
.stat-row { display: flex; align-items: center; gap: 13px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 0; }
.stat-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.stat-body { flex: 1; }
.stat-value { font-family: var(--font-cond); font-weight: 700; font-size: 25px; line-height: 1; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.stat-note { font-size: 11px; color: var(--muted-2); margin-top: 12px; line-height: 1.4; }

/* ---------------------------------------------------------------- */
/* How it works + commands                                          */
/* ---------------------------------------------------------------- */
.how-cmds { display: grid; grid-template-columns: 1fr 1.04fr; gap: 15px; align-items: stretch; }
.steps { display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; align-items: flex-start; gap: 13px; padding: 12px 4px; }
.step__ico {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--line-2);
}
.step__body { flex: 1; }
.step__title { font-size: 14px; font-weight: 700; color: var(--text); }
.step__title b { color: var(--gold); font-weight: 700; margin-right: 6px; }
.step__desc { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 3px; }

/* Commands column */
.cmd-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
.cmd-bubbles { display: flex; flex-direction: column; gap: 9px; }
.cmd-bubble {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 13px; border-radius: 8px;
    background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
    border: 1px solid var(--line);
}
.cmd-bubble code { font-size: 13px; font-weight: 600; color: var(--blue); }
.cmd-bubble time { font-size: 11px; color: var(--muted-2); }

/* Example report card */
.report-card { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.report-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.report-card__avatar { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.report-card__score { font-family: var(--font-cond); font-weight: 700; font-size: 17px; color: var(--text); }
.risk-badge {
    display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 5px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--red-soft); color: #ff8a86; border: 1px solid rgba(255, 53, 47, 0.4);
}
.report-block__label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 12px 0 7px; }
.report-warn { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text); padding: 4px 0; }
.report-warn .wi { color: var(--red); flex-shrink: 0; margin-top: 1px; }
.report-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.report-status__val { font-family: var(--font-cond); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; color: var(--red); display: flex; align-items: center; gap: 7px; }
.report-status time { font-size: 11px; color: var(--muted-2); }
.report-note { font-size: 10px; color: var(--muted-2); margin-top: 12px; font-style: italic; }

/* ---------------------------------------------------------------- */
/* Footer                                                           */
/* ---------------------------------------------------------------- */
.footer-panel { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 24px; padding: 26px 24px; }
.footer-col__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.footer-col__brand img { height: 26px; width: auto; }
.footer-desc { font-size: 12px; color: var(--muted); line-height: 1.55; max-width: 30ch; }
.footer-h { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(22, 215, 102, 0.6); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-social a {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); transition: all .15s;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold-line); }
.copyright { text-align: center; padding: 14px 0 4px; font-size: 12px; color: var(--muted-2); }

/* ---------------------------------------------------------------- */
/* Wallet connect modal (ported from home.css so the subdomain is self-contained) */
/* ---------------------------------------------------------------- */
.wallet-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.wallet-modal.open { display: flex; }
.wallet-modal__overlay { position: absolute; inset: 0; background: rgba(2, 2, 4, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wallet-modal__dialog {
    position: relative; width: 100%; max-width: 400px; background: var(--surface);
    border: 1px solid var(--gold-line); border-radius: 16px;
    box-shadow: 0 0 0 1px var(--gold-line), 0 30px 70px rgba(0, 0, 0, .55);
    padding: 30px 26px 24px; animation: wallet-modal-in .22s ease;
}
@keyframes wallet-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.wallet-modal__close {
    position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 8px;
    background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; transition: color .15s, background .15s;
}
.wallet-modal__close:hover { color: var(--gold); background: var(--surface-3); }
.wallet-modal__head { text-align: center; margin-bottom: 20px; }
.wallet-modal__head img { height: 30px; width: auto; margin: 0 auto 14px; }
.wallet-modal__head h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; }
.wallet-modal__head p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.wallet-modal__foot { text-align: center; margin-top: 16px; }
.wallet-modal__foot a { color: var(--muted); font-size: 13px; font-weight: 600; }
.wallet-modal__foot a:hover { color: var(--gold); }
.wallet-connect__buttons { display: flex; flex-direction: column; gap: 10px; }
.wallet-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px;
    border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2);
    color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
}
.wallet-btn:hover { border-color: var(--gold); background: var(--surface-3); transform: translateY(-1px); }
.wallet-btn:disabled { cursor: default; opacity: .6; transform: none; }
.wallet-btn img { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.wallet-btn span { display: flex; align-items: baseline; gap: 7px; }
.wallet-btn small { color: var(--muted); font-weight: 600; font-size: 12px; }
.wallet-btn.is-busy { position: relative; color: transparent; }
.wallet-btn.is-busy img { opacity: .3; }
.wallet-btn.is-busy::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2px solid var(--gold-line); border-top-color: var(--gold); border-radius: 50%; animation: wallet-spin .7s linear infinite;
}
@keyframes wallet-spin { to { transform: rotate(360deg); } }
.wallet-connect__error { display: none; margin-top: 12px; padding: 10px 13px; border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid var(--red); color: #fca5a5; font-size: 13px; }
.wallet-connect__error.show { display: block; }

/* ---------------------------------------------------------------- */
/* Responsive                                                       */
/* ---------------------------------------------------------------- */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr 320px; }
    .hero-stage { grid-column: 1 / -1; order: 3; min-height: 300px; }
    .caps-stats { grid-template-columns: 1fr; }
    .footer-panel { grid-template-columns: 1fr 1fr 1fr; }
}
/* Collapse the crowded top nav into the burger before the links overflow */
@media (max-width: 1080px) {
    .nav__links { display: none; }
    .site-header.nav-open .nav__links {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; top: 63px; left: 0; right: 0;
        background: var(--header-bg); border-bottom: 1px solid var(--line);
        padding: 10px 20px 14px; margin: 0; z-index: 99;
    }
    .nav__burger { display: flex; }
}
@media (max-width: 760px) {
    .nav__links { display: none; }
    .site-header.nav-open .nav__links {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; top: 63px; left: 0; right: 0;
        background: var(--header-bg); border-bottom: 1px solid var(--line);
        padding: 10px 20px 14px; margin: 0;
    }
    .nav__burger { display: flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stage { order: 2; min-height: 260px; }
    .popular { order: 3; }
    .plat-grid { grid-template-columns: 1fr 1fr; }
    .caps-grid { grid-template-columns: 1fr 1fr; gap: 16px 0; }
    .cap-item { border-left: 0; padding-left: 4px; }
    .how-cmds, .cmd-split { grid-template-columns: 1fr; }
    .caps-stats { grid-template-columns: 1fr; }
    .footer-panel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .plat-grid { grid-template-columns: 1fr; }
    .caps-grid { grid-template-columns: 1fr; }
    .footer-panel { grid-template-columns: 1fr; }
}
