/* GoldKosh admin — "jewellery house ledger": oxblood, antique gold foil, ivory paper. */
:root {
  --ox-900: #2a0910; --ox-800: #3d0d17; --ox-700: #551321; --ox-600: #6e1a2c; --ox-500: #8a2a3d;
  --gold-200: #f6e7bd; --gold-300: #ecd28d; --gold-400: #d8b061; --gold-500: #b88a2e; --gold-600: #8f6a1f;
  --foil: linear-gradient(135deg, #f7e6b0 0%, #d6a94c 30%, #9c7323 55%, #e8c978 78%, #b88a2e 100%);
  --paper: #fbf7ef; --paper-2: #f4ede1; --card: #fffdf9; --line: #ebe1d0; --line-2: #f3ece0;
  --ink: #23141a; --ink-2: #5d4b50; --muted: #988489;
  --sage: #3f7d5a; --sage-bg: #e6f1ea; --amber: #a36a00; --amber-bg: #fdf0d3; --ruby: #b0302a; --ruby-bg: #fbe6e3; --plum: #5e3f8a; --plum-bg: #eee8f6;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 20, 30, .04), 0 8px 24px -12px rgba(60, 20, 30, .14);
  --shadow-lg: 0 30px 80px -20px rgba(42, 9, 16, .45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 14px/1.5 var(--body); color: var(--ink); background: var(--paper);
  background-image: radial-gradient(1200px 500px at 100% -10%, #f6ead2 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, #f3e6e3 0%, transparent 60%);
  background-attachment: fixed; font-feature-settings: 'tnum' 1, 'lnum' 1;
}
::selection { background: var(--gold-300); color: var(--ox-900); }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font: 600 34px/1.1 var(--display); letter-spacing: -.2px; color: var(--ox-800); }
h2 { font: 600 24px/1.2 var(--display); color: var(--ox-800); }
h3 { font: 600 19px/1.3 var(--display); color: var(--ox-800); }
a { color: var(--ox-600); text-underline-offset: 3px; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
small { font-size: 12px; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; letter-spacing: -.2px; color: var(--ink-2); }
.error { color: var(--ruby); }
.ico { flex: none; vertical-align: -3px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--body); letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold-600); margin-bottom: 8px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold-500); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.shell > main { min-width: 0; } /* let wide tables scroll inside their card instead of widening the page */
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 14px 28px; color: #f1dfe2;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 176, 97, .16), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--ox-700), var(--ox-900));
  scrollbar-width: thin; scrollbar-color: #ffffff22 transparent;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 20px; margin-bottom: 8px; border-bottom: 1px solid rgba(236, 210, 141, .16); }
.brand b { display: block; font: 600 18px/1.15 var(--display); color: #fff; letter-spacing: .3px; }
.brand small { color: var(--gold-300); letter-spacing: 2px; font-size: 9.5px; text-transform: uppercase; }
.logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--foil); color: var(--ox-800); font: 700 22px/1 var(--display);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 0 0 4px rgba(122, 82, 20, .18), 0 6px 16px -6px rgba(0, 0, 0, .5);
}
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.side h6 { margin: 18px 12px 6px; font: 600 9.5px/1 var(--body); letter-spacing: 2px; text-transform: uppercase; color: rgba(236, 210, 141, .55); }
.side nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin: 1px 0; border-radius: 10px;
  color: #ead6da; text-decoration: none; font-size: 13.5px; transition: background .15s, color .15s;
}
.side nav a .ico { opacity: .7; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: linear-gradient(90deg, rgba(236, 210, 141, .2), rgba(236, 210, 141, .04)); color: #fff; font-weight: 600; }
.side nav a.on .ico { opacity: 1; color: var(--gold-300); }
.side nav a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--foil); }
.side .count { margin-left: auto; }
.side .count:not(:empty) { background: var(--foil); color: var(--ox-900); border-radius: 99px; padding: 0 7px; font-size: 10.5px; font-weight: 700; line-height: 18px; }

.top {
  display: flex; align-items: center; gap: 12px; padding: 12px 32px; position: sticky; top: 0; z-index: 5;
  background: rgba(251, 247, 239, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.ticker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--ox-800); color: #fff; font-size: 12.5px; margin-right: auto; box-shadow: var(--shadow); }
.ticker .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--foil); display: grid; place-items: center; color: var(--ox-900); }
.ticker b { font: 600 15px/1 var(--display); color: var(--gold-300); letter-spacing: .3px; }
.ticker .live { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a0; box-shadow: 0 0 0 0 #6ee7a0; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.who { display: flex; gap: 10px; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); }
.who-text { line-height: 1.2; }
.who-text small { text-transform: capitalize; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ox-600); color: var(--gold-200); display: grid; place-items: center; font: 600 12px/1 var(--body); letter-spacing: .5px; flex: none; box-shadow: inset 0 0 0 2px rgba(236, 210, 141, .35); }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
#page { padding: 30px 32px 72px; max-width: 1440px; }
.offline { background: var(--amber-bg); color: var(--amber); padding: 9px 32px; font-size: 13px; border-bottom: 1px solid #f3dca8; }

/* page header */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ph p { margin: 6px 0 0; max-width: 60ch; }
.ph-r, .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.end { justify-content: flex-end; }

/* ---------- controls ---------- */
input, select, textarea {
  font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink);
  transition: border-color .15s, box-shadow .15s; min-height: 38px;
}
input:hover, select:hover, textarea:hover { border-color: #dccdb4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(216, 176, 97, .25); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f6a1f' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input[type=search] { padding-left: 34px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23988489' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; min-width: 220px; }
input[type=checkbox] { min-height: 0; width: 17px; height: 17px; accent-color: var(--ox-600); }
textarea { width: 100%; min-height: 90px; resize: vertical; }
label.muted { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 600 13.5px/1 var(--body); letter-spacing: .1px;
  padding: 0 16px; height: 38px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--ox-500), var(--ox-700)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 6px 14px -8px rgba(85, 19, 33, .7); transition: transform .12s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn.gold { background: var(--foil); color: var(--ox-900); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 14px -8px rgba(143, 106, 31, .8); }
.btn.ghost { background: var(--card); color: var(--ox-700); border-color: var(--line); box-shadow: 0 1px 2px rgba(60, 20, 30, .05); }
.btn.ghost:hover { border-color: var(--gold-400); filter: none; background: #fffaf0; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { background: var(--card); color: var(--ruby); border-color: #f0cdc9; box-shadow: none; }
.btn.danger:hover { background: var(--ruby-bg); filter: none; }
.btn.wa { background: #1f9d55; }
.tabs { display: inline-flex; gap: 2px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { font: 500 13px/1 var(--body); border: 0; background: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; color: var(--ink-2); transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ox-700); }
.tabs button.on { background: var(--card); color: var(--ox-700); font-weight: 600; box-shadow: 0 1px 3px rgba(60, 20, 30, .12); }

/* ---------- cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card > h3 + p.muted, .card > p.muted { margin: 2px 0 14px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head p { margin: 3px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--shadow); overflow: hidden; }
.kpi::after { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--foil); opacity: .0; transition: opacity .2s; }
.kpi:hover::after { opacity: 1; }
.kpi .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-200); color: var(--gold-600); margin-bottom: 12px; }
.kpi .ic.ruby { background: var(--ruby-bg); color: var(--ruby); } .kpi .ic.amber { background: var(--amber-bg); color: var(--amber); }
.kpi .ic.sage { background: var(--sage-bg); color: var(--sage); } .kpi .ic.ox { background: #f6e6e9; color: var(--ox-600); }
.kpi span { display: block; color: var(--ink-2); font-size: 12.5px; }
.kpi b { display: block; font: 600 30px/1.15 var(--display); color: var(--ox-800); margin: 2px 0 4px; letter-spacing: -.2px; }
.kpi small { color: var(--muted); }
.kpi small a { font-weight: 600; }

/* dashboard hero */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; margin-bottom: 20px; color: #f6e9ec;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(216, 176, 97, .28), transparent 60%),
    repeating-radial-gradient(circle at 85% 120%, rgba(236, 210, 141, .09) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, var(--ox-600), var(--ox-900));
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: end;
}
.hero .eyebrow { color: var(--gold-300); } .hero .eyebrow::before { background: var(--gold-300); }
.hero .big { font: 600 clamp(40px, 5vw, 60px)/1 var(--display); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.5px; }
.hero p { margin: 10px 0 0; color: #e2c9cf; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(236, 210, 141, .2); border-radius: 14px; background: rgba(0, 0, 0, .14); }
.hero-stats div { padding: 14px 16px; border-left: 1px solid rgba(236, 210, 141, .16); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats span { display: block; font-size: 11.5px; color: #d9bfc5; letter-spacing: .3px; }
.hero-stats b { display: block; font: 600 22px/1.2 var(--display); color: #fff; margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.grid2 > .card { margin-bottom: 20px; }
.chart { position: relative; height: 290px; }
.empty { color: var(--muted); padding: 34px 0; text-align: center; font: italic 18px var(--display); }

/* ---------- tables ---------- */
.tw { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 600 10.5px/1 var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
td .msg-preview, td.wrap { white-space: normal; min-width: 280px; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #fdf8ee; }
tbody tr:last-child td { border-bottom: 0; }
td b { font-weight: 600; }
.amt { font: 600 16px/1 var(--display); color: var(--ox-800); white-space: nowrap; }
.person { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.person b { display: block; font-weight: 600; }
.person small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; text-transform: capitalize; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success, .badge.active, .badge.open { background: var(--sage-bg); color: var(--sage); }
.badge.pending, .badge.overdue, .badge.paused { background: var(--amber-bg); color: var(--amber); }
.badge.reversed, .badge.failed, .badge.disabled { background: var(--ruby-bg); color: var(--ruby); }
.badge.matured, .badge.admin, .badge.whatsapp { background: var(--gold-200); color: var(--gold-600); }
.badge.redeemed, .badge.closed, .badge.agent, .badge.auto { background: var(--plum-bg); color: var(--plum); }
.prog { min-width: 130px; }
.bar { height: 6px; background: var(--paper-2); border-radius: 9px; overflow: hidden; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--ox-500), var(--gold-500)); }
.neg { color: var(--ruby); font-weight: 600; } .pos { color: var(--sage); font-weight: 600; }
.mode { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }
.mode i { width: 8px; height: 8px; border-radius: 2px; background: var(--ox-600); }
.mode.upi i { background: var(--gold-500); } .mode.card i { background: #c0607a; } .mode.online i { background: var(--sage); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; }
.timeline li { position: relative; padding: 4px 0 18px 26px; border-left: 1px solid var(--line); }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--foil); box-shadow: 0 0 0 3px var(--card); }
.timeline li b { font-weight: 600; }

/* ---------- dialog, toast ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(460px, 94vw); background: var(--card); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
dialog::backdrop { background: rgba(42, 9, 16, .45); backdrop-filter: blur(3px); }
dialog form { padding: 26px; display: grid; gap: 14px; border-top: 3px solid transparent; border-image: var(--foil) 1; }
dialog label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 90px); z-index: 50; max-width: 92vw;
  background: var(--ox-900); color: #fff; padding: 12px 18px 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold-400); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
#toast.show { transform: translate(-50%, 0); }
#toast.bad { border-left-color: #ff8a80; }

/* ---------- support thread, settings ---------- */
.thread { display: grid; gap: 10px; max-height: 50vh; overflow-y: auto; padding: 4px; }
.msg { padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--paper-2); max-width: 85%; white-space: pre-wrap; }
.msg.staff { background: var(--gold-200); justify-self: end; border-radius: 14px 14px 4px 14px; }
.msg small { display: block; color: var(--muted); margin-top: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.settings-grid .card { margin: 0; }
.settings-grid form, .stack { display: grid; gap: 12px; }
.settings-grid label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.check { display: flex !important; grid-auto-flow: column; align-items: flex-start; gap: 10px !important; color: var(--ink) !important; font-size: 13px !important; }
.logo-preview { width: 104px; height: 104px; border-radius: 20px; border: 1px dashed var(--gold-400); display: grid; place-items: center; overflow: hidden; background: #fff; }
.logo-preview img { max-width: 100%; max-height: 100%; }
.integration { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.integration:last-child { border: 0; }
.integration .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ox-600); flex: none; }
.integration p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.msg-preview { background: #e7f6dd; border-radius: 12px 12px 12px 3px; padding: 8px 10px; font-size: 12.5px; max-width: 360px; color: #1d2b19; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.login-art {
  position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; color: #f3e2e5;
  background:
    repeating-radial-gradient(circle at 110% 110%, rgba(236, 210, 141, .1) 0 1px, transparent 1px 16px),
    radial-gradient(700px 400px at 0% 0%, rgba(216, 176, 97, .25), transparent 60%),
    linear-gradient(150deg, var(--ox-600), var(--ox-900));
}
.login-art h1 { font-size: clamp(40px, 5vw, 64px); color: #fff; line-height: 1.02; max-width: 12ch; }
.login-art h1 em { font-style: italic; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art p { max-width: 42ch; color: #dcc2c8; font-size: 15px; }
.login-art > * { position: relative; z-index: 1; }
/* rotating jewellery photos behind the pitch; the overlay keeps the white text readable */
.login-art { justify-content: flex-start; background: var(--ox-900); }
.login-art .slides { position: absolute; inset: 0; z-index: 0; }
.login-art .slides i { position: absolute; inset: 0; background: center 22% / cover no-repeat; opacity: 0; animation: login-slide 18s infinite; }
.login-art .slides i:nth-child(2) { animation-delay: 6s; }
.login-art .slides i:nth-child(3) { animation-delay: 12s; }
.login-art .slides::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 5, 11, .72) 0%, rgba(31, 5, 11, .12) 30%, rgba(31, 5, 11, .25) 50%, rgba(31, 5, 11, .94) 88%), linear-gradient(90deg, rgba(31, 5, 11, .4), transparent 70%); }
@keyframes login-slide { 0% { opacity: 0; transform: scale(1.08); } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.login-art .pitch { margin-top: auto; }
.login-art .pitch + small { margin-top: 18px; }
.login-art h1, .login-art p { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.demo-box { margin-top: 6px; padding: 14px; border: 1px dashed var(--gold-400, #c9a24a); border-radius: 14px; background: rgba(236, 210, 141, .1); display: grid; gap: 10px; }
.demo-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-logins > * { text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer; display: grid; gap: 2px; padding: 10px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card, #fff); transition: border-color .15s, transform .15s; }
.demo-logins > *:hover { border-color: var(--gold-500, #b88a2e); transform: translateY(-1px); }
.demo-logins b { font-size: 13px; color: var(--ox-700, #551321); }
.demo-logins small { font-size: 11.5px; color: var(--gold-600, #8a6a1f); font-weight: 600; }
.demo-logins span { font-size: 11px; color: var(--ink-2); }
.credit { text-align: center; font-size: 12px; color: var(--ink-2); padding: 20px 0 6px; }
.credit a { color: var(--ox-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.login form { align-self: center; justify-self: center; width: min(380px, 100% - 40px); display: grid; gap: 14px; padding: 40px 0; }
.login form label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.login form .btn { height: 44px; }

/* Cormorant defaults to old-style figures (1 looks like ı); money must read clearly, so force lining figures.
   Declared after the `font:` shorthands above, which reset numeric variants. */
h1, h2, h3, .kpi b, .hero .big, .hero-stats b, .ticker b, .amt, .brand b, .empty { font-variant-numeric: lining-nums proportional-nums; }
td, .kpi small, .mono { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
#page > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
#page > *:nth-child(2) { animation-delay: .05s; } #page > *:nth-child(3) { animation-delay: .1s; } #page > *:nth-child(4) { animation-delay: .15s; } #page > *:nth-child(n+5) { animation-delay: .2s; }
.kpis > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.kpis > *:nth-child(2) { animation-delay: .06s; } .kpis > *:nth-child(3) { animation-delay: .12s; } .kpis > *:nth-child(4) { animation-delay: .18s; } .kpis > *:nth-child(5) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .login-art .slides i:first-child { opacity: 1; } }

/* desktop PWA window with title-bar overlay: keep the top bar clear of window buttons */
@media (display-mode: window-controls-overlay) { .top { padding-top: max(12px, env(titlebar-area-height, 0px)); -webkit-app-region: drag; } .top > * { -webkit-app-region: no-drag; } }

.menu, .scrim { display: none; }
@media (max-width: 1100px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(42, 9, 16, .45); z-index: 39; }
  .menu { display: inline-flex; }
  .ticker { margin-right: auto; }
  .ticker .lbl, .who-text { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  #page { padding: 22px 16px 60px; }
  .top, .offline { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: max(12px, env(safe-area-inset-top)); }
  h1 { font-size: 28px; }
  .hero { padding: 22px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .hero-stats b { font-size: 18px; }
  input[type=search] { min-width: 0; width: 100%; }
  .ph-r { width: 100%; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 24px 32px; min-height: 480px; }
}
