/* UPESI SMS design system: deep navy, electric blue, turquoise accent. */
:root {
  --navy: #0A2540; --navy-2: #0F3460; --blue: #1F6FEB; --blue-2: #175CD3; --cyan: #14C9B4; --cyan-ink: #04342C;
  --bg: #F5F7FA; --card: #FFFFFF; --ink: #1F2937; --ink-2: #4B5563; --muted: #8A94A6; --line: #E5E9F0; --line-2: #D5DBE5;
  --ok: #16A34A; --ok-bg: #E8F7EE; --warn: #B45309; --warn-bg: #FEF3E2; --err: #DC2626; --err-bg: #FDECEC; --info: #175CD3; --info-bg: #EAF2FF;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220; --card: #111A2B; --ink: #E5E9F0; --ink-2: #B4BECC; --muted: #7D8899; --line: #1F2A3D; --line-2: #2B3850;
    --ok-bg: #0F2A1C; --warn-bg: #2E220F; --err-bg: #2E1414; --info-bg: #0F2240; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220; --card: #111A2B; --ink: #E5E9F0; --ink-2: #B4BECC; --muted: #7D8899; --line: #1F2A3D; --line-2: #2B3850;
  --ok-bg: #0F2A1C; --warn-bg: #2E220F; --err-bg: #2E1414; --info-bg: #0F2240; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 600; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--muted); text-decoration: none; } .btn:active { transform: scale(.98); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; } .btn.primary:hover { background: var(--blue-2); }
.btn.accent { background: var(--cyan); border-color: var(--cyan); color: var(--cyan-ink); }
.btn.danger { color: var(--err); } .btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; } .btn[disabled] { opacity: .55; cursor: wait; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 4px; }
.field { margin: 0 0 12px; } .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; } .check input { width: auto; }

/* layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .spacer { flex: 1; } .stack > * + * { margin-top: 14px; }
.stat .label { font-size: 12.5px; color: var(--muted); } .stat .value { font-size: 24px; font-weight: 650; margin-top: 2px; letter-spacing: -.01em; }
.stat .sub { font-size: 12px; color: var(--muted); }
.page-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; } .page-head h1 { margin: 0; }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .g-side, .g2 { grid-template-columns: 1fr; } }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--err-bg); color: var(--err); } .pill.info { background: var(--info-bg); color: var(--info); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; } table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--bg); }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 2px; font-size: 13px; color: var(--muted); }

/* app shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy); color: #C9D6EA; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; padding: 4px 10px 18px; letter-spacing: .02em; }
.side .brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--cyan); color: var(--cyan-ink); display: grid; place-items: center; font-weight: 800; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #C9D6EA; font-size: 14px; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.side a.nav.on { background: var(--blue); color: #fff; }
.side .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7F93B3; padding: 14px 10px 4px; }
.side .badge { margin-left: auto; background: var(--cyan); color: var(--cyan-ink); border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.side .soon { margin-left: auto; font-size: 10px; background: #FAC775; color: #412402; border-radius: 999px; padding: 1px 7px; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.main { padding: 22px 24px 60px; max-width: 1240px; }
.credits { display: inline-flex; align-items: center; gap: 6px; background: var(--ok-bg); color: var(--ok); padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .menu-btn { display: inline-flex; } .main { padding: 16px; } .top { padding: 10px 16px; }
}
.shell > div, .card, .grid > * { min-width: 0; }
@media (max-width: 600px) {
  .top { gap: 6px; padding: 8px 12px; } .top > b, #lang, #theme { display: none; }
  .credits { padding: 4px 9px; font-size: 12px; } .stat .value { font-size: 20px; }
  .page-head h1 { font-size: 20px; } .grid.g2 .btn { overflow: hidden; text-overflow: ellipsis; }
}

/* bars chart */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.bars .b { flex: 1; background: var(--blue); opacity: .75; border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .b:hover { opacity: 1; } .bars .b:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 4px; white-space: nowrap; margin-bottom: 4px; }
.bars-x { display: flex; gap: 4px; font-size: 10.5px; color: var(--muted); } .bars-x span { flex: 1; text-align: center; overflow: hidden; }
.hbar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; } .hbar > div { height: 100%; background: var(--blue); }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; display: flex; } .progress > div { height: 100%; }

/* tabs, empty, skeleton, toast, modal */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; font: inherit; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); } .empty .ico { font-size: 30px; margin-bottom: 6px; } .empty h3 { color: var(--ink); }
.skel { background: linear-gradient(90deg, var(--line) 25%, var(--bg) 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; max-width: 360px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: tin .2s; }
.toast.err { background: var(--err); } .toast.ok { background: var(--ok); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(10, 20, 40, .5); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--card); border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.wide { max-width: 780px; } .modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.code { font-family: var(--mono); font-size: 12.5px; background: #0B1220; color: #D7E3F4; border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre; line-height: 1.6; position: relative; }
.copy { position: absolute; top: 8px; right: 8px; } .note { background: var(--info-bg); color: var(--info); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.note.warn { background: var(--warn-bg); color: var(--warn); } .note.err { background: var(--err-bg); color: var(--err); } .note.ok { background: var(--ok-bg); color: var(--ok); }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; } .kv:last-child { border: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; } .bubble.in { background: var(--bg); align-self: flex-start; } .bubble.out { background: var(--info-bg); color: var(--ink); align-self: flex-end; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-form { display: grid; place-items: center; padding: 32px 18px; } .auth-form .card { width: 100%; max-width: 420px; padding: 26px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- EARNINGS (admin Overview), from the "SMS · Earnings" mockup 2026-11-11 ---------- */
:root { --e-blue: #1447B8; --e-blue-bg: #E8EFFC; --e-sky: #0EA5E9; --e-sky-bg: #E6F6FD; --e-org: #E8880C; --e-org-bg: #FFF3E0;
  --e-vio: #7C3AED; --e-vio-bg: #F1EBFE; --e-grn-ink: #166534; --e-grn-bg: #E6F4EC; --e-red-ink: #991B1B; --e-red-bg: #FDECEC;
  --e-org-ink: #B45309; --e-sky-ink: #0369A1; --e-soft: #F7F9FC; --e-track: #EEF1F5; --e-head: #64748B; --e-warn-bg: #FFF8EB; --e-warn-line: #FBDDA7; --e-warn-ink: #713F12; --e-num: "JetBrains Mono", var(--mono); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --e-blue: #7AA2F7; --e-blue-bg: #13244A; --e-sky: #38BDF8; --e-sky-bg: #0C2A3A; --e-org: #F5A524; --e-org-bg: #33240C;
  --e-vio: #A78BFA; --e-vio-bg: #251A45; --e-grn-ink: #86EFAC; --e-grn-bg: #0F2A1C; --e-red-ink: #FCA5A5; --e-red-bg: #2E1414;
  --e-org-ink: #F5A524; --e-sky-ink: #7DD3FC; --e-soft: #0E1626; --e-track: #1F2A3D; --e-head: #7D8899; --e-warn-bg: #2E220F; --e-warn-line: #5C4310; --e-warn-ink: #FCD9A0; } }
:root[data-theme="dark"] {
  --e-blue: #7AA2F7; --e-blue-bg: #13244A; --e-sky: #38BDF8; --e-sky-bg: #0C2A3A; --e-org: #F5A524; --e-org-bg: #33240C;
  --e-vio: #A78BFA; --e-vio-bg: #251A45; --e-grn-ink: #86EFAC; --e-grn-bg: #0F2A1C; --e-red-ink: #FCA5A5; --e-red-bg: #2E1414;
  --e-org-ink: #F5A524; --e-sky-ink: #7DD3FC; --e-soft: #0E1626; --e-track: #1F2A3D; --e-head: #7D8899; --e-warn-bg: #2E220F; --e-warn-line: #5C4310; --e-warn-ink: #FCD9A0; }
.earn { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 14px 34px rgba(15,27,45,.06); }
.earn .num { font-family: var(--e-num); font-variant-numeric: tabular-nums; }
.earn-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.earn-title { display: flex; align-items: center; gap: 12px; }
.earn-logo { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, #1447B8, #0F1B2D); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(20,71,184,.28); flex-shrink: 0; }
.earn-title h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; } .earn-title small { font-size: 12.5px; color: var(--ink-2); }
.earn-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 13px; background: var(--e-soft); border: 1px solid var(--line); overflow-x: auto; }
.earn-tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 500; background: transparent; color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: background .12s, color .12s; }
.earn-tabs button:hover { color: var(--ink); }
.earn-tabs button[aria-selected="true"] { background: var(--card); color: var(--e-blue); font-weight: 700; box-shadow: 0 1px 3px rgba(15,27,45,.12); }
.earn-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.earn-kpi { border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; min-width: 0; }
.earn-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,27,45,.08); }
.earn-kpi .kt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.earn-kpi .lab { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.earn-tile { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.earn-kpi .val { font-size: 32px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--ink); overflow-wrap: anywhere; }
.earn-kpi .unit { font-size: 15px; font-weight: 600; margin-right: 6px; color: var(--e-head); letter-spacing: 0; }
.earn-kpi .sub { align-self: flex-start; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; }
.earn-kpi.hero { background: linear-gradient(140deg, #0B3B2A, #0F5A3D 60%, #16A34A); border-color: transparent; color: #fff; box-shadow: 0 14px 30px rgba(22,163,74,.25); }
.earn-kpi.hero.neg { background: linear-gradient(140deg, #3B0B0B, #5A0F0F 60%, #DC2626); box-shadow: 0 14px 30px rgba(220,38,38,.25); }
.earn-kpi.hero .lab { color: #BBF7D0; } .earn-kpi.hero.neg .lab { color: #FECACA; }
.earn-kpi.hero .val { color: #fff; } .earn-kpi.hero .unit { color: #86EFAC; } .earn-kpi.hero.neg .unit { color: #FCA5A5; }
.earn-kpi.hero .earn-tile { background: rgba(255,255,255,.15); } .earn-kpi.hero .sub { background: rgba(255,255,255,.14); color: #D1FAE5; }
.earn-break { border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.earn-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr .8fr 1fr; gap: 0 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); min-width: 640px; transition: background .12s; }
.earn-row:last-child { border-bottom: 0; } .earn-row:not(.h):hover { background: var(--e-soft); }
.earn-row.h { padding: 11px 18px; background: var(--e-soft); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--e-head); text-transform: uppercase; }
.earn-seg { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; }
.earn-seg .earn-tile { width: 34px; height: 34px; }
.earn-row .num { font-size: 14px; font-weight: 600; } .earn-row .cost { color: var(--ink-2); }
.earn-pill { justify-self: start; font-size: 13.5px; font-weight: 700; border-radius: 8px; padding: 3px 9px; background: var(--e-grn-bg); color: var(--e-grn-ink); }
.earn-pill.neg { background: var(--e-red-bg); color: var(--e-red-ink); }
.earn-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.earn-box { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.earn-box h3 { margin: 0; font-size: 15px; font-weight: 700; } .earn-box .bh { display: flex; align-items: center; gap: 10px; }
.earn-box .bh .earn-tile { width: 30px; height: 30px; border-radius: 9px; }
.earn-cust { display: flex; flex-direction: column; gap: 8px; padding: 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; transition: background .12s; }
.earn-cust:hover { background: var(--e-soft); text-decoration: none; }
.earn-cust .ln { display: flex; align-items: center; gap: 12px; }
.earn-cust .rk { width: 22px; text-align: center; font-size: 12px; font-weight: 700; color: var(--e-head); } .earn-cust .rk.first { color: var(--e-org-ink); }
.earn-av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.earn-cust .nm { flex-grow: 1; font-size: 14.5px; font-weight: 600; color: var(--e-blue); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earn-cust .amt { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.earn-bar { margin-left: 66px; height: 6px; border-radius: 999px; background: var(--e-track); overflow: hidden; display: block; } .earn-bar span { display: block; height: 100%; border-radius: 999px; }
.earn-hold { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.earn-hold > div { border-radius: 14px; background: var(--e-soft); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.earn-hold .l { font-size: 12.5px; color: var(--ink-2); } .earn-hold .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.earn-hold .v small { font-size: 13px; color: var(--e-head); margin-right: 5px; letter-spacing: 0; }
.earn-warn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--e-warn-bg); border: 1px solid var(--e-warn-line); font-size: 13px; font-weight: 500; color: var(--e-warn-ink); }
.earn-note { display: flex; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.earn-note svg { flex-shrink: 0; margin-top: 3px; }
.earn-empty { font-size: 13.5px; color: var(--ink-2); margin: 4px 0; }
/* Layout follows the card width (the admin menu takes room), not the screen. */
#earn { container-type: inline-size; }
@container (max-width: 960px) { .earn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 760px) { .earn { padding: 18px 16px; border-radius: 18px; } .earn-bottom { grid-template-columns: 1fr; } .earn-kpi .val { font-size: 26px; } }
@container (max-width: 440px) { .earn-kpis, .earn-hold { grid-template-columns: 1fr; } }
.earn-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px; border-radius: 12px; background: var(--e-soft); font-size: 13px; color: var(--ink-2); margin-top: -8px; }
.earn-sent b { color: var(--ink); font-family: var(--e-num); font-weight: 700; }

/* Sign-up (2026-11-11): show/hide password, live checks */
.pw { position: relative; } .pw input { padding-right: 46px; }
.pw .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.pw .eye:hover { color: var(--ink); background: var(--bg); }
.live { font-size: 12.5px; margin-top: 5px; min-height: 18px; } .live.ok { color: var(--ok); } .live.bad { color: var(--err); } .live.info { color: var(--ink-2); }
.auth-form .field label .req { color: var(--err); margin-left: 2px; }
