/* Hills Coffee — trading app design system.
   Charcoal glass surfaces over soft blue/green blur light, thin geometric type (Outfit),
   pill navigation and quiet outline icons. Dark only. */

:root {
  color-scheme: dark;
  --bg: #0b0c0c;
  --bg-raise: rgba(255, 255, 255, 0.035);
  --panel: rgba(30, 31, 31, 0.72);
  --panel-solid: #191a1a;
  --panel-2: rgba(44, 45, 45, 0.6);
  --panel-3: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.18);
  --text: #ecedea;
  --text-2: #b2b4b0;
  --text-3: #80837e;
  --text-4: #575a56;
  --accent: #8fd49a;            /* online green */
  --accent-2: #74c283;
  --accent-ink: #0d140e;
  --accent-soft: rgba(143, 212, 154, 0.1);
  --accent-line: rgba(143, 212, 154, 0.32);
  --up: #8fd49a;
  --down: #f0974f;              /* orange, as in the reference charts */
  --up-mark: #1aab5a;
  --down-mark: #b02f37;
  --up-soft: rgba(143, 212, 154, 0.1);
  --down-soft: rgba(240, 151, 79, 0.12);
  --warn: #f0974f;
  --warn-soft: rgba(240, 151, 79, 0.12);
  --info: #8db8f0;
  --info-soft: rgba(141, 184, 240, 0.1);
  --danger: #e5484d;
  --chart-accent: #8fd49a;
  --chart-blue: #6fa8ec;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --blur: blur(22px) saturate(125%);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --topnav: 78px;
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    radial-gradient(1100px 680px at 6% -12%, rgba(58, 98, 158, 0.26), transparent 62%),
    radial-gradient(900px 620px at 104% 4%, rgba(62, 110, 84, 0.16), transparent 60%),
    radial-gradient(1200px 820px at 55% 118%, rgba(44, 86, 150, 0.2), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: 40px; font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: 16px; }
h3 { font-size: 15px; }
p { margin: 0; }
b, strong { font-weight: 500; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
::selection { background: rgba(143, 212, 154, 0.3); }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.warn-text { color: var(--warn); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.label { font-size: 12px; color: var(--text-3); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tail { color: var(--text-4); }

/* ---------------- Shell: top navigation ---------------- */
.shell { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.topnav {
  position: sticky; top: 0; z-index: 40; height: var(--topnav); display: flex; align-items: center; gap: 22px; padding: 0 28px;
  background: linear-gradient(180deg, rgba(11, 12, 12, 0.86), rgba(11, 12, 12, 0.55)); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.brand-mark { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; opacity: 0.92; }
.brand-mark > div { display: none; }
.brand-mark span { font-size: 15px; font-weight: 400; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.brand-mark small { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: 0.04em; }
.pills { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  height: 38px; padding: 0 17px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; white-space: nowrap;
  color: var(--text-2); font-size: 14px; font-weight: 300; border: 1px solid transparent; background: none; cursor: pointer; transition: color .15s, background .15s;
}
.pill:hover { color: var(--text); }
.pill.active { color: var(--text); background: rgba(255, 255, 255, 0.075); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.pill .nav-count { font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; display: inline-grid; place-items: center; font-weight: 500; }
.pill svg { width: 13px; height: 13px; }
.topnav-right { display: flex; align-items: center; gap: 10px; flex: none; }
.search-pill {
  position: relative; display: flex; align-items: center; width: 250px; height: 44px; border-radius: 999px; padding: 0 44px 0 18px;
  background: linear-gradient(90deg, rgba(70, 86, 62, 0.42), rgba(52, 60, 50, 0.32)); border: 1px solid rgba(255, 255, 255, 0.06);
}
.search-pill input { width: 100%; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 13.5px; }
.search-pill input::placeholder { color: var(--text-3); }
.search-pill svg { position: absolute; right: 16px; width: 17px; height: 17px; color: var(--text-2); }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); color: var(--text-2); transition: color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.menu-btn { display: none; }
.dot-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger);
  color: #fff; font-size: 10.5px; font-weight: 500; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 400; color: var(--text);
  background: linear-gradient(145deg, #5b605b, #262827); border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer;
}
.list-item .avatar { width: 34px; height: 34px; font-size: 12px; cursor: default; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px;
}
.wallet-chip:hover { background: rgba(255, 255, 255, 0.08); }
.wallet-chip svg { width: 16px; height: 16px; color: var(--text-2); }
.wallet-chip b { font-weight: 400; }

.content { position: relative; z-index: 1; padding: 26px 28px 64px; max-width: 1560px; width: 100%; margin: 0 auto; }
.ticker { display: none; }

.banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 18px; margin-bottom: 18px;
  background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line);
}
.banner svg { width: 18px; height: 18px; flex: none; color: var(--text-2); }
.banner.warn { background: linear-gradient(90deg, rgba(96, 52, 40, 0.5), rgba(48, 36, 32, 0.45)); border-color: rgba(240, 151, 79, 0.18); }
.banner.warn svg { color: var(--warn); }
.banner.danger { background: linear-gradient(90deg, rgba(110, 40, 40, 0.5), rgba(48, 32, 32, 0.45)); border-color: rgba(229, 72, 77, 0.22); }
.banner.danger svg { color: var(--danger); }
.banner .grow { flex: 1; }

/* ---------------- Layout ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { color: var(--text-3); margin-top: 8px; font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.g-main-wide { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
.span-2 { grid-column: span 2; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.gap-6 { gap: 6px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.flex-1 { flex: 1; min-width: 0; }

/* ---------------- Cards ---------------- */
.card {
  position: relative; min-width: 0; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(46, 47, 47, 0.62), rgba(24, 25, 25, 0.7) 60%);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow);
}
a.card { display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line-3); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.card-head h2 { font-size: 16px; font-weight: 400; }
.card-head p { color: var(--text-3); font-size: 12.5px; margin-top: 3px; }
.card-body { padding: 16px 20px 20px; }
.card-body.tight { padding: 12px 16px; }
.card-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.card.glow, .card.light {
  background: linear-gradient(145deg, rgba(128, 134, 128, 0.36), rgba(52, 54, 53, 0.62) 46%, rgba(26, 27, 27, 0.74));
  border-color: rgba(255, 255, 255, 0.09);
}
.corner-link { position: absolute; top: 16px; right: 18px; color: var(--text-2); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.corner-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.corner-link svg { width: 15px; height: 15px; }

.stat { padding: 18px 20px; }
.stat-label { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.stat-label svg { width: 15px; height: 15px; color: var(--text-3); }
.stat-value { font-size: 32px; font-weight: 300; letter-spacing: -0.025em; margin-top: 8px; line-height: 1.1; }
.stat-value.lg { font-size: 44px; font-weight: 200; }
.stat-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Big thin figure with a dim tail, like "78.3%" */
.big { font-size: 46px; font-weight: 200; letter-spacing: -0.035em; line-height: 1; }
.big .tail { color: var(--text-4); }
.big small { font-size: 13px; font-weight: 300; color: var(--text-3); letter-spacing: 0; margin-left: 6px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.045); color: var(--text); font-size: 13.5px; font-weight: 400;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; text-decoration: none;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { background: rgba(255, 255, 255, 0.085); border-color: var(--line-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: #ecede9; color: #111312; border-color: transparent; font-weight: 500; }
.btn.primary:hover { background: #fff; }
.btn.sell { background: rgba(240, 151, 79, 0.16); color: #ffc08d; border-color: rgba(240, 151, 79, 0.3); }
.btn.ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn.danger { background: rgba(229, 72, 77, 0.12); color: #ff9a9d; border-color: rgba(229, 72, 77, 0.28); }
.btn.danger:hover { background: rgba(229, 72, 77, 0.2); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.xs { height: 28px; padding: 0 11px; font-size: 12px; gap: 5px; }
.btn.xs svg { width: 13px; height: 13px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn .spinner { width: 15px; height: 15px; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; cursor: pointer; }
.link svg, summary svg { width: 13px; height: 13px; vertical-align: -2px; }
summary::-webkit-details-marker { display: none; }
.link:hover { text-decoration-color: var(--text); }

/* ---------------- Forms ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label { font-size: 12.5px; color: var(--text-2); font-weight: 300; }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .error { font-size: 12px; color: #ff9a9d; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.035);
  color: var(--text); font: inherit; font-size: 14px; transition: border-color .15s, background .15s;
}
.textarea { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.055); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: rgba(229, 72, 77, 0.6); }
.input:disabled, .textarea:disabled { opacity: .55; }
.input.num { font-variant-numeric: tabular-nums; }
.select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23999' stroke-width='1.6'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.select option { background: #1a1b1b; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { flex: 1; }
.input-group .prefix, .input-group .suffix { position: absolute; color: var(--text-3); font-size: 13px; pointer-events: none; }
.input-group .prefix { left: 14px; display: flex; align-items: center; }
.input-group .prefix svg { width: 16px; height: 16px; }
.input-group .suffix { right: 14px; }
.input-group.has-prefix .input { padding-left: 32px; }
.input-group.has-suffix .input { padding-right: 48px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: #d9dbd6; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.toggle { position: relative; width: 40px; height: 22px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--line-3); border-radius: 999px; cursor: pointer; transition: .2s; }
.toggle span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle input:checked + span { background: var(--accent-2); }
.toggle input:checked + span::before { transform: translateX(18px); }
.dropzone {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--line-3);
  background: rgba(255, 255, 255, 0.025); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); }
.dropzone svg { width: 22px; height: 22px; color: var(--text-3); flex: none; }
.dropzone input { display: none; }
.dropzone.done { border-style: solid; border-color: var(--accent-line); }
.dropzone.done svg { color: var(--accent); }

/* ---------------- Segments, tabs, chips ---------------- */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: var(--text-3); font-size: 13px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 14px; height: 14px; }
.seg button:hover { color: var(--text); }
.seg button.active { background: rgba(255, 255, 255, 0.09); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; justify-content: center; }
.seg.trade button.active.buy { background: var(--up-soft); color: var(--up); }
.seg.trade button.active.sell { background: var(--down-soft); color: var(--down); }
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
.tabs button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--text-3); font-size: 13.5px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); background: rgba(255, 255, 255, 0.085); }
.tabs .count { font-size: 11px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--text-2); text-align: center; }
.tabs .count.hot { background: var(--danger); color: #fff; }
.chips { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 1; display: inline-flex; align-items: baseline; justify-content: center; gap: 7px; height: 40px; align-items: center; padding: 0 16px; border-radius: 999px; white-space: nowrap; color: var(--text-2); font-size: 13px; background: rgba(255, 255, 255, 0.035); }
.chip b { color: var(--text); font-weight: 400; font-size: 15px; }
.chip.active { background: rgba(255, 255, 255, 0.09); }

/* ---------------- Badges ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 300;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge.green { color: var(--up); border-color: rgba(143, 212, 154, 0.32); background: rgba(143, 212, 154, 0.06); }
.badge.red { color: #ff9a9d; border-color: rgba(229, 72, 77, 0.35); background: rgba(229, 72, 77, 0.08); }
.badge.amber { color: var(--warn); border-color: rgba(240, 151, 79, 0.32); background: rgba(240, 151, 79, 0.07); }
.badge.blue { color: var(--info); border-color: rgba(141, 184, 240, 0.3); background: rgba(141, 184, 240, 0.06); }
.badge.accent { color: var(--text); border-color: var(--line-3); background: rgba(255, 255, 255, 0.08); }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 500; flex: none; }
.chg { font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--text-3); }
.chg.pill { padding: 2px 9px; border-radius: 999px; }
.chg.up.pill { background: var(--up-soft); }
.chg.down.pill { background: var(--down-soft); }
.score, .cup { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 400; color: #e9d7a6; }
.score svg, .cup svg { width: 13px; height: 13px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.status-dot i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-2); }
.status-dot i svg { width: 11px; height: 11px; color: #0b0c0c; stroke-width: 3; }
.status-dot.bad i { background: none; border-radius: 0; }
.status-dot.bad i svg { width: 18px; height: 18px; color: var(--danger); fill: var(--danger); stroke: none; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 300; font-size: 12px; color: var(--text-3); padding: 10px 16px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tbody tr.clickable { cursor: pointer; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .lot-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.table .lot-cell .t { font-weight: 400; }
.table .lot-cell .s { font-size: 12px; color: var(--text-3); }
.table.compact td { padding: 9px 16px; }
.table td.mono, .table td > .mono, .table td:first-child { white-space: nowrap; }

/* ---------------- Coffee visuals ---------------- */
.lot-thumb {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; overflow: hidden;
  font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.04em; border: 1px solid rgba(255, 255, 255, 0.08);
}
.lot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lot-art { position: relative; height: 132px; overflow: hidden; border-radius: 22px 22px 0 0; cursor: pointer; }
.lot-art img { width: 100%; height: 100%; object-fit: cover; }
.lot-art .art-code { position: absolute; left: 16px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.06em; }
.lot-art .art-origin { position: absolute; right: 14px; top: 12px; }
.lot-art .art-big { position: absolute; right: -4px; bottom: -20px; font-size: 92px; font-weight: 200; letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.1); line-height: 1; }
.lot-art .art-sack { position: absolute; inset: 14px 30px 10px; color: rgba(255, 255, 255, 0.5); }
.lot-card { display: flex; flex-direction: column; transition: transform .18s, border-color .18s; }
.lot-card:hover { transform: translateY(-2px); border-color: var(--line-3); }
.lot-card .lc-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lot-card .lc-title { font-weight: 400; font-size: 15.5px; line-height: 1.3; }
.lot-card .lc-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.lot-card .lc-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.lot-card .lc-rate { font-size: 28px; font-weight: 200; letter-spacing: -0.03em; }
.lot-card .lc-rate small { font-size: 12px; color: var(--text-3); font-weight: 300; }
.lot-card .lc-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.lot-card .lc-foot div { display: flex; flex-direction: column; gap: 2px; }
.lot-card .lc-foot span { font-size: 11px; color: var(--text-3); }
.lot-card .lc-foot b { font-size: 13px; font-weight: 400; }
.lot-card.mine { border-style: dashed; }
.lot-card .lc-cta { display: flex; gap: 8px; }
.lot-card .lc-cta .btn { flex: 1; }
.seller-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.seller-tag svg { width: 13px; height: 13px; }

/* Asset card (warehouse item), modelled on the fleet cards in the reference. */
.asset-card { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 250px; }
.asset-card .ac-title { font-size: 17px; font-weight: 400; padding-right: 30px; line-height: 1.25; }
.asset-card .ac-sub { font-size: 12px; color: var(--text-3); }
.asset-card .ac-art { position: relative; height: 96px; margin: 6px 0 2px; display: grid; place-items: center; color: rgba(236, 237, 234, 0.55); }
.asset-card .ac-art svg { width: 168px; height: 96px; }
.asset-card .ac-tag {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 3px;
  border-radius: 999px; background: rgba(60, 62, 61, 0.88); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text); font-size: 12.5px; backdrop-filter: blur(6px);
}
.asset-card .ac-tag i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: rgba(28, 29, 29, 0.95); border: 1px solid rgba(255, 255, 255, 0.12); }
.asset-card .ac-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); }
.asset-card .ac-row .meta { display: flex; gap: 12px; align-items: center; }
.asset-card .ac-row .meta span { display: inline-flex; gap: 5px; align-items: center; }
.asset-card .ac-row svg { width: 13px; height: 13px; }
.asset-card .ac-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 10px; margin-top: auto; border-top: 1px solid var(--line); }
.asset-card .ac-foot span { display: block; font-size: 11px; color: var(--text-3); }
.asset-card .ac-foot b { display: block; font-size: 14px; font-weight: 400; margin-top: 1px; }
.asset-card .ac-actions { display: flex; gap: 6px; margin-top: 10px; }
.asset-card .ac-actions .btn { flex: 1; }
.outline-pill { white-space: nowrap; display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-3); font-size: 12px; color: var(--text-2); }
.outline-pill.green { color: var(--up); border-color: rgba(143, 212, 154, 0.38); }
.outline-pill.amber { color: var(--warn); border-color: rgba(240, 151, 79, 0.38); }

/* ---------------- Attention panel (reference "Warning") ---------------- */
.warn-panel { padding: 18px 16px 16px; }
.warn-panel > h2 { font-size: 18px; font-weight: 300; padding: 0 6px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.warn-group { margin-top: 6px; }
.warn-group-title { display: flex; align-items: center; gap: 8px; padding: 8px 6px; font-size: 14.5px; color: var(--text); }
.warn-group-title svg { width: 16px; height: 16px; color: var(--text-2); }
.warn-group-title span { color: var(--text-3); }
.warn-item {
  display: block; margin-top: 8px; padding: 14px 16px; border-radius: 18px; color: var(--text);
  background: linear-gradient(160deg, rgba(92, 48, 44, 0.55), rgba(58, 36, 34, 0.55)); border: 1px solid rgba(255, 140, 120, 0.08);
}
a.warn-item:hover { border-color: rgba(255, 160, 140, 0.22); }
.warn-item.calm { background: rgba(255, 255, 255, 0.045); border-color: var(--line); }
.warn-item .wi-head { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.warn-item .wi-head .flex-1 > div:first-child { line-height: 1.35; }
.warn-item .wi-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.warn-item .wi-sub { margin: 10px 0 0 30px; padding-left: 12px; border-left: 1px solid var(--line-3); font-size: 13px; }
.warn-item .wi-sub small { display: block; color: var(--text-3); font-size: 12px; }
.warn-item .wi-act { margin: 10px 0 0 30px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- Map ---------------- */
.map-card { position: relative; overflow: hidden; padding: 0; min-height: 520px; }
.map-card .map { position: absolute; inset: 0; }
.map-card .map-title { position: absolute; left: 24px; top: 20px; z-index: 3; pointer-events: none; }
.map-card .map-title h2 { font-size: 34px; font-weight: 300; letter-spacing: -0.025em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.map-card .map-title p { color: var(--text-2); font-size: 13px; margin-top: 4px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
.map-card .map-chips { position: absolute; left: 24px; top: 100px; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 48px); }
.map-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--text);
  background: rgba(30, 32, 31, 0.68); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.map-chip svg { width: 14px; height: 14px; color: var(--text-2); }
.map-chip.active { background: rgba(80, 84, 82, 0.72); }
.map-ctrls { position: absolute; left: 22px; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.map-ctrls button {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(30, 32, 31, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.map-ctrls button svg { width: 16px; height: 16px; }
.map-pop {
  position: absolute; z-index: 4; width: 230px; padding: 16px 18px; border-radius: 22px; pointer-events: auto;
  background: linear-gradient(150deg, rgba(120, 128, 118, 0.42), rgba(44, 50, 46, 0.55)); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.map-pop .mp-title { font-size: 15px; font-weight: 400; padding-right: 22px; }
.map-pop .mp-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.map-pop .mp-big { font-size: 34px; font-weight: 200; letter-spacing: -0.03em; margin-top: 14px; }
.map-pop .mp-big .tail { color: rgba(236, 237, 234, 0.4); }
.map-pop a { position: absolute; right: 14px; top: 14px; color: var(--text); }
.map-pop a svg { width: 15px; height: 15px; }
.map-marker { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(214, 218, 212, 0.88); border: 4px solid rgba(255, 255, 255, 0.28); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); cursor: pointer; }
.map-marker svg { width: 13px; height: 13px; color: #2a2c2b; }
.map-marker.port { width: 22px; height: 22px; border-width: 3px; background: rgba(220, 222, 218, 0.9); }
.map-marker.port i { width: 6px; height: 6px; border-radius: 50%; background: #3a3c3b; }
.map-marker.hub { width: 30px; height: 30px; background: #d77a8e; border-color: rgba(255, 255, 255, 0.25); }
.map-marker.hub svg { color: #3a1a22; }
.map-ship { position: relative; width: 56px; height: 56px; display: grid; place-items: center; cursor: pointer; }
.map-ship::before { content: ''; position: absolute; inset: -26px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.55); }
.map-ship span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(150, 160, 148, 0.72); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.map-ship svg { width: 18px; height: 18px; color: #fff; fill: #fff; }
.map-ship.small { width: 34px; height: 34px; }
.map-ship.small::before { inset: -10px; border-width: 1px; opacity: .6; }
.map-ship.small span { width: 32px; height: 32px; }
.map-ship.small svg { width: 12px; height: 12px; }
.maplibregl-map, .map-pop { font-family: var(--font) !important; }
.maplibregl-ctrl-attrib { background: rgba(0, 0, 0, 0.4) !important; color: var(--text-3) !important; font-size: 10px !important; }
.maplibregl-ctrl-attrib a { color: var(--text-2) !important; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); text-align: center; padding: 24px; background: radial-gradient(circle at 40% 40%, rgba(60, 90, 70, 0.3), transparent 60%), #111312; }

/* ---------------- Misc components ---------------- */
.qty-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.qty-chips button { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-size: 12px; cursor: pointer; }
.qty-chips button:hover { border-color: var(--line-3); color: var(--text); }
.summary { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; }
.summary .line span:first-child { color: var(--text-3); }
.summary .total { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 2px; font-size: 15px; }
.summary .total span:first-child { color: var(--text); }
.summary .warn-line { color: var(--warn); font-size: 12px; display: flex; gap: 6px; align-items: flex-start; }
.summary .warn-line svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.breakdown { display: grid; gap: 8px; font-size: 13px; }
.breakdown div { display: flex; justify-content: space-between; gap: 10px; }
.breakdown div span:first-child { color: var(--text-3); }
.breakdown div span:last-child { font-variant-numeric: tabular-nums; }
.breakdown .net { border-top: 1px solid var(--line); padding-top: 8px; font-size: 15px; }
.breakdown .net span:first-child { color: var(--text); }
.range-bar { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(240, 151, 79, 0.5), var(--line-3), rgba(143, 212, 154, 0.5)); }
.range-bar i { position: absolute; top: -4px; width: 4px; height: 14px; border-radius: 2px; background: var(--text); transform: translateX(-2px); }
.progress { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--text-2); border-radius: 999px; }
.countdown { font-weight: 400; font-variant-numeric: tabular-nums; }
.countdown.urgent { color: var(--warn); }
.alloc-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; padding: 7px 0; }
.alloc-row .barwrap { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.alloc-row .barwrap i { display: block; height: 100%; border-radius: 4px; background: var(--chart-accent); }
.steps { display: flex; gap: 0; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; position: relative; color: var(--text-3); font-size: 13px; }
.step:not(:last-child)::after { content: ''; flex: 1; height: 1px; background: var(--line-2); margin: 0 12px; }
.step .bubble { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-3); font-size: 12px; flex: none; }
.step.done { color: var(--text-2); }
.step.done .bubble { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.step.done .bubble svg { width: 14px; height: 14px; }
.step.current { color: var(--text); }
.step.current .bubble { border-color: var(--text); color: var(--text); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.timeline { display: flex; gap: 6px; align-items: center; }
.timeline i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-3); }
.timeline i.on { background: var(--accent); }
.timeline i.bad { background: var(--danger); }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.list-item:last-child { border-bottom: 0; }
.list-item > svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
a.list-item:hover { background: rgba(255, 255, 255, 0.025); }
.list-item .icon-circle { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); flex: none; }
.list-item .icon-circle svg { width: 16px; height: 16px; color: var(--text-2); }
.list-item .icon-circle.green svg { color: var(--up); }
.list-item .icon-circle.red { background: rgba(229, 72, 77, 0.1); } .list-item .icon-circle.red svg { color: #ff9a9d; }
.list-item .icon-circle.amber { background: rgba(240, 151, 79, 0.08); } .list-item .icon-circle.amber svg { color: var(--warn); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); word-break: break-word; }
.empty { padding: 44px 20px; text-align: center; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 34px; height: 34px; color: var(--text-4); }
.empty h3 { color: var(--text-2); font-weight: 400; }
.pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--text-2); line-height: 1.7; margin: 0; }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px dashed var(--line-3); background: rgba(255, 255, 255, 0.03); font-family: var(--mono); }
.copy-field span { flex: 1; }
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; background: rgba(120, 140, 120, 0.16); border-color: rgba(255, 255, 255, 0.1); }
.msg .meta { font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.chart { position: relative; width: 100%; }
.chart-tip { position: absolute; z-index: 5; display: none; pointer-events: none; padding: 7px 11px; border-radius: 12px; background: rgba(30, 31, 31, 0.92); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; backdrop-filter: blur(8px); }
.chart-tip b { font-weight: 500; }
.chart-legend { position: absolute; left: 12px; top: 8px; z-index: 4; font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; pointer-events: none; color: var(--text-2); }
.chart-legend b { font-weight: 500; color: var(--text); }
.spark { display: block; overflow: visible; }
.segchart { width: 100%; display: block; overflow: visible; }

/* ---------------- Overlays ---------------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(5, 6, 6, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: fade .15s; }
.modal {
  width: 100%; max-width: 520px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: linear-gradient(165deg, rgba(48, 50, 49, 0.94), rgba(22, 23, 23, 0.96)); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: pop .18s;
}
.modal.wide { max-width: 840px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 8px; }
.modal-head h2 { font-size: 22px; font-weight: 300; }
.modal-head p { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.modal-body { padding: 14px 24px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.drawer-overlay { place-items: stretch end; padding: 12px; }
.drawer {
  width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: linear-gradient(165deg, rgba(46, 48, 47, 0.95), rgba(20, 21, 21, 0.97)); border: 1px solid var(--line-2); animation: slide .2s;
}
.drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px 10px; }
.drawer .drawer-head h2 { font-size: 22px; font-weight: 300; }
.drawer .drawer-body { padding: 10px 24px 28px; overflow-y: auto; flex: 1; }
.menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px; padding: 8px; z-index: 60; border-radius: 20px; animation: pop .12s;
  background: linear-gradient(165deg, rgba(48, 50, 49, 0.96), rgba(24, 25, 25, 0.97)); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--text-2); font-size: 13.5px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 300; }
.menu a:hover, .menu button:hover, .menu a.active { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.menu svg { width: 15px; height: 15px; }
.menu .menu-head { padding: 8px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.notif-panel { width: 400px; max-height: 520px; overflow-y: auto; padding: 0; }
.notif-panel .np-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; background: rgba(36, 38, 37, 0.98); }
.notif-panel .np-head b { font-size: 16px; font-weight: 300; }
.notif { display: block; margin: 0 8px 8px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); }
.notif:hover { background: rgba(255, 255, 255, 0.06); }
.notif.unread { background: linear-gradient(160deg, rgba(92, 48, 44, 0.45), rgba(58, 36, 34, 0.45)); }
.notif .nt { font-size: 13.5px; }
.notif .nb { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.notif .nd { font-size: 11px; color: var(--text-4); margin-top: 4px; }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; gap: 10px; align-items: flex-start; max-width: 380px; padding: 13px 16px; border-radius: 18px; font-size: 13.5px; animation: pop .2s;
  background: rgba(40, 42, 41, 0.94); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); backdrop-filter: blur(14px); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--accent); }
.toast.err { background: linear-gradient(160deg, rgba(92, 44, 44, 0.95), rgba(52, 32, 32, 0.95)); }
.toast.err svg { color: #ff9a9d; }
.toast.live { color: var(--text); }
.toast.live svg { color: var(--text-2); }
a.toast.live:hover { background: rgba(56, 58, 57, 0.96); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.16); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
.page-loading { display: grid; place-items: center; min-height: 50vh; color: var(--text-3); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------------- Marketplace helpers ---------------- */
:where(.content, .modal, .drawer, .toasts, .menu) svg:where(:not(.spark):not(.segchart):not([width])) { width: 16px; height: 16px; flex: none; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.pay-chip svg { width: 14px; height: 14px; color: var(--text-3); }
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 16px; border-radius: 18px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); transition: border-color .15s, background .15s; }
.pay-opt svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.pay-opt b { display: block; font-size: 14px; font-weight: 400; }
.pay-opt span { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.pay-opt:hover { border-color: var(--line-3); }
.pay-opt.active { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
.pay-opt.active svg { color: var(--text); }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: var(--text-2); }
.callout svg { width: 16px; height: 16px; flex: none; color: var(--text-2); margin-top: 2px; }
.callout.warn { background: linear-gradient(160deg, rgba(92, 48, 44, 0.45), rgba(58, 36, 34, 0.45)); }
.callout.warn svg { color: var(--warn); }
.bank-box { border: 1px dashed var(--line-3); border-radius: 18px; padding: 14px 16px; background: rgba(255, 255, 255, 0.025); }
.bank-box .pre { margin: 8px 0 0; background: none; border: 0; padding: 0; }

.ship-steps { display: flex; align-items: flex-start; min-width: 260px; }
.ship-steps .ss { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; position: relative; font-size: 11.5px; color: var(--text-4); }
.ship-steps .ss i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); position: relative; z-index: 1; }
.ship-steps .ss:not(:last-child)::after { content: ''; position: absolute; top: 4px; left: 12px; right: 2px; border-top: 1.5px dashed rgba(255, 255, 255, 0.16); }
.ship-steps .ss.done { color: var(--text-2); }
.ship-steps .ss.done i { background: var(--text); }
.ship-steps .ss.done:not(:last-child)::after { border-top-style: solid; border-color: rgba(255, 255, 255, 0.55); }
.ship-steps .ss.current { color: var(--text); }
.ship-steps .ss.current i { background: var(--bg); border: 2px solid var(--text); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }
.ship-steps.bad .ss:first-child { color: #ff9a9d; }
.ship-steps.bad .ss:first-child i { background: var(--danger); }

.hero { position: relative; overflow: hidden; padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: var(--shadow);
  background: linear-gradient(145deg, rgba(128, 134, 128, 0.34), rgba(52, 54, 53, 0.6) 46%, rgba(26, 27, 27, 0.74)); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.hero .hero-label { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 7px; }
.hero .hero-label svg { width: 15px; height: 15px; color: var(--text-2); }
.hero .hero-value { font-size: 48px; font-weight: 200; letter-spacing: -0.035em; margin-top: 10px; line-height: 1; }
.hero .hero-value .tail { color: rgba(236, 237, 234, 0.35); }
.hero .hero-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.hero .hero-split span { display: block; font-size: 12px; color: var(--text-3); }
.hero .hero-split b { display: block; font-size: 17px; font-weight: 300; margin-top: 3px; }
.hero .hero-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }

.ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--text) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); }
.ring > div { width: 100px; height: 100px; border-radius: 50%; background: #202121; display: grid; place-items: center; text-align: center; }
.ring b { font-size: 22px; font-weight: 200; display: block; }
.ring span { font-size: 11px; color: var(--text-3); }
.meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; background: var(--text-2); }
.meter i.b { background: var(--chart-blue); }
.meter i.w { background: var(--warn); }
.legend-dots { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.legend-dots span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--text-2); }
.legend-dots span.b::before { background: var(--chart-blue); }
.legend-dots span.w::before { background: var(--warn); }
.item-card { border: 1px solid var(--line-2); border-radius: 20px; padding: 16px; background: rgba(255, 255, 255, 0.025); position: relative; }
.item-card .item-n { position: absolute; top: -10px; left: 14px; font-size: 11px; padding: 1px 10px; border-radius: 99px; background: #2a2c2b; color: var(--text-2); border: 1px solid var(--line-2); }
.item-card .item-remove { position: absolute; top: 8px; right: 8px; }
.flow-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.flow-strip > div { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.flow-strip b { display: flex; gap: 7px; align-items: center; color: var(--text); font-size: 13.5px; font-weight: 400; margin-bottom: 4px; }
.flow-strip b svg { width: 15px; height: 15px; color: var(--text-2); }
.pay-page { max-width: 460px; margin: 30px auto; }
.card-visual { height: 180px; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: linear-gradient(135deg, #6b726b, #2d302e 55%, #1a1c1b); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); font-family: var(--mono); }
.card-visual .cv-num { font-size: 19px; letter-spacing: 0.12em; }
.test-ribbon { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: 11px; font-weight: 500; letter-spacing: .08em; background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(240, 151, 79, 0.35); }
.section-title { font-size: 13px; color: var(--text-3); margin: 26px 0 12px; }

/* ---------------- Dashboard composition ---------------- */
.dash { display: grid; grid-template-columns: 340px minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.dash-left, .dash-right { display: flex; flex-direction: column; gap: 16px; }
.dash-center { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash .map-card { min-height: 600px; }
.dash-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair .card { padding: 16px 18px; }
.dash-left .asset-card { min-height: 0; padding: 14px 14px 12px; }
.dash-left .asset-card .ac-title { font-size: 14px; padding-right: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-left .asset-card .ac-sub { display: none; }
.dash-left .asset-card .ac-art { height: 70px; }
.dash-left .asset-card .ac-art svg { width: 120px; height: 70px; }
.dash-left .asset-card .ac-tag { font-size: 11px; height: 26px; max-width: 92%; }
.dash-left .asset-card .ac-tag i { width: 20px; height: 20px; }
.dash-left .asset-card .ac-row .meta span:last-child { display: none; }
.dash-left .asset-card .ac-foot { grid-template-columns: 1fr 1fr; }
.dash-left .asset-card .ac-foot > div:last-child { display: none; }
.dash-left .asset-card .corner-link { top: 10px; right: 10px; }
.pair .pv { font-size: 28px; font-weight: 200; letter-spacing: -0.03em; text-align: right; margin-top: 8px; }

/* ---------------- Immersive main page (live 3D map behind everything, like the reference) ---------------- */
/* Header: transparent over the map, logo mark only, compact pills. */
body.immersive .topnav { position: fixed; left: 0; right: 0; height: 72px; background: none; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.immersive .brand-mark > div, body.immersive .wallet-chip { display: none; }
body.immersive .pill { height: 34px; padding: 0 15px; font-size: 13px; }
body.immersive .pills { flex: 0 1 auto; padding: 4px; border-radius: 999px; background: rgba(22, 23, 23, 0.82); border: 1px solid rgba(255, 255, 255, 0.06); }
body.immersive .topnav-right { margin-left: auto; }
body.immersive .icon-btn, body.immersive .avatar { width: 40px; height: 40px; background: rgba(28, 30, 29, 0.78); }
body.immersive .search-pill { height: 40px; width: 230px; background: linear-gradient(90deg, rgba(64, 78, 58, 0.78), rgba(44, 50, 42, 0.72)); }
body.immersive #page { padding: 0; max-width: none; }
body.immersive footer.content { display: none; }

.stage { position: relative; height: 100vh; min-height: 780px; overflow: hidden; background: #0b0c0c; }
.stage-map { position: absolute; inset: 0; z-index: 0; }
/* No backdrop blur over the live scene — re-blurring every frame was the main lag. */
.stage .card, .stage .map-chip, .stage .btn { backdrop-filter: none; -webkit-backdrop-filter: none; }
.stage .card { background: linear-gradient(165deg, rgba(38, 39, 39, 0.94), rgba(22, 23, 23, 0.95) 70%); border-color: rgba(255, 255, 255, 0.06); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }

/* Left: one panel with divided sections, like the reference. */
.stage-panel { position: absolute; z-index: 3; left: 20px; top: 84px; bottom: 20px; width: 330px; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: linear-gradient(170deg, rgba(34, 35, 35, 0.96), rgba(20, 21, 21, 0.97)); border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.stage-panel .sp-sec { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); flex: none; }
.stage-panel .sp-sec:last-child { border-bottom: 0; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.stage-panel .sp-sec:last-child::-webkit-scrollbar { display: none; }
.stage-panel .chips { background: none; border: 0; padding: 0; gap: 6px; }
.stage-panel .chip { height: 34px; font-size: 12.5px; padding: 0 12px; background: rgba(255, 255, 255, 0.05); }
.stage-panel .chip b { font-size: 14px; }
.sp-pair { display: grid; grid-template-columns: 1fr 1fr; padding: 0 !important; }
.sp-pair > a { display: block; padding: 14px 16px; color: inherit; }
.sp-pair > a + a { border-left: 1px solid rgba(255, 255, 255, 0.06); }
.sp-pair .pv { font-size: 26px; font-weight: 200; letter-spacing: -0.03em; }
.sp-pair .status-dot i { width: 16px; height: 16px; }
.stage-panel .big { font-size: 34px; }
.stage-panel .sp-label { font-size: 12.5px; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; }
.stage-panel .sp-label a { color: var(--text-3); display: grid; }
.stage-panel .sp-label a svg { width: 14px; height: 14px; }
.stage-panel .asset-card { min-height: 0; padding: 12px 12px 10px; border-radius: 18px; box-shadow: none; }
.stage-panel .asset-card .ac-title { font-size: 13.5px; padding-right: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-panel .asset-card .ac-sub { display: none; }
.stage-panel .asset-card .ac-art { height: 58px; margin: 2px 0; }
.stage-panel .asset-card .ac-art svg { width: 104px; height: 58px; }
.stage-panel .asset-card .ac-tag { font-size: 10.5px; height: 24px; }
.stage-panel .asset-card .ac-tag i { width: 18px; height: 18px; }
.stage-panel .asset-card .ac-row .meta span:last-child, .stage-panel .asset-card .ac-foot > div:last-child { display: none; }
.stage-panel .asset-card .ac-foot { grid-template-columns: 1fr 1fr; }
.stage-panel .asset-card .ac-foot b { font-size: 12.5px; }
.stage-panel .asset-card .corner-link { top: 8px; right: 8px; }

/* Title over the map. */
.stage-title { position: absolute; z-index: 3; left: 374px; top: 96px; max-width: 520px; }
.stage-title h1 { font-size: 46px; font-weight: 200; letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.stage-title p { color: var(--text); opacity: 0.86; font-size: 14px; margin-top: 8px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.stage-title .hero-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.stage-title .hero-actions .btn { height: 36px; font-size: 13px; }
.stage-title .hero-actions .btn:not(.primary) { background: rgba(28, 30, 29, 0.82); }
.stage-title .map-chips { position: static; margin-top: 12px; }
.stage-title .map-chip { height: 32px; font-size: 12.5px; background: rgba(28, 30, 29, 0.82); }
.stage-title .banner { margin: 12px 0 0; background: rgba(60, 34, 30, 0.9); }

/* Right: floating panel that opens / closes from its header. */
.stage-float { position: absolute; z-index: 4; right: 20px; top: 84px; width: 318px; }
.stage-float .warn-panel { padding: 0; overflow: hidden; }
.stage-float .wp-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; font-size: 16px; font-weight: 300; }
.stage-float .wp-head .count-badge { margin-left: 8px; }
.stage-float .wp-head svg { width: 16px; height: 16px; transition: transform .2s; }
.stage-float.closed .wp-head svg { transform: rotate(180deg); }
.stage-float .wp-body { padding: 0 12px 12px; max-height: calc(100vh - 420px); overflow-y: auto; scrollbar-width: none; }
.stage-float .wp-body::-webkit-scrollbar { display: none; }
.stage-float.closed .wp-body { display: none; }
.stage-float .warn-item { padding: 12px 14px; border-radius: 16px; font-size: 13px; }
.stage-float .warn-item .wi-head { font-size: 13px; }
.stage-float .warn-group-title { font-size: 13.5px; padding: 8px 4px 2px; }

/* Bottom cards. */
.stage-bottom { position: absolute; z-index: 3; left: 370px; right: 20px; bottom: 20px; height: 196px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stage-bottom .card { padding: 16px 20px; overflow: hidden; border-radius: 22px; }
.stage-bottom .big { font-size: 32px !important; }

/* Animated scene (iframe) */
.stage-map.hero-scene { background: #0b0c0c center / cover no-repeat; overflow: hidden; }
.hero-scene iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-scene iframe.loaded { opacity: 1; }
/* Only a soft shade on the left, behind the headline. No top gradient. */
.hero-scene-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(11, 12, 12, 0.7) 0%, rgba(11, 12, 12, 0.35) 26%, rgba(11, 12, 12, 0) 46%); }
.scene-credit { position: absolute; z-index: 3; right: 24px; bottom: 3px; margin: 0; font-size: 10px; color: rgba(236, 237, 234, 0.55); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.scene-credit a { color: inherit; }
.scene-credit a:hover { color: var(--text); }

/* Admin "adjust map angle" mode: panels step aside, the map takes the mouse. */
.stage.adjusting .stage-panel, .stage.adjusting .stage-title, .stage.adjusting .stage-float, .stage.adjusting .stage-bottom { opacity: 0; pointer-events: none; transition: opacity .2s; }
.stage.adjusting .hero-scene-overlay { display: none; }
.stage.adjusting .stage-map { z-index: 2; }
.scene-bar { position: absolute; z-index: 6; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(28, 30, 29, 0.94); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 13px; color: var(--text-2); }
.scene-bar > span { display: inline-flex; gap: 8px; align-items: center; margin-right: 6px; }

.offset-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 10px; }
.offset-table th { text-align: left; font-weight: 300; color: var(--text-4); font-size: 11px; padding: 0 8px 5px 0; }
.offset-table td { padding: 6px 8px 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.offset-table .code { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 11px; }
.offset-table .code i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; background: rgba(0, 0, 0, 0.35); }
.offset-table .st { display: inline-flex; align-items: center; gap: 5px; }
.offset-table .st svg { width: 12px; height: 12px; }
.offset-table .st.warn { color: var(--warn); }
.map-marker.port-blue { width: 30px; height: 30px; background: #3d7fd1; border-color: rgba(255, 255, 255, 0.25); }
.map-marker.port-blue svg { color: #0f2238; }
.map-ship.active span { background: rgba(190, 198, 186, 0.85); }

@media (max-width: 1280px) {
  .stage-panel { width: 300px; }
  .stage-title { left: 340px; }
  .stage-bottom { left: 336px; }
  .stage-float { width: 290px; }
}
@media (max-width: 1100px) {
  .stage { height: auto; min-height: 100vh; padding: 80px 14px 24px; display: flex; flex-direction: column; gap: 14px; }
  .stage-map { position: absolute; inset: 0; }
  .stage-panel, .stage-title, .stage-float, .stage-bottom { position: relative; z-index: 3; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-width: none; }
  .stage-title { order: 1; padding-top: 140px; }
  .stage-title h1 { font-size: 36px; }
  .stage-float { order: 2; }
  .stage-panel { order: 3; }
  .stage-bottom { order: 4; height: auto; grid-template-columns: minmax(0, 1fr); }
  .stage-float .wp-body { max-height: none; }
  .scene-credit { position: relative; order: 9; text-align: center; right: auto; bottom: auto; }
  .scene-bar { white-space: normal; flex-wrap: wrap; width: calc(100% - 28px); border-radius: 22px; }
}
/* ---------------- Simple order list ---------------- */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto 20px; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; cursor: pointer;
  background: linear-gradient(165deg, rgba(44, 45, 45, 0.55), rgba(24, 25, 25, 0.62)); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.order-row:hover { border-color: var(--line-3); }
.order-row.attention { background: linear-gradient(160deg, rgba(92, 48, 44, 0.5), rgba(48, 34, 32, 0.55)); }
.order-row .or-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.order-row .or-icon svg { width: 18px; height: 18px; color: var(--text-2); }
.order-row .or-title { font-size: 15px; }
.order-row .or-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.order-row .or-amount { text-align: right; font-size: 18px; font-weight: 300; letter-spacing: -0.02em; }
.order-row .or-amount small { display: block; font-size: 11.5px; color: var(--text-3); letter-spacing: 0; }
.order-row > svg { width: 16px; height: 16px; color: var(--text-3); }
.order-steps { display: flex; gap: 6px; }
.order-steps .os { flex: 1; }
.order-steps .os i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.order-steps .os.done i { background: var(--text); }
.order-steps .os span { display: block; font-size: 11px; color: var(--text-4); margin-top: 6px; }
.order-steps .os.done span { color: var(--text-2); }
@media (max-width: 720px) {
  .order-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .order-row > .badge, .order-row > svg { display: none; }
}

/* ---------------- Auth ---------------- */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr); }
.auth-visual { position: relative; overflow: hidden; border-right: 1px solid var(--line); padding: 36px 48px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 30% 40%, rgba(58, 98, 158, 0.22), transparent 60%), rgba(6, 7, 7, 0.6); }
.auth-visual .globe { position: absolute; right: -16%; top: 18%; width: 118%; opacity: 0.5; pointer-events: none; }
.auth-visual .glow-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(143, 212, 154, 0.16), 0 0 24px rgba(143, 212, 154, 0.7); animation: pulse 2.6s ease-in-out infinite; }
.auth-visual .av-content { position: relative; z-index: 2; margin-top: auto; }
.auth-visual h1 { font-size: 48px; line-height: 1.05; letter-spacing: -0.035em; max-width: 540px; font-weight: 200; }
.auth-visual h1 em { font-style: normal; color: var(--accent); }
.auth-visual .tag { display: inline-flex; gap: 8px; align-items: center; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text-2); font-size: 12.5px; margin-bottom: 18px; }
.auth-visual .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mini-tickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 640px; }
.mini-ticker { padding: 13px 15px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(30, 31, 31, 0.7); backdrop-filter: blur(10px); }
.mini-ticker .mt-name { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ticker .mt-rate { font-weight: 300; font-size: 20px; margin-top: 3px; }
.auth-form-side { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.auth-box { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-box h2 { font-size: 32px; font-weight: 300; letter-spacing: -0.03em; }
.auth-box .sub { color: var(--text-3); margin-top: 6px; margin-bottom: 26px; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--text-3); font-size: 13px; }
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input { width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 300; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); font-family: inherit; }
.otp input:focus { outline: none; border-color: rgba(255, 255, 255, 0.4); }
.strength { display: flex; gap: 4px; margin-top: 6px; }
.strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); }
.strength.s1 i:nth-child(-n+1) { background: var(--danger); }
.strength.s2 i:nth-child(-n+2) { background: var(--warn); }
.strength.s3 i:nth-child(-n+3) { background: #c9d97a; }
.strength.s4 i { background: var(--accent); }
.qr-box { background: #fff; padding: 12px; border-radius: 18px; width: 184px; height: 184px; display: grid; place-items: center; }
.qr-box svg { width: 160px; height: 160px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes span { font-family: var(--mono); padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); text-align: center; letter-spacing: 0.06em; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1400px) {
  .dash { grid-template-columns: 320px minmax(0, 1fr); }
  .dash-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-pill { width: 200px; }
}
@media (max-width: 1280px) {
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-main, .g-main-wide { grid-template-columns: minmax(0, 1fr) 340px; }
  .search-pill { display: none; }
}
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-main-wide { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-right { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .brand-mark span, .brand-mark small { display: none; }
}
@media (max-width: 860px) {
  .topnav { padding: 0 16px; gap: 12px; height: 66px; }
  .topnav-right .wallet-chip .wc-label { display: none; }
  .content { padding: 18px 16px 48px; }
  .g-2, .g-3, .g-5, .form-grid, .dash-bottom, .flow-strip { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .kv { grid-template-columns: 110px 1fr; }
  .alloc-row { grid-template-columns: 110px 1fr 76px; }
  .notif-panel { width: calc(100vw - 32px); position: fixed; left: 16px; right: 16px; top: 70px; }
  .auth-form-side { padding: 28px 16px; }
  h1 { font-size: 30px; }
  .hero .hero-value, .big { font-size: 36px; }
  .hero .hero-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash .map-card, .map-card { min-height: 440px; }
  .map-card .map-title h2 { font-size: 26px; }
  .drawer-overlay { padding: 0; }
  .drawer { border-radius: 0; }
}
@media (max-width: 520px) {
  .g-4 { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: 1fr 1fr; }
  .icon-btn, .avatar, .wallet-chip { width: 38px; height: 38px; }
  .wallet-chip { width: auto; padding: 0 12px; }
  .steps .step span.txt { display: none; }
  .otp input { width: 42px; height: 50px; }
  .map-pop { width: 190px; }
}

/* =====================================================================
   Reference look: charcoal surfaces, light-grey "selected" card, reddish
   warning items, a faint blurred map behind every page, micro-interactions.
   ===================================================================== */
body {
  background:
    radial-gradient(900px 600px at 18% -8%, rgba(120, 126, 120, 0.10), transparent 62%),
    radial-gradient(1100px 700px at 100% 110%, rgba(70, 76, 72, 0.10), transparent 60%),
    #0c0d0d;
}
/* Our map, faded and softly blurred, behind every (non-dashboard) page. */
.shell::before { content: ''; position: fixed; inset: -40px; z-index: 0; pointer-events: none;
  background: url('/assets/img/map-sm.jpg') center / cover no-repeat; opacity: 0.3; filter: blur(10px); }
.shell::after { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 60% 20%, rgba(12, 13, 13, 0.2), rgba(12, 13, 13, 0.68)); }
body.immersive .shell::before, body.immersive .shell::after { display: none; }
.shell > .content, .shell > footer { position: relative; z-index: 1; }

/* Surfaces, as in the reference: flat charcoal with a faint top light. */
.card { background: linear-gradient(170deg, rgba(40, 41, 41, 0.92), rgba(25, 26, 26, 0.94) 60%); border-color: rgba(255, 255, 255, 0.055); }
.card.light, .card.glow, .hero, .stage .card.light {
  background: linear-gradient(158deg, rgba(150, 156, 150, 0.52) 0%, rgba(78, 82, 80, 0.62) 30%, rgba(34, 36, 35, 0.94) 68%, rgba(26, 27, 27, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.09);
}
.warn-panel, .stage .warn-panel { background: linear-gradient(170deg, rgba(48, 49, 49, 0.94), rgba(30, 31, 31, 0.95)); }
.warn-item { background: linear-gradient(165deg, rgba(84, 52, 48, 0.92), rgba(62, 42, 40, 0.92)); border-color: rgba(255, 150, 130, 0.06); }
.warn-item.calm { background: rgba(255, 255, 255, 0.05); }
.order-row { background: linear-gradient(170deg, rgba(40, 41, 41, 0.9), rgba(25, 26, 26, 0.92)); }
.order-row.attention { background: linear-gradient(165deg, rgba(84, 52, 48, 0.88), rgba(52, 38, 36, 0.9)); }

/* ---- Micro-interactions ---- */
.card, .order-row, .warn-item, .chip, .pill, .map-chip, .btn, .icon-btn, .avatar, .qty-chips button, .seg button, .tabs button {
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease; }
a.card:hover, .asset-card:hover, .group-card:hover, .lot-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); }
.order-row:hover { transform: translateX(3px); }
a.warn-item:hover { transform: translateX(-3px); filter: brightness(1.08); }
.btn:active, .chip:active, .pill:active, .icon-btn:active, .map-chip:active { transform: scale(0.96); }
.btn.primary:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07), 0 8px 24px rgba(255, 255, 255, 0.08); }
.icon-btn:hover svg { animation: wiggle .5s ease; }
.chip:hover, .map-chip:hover { background: rgba(255, 255, 255, 0.1); }
.corner-link svg { transition: transform .2s ease; }
.card:hover .corner-link svg, .corner-link:hover svg, .sp-label a:hover svg { transform: translate(2px, -2px); }
.group-card { text-align: left; color: inherit; font: inherit; cursor: pointer; width: 100%; }
.count-badge { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.dot-badge { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) both, breathe 2.4s ease-in-out 1s infinite; }
/* Green status dot breathes; red triangle blinks softly — like the reference Online/Offline. */
.status-dot:not(.bad) i { position: relative; }
.status-dot:not(.bad) i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(143, 212, 154, 0.6); animation: ring 2.4s ease-out infinite; }
.status-dot.bad i svg { animation: blink 2.2s ease-in-out infinite; }
/* Signal icon: arcs light up in turn. */
.sig { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.sig svg path { animation: arc 1.8s ease-in-out infinite; }
.sig svg path:nth-of-type(1), .sig svg path:nth-of-type(2) { animation-delay: .2s; }
.sig svg path:nth-of-type(3), .sig svg path:nth-of-type(4) { animation-delay: .5s; }
.asset-card:hover .sig svg { color: var(--up); }
/* Storage timeline on coffee cards, like the route bar on the reference fleet cards. */
.ac-time { margin-top: 8px; }
.ticks { position: relative; height: 16px; margin-top: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 4px) left center / var(--f) 9px no-repeat,
              repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 4px) center / 100% 9px no-repeat; }
.ticks .mark { position: absolute; top: 50%; left: var(--f); transform: translate(-50%, -50%); width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #2c2e2d; border: 1px solid rgba(255, 255, 255, 0.14); transition: left .8s ease; }
.ticks .mark svg { width: 11px; height: 11px; }
.stage-panel .ac-time .row, .stage-panel .asset-card .sig { display: none; }
/* Entrance: views rise in once. */
.anim-in .card, .anim-in .order-row, .anim-in .stage-panel, .anim-in .stage-float, .anim-in .stage-title > * { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.anim-in .grid > :nth-child(2), .anim-in .order-list > :nth-child(2), .anim-in .stage-title > :nth-child(2) { animation-delay: .05s; }
.anim-in .grid > :nth-child(3), .anim-in .order-list > :nth-child(3), .anim-in .stage-title > :nth-child(3) { animation-delay: .1s; }
.anim-in .grid > :nth-child(4), .anim-in .order-list > :nth-child(4), .anim-in .stage-float { animation-delay: .15s; }
.anim-in .order-list > :nth-child(n+5) { animation-delay: .2s; }
.anim-in .stage-bottom .card { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes ring { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes blink { 50% { opacity: 0.45; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 6px rgba(229, 72, 77, 0.18); } }
@keyframes arc { 0%, 100% { opacity: 0.35; } 40% { opacity: 1; } }
@keyframes wiggle { 30% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---- Header on every page, matching the main page / reference ---- */
.topnav { height: 72px; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .25s ease, box-shadow .25s ease; }
.topnav.scrolled { background: rgba(12, 13, 13, 0.86); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.35); }
.pills { flex: 0 1 auto; padding: 4px; border-radius: 999px; background: rgba(22, 23, 23, 0.82); border: 1px solid rgba(255, 255, 255, 0.06); }
.pill { height: 34px; padding: 0 15px; font-size: 13px; }
.topnav-right { margin-left: auto; }
.icon-btn, .avatar { width: 40px; height: 40px; background: rgba(28, 30, 29, 0.78); }
.wallet-chip { height: 40px; padding: 0 14px; background: rgba(28, 30, 29, 0.78); font-size: 12.5px; }
.search-pill { height: 40px; width: 230px; background: linear-gradient(90deg, rgba(64, 78, 58, 0.78), rgba(44, 50, 42, 0.72)); }

/* ---- Main-page map: the colour grade happens inside the scene (scene/index.html), so
   no CSS filter here — filters over the live map cost frames and read as HDR. ---- */
.hero-scene-overlay { background:
    linear-gradient(90deg, rgba(11, 12, 12, 0.62) 0%, rgba(11, 12, 12, 0.28) 26%, rgba(11, 12, 12, 0) 46%),
    radial-gradient(120% 90% at 60% 45%, rgba(20, 28, 34, 0) 50%, rgba(10, 12, 14, 0.45) 100%); }
.stage-panel .asset-card .ac-row .meta span.sig { display: none; }

/* =====================================================================
   Motion layer (fx.js): intro / loader, cursor ring, reveals.
   ===================================================================== */
html.fx-loading, html.fx-loading body { overflow: hidden; }
.fx-intro { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #0b0c0c; color: #ecedea;
  clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.77, 0, .18, 1); }
.fx-intro.out { clip-path: inset(0 0 100% 0); }
.fx-rain { position: absolute; inset: 0; }
.fx-mark { position: relative; width: 96px; height: 178px; transition: transform .9s cubic-bezier(.77, 0, .18, 1), opacity .6s ease; }
.fx-intro.out .fx-mark { transform: translateY(-40px) scale(.96); opacity: 0; }
.fx-mark .fx-logo, .fx-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-mark img { object-fit: contain; opacity: 0; }
.fx-logo .d { stroke-dasharray: 260; stroke-dashoffset: 260; animation: fxDraw 1.5s cubic-bezier(.65, 0, .25, 1) forwards; }
.fx-logo .d:nth-of-type(2) { animation-delay: .18s; } .fx-logo .d:nth-of-type(3) { animation-delay: .4s; }
.fx-logo .d:nth-of-type(4) { animation-delay: .3s; } .fx-logo .d:nth-of-type(5) { animation-delay: .55s; } .fx-logo .d:nth-of-type(6) { animation-delay: .7s; }
.fx-logo .d:nth-of-type(7) { animation-delay: 1s; }
.fx-logo text { fill: transparent; stroke: currentColor; stroke-width: .35; stroke-dasharray: 140; stroke-dashoffset: 140; animation: fxDraw 1.3s .75s cubic-bezier(.65, 0, .25, 1) forwards, fxFill .5s 1.75s forwards; font-family: Georgia, 'Times New Roman', serif; }
.fx-logo .t2 { font-family: 'Outfit', sans-serif; }
.fx-intro.full .fx-mark img { animation: fxFade .7s 1.95s forwards; }
.fx-intro.full .fx-logo { animation: fxFadeOut .6s 2.15s forwards; }
.fx-intro.quick .fx-logo { display: none; }
.fx-intro.quick .fx-mark { width: 58px; height: 108px; }
.fx-intro.quick .fx-mark img { opacity: 1; animation: fxBreath 1.2s ease-in-out infinite; }
.fx-meta { position: absolute; left: 40px; right: 40px; bottom: 34px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.fx-pct { font-family: var(--mono); letter-spacing: .1em; color: var(--text-2); }
.fx-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, 0.08); }
.fx-bar i { display: block; height: 100%; background: #ecedea; transform-origin: left; transform: scaleX(0); }
html.fx-revealed #app { animation: fxPageIn 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }
@keyframes fxFill { to { fill: currentColor; stroke-width: 0; } }
@keyframes fxFade { to { opacity: 1; } }
@keyframes fxFadeOut { to { opacity: 0; } }
@keyframes fxBreath { 50% { opacity: .55; } }
@keyframes fxPageIn { from { opacity: .4; transform: scale(1.012); } }

.fx-cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none; z-index: 9998; opacity: 0; mix-blend-mode: difference; transition: width .25s, height .25s, margin .25s, opacity .25s, background .25s, border-color .25s; }
.fx-cursor.on { opacity: 1; }
.fx-cursor.hot { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: #fff; border-color: transparent; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-depth] { will-change: translate; }

@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } .fx-intro { display: none; } }
/* ---- Account to-dos (admin two-factor): dot on the avatar + first row of the account menu ---- */
.avatar { position: relative; }
.avatar-dot { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #e0a43a; box-shadow: 0 0 0 2px #151716; }
.menu .menu-todo { align-items: flex-start; margin-bottom: 6px; background: rgba(224, 164, 58, 0.08); border: 1px solid rgba(224, 164, 58, 0.18); }
.menu .menu-todo:hover { background: rgba(224, 164, 58, 0.14); }
.menu-todo .mt-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 164, 58, 0.16); color: #e0a43a; flex: none; }
.menu-todo .mt-ic svg { width: 14px; height: 14px; }
.menu-todo .mt-t { display: block; color: var(--text); }
/* ---- Still map (dashboards): the reference image, exact colours. Blurred preview first,
   full image fades in, then a very slow drift (transform only, so it stays on the GPU). ---- */
.map-still { background: #0b0c0c url('/assets/img/map-sm.jpg') center / cover no-repeat; }
.map-still-img { position: absolute; inset: -2%; background: url('/assets/img/map.jpg') center / cover no-repeat; opacity: 0; transition: opacity 1s ease; will-change: transform; }
.map-still.loaded .map-still-img { opacity: 1; animation: map-drift 60s ease-in-out infinite alternate; }
@keyframes map-drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.04) translate3d(-1%, -0.6%, 0); } }
@media (prefers-reduced-motion: reduce) { .map-still.loaded .map-still-img { animation: none; } }