@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn%5Bwght%5D.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0c1016;
  --surface: rgba(17, 22, 31, 0.78);
  --surface-2: rgba(25, 31, 43, 0.9);
  --surface-solid: #121822;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f5;
  --text-2: #b4bccc;
  --muted: #7d879b;
  --accent: #ff8a00;
  --accent-2: #ffb703;
  --accent-glow: rgba(255, 138, 0, 0.35);
  --cyan: #3ec6ff;
  --green: #2fd67b;
  --red: #ff4d5e;
  --yellow: #ffc145;
  --series-1: #3987e5;
  --series-2: #d95926;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(255, 138, 0, 0.13), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(62, 198, 255, 0.09), transparent 60%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .6em; }
code, .mono, .ltr { direction: ltr; unicode-bidi: isolate; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }
::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- Boot ---------- */
.boot { display: grid; place-items: center; height: 100vh; }
.boot-logo { width: 64px; height: 64px; background: url('/img/logo.svg') center/contain no-repeat; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(12,16,22,.92), rgba(9,12,17,.96));
  border-inline-end: 1px solid var(--border);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
.brand-logo { width: 40px; height: 40px; background: url('/img/logo.svg') center/contain no-repeat; filter: drop-shadow(0 0 14px var(--accent-glow)); }
.brand-name { font-weight: 900; font-size: 1.08rem; line-height: 1.2; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .12em; direction: ltr; text-align: right; }
.nav-title { font-size: .72rem; color: var(--muted); padding: 14px 12px 4px; font-weight: 700; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2);
  font-weight: 600; transition: .18s; position: relative;
}
.nav a:hover { background: rgba(255,255,255,.04); color: var(--text); text-decoration: none; }
.nav a.active { background: linear-gradient(90deg, rgba(255,138,0,.04), rgba(255,138,0,.16)); color: #fff; }
.nav a.active::before { content: ''; position: absolute; inset-inline-start: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav .ico { width: 22px; text-align: center; font-size: 1.05rem; }
.nav .badge { margin-inline-start: auto; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; font-size: .75rem; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; background: rgba(7,9,13,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.topbar .title { font-weight: 800; font-size: 1.05rem; }
.topbar .spacer { flex: 1; }
.btn.menu-btn { display: none; }
.content { padding: 26px 28px 60px; animation: fadeUp .25s ease; max-width: 1500px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 4px 0 0; }

.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: .85rem; }
.chip.wallet { color: var(--accent-2); }
button.chip { cursor: pointer; color: var(--text); font-family: inherit; }
button.chip:hover { border-color: var(--accent); }
.chip.active { border-color: var(--accent); background: rgba(255,138,0,.14); color: var(--accent-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #000; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.user-menu { display: flex; align-items: center; gap: 10px; cursor: pointer; }

/* ---------- Cards & grid ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px); position: relative;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head .sub { color: var(--muted); font-size: .82rem; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mt { margin-top: 16px; }
.right { margin-inline-start: auto; }
.hidden { display: none !important; }

/* ---------- Stat tiles ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 1.9rem; font-weight: 900; line-height: 1.15; }
.stat .value small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.stat .foot { font-size: .8rem; color: var(--text-2); }
.stat .glow { position: absolute; inset-inline-end: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; filter: blur(40px); opacity: .35; }
.meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .5s; }
.meter.ok > i { background: linear-gradient(90deg, #5be3a0, var(--green)); }
.meter.warn > i { background: linear-gradient(90deg, #ffd56b, var(--yellow)); }
.meter.danger > i { background: linear-gradient(90deg, #ff8a95, var(--red)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); padding: 9px 16px; border-radius: 12px; font: inherit; font-weight: 700;
  cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #111; border-color: transparent; box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn.primary:hover { box-shadow: 0 12px 30px -8px var(--accent-glow); }
.btn.success { background: rgba(47,214,123,.14); color: var(--green); border-color: rgba(47,214,123,.35); }
.btn.danger { background: rgba(255,77,94,.12); color: var(--red); border-color: rgba(255,77,94,.35); }
.btn.warn { background: rgba(255,193,69,.12); color: var(--yellow); border-color: rgba(255,193,69,.35); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 11px; font-size: .82rem; border-radius: 9px; }
.btn.icon { padding: 7px 10px; }
.btn.block { width: 100%; }
.btn .spin, .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

/* ---------- Badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: rgba(255,255,255,.07); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: rgba(47,214,123,.13); color: var(--green); }
.badge.warn { background: rgba(255,193,69,.13); color: var(--yellow); }
.badge.danger { background: rgba(255,77,94,.13); color: var(--red); }
.badge.info { background: rgba(62,198,255,.13); color: var(--cyan); }
.badge.accent { background: rgba(255,138,0,.15); color: var(--accent-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.live { box-shadow: 0 0 0 0 currentColor; animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,214,123,.6); } 100% { box-shadow: 0 0 0 9px rgba(47,214,123,0); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label-text { font-size: .83rem; font-weight: 700; color: var(--text-2); }
.field .hint { font-size: .75rem; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: rgba(0,0,0,.28); border: 1px solid var(--border-strong); border-radius: 11px;
  padding: 9px 12px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,0,.18); }
input::placeholder, textarea::placeholder { color: #5b6477; }
textarea { min-height: 120px; resize: vertical; font-family: var(--mono); direction: ltr; font-size: .85rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 16px 55%, 11px 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 30px; }
input[type=number], input.ltr { direction: ltr; text-align: left; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: .88rem; }
.switch input { display: none; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; transition: .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { right: 21px; }
.switch.tri .track { background: rgba(255,255,255,.06); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: right; font-size: .76rem; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.025); }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; }
.empty .big { font-size: 2.4rem; display: block; margin-bottom: 6px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; background: rgba(0,0,0,.25); padding: 5px; border-radius: 14px; border: 1px solid var(--border); overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
.tabs a { padding: 8px 15px; border-radius: 10px; color: var(--text-2); font-weight: 700; white-space: nowrap; font-size: .9rem; }
.tabs a:hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,.04); }
.tabs a.active { background: var(--surface-2); color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* ---------- Server cards ---------- */
.srv-card { padding: 0; overflow: hidden; transition: transform .2s, border-color .2s; cursor: pointer; }
.srv-card:hover { transform: translateY(-3px); border-color: rgba(255,138,0,.4); }
.map-art {
  height: 116px; position: relative; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--map-bg); overflow: hidden;
}
.map-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,13,19,.95)); }
.map-art .map-word { position: absolute; left: -6px; bottom: -18px; font-size: 4.2rem; font-weight: 900; letter-spacing: -.04em; color: rgba(255,255,255,.09); direction: ltr; text-transform: uppercase; font-family: Impact, 'Arial Black', var(--font); white-space: nowrap; }
.map-art > * { position: relative; z-index: 1; }
.srv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.srv-name { font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); }
.srv-meta b { color: var(--text); }
.players-bar { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.players-bar .meter { flex: 1; }

.hero {
  border-radius: 22px; padding: 26px; position: relative; overflow: hidden; background: var(--map-bg); border: 1px solid var(--border);
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(8,10,15,.2), rgba(8,10,15,.92) 75%); }
.hero > * { position: relative; z-index: 1; }
.hero .map-word { position: absolute; z-index: 0; left: 10px; bottom: -30px; font-size: 7rem; font-weight: 900; color: rgba(255,255,255,.08); direction: ltr; text-transform: uppercase; font-family: Impact, 'Arial Black', var(--font); }
.hero h1 { font-size: 1.8rem; }
.hero-grid { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.connect-box { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.45); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px 6px 6px 12px; direction: ltr; }
.connect-box code { background: none; font-size: .92rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- Console ---------- */
.console {
  background: #05070a; border: 1px solid var(--border); border-radius: 14px; height: 520px; overflow-y: auto; padding: 14px 16px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-word;
  box-shadow: inset 0 0 40px rgba(0,0,0,.6);
}
.console .l { color: #b9c1d0; }
.console .l.err { color: #ff7b86; }
.console .l.warn { color: #ffd166; }
.console .l.ok { color: #6ee7a8; }
.console .l.chat { color: #7cc8ff; }
.console .l.cmd { color: var(--accent-2); }
.console .l.kill { color: #c9a7ff; }
.console-input { display: flex; gap: 8px; margin-top: 10px; direction: ltr; }
.console-input input { font-family: var(--mono); }
.console-input .prompt { display: grid; place-items: center; padding: 0 12px; background: rgba(255,138,0,.12); color: var(--accent); border-radius: 11px; font-family: var(--mono); font-weight: 800; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.quick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 13px; text-align: right;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); cursor: pointer; color: var(--text); font: inherit; transition: .15s;
}
.quick:hover { border-color: var(--accent); background: rgba(255,138,0,.07); transform: translateY(-2px); }
.quick .qi { font-size: 1.3rem; }
.quick .qt { font-weight: 700; font-size: .87rem; }
.quick code { font-size: .7rem; color: var(--muted); background: none; padding: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Plans / store ---------- */
.plan-card { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--plan); overflow: hidden; }
.plan-card.featured { box-shadow: 0 0 0 1px var(--plan), 0 30px 60px -25px var(--plan); }
.plan-card .ribbon { position: absolute; top: 14px; left: 14px; }
.plan-price { font-size: 2rem; font-weight: 900; }
.plan-price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 900; margin-inline-end: 8px; }
.feature-list li.no { color: var(--muted); text-decoration: line-through; }
.feature-list li.no::before { content: '✕'; color: var(--red); }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pick { border: 1px solid var(--border); border-radius: 13px; overflow: hidden; cursor: pointer; transition: .15s; background: rgba(255,255,255,.02); }
.pick:hover { border-color: rgba(255,255,255,.3); }
.pick.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,138,0,.35); }
.pick .map-art { height: 70px; padding: 8px 10px; }
.pick .map-art .map-word { font-size: 2.4rem; bottom: -10px; }
.pick .pick-title { padding: 6px 10px; font-weight: 700; font-size: .85rem; }
.pick .pick-sub { padding: 0 10px 8px; font-size: .74rem; color: var(--muted); }

/* ---------- Skins ---------- */
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; padding: 2px; }
.skin { border: 1px solid var(--border); border-radius: 12px; padding: 8px; background: rgba(255,255,255,.02); cursor: pointer; transition: .15s; border-bottom: 3px solid var(--rarity); }
.skin:hover { transform: translateY(-2px); background: rgba(255,255,255,.05); }
.skin.selected { box-shadow: 0 0 0 2px var(--accent); }
.skin img { width: 100%; height: 80px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.skin .sn { font-size: .76rem; font-weight: 700; line-height: 1.4; direction: ltr; text-align: left; }

/* ---------- Modal & toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(3,5,8,.72); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fadeUp .18s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 20px; padding: 22px; box-shadow: 0 40px 80px -20px #000; }
.modal.wide { width: min(900px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-start; margin-top: 20px; flex-wrap: wrap; }
.x-btn { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
#toasts { position: fixed; bottom: 20px; left: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast { background: var(--surface-solid); border: 1px solid var(--border-strong); border-inline-start: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; min-width: 260px; max-width: 420px; box-shadow: var(--shadow); animation: fadeUp .2s ease; font-weight: 600; }
.toast.ok { border-inline-start-color: var(--green); }
.toast.err { border-inline-start-color: var(--red); }
.toast.warn { border-inline-start-color: var(--yellow); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { position: relative; overflow: hidden; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(700px 500px at 70% 30%, rgba(255,138,0,.28), transparent 60%), radial-gradient(600px 400px at 20% 80%, rgba(62,198,255,.18), transparent 60%), #06080c; }
.auth-hero .big-word { position: absolute; top: 40px; left: -20px; font-size: 13rem; font-weight: 900; color: rgba(255,255,255,.04); font-family: Impact, 'Arial Black', sans-serif; direction: ltr; line-height: .9; }
.auth-hero h1 { font-size: 2.6rem; line-height: 1.3; }
.auth-hero h1 span { background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero ul { color: var(--text-2); padding: 0; list-style: none; display: grid; gap: 8px; margin-top: 20px; }
.auth-hero li::before { content: '◆'; color: var(--accent); margin-inline-end: 10px; font-size: .7rem; }
.auth-panel { display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: min(400px, 100%); }
.crosshair { position: absolute; right: 60px; top: 80px; width: 180px; height: 180px; border: 2px solid rgba(255,138,0,.4); border-radius: 50%; animation: spin 20s linear infinite; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; background: rgba(255,138,0,.5); }
.crosshair::before { left: 50%; top: -20px; bottom: -20px; width: 2px; }
.crosshair::after { top: 50%; left: -20px; right: -20px; height: 2px; }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: rgba(255,255,255,.06); }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .tip { position: absolute; pointer-events: none; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px 10px; font-size: .78rem; white-space: nowrap; box-shadow: var(--shadow); transform: translate(-50%, -110%); z-index: 5; }
.chart .tip b { display: block; color: var(--text); }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 1.4rem; }
.ring .ring-val small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; text-align: center; }

.alert { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .9rem; border: 1px solid; }
.alert.danger { background: rgba(255,77,94,.08); border-color: rgba(255,77,94,.3); color: #ffb3ba; }
.alert.warn { background: rgba(255,193,69,.08); border-color: rgba(255,193,69,.3); color: #ffe1a1; }
.alert.info { background: rgba(62,198,255,.07); border-color: rgba(62,198,255,.25); color: #bfe9ff; }
.progress-lg { height: 14px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress-lg > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); background-size: 200% 100%; animation: shimmer 2s linear infinite; transition: width .4s; }
@keyframes shimmer { to { background-position: -200% 0; } }

.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.file-row:hover { background: rgba(255,255,255,.04); }
.breadcrumbs { direction: ltr; font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-inline-start: 0; top: 0; z-index: 60; width: 270px; transform: translateX(100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: -30px 0 60px rgba(0,0,0,.6); }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 50px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .hero { padding: 18px; }
  .hero .map-word { font-size: 4rem; }
  .console { height: 400px; }
  .topbar .chip.wallet .lbl, .user-menu .small, .user-menu .avatar { display: none; }
  .topbar { gap: 8px; }
  .topbar .title { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .connect-box { flex-wrap: wrap; direction: ltr; }
  .connect-box code { word-break: break-all; }
}

.save-bar { position: sticky; bottom: 12px; z-index: 5; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
