@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0a08;
  --bg-soft: #11100d;
  --surface: rgba(26, 23, 17, .82);
  --surface-solid: #1a1711;
  --surface-raised: #242017;
  --text: #f5f1e6;
  --muted: #aaa496;
  --faint: #716c60;
  --line: rgba(234, 194, 92, .16);
  --line-strong: rgba(234, 194, 92, .34);
  --gold-1: #fff0a8;
  --gold-2: #e5b846;
  --gold-3: #9b611a;
  --gold-glow: rgba(222, 171, 50, .18);
  --success: #6dc49b;
  --danger: #f08080;
  --warning: #eabf5f;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --radius: 22px;
  --radius-sm: 14px;
  --header-height: 74px;
  --sidebar-width: 260px;
  --font-display: "Manrope", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1e7;
  --bg-soft: #ede7da;
  --surface: rgba(255, 253, 247, .88);
  --surface-solid: #fffdf7;
  --surface-raised: #fff;
  --text: #1b1915;
  --muted: #6f685d;
  --faint: #958c7d;
  --line: rgba(123, 82, 17, .14);
  --line-strong: rgba(123, 82, 17, .28);
  --gold-glow: rgba(201, 143, 25, .13);
  --shadow: 0 24px 70px rgba(80, 56, 10, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, var(--gold-glow), transparent 32rem),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-150%);
  background: var(--gold-2); color: #17120a; padding: 10px 16px; border-radius: 9px;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

.boot-screen {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--muted);
}
.brand-mark {
  position: relative; display: grid; place-items: center; width: 43px; height: 43px;
  border: 1px solid var(--line-strong); transform: rotate(30deg); border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,240,168,.12), rgba(155,97,26,.04));
  box-shadow: inset 0 0 24px rgba(225, 176, 63, .07);
}
.brand-mark::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: 8px; }
.brand-mark span {
  transform: rotate(-30deg); font: 700 17px/1 Georgia, serif;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: transparent; background-clip: text; -webkit-background-clip: text;
}
.brand-mark--large { width: 72px; height: 72px; border-radius: 19px; animation: breathe 2.8s ease-in-out infinite; }
.brand-mark--large span { font-size: 28px; }

.au-symbol {
  position: relative; display: inline-grid; place-items: center; width: 1.75em; height: 1.55em;
  vertical-align: -.35em; font: 700 .72em/1 Georgia, serif; color: #2a1a06;
  border-radius: 50%; background: linear-gradient(145deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 3px 10px rgba(155,97,26,.2);
}
.au-symbol::before, .au-symbol::after {
  content: ""; position: absolute; left: 22%; width: 56%; height: 1px; background: currentColor; opacity: .8;
}
.au-symbol::before { top: 49%; }
.au-symbol::after { top: 57%; }
.au-symbol--lg { width: 2.25em; height: 2em; font-size: .7em; }

.public-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 76px);
  background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.public-header.scrolled { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font: 700 20px/1 var(--font-display); letter-spacing: .02em; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .btn {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; text-decoration: none; transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.icon-btn { width: 42px; height: 42px; border-radius: 50%; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.btn { min-height: 44px; padding: 10px 17px; border-radius: 12px; font-weight: 650; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #1c1408; background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 48%, #c58a28); box-shadow: 0 8px 28px rgba(202, 144, 31, .18); }
.btn-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: rgba(240,128,128,.1); color: var(--danger); border: 1px solid rgba(240,128,128,.22); }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .46; cursor: not-allowed; transform: none; }

.hero {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr);
  align-items: center; gap: clamp(30px, 5vw, 80px); padding: calc(var(--header-height) + 70px) clamp(24px, 7vw, 110px) 72px;
  overflow: hidden; position: relative;
}
.hero-copy { max-width: 720px; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--gold-2); font-weight: 650; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.hero h1 {
  margin: 22px 0; max-width: 760px; font: 500 clamp(46px, 6.5vw, 92px)/.99 var(--font-display); letter-spacing: -.055em;
}
.gold-text {
  background: linear-gradient(105deg, var(--gold-1) 8%, var(--gold-2) 45%, #9c611c 80%, var(--gold-1));
  background-size: 180% auto; color: transparent; background-clip: text; -webkit-background-clip: text; animation: gild 7s linear infinite;
}
.hero-lead { max-width: 580px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; color: var(--muted); font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { color: var(--gold-2); }

.gold-orbit { position: relative; min-height: 560px; display: grid; place-items: center; isolation: isolate; }
.orbit-ring {
  position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; animation: orbit 22s linear infinite;
}
.orbit-ring:nth-child(1) { width: 520px; height: 520px; }
.orbit-ring:nth-child(2) { width: 410px; height: 410px; animation-direction: reverse; animation-duration: 17s; }
.orbit-ring:nth-child(3) { width: 300px; height: 300px; animation-duration: 13s; }
.orbit-ring::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: 10%; left: 16%;
  background: var(--gold-1); box-shadow: 0 0 22px var(--gold-2);
}
.vault-card {
  width: min(320px, 80vw); aspect-ratio: 1.45; z-index: 2; border: 1px solid var(--line-strong); border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,240,168,.18), rgba(155,97,26,.04)), var(--surface);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.13); backdrop-filter: blur(12px);
  transform: perspective(900px) rotateY(-12deg) rotateX(8deg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  animation: float 5s ease-in-out infinite;
}
.vault-card-top { display: flex; justify-content: space-between; color: var(--muted); }
.vault-card-value { font: 600 30px/1 var(--font-display); }
.vault-card-value small { display: block; margin-top: 10px; color: var(--muted); font: 400 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.section { padding: 100px clamp(24px, 7vw, 110px); }
.section-heading { max-width: 690px; margin-bottom: 45px; }
.section-heading h2 { margin: 12px 0; font: 550 clamp(34px, 4vw, 54px)/1.08 var(--font-display); letter-spacing: -.04em; }
.section-heading p { color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.feature-card { padding: 28px; min-height: 240px; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--gold-2); background: var(--gold-glow); }
.feature-card h3 { margin: 28px 0 9px; font: 600 20px/1.2 var(--font-display); }
.feature-card p { color: var(--muted); margin: 0; }
.public-footer { padding: 28px clamp(24px, 7vw, 110px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art {
  position: relative; overflow: hidden; min-height: 100vh; padding: 52px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(230,183,69,.08) 50%, transparent 50.2%),
    linear-gradient(transparent 0 49.8%, rgba(230,183,69,.08) 50%, transparent 50.2%),
    var(--bg-soft); background-size: 100% 100%, 100% 100%, auto;
}
.auth-art::before {
  content: ""; position: absolute; width: 44vw; height: 44vw; max-width: 650px; max-height: 650px;
  border: 1px solid var(--line-strong); border-radius: 50%; left: 50%; top: 48%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 55px rgba(220,172,55,.025), 0 0 0 120px rgba(220,172,55,.018);
  animation: pulse-ring 5s ease-in-out infinite;
}
.auth-art .brand { position: relative; z-index: 2; align-self: flex-start; }
.auth-quote { position: relative; z-index: 2; max-width: 540px; }
.auth-quote h1 { margin: 0 0 18px; font: 500 clamp(40px, 5vw, 70px)/1.02 var(--font-display); letter-spacing: -.05em; }
.auth-quote p { color: var(--muted); font-size: 17px; }
.data-streams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.data-stream {
  position: absolute; width: 1px; height: 35%; top: -40%; left: var(--x); background: linear-gradient(transparent, var(--gold-2), transparent);
  opacity: .34; animation: stream var(--speed) linear var(--delay) infinite;
}
.auth-form-side { position: relative; display: grid; place-items: center; padding: 40px clamp(24px, 6vw, 90px); background: var(--bg); }
.auth-theme { position: absolute; top: 18px; right: 18px; }
.auth-box { width: 100%; max-width: 470px; }
.auth-box h2 { margin: 26px 0 8px; font: 600 34px/1.15 var(--font-display); letter-spacing: -.035em; }
.auth-box > p { color: var(--muted); margin-bottom: 28px; }
.auth-box .brand { display: none; }
.auth-switch { text-align: center; color: var(--muted); margin-top: 24px; }
.auth-switch a { color: var(--gold-2); text-decoration: none; font-weight: 650; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 13px; }
.field-wrap { position: relative; }
.field-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.field input, .field select, .field textarea {
  width: 100%; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; min-height: 48px; padding: 11px 13px; transition: border .2s, box-shadow .2s;
}
.field-wrap input { padding-left: 42px; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-2); outline: 0; box-shadow: 0 0 0 3px var(--gold-glow); }
.field-help { color: var(--muted); font-size: 12px; }
.field-error { color: var(--danger); font-size: 12px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) 1fr; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 30; background: var(--bg-soft);
  border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column;
}
.sidebar .brand { padding: 0 10px 25px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-label { padding: 18px 12px 7px; color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px;
  color: var(--muted); text-decoration: none; font-weight: 550; font-size: 14px;
}
.nav-link i { width: 20px; text-align: center; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--gold-1); background: var(--gold-glow); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 6px; }
.user-chip { padding: 12px; border-top: 1px solid var(--line); margin-top: 10px; }
.user-chip strong, .user-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { color: var(--muted); }
.app-content { grid-column: 2; min-width: 0; }
.app-topbar {
  height: var(--header-height); padding: 0 clamp(20px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.app-topbar h1 { margin: 0; font: 600 19px/1 var(--font-display); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; }
.page { padding: 34px clamp(20px, 4vw, 52px) 60px; max-width: 1500px; margin: 0 auto; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-header h2 { margin: 0; font: 600 clamp(26px, 3vw, 38px)/1.1 var(--font-display); letter-spacing: -.035em; }
.page-header p { margin: 8px 0 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.panel { padding: 22px; }
.balance-panel { grid-column: span 7; min-height: 260px; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(228,181,69,.14), transparent 65%), var(--surface); }
.balance-panel::after { content: "Au"; position: absolute; right: -10px; bottom: -48px; color: var(--gold-glow); font: 700 180px/1 Georgia, serif; }
.market-panel { grid-column: span 5; }
.activity-panel { grid-column: span 8; }
.quick-panel { grid-column: span 4; }
.panel-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.balance-value { position: relative; z-index: 2; margin: 24px 0 10px; font: 600 clamp(38px, 5vw, 62px)/1 var(--font-display); letter-spacing: -.045em; }
.balance-value small { font-size: .35em; color: var(--gold-2); letter-spacing: 0; }
.balance-meta { position: relative; z-index: 2; color: var(--muted); }
.market-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.market-row:last-child { border: 0; }
.market-price { font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-success, .status-approved { color: var(--success); background: rgba(109,196,155,.1); }
.status-warning, .status-pending { color: var(--warning); background: rgba(234,191,95,.1); }
.status-danger, .status-rejected, .status-cancelled { color: var(--danger); background: rgba(240,128,128,.1); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.quick-link { min-height: 95px; padding: 16px; border-radius: 14px; text-decoration: none; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); display: flex; flex-direction: column; justify-content: space-between; }
.quick-link i { color: var(--gold-2); font-size: 18px; }
.quick-link:hover { border-color: var(--line-strong); color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; text-align: left; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--gold-glow); }
.data-table td { max-width: 270px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table td[title] { cursor: help; }
.data-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .credit { color: var(--success); }
.data-table .debit { color: var(--danger); }
.data-table th.actions, .data-table td.actions { position: sticky; right: 0; z-index: 2; background: var(--surface-solid); box-shadow: -8px 0 16px rgba(0,0,0,.08); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty i { display: block; font-size: 30px; color: var(--gold-2); margin-bottom: 12px; }
.mobile-cards { display: none; }

.trade-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 18px; }
.quote-card { padding: 24px; border-radius: var(--radius); background: linear-gradient(145deg, rgba(230,183,69,.14), rgba(155,97,26,.03)), var(--surface); border: 1px solid var(--line-strong); }
.quote-total { font: 600 34px/1 var(--font-display); margin: 14px 0; }
.quote-detail { display: flex; justify-content: space-between; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
.notice { display: flex; gap: 11px; padding: 13px 15px; border-radius: 12px; background: var(--gold-glow); color: var(--muted); font-size: 13px; margin: 18px 0; }
.notice i { color: var(--gold-2); margin-top: 3px; }
.security-list { display: grid; gap: 14px; }
.security-item { display: flex; align-items: center; gap: 15px; padding: 18px; border-radius: 15px; background: var(--bg-soft); border: 1px solid var(--line); }
.security-item-icon { flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: var(--gold-glow); color: var(--gold-2); }
.security-item-copy { flex: 1; min-width: 0; }
.security-item-copy strong, .security-item-copy small { display: block; }
.security-item-copy small { color: var(--muted); margin-top: 3px; }
.code-box { padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; font: 600 16px/1.4 monospace; word-break: break-all; user-select: all; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.65); backdrop-filter: blur(5px); }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.modal-header h3 { margin: 0; font: 600 21px/1.2 var(--font-display); }
.toast-region { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(390px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--surface-solid); border-radius: 13px; box-shadow: var(--shadow); animation: toast-in .3s both; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.spinner { width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: perspective(900px) rotateY(-8deg) rotateX(5deg) translateY(-12px); } }
@keyframes pulse-ring { 50% { transform: translate(-50%, -50%) scale(1.06); opacity: .72; } }
@keyframes stream { from { transform: translateY(-10vh); } to { transform: translateY(150vh); } }
@keyframes breathe { 50% { box-shadow: 0 0 50px var(--gold-glow); transform: rotate(30deg) scale(1.04); } }
@keyframes gild { to { background-position: 180% center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 150px; }
  .gold-orbit { min-height: 430px; }
  .orbit-ring:nth-child(1) { width: 410px; height: 410px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: .8fr 1.2fr; }
  .balance-panel, .activity-panel { grid-column: span 12; }
  .market-panel, .quick-panel { grid-column: span 6; }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 270px; }
  .public-header { padding: 0 18px; }
  .public-header .btn-secondary { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .auth-page { display: block; }
  .auth-art { min-height: 230px; padding: 24px; justify-content: flex-end; }
  .auth-art .brand { display: none; }
  .auth-art::before { width: 330px; height: 330px; left: 75%; }
  .auth-quote h1 { font-size: 36px; }
  .auth-quote p { display: none; }
  .auth-form-side { min-height: calc(100vh - 230px); padding: 30px 22px 50px; }
  .auth-box .brand { display: inline-flex; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .app-content { width: 100%; }
  .menu-button { display: inline-grid; }
  .page { padding-top: 24px; }
  .market-panel, .quick-panel { grid-column: span 12; }
  .trade-layout { grid-template-columns: 1fr; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.48); }
}
@media (max-width: 600px) {
  .hero { padding: 130px 20px 60px; }
  .hero h1 { font-size: 47px; }
  .gold-orbit { min-height: 360px; transform: scale(.8); margin: -25px; }
  .section { padding: 70px 20px; }
  .public-footer { padding: 24px 20px; display: grid; gap: 8px; }
  .nav-actions .theme-label { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .page-header { align-items: start; flex-direction: column; }
  .dashboard-grid { display: block; }
  .dashboard-grid > * { margin-bottom: 14px; }
  .balance-value { font-size: 42px; }
  .table-wrap { display: none; }
  .mobile-cards { display: grid; gap: 11px; }
  .mobile-card { padding: 15px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; }
  .mobile-card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
  .mobile-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
  .mobile-card dt { color: var(--muted); font-size: 11px; }
  .mobile-card dd { margin: 2px 0 0; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
