/* Account and administration presentation. No delivery controls are changed. */
body:has(:is(#page-login,#page-register,#page-dashboard,#page-admin).active){background:#101213;color-scheme:dark}
html:has(:is(#page-login,#page-register,#page-dashboard,#page-admin).active){color-scheme:dark}
.mobile-account-nav{display:none}
#tab-credits:has(#shop-history.active) #shop-smart-strip{display:none}
@media(max-width:768px){#tab-credits .kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}#tab-credits .shop-tabs{flex-wrap:wrap}#tab-credits .kpi{min-width:0}#tab-credits .kpi-lbl{font-size:10px}}
@media(max-width:768px){.mobile-account-nav{display:flex;gap:8px;padding:0 0 20px;flex-wrap:wrap}.mobile-account-nav button{font:inherit;font-size:12px;padding:10px 13px;border:1px solid #3b4343;background:#1b2220;border-radius:8px;color:#e0d9cb;cursor:pointer}.mobile-account-nav button:focus-visible{outline:2px solid #edbd76;outline-offset:3px}}
:is(#page-login,#page-register,#page-dashboard,#page-admin) {
  --bg-0:#101213;--bg-1:#181b1c;--bg-2:#1e2223;--bg-3:#252a2b;--bg-4:#303638;
  --bg-hover:#2b3031;--bg-glass:#181b1c;--text-0:#f4f0e7;--text-1:#d0d2cd;
  --text-2:#a9b1af;--text-3:#909c99;--gold:#edbd76;--gold-light:#f8d6a4;
  --gold-dark:#c79551;--gold-dim:rgba(237,189,118,.09);--gold-glow:transparent;
  --border:rgba(224,231,222,.12);--border-vivid:rgba(224,231,222,.19);
  --border-subtle:rgba(224,231,222,.07);--grad-gold:linear-gradient(120deg,#f5d3a1,#dfac65);
  --font-display:Inter,Arial,sans-serif;color:var(--text-0);background:var(--bg-0);color-scheme:dark;
}
:is(#page-login,#page-register) .auth-container{max-width:1600px;margin:auto;gap:4vw;padding:36px;min-height:100svh}
:is(#page-login,#page-register) .auth-bg{background:#101213}
:is(#page-login,#page-register) .auth-bg>*{display:none}
:is(#page-login,#page-register) .auth-form-wrap{padding:48px 24px;align-items:center;flex:1}
:is(#page-login,#page-register) .auth-logo{width:100%;max-width:430px;margin-bottom:64px}
:is(#page-login,#page-register) .auth-card{max-width:430px;padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none}
:is(#page-login,#page-register) .auth-card:before{display:none}
:is(#page-login,#page-register) .auth-card-head{text-align:left;margin-bottom:32px}
:is(#page-login,#page-register) .auth-card-head h1{font-size:38px;letter-spacing:-1.6px;line-height:1.15}
:is(#page-login,#page-register) .auth-card-head p{line-height:1.7;color:var(--text-2)}
:is(#page-login,#page-register) .auth-side{display:flex;flex:1;border:1px solid #41483f;border-radius:24px;align-items:stretch;max-width:650px;background:radial-gradient(ellipse at 80% 15%,#52634b66,transparent 55%),#222a24;overflow:hidden;padding:0}
.account-story{padding:clamp(28px,4vw,68px);display:flex;flex-direction:column;justify-content:space-between;gap:40px;width:100%;position:relative}
.account-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:#d4ba92}
.account-story h2{font-family:Georgia,serif;font-weight:400;font-size:clamp(40px,4.2vw,68px);letter-spacing:-2px;line-height:1.05;max-width:510px;margin:24px 0}
.account-story>div>p{font-size:16px;color:#bac5b8;line-height:1.8;max-width:390px}
.account-emblem{width:170px;height:170px;display:grid;place-items:center;border:1px solid #9caa8e55;transform:rotate(-12deg);border-radius:40px;margin:25px auto;background:linear-gradient(145deg,#b9c69c22,transparent);box-shadow:20px 20px 0 #a5b88a08}
.account-emblem span{transform:rotate(12deg);font-family:Georgia,serif;font-size:72px;color:#e7d5b4}
.account-story-foot{border-top:1px solid #a3b39733;padding-top:22px;display:flex;justify-content:space-between;gap:20px;color:#bdc8b8;font-size:12px}
:is(#page-login,#page-register,#page-dashboard,#page-admin) .input-wrap{background:#111516;border:1px solid #3b4343;border-radius:10px;box-shadow:none}
:is(#page-login,#page-register,#page-dashboard,#page-admin) input{min-width:0}
:is(#page-login,#page-register,#page-dashboard,#page-admin) .input-wrap:focus-within{border-color:#edbd76;box-shadow:0 0 0 3px #edbd7620}
:is(#page-login,#page-register,#page-dashboard,#page-admin) .btn-primary{background:var(--grad-gold);color:#211a10;border:1px solid #edbd76;border-radius:9px;box-shadow:none;text-shadow:none}
:is(#page-login,#page-register,#page-dashboard,#page-admin) .btn-primary:hover{filter:brightness(1.08);transform:none;box-shadow:none}
:is(#page-login,#page-register,#page-dashboard,#page-admin) :focus-visible{outline:2px solid #edbd76;outline-offset:4px}
:is(#page-login,#page-register) .brand-top,:is(#page-dashboard,#page-admin) .brand-top{color:#f4f0e7}
:is(#page-login,#page-register,#page-dashboard,#page-admin) .brand-accent{color:#edbd76;background:none;-webkit-text-fill-color:#edbd76;text-shadow:none}
:is(#page-login,#page-register) .auth-switch{color:#a9b1af;text-align:left}
:is(#page-login,#page-register) .auth-switch a{color:#edbd76}
:is(#page-login,#page-register) [id$='recaptcha']{background:none;padding:0;border:0;border-radius:0;min-height:0}
:is(#page-dashboard,#page-admin) .sidebar{background:#131617;border-right:1px solid #303637;box-shadow:none}
:is(#page-dashboard,#page-admin) .sb-head{padding:32px 24px;border-bottom:1px solid #303637}
:is(#page-dashboard,#page-admin) .sb-link{border-radius:8px;color:#a9b1af;margin-bottom:5px}
:is(#page-dashboard,#page-admin) .sb-link.active{background:#edbd7614;color:#edbd76;border-color:#edbd7633;box-shadow:none}
:is(#page-dashboard,#page-admin) .sb-link:hover{background:#252a2b;color:#f4f0e7}
:is(#page-dashboard,#page-admin) .main-area{min-width:0;background:#101213;padding:42px;min-height:100svh}
:is(#page-dashboard,#page-admin) .main-header{padding-bottom:26px;border-bottom:1px solid #303637}
:is(#page-dashboard,#page-admin) .main-header h1{font-size:30px;letter-spacing:-1px;text-shadow:none}
:is(#tab-settings,#tab-credits,#tab-admin-users,#tab-admin-multi-accounts,#tab-admin-audit,#tab-admin-transactions,#tab-admin-settings,#tab-admin-revenue) .panel{background:#181c1d;border:1px solid #343b3b;box-shadow:none;border-radius:16px}
:is(#page-dashboard,#page-admin) .panel-head{border-bottom-color:#343b3b;padding:22px 24px}
:is(#page-dashboard,#page-admin) .tbl-wrap{overflow-x:auto}
:is(#page-dashboard,#page-admin) th{background:#1e2324;color:#acb8b4}
:is(#page-dashboard,#page-admin) td{border-color:#303637}
#tab-settings.active{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:24px}
#tab-settings>.panel{margin-top:0!important}
#tab-settings .form-area{padding:26px;max-width:none}
.account-policy{padding:14px 16px;border:1px solid #edbd7633;border-radius:10px;background:#edbd7609;color:#c8c8bc;font-size:13px;line-height:1.6;margin:18px 0}
.account-section-intro{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:4px 0 28px}
.account-section-intro h2{font-family:Georgia,serif;font-size:34px;font-weight:400;letter-spacing:-.8px;line-height:1.2;margin:10px 0}
.account-section-intro p{max-width:580px;color:var(--text-2);font-size:14px;line-height:1.7}
.account-section-note{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;color:#b2bcae;border:1px solid #3b453a;border-radius:30px;padding:9px 14px;white-space:nowrap}
:is(#tab-admin-users,#tab-admin-multi-accounts,#tab-admin-audit,#tab-admin-transactions,#tab-admin-settings,#tab-admin-revenue) .panel-head h3{font-size:15px;letter-spacing:0}
:is(#tab-admin-users,#tab-admin-multi-accounts,#tab-admin-audit,#tab-admin-transactions) .dtbl{font-size:13px;min-width:760px}
:is(#tab-admin-users,#tab-admin-multi-accounts,#tab-admin-audit,#tab-admin-transactions) .dtbl th{padding:16px 20px;letter-spacing:1px;font-size:10px;border-color:#303637}
:is(#tab-admin-users,#tab-admin-multi-accounts,#tab-admin-audit,#tab-admin-transactions) .dtbl td{padding:18px 20px}
:is(#tab-admin-users,#tab-admin-multi-accounts,#tab-admin-audit,#tab-admin-transactions) .dtbl tr:hover td{background:#ffffff03}
:is(#page-dashboard,#page-admin) .search-input{background:#111516;color:#f4f0e7;border:1px solid #3b4343;border-radius:9px;padding:12px 14px;max-width:100%;box-sizing:border-box}
:is(#page-dashboard,#page-admin) .sb-avatar{background:#334335;color:#dce7d6;border:1px solid #63765b44;box-shadow:none}
:is(#page-dashboard,#page-admin) .sb-user{background:#161b19;border-top:1px solid #303637}
:is(#tab-settings,#tab-admin-settings) .field label{font-size:11px;text-transform:none;letter-spacing:.2px}
:is(#tab-settings,#tab-admin-settings) .field input{min-height:24px}
:is(#tab-admin-users,#tab-admin-multi-accounts,#tab-admin-audit,#tab-admin-transactions) .empty-state{padding:64px 24px;color:var(--text-2);border:0}
:is(#tab-settings,#tab-admin-settings,#tab-admin-users) .btn-ghost{border:1px solid #3b4343;background:#242a29;color:#dbdfd6;box-shadow:none}
:is(#page-dashboard,#page-admin) .panel:before{display:none}
@media(max-width:768px){.account-section-intro{align-items:start;flex-direction:column;gap:14px}.account-section-intro h2{font-size:28px}.account-section-note{font-size:10px}:is(#tab-admin-users,#tab-admin-settings) .panel-head{flex-wrap:wrap;gap:14px}:is(#page-dashboard,#page-admin) .search-input{width:100%}}
@media(max-width:1050px){:is(#page-dashboard,#page-admin) .main-area{padding:24px}#tab-settings.active{grid-template-columns:1fr}:is(#page-login,#page-register) .auth-container{padding:20px;gap:12px}.account-story{padding:32px}.account-story h2{font-size:44px}}
@media(max-width:768px){:is(#page-login,#page-register) .auth-container{padding:24px 20px;min-height:100svh}:is(#page-login,#page-register) .auth-form-wrap{padding:28px 0}:is(#page-login,#page-register) .auth-side{display:none}:is(#page-login,#page-register) .auth-logo{margin-bottom:48px}:is(#page-login,#page-register) .auth-card-head h1{font-size:34px}:is(#page-dashboard,#page-admin) .main-area{padding:24px 16px;margin-left:0}:is(#page-dashboard,#page-admin) .main-header h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){:is(#page-login,#page-register,#page-dashboard,#page-admin) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Restore original tokens outside the account redesign; repair inherited contrast regression. */
#tab-overview,#tab-jobs,#tab-engine,#tab-logs,#tab-admin-overview,#tab-admin-jobs,#tab-admin-engine,#tab-admin-toplist-health,#tab-admin-live-test,#tab-admin-scrappey {

    /* Surfaces – deep cyber-space */
    --bg-0: #eef3fb;
    --bg-1: #ffffff;
    --bg-2: #f4f8fd;
    --bg-3: #e8f0fb;
    --bg-4: #dbe7f7;
    --bg-hover: #e2edfb;
    --bg-glass: rgba(248,250,253,.78);

    /* Borders – cyan-tinted */
    --border: rgba(37,99,235,.07);
    --border-subtle: rgba(37,99,235,.04);
    --border-vivid: rgba(37,99,235,.14);
    --border-gold: rgba(37,99,235,.28);
    --border-neon: rgba(37,99,235,.5);

    /* Text */
    --text-0: #0f2444;
    --text-1: #3d5480;
    --text-2: #5f76a0;
    --text-3: #93a4c4;

    /* Cyan – primary neon */
    --gold: #2563eb;
    --gold-light: #60a5fa;
    --gold-dark: #1d4ed8;
    --gold-dim: rgba(37,99,235,.08);
    --gold-glow: rgba(37,99,235,.25);

    /* True gold accent (brand heritage) */
    --true-gold: #ffd700;
    --true-gold-dim: rgba(255,215,0,.08);

    /* Secondary accents */
    --violet: #8b5cf6;
    --violet-dim: rgba(139,92,246,.10);
    --blue: #3b82f6;
    --blue-dim: rgba(59,130,246,.10);
    --emerald: #059669;
    --emerald-dim: rgba(5,150,105,.10);
    --amber: #ffaa00;
    --amber-dim: rgba(255,170,0,.10);
    --rose: #ff3355;
    --rose-dim: rgba(255,51,85,.10);
    --cyan: #2563eb;
    --cyan-dim: rgba(37,99,235,.10);
    --magenta: #ff2d78;
    --magenta-dim: rgba(255,45,120,.10);

    /* Gradients */
    --grad-gold: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #60a5fa 100%);
    --grad-brand: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #38bdf8 100%);
    --grad-shine: linear-gradient(120deg, #2563eb, #8b5cf6, #ff2d78, #2563eb);
    --grad-hero: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37,99,235,.06), transparent 70%);
    --grad-admin: linear-gradient(135deg, #ff2d78 0%, #8b5cf6 100%);
    --grad-cyber: linear-gradient(135deg, #2563eb 0%, #8b5cf6 50%, #ff2d78 100%);
    --grad-neon-border: conic-gradient(from var(--border-angle), #2563eb, #8b5cf6, #ff2d78, #059669, #2563eb);

    /* Radii */
    --r-xs: 4px;
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15,36,68,.06);
    --shadow: 0 6px 24px rgba(15,36,68,.08);
    --shadow-lg: 0 18px 48px rgba(15,36,68,.14);
    --shadow-gold: 0 0 40px rgba(37,99,235,.06);
    --shadow-glow: 0 0 60px rgba(37,99,235,.05);
    --shadow-neon: 0 0 20px rgba(37,99,235,.15), 0 0 60px rgba(37,99,235,.05);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Transition */
    --ease: cubic-bezier(.4,0,.2,1);
    --ease-out: cubic-bezier(0,.5,.25,1);
    --dur: .22s;
color:var(--text-0);
}
