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

:root {
  --bg:          #05070f;
  --surface:     #0c1220;
  --card:        #101827;
  --card-2:      #151f30;
  --border:      #1a2840;
  --border-2:    #243554;

  --primary:     #00d4ff;
  --primary-dim: rgba(0,212,255,0.12);
  --purple:      #7c5cfc;
  --purple-dim:  rgba(124,92,252,0.12);

  --green:       #00e676;
  --green-dim:   rgba(0,230,118,0.12);
  --red:         #ff3b4e;
  --red-dim:     rgba(255,59,78,0.12);
  --yellow:      #ffb800;
  --yellow-dim:  rgba(255,184,0,0.12);

  --text:        #e2eeff;
  --text-2:      #8896b3;
  --text-3:      #3d4f6b;

  --gradient:    linear-gradient(135deg, #00d4ff, #7c5cfc);
  --sidebar-w:   240px;
  --topbar-h:    64px;
  --radius:      12px;
  --radius-sm:   8px;
  --ease:        0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ── Typography ───────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted   { color: var(--text-2); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-yellow  { color: var(--yellow); }
.text-primary { color: var(--primary); }

/* ── Layout ───────────────────────────────────────── */
.page-app { display: flex; min-height: 100vh; }

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-body { flex: 1; padding: 24px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-col      { flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* ── Navbar (landing) ─────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(5,7,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.4rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 0.9rem; font-weight: 500; transition: color var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; }

/* ── Sidebar ──────────────────────────────────────── */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 50;
}
.sidebar-logo {
  height: var(--topbar-h);
  padding: 0 20px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 1.3rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  flex-shrink: 0;
}
.sidebar-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.s-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.875rem; font-weight: 500;
  transition: all var(--ease); cursor: pointer;
}
.s-link:hover  { background: var(--card); color: var(--text); }
.s-link.active { background: var(--primary-dim); color: var(--primary); }
.s-link svg    { width: 17px; height: 17px; flex-shrink: 0; }
.s-sep { height: 1px; background: var(--border); margin: 8px 12px; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.avatar.lg { width: 44px; height: 44px; font-size: 1rem; }
.user-name  { font-size: 0.85rem; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-label { font-size: 0.72rem; color: var(--text-2); }

/* ── Topbar (app pages) ───────────────────────────── */
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.topbar-title { font-size: 1.05rem; font-weight: 700; }

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
}
.stat-label  { font-size: 0.78rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-value  { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.stat-change { font-size: 0.8rem; margin-top: 6px; }
.stat-icon   { position: absolute; top: 16px; right: 16px; font-size: 1.6rem; opacity: 0.15; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--ease); white-space: nowrap;
}
.btn-primary  { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,212,255,0.25); }
.btn-outline  { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn-outline:hover { background: var(--card-2); }
.btn-ghost    { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--card); }
.btn-danger   { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,59,78,0.2); }
.btn-danger:hover { background: rgba(255,59,78,0.2); }
.btn-success  { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,230,118,0.2); }
.btn-success:hover { background: rgba(0,230,118,0.2); }
.btn-sm  { padding: 6px 13px; font-size: 0.8rem; }
.btn-lg  { padding: 13px 28px; font-size: 0.95rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── Forms ────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.875rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.form-input::placeholder { color: var(--text-3); }
select.form-input { cursor: pointer; }
.form-hint  { font-size: 0.77rem; color: var(--text-2); margin-top: 4px; }
.form-error { font-size: 0.77rem; color: var(--red); margin-top: 4px; }
.input-group { position: relative; }
.input-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
}

/* ── Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px;
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-green  { background: var(--green-dim);  color: var(--green); }
.badge-red    { background: var(--red-dim);    color: var(--red); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); }
.badge-blue   { background: var(--primary-dim); color: var(--primary); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-gray   { background: rgba(255,255,255,0.06); color: var(--text-2); }

/* ── Table ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 16px; text-align: left;
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px; font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); cursor: default; }

/* ── Tabs ─────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 22px; gap: 2px; }
.tab {
  padding: 10px 20px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Coin ─────────────────────────────────────────── */
.coin-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.coin-icon.sm { width: 28px; height: 28px; font-size: 0.68rem; }

/* ── Toast ────────────────────────────────────────── */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  min-width: 270px; max-width: 340px;
  background: var(--card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 13px 16px;
  display: flex; align-items: flex-start; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: slideIn 0.25s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--primary); }
.toast-icon { font-size: 0.9rem; margin-top: 1px; flex-shrink: 0; }
.toast-msg  { font-size: 0.85rem; line-height: 1.4; }
@keyframes slideIn  { from { transform: translateX(110%); opacity:0; } to { transform: translateX(0); opacity:1; } }
@keyframes slideOut { to   { transform: translateX(110%); opacity:0; } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }

/* ── Auth pages ───────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0,212,255,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(124,92,252,0.07) 0%, transparent 50%),
    var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}
.auth-logo     { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: var(--text-2); font-size: 0.875rem; margin-bottom: 28px; }
.auth-footer   { text-align: center; margin-top: 20px; font-size: 0.84rem; color: var(--text-2); }
.auth-footer a { color: var(--primary); }
.divider       { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Landing ──────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: flex; align-items: center; gap: 60px; }
.hero-copy  { flex: 1; }
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 480px; margin-bottom: 32px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual  { flex: 1; display: flex; justify-content: center; }

/* Floating card in hero */
.float-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-coin-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mini-chart { height: 60px; }

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.ticker-track {
  display: flex; gap: 48px;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 0.85rem; font-weight: 500; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 80px 0; }
.section-hd { margin-bottom: 48px; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.section-sub   { color: var(--text-2); font-size: 0.95rem; max-width: 500px; }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.fi-blue   { background: var(--primary-dim); }
.fi-purple { background: var(--purple-dim); }
.fi-green  { background: var(--green-dim); }
.feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.feature-text  { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
  color: var(--text-2); font-size: 0.84rem;
}
.footer .logo { display: inline-block; margin-bottom: 8px; }

/* ── Chart page ───────────────────────────────────── */
.chart-header {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.price-big     { font-size: 2rem; font-weight: 800; }
.price-change  { font-size: 0.9rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.chart-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.chart-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.tf-btn {
  padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; background: transparent; border: none;
  color: var(--text-2); transition: all var(--ease);
}
.tf-btn:hover  { color: var(--text); background: var(--card-2); }
.tf-btn.active { background: var(--primary-dim); color: var(--primary); }
#tv-chart      { height: 420px; }

/* ── Wallet ───────────────────────────────────────── */
.asset-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.asset-row:last-child { border-bottom: none; }
.asset-row:hover { background: rgba(255,255,255,0.02); }
.asset-info { flex: 1; }
.asset-name   { font-size: 0.875rem; font-weight: 600; }
.asset-symbol { font-size: 0.78rem; color: var(--text-2); }
.asset-amount { text-align: right; }
.asset-qty    { font-size: 0.9rem; font-weight: 700; }
.asset-usd    { font-size: 0.78rem; color: var(--text-2); }

/* ── Loading / Empty ──────────────────────────────── */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { padding: 40px; display: flex; justify-content: center; align-items: center; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--text-2); }
.empty-state .ei { font-size: 2.5rem; margin-bottom: 10px; }
.empty-state p { font-size: 0.875rem; }

/* ── Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,7,15,.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close {
  cursor: pointer; color: var(--text-2); font-size: 1.1rem; line-height: 1;
  padding: 4px 6px; border-radius: 4px; transition: color var(--ease);
}
.modal-close:hover { color: var(--text); }

/* Coin picker grid */
.coin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.coin-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all 0.15s ease; text-align: center;
}
.coin-btn:hover { border-color: var(--border-2); background: var(--card-2); }
.coin-btn.selected { border-color: var(--primary); background: var(--primary-dim); }
.coin-btn .cb-sym  { font-size: .75rem; font-weight: 800; }
.coin-btn .cb-name { font-size: .62rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* ── Admin ────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; height: calc(100vh - var(--topbar-h) - 48px); }
.user-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.user-list-head { padding: 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.user-list-body { flex: 1; overflow-y: auto; }
.user-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.user-item:last-child { border-bottom: none; }
.user-item:hover  { background: rgba(255,255,255,0.03); }
.user-item.active { background: var(--primary-dim); }
.user-item-name  { font-size: 0.875rem; font-weight: 600; }
.user-item-email { font-size: 0.75rem; color: var(--text-2); }

.user-detail { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow-y: auto; }
.user-detail-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }

/* ── Hamburger & Sidebar Overlay ──────────────────── */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--ease);
  flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--card-2); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,7,15,.72);
  z-index: 49;
}
.sidebar-overlay.active { display: block; }

/* ── Responsive — Tablet (≤ 900px) ───────────────── */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; height: auto; }
  .user-detail  { min-height: 400px; }
  .grid-4       { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive — Mobile (≤ 768px) ───────────────── */
@media (max-width: 768px) {
  /* Show hamburger */
  .hamburger-btn { display: flex; align-items: center; justify-content: center; }

  /* Sidebar slides in from left */
  .sidebar { transform: translateX(-100%); transition: transform 0.28s ease; }
  .sidebar.open { transform: translateX(0); }

  /* Main layout */
  .main-content { margin-left: 0; }
  .topbar       { padding: 0 16px; }
  .page-body    { padding: 16px; }

  /* Grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4          { grid-template-columns: repeat(2, 1fr); }

  /* Cards & spacing */
  .card  { padding: 16px; }
  .mt-6  { margin-top: 16px; }
  .mb-6  { margin-bottom: 16px; }

  /* Stat */
  .stat-value { font-size: 1.4rem; }

  /* Tabs */
  .tab { padding: 10px 14px; font-size: .82rem; }

  /* Asset rows */
  .asset-row { padding: 10px 12px; gap: 10px; }

  /* Toast */
  #toast-container        { top: 12px; right: 12px; left: 12px; }
  .toast                  { min-width: unset; max-width: 100%; }

  /* Landing */
  .nav-links  { display: none; }
  .hero       { padding: 60px 0 48px; min-height: auto; }
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.2rem; }
  .hero-sub   { font-size: .95rem; }
  .section    { padding: 56px 0; }

  /* Auth */
  .auth-card  { padding: 28px 20px; }
}

/* ── Responsive — Small phone (≤ 480px) ──────────── */
@media (max-width: 480px) {
  .page-body      { padding: 12px; }
  .topbar         { padding: 0 12px; height: auto; min-height: var(--topbar-h);
                    flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .topbar-title   { font-size: .9rem; }

  .grid-4         { gap: 10px; }
  .stat-card      { padding: 14px 16px; }
  .stat-value     { font-size: 1.15rem; }
  .stat-label     { font-size: .68rem; }

  .card           { padding: 12px; }
  .auth-card      { padding: 24px 16px; }

  .section        { padding: 44px 0; }
  .section-title  { font-size: 1.55rem; }
  .hero-title     { font-size: 1.8rem; }

  /* Asset row buttons wrap below on tiny screens */
  .asset-row      { flex-wrap: wrap; }
  .asset-row > div:last-child { width: 100%; justify-content: flex-end; }
}
