/* Astra SMS — console design system
   Palette comes from the Astra mark (sky blue on deep navy); Tether green is used
   only where money in USDT is involved; amber means "transmitting". */
:root {
  --ink: #0F1B2D;
  --ink-2: #4A5A72;
  --ink-3: #8492A6;
  --fog: #EEF2F7;
  --card: #FFFFFF;
  --line: #DDE4ED;
  --line-2: #EBF0F5;

  --navy: #0E1E36;
  --navy-2: #172B4B;
  --navy-ink: #C9D5E6;
  --navy-line: rgba(255, 255, 255, .08);

  --astra: #2F78CF;
  --astra-deep: #2363AF;
  --astra-sky: #62A0E0;
  --astra-soft: #E4EEFA;

  --signal: #E8A23A;
  --signal-soft: #FCF1DE;
  --tether: #1F8A68;
  --tether-bright: #26A17B;
  --tether-deep: #18734F;
  --tether-soft: #DFF3EC;
  --danger: #C9424A;
  --danger-soft: #FBE7E8;

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 10px;
  --notch: 18px;
  --side-w: 252px;

  --surface-2: #F7F9FC;
  --row-hover: #FAFBFD;
  --input-bg: #FBFCFE;
  --line-strong: #C3CEDC;
  --switch-off: #CBD5E1;
  --astra-ink: #1D5AA3;
  --signal-ink: #8A560C;
  --tether-ink: #18734F;
  --danger-ink: #C9424A;
  --danger-soft-2: #F6D3D5;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .08);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234A5A72' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Dark theme: deep-space navy canvas; the sidebar drops a step darker so it still reads as the frame. */
:root[data-theme="dark"] {
  --ink: #E6EDF7;
  --ink-2: #A5B4CA;
  --ink-3: #6F819D;
  --fog: #0A1220;
  --card: #101B2D;
  --line: #213149;
  --line-2: #19273D;
  --line-strong: #314664;
  --surface-2: #132036;
  --row-hover: #14223A;
  --input-bg: #0C1626;
  --switch-off: #314664;

  --navy: #060C18;
  --navy-2: #13223A;

  --astra: #3F8AE0;
  --astra-deep: #2F78CF;
  --astra-soft: rgba(98, 160, 224, .14);
  --astra-ink: #8DBDF0;
  --signal-soft: rgba(232, 162, 58, .14);
  --signal-ink: #F2BC63;
  --tether: #1F8A68;
  --tether-deep: #239C76;
  --tether-soft: rgba(38, 161, 123, .16);
  --tether-ink: #5CD3A6;
  --danger-soft: rgba(229, 96, 104, .14);
  --danger-soft-2: rgba(229, 96, 104, .24);
  --danger-ink: #F28C92;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A5B4CA' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6EDF7;
    --ink-2: #A5B4CA;
    --ink-3: #6F819D;
    --fog: #0A1220;
    --card: #101B2D;
    --line: #213149;
    --line-2: #19273D;
    --line-strong: #314664;
    --surface-2: #132036;
    --row-hover: #14223A;
    --input-bg: #0C1626;
    --switch-off: #314664;

    --navy: #060C18;
    --navy-2: #13223A;

    --astra: #3F8AE0;
    --astra-deep: #2F78CF;
    --astra-soft: rgba(98, 160, 224, .14);
    --astra-ink: #8DBDF0;
    --signal-soft: rgba(232, 162, 58, .14);
    --signal-ink: #F2BC63;
    --tether: #1F8A68;
    --tether-deep: #239C76;
    --tether-soft: rgba(38, 161, 123, .16);
    --tether-ink: #5CD3A6;
    --danger-soft: rgba(229, 96, 104, .14);
    --danger-soft-2: rgba(229, 96, 104, .24);
    --danger-ink: #F28C92;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A5B4CA' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font: 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--astra); text-decoration: none; }
a:hover { color: var(--astra-deep); }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; margin: 0; color: var(--ink); }
h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; }
h2 { font-size: 1.05rem; font-weight: 600; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--astra); outline-offset: 2px; border-radius: 4px; }

/* Stencil notch — echoes the cut letterforms of the Astra wordmark */
.notch { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px 16px 16px;
  background: var(--navy);
  color: var(--navy-ink);
  overflow-y: auto;
}
.side__brand { display: block; padding: 2px 10px 6px; }
.side__brand img { height: 46px; width: auto; display: block; }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__label {
  margin: 14px 10px 6px;
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: #6F82A0;
}
.side__link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--navy-ink); font-weight: 500;
  transition: background .15s, color .15s;
}
.side__link i { font-size: 1.05rem; color: #7F93B2; transition: color .15s; }
.side__link:hover { background: var(--navy-2); color: #fff; }
.side__link:hover i { color: var(--astra-sky); }
.side__link.is-active { background: var(--navy-2); color: #fff; box-shadow: inset 2px 0 0 var(--astra-sky); }
.side__link.is-active i { color: var(--astra-sky); }
.side__badge {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px;
  background: var(--signal); color: var(--navy);
  font: 600 .72rem/1.5 var(--f-mono); text-align: center;
}
.side__wallet {
  margin-top: auto;
  padding: 16px 16px 14px;
  background: linear-gradient(160deg, #1D3A63, #152B4A);
  color: #fff;
}
.side__wallet span { font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8FA6C6; }
.side__wallet strong { display: block; margin: 6px 0 12px; font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; }
.side__user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 6px 2px; border-top: 1px solid var(--navy-line);
}
.avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--astra); color: #fff; font: 600 .9rem var(--f-display);
}
.side__user b { display: block; color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.side__user small { color: #7F93B2; font-size: .78rem; }
.side__logout { margin-left: auto; color: #7F93B2; padding: 6px; border-radius: 6px; }
.side__logout:hover { color: #fff; background: var(--navy-2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px 36px 60px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(84vw, var(--side-w));
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(9, 18, 33, .5); }
  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 30;
    padding: 10px 16px; background: var(--navy); color: #fff;
  }
  .topbar img { height: 30px; }
  .topbar__balance { margin-left: auto; font-size: .85rem; color: var(--navy-ink); }
  .content { padding: 24px 16px 48px; }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font-size: 1.2rem;
}
.icon-btn:hover { background: rgba(127, 147, 178, .16); }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head p { margin-top: 6px; color: var(--ink-2); max-width: 60ch; }
.eyebrow { display: block; margin-bottom: 8px; font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--astra); }

/* ---------- Layout ---------- */
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-aside { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-aside { grid-template-columns: 1fr; } }

/* ---------- Card ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card__head p { color: var(--ink-2); font-size: .88rem; margin-top: 3px; }
.card__body { padding: 18px 20px 20px; }
.card__foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; align-items: center; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--card); padding: 18px 20px; }
.stat__label { font-size: .82rem; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.stat__label i { color: var(--ink-3); }
.stat__value { display: block; margin-top: 8px; font: 500 1.6rem/1.1 var(--f-mono); letter-spacing: -.03em; }
.stat__value small { font-size: .9rem; color: var(--ink-3); margin-left: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  font: 600 .9rem/1 var(--f-body); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.btn[hidden] { display: none; }
.btn--primary { background: var(--astra); color: #fff; }
.btn--primary:hover { background: var(--astra-deep); color: #fff; }
.btn--ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.btn--danger { background: var(--danger-soft); color: var(--danger-ink); }
.btn--danger:hover { background: var(--danger-soft-2); color: var(--danger-ink); }
.btn--tether { background: var(--tether); color: #fff; }
.btn--tether:hover { background: var(--tether-deep); color: #fff; }
.btn--signal { background: var(--signal); color: var(--navy); }
.btn--signal:hover { background: #F0B254; color: var(--navy); }
.btn--sm { height: 32px; padding: 0 12px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--icon { width: 32px; height: 32px; padding: 0; }
.side .btn--tether { width: 100%; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--input-bg);
  font: 400 .93rem var(--f-body); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input.mono { font-family: var(--f-mono); font-size: .85rem; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--astra); background: var(--card); box-shadow: 0 0 0 3px var(--astra-soft); }
.input--sm { height: 32px; font-size: .85rem; }
.select { appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row > .field { flex: 1 1 160px; }
.input-affix { position: relative; }
.input-affix .input { padding-right: 60px; }
.input-affix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 500 .78rem var(--f-mono); color: var(--ink-3); }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .86rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 38px; height: 22px; border-radius: 99px; background: var(--switch-off); position: relative; transition: background .15s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch__track { background: var(--tether); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--astra); outline-offset: 2px; }

/* Dropzone */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--input-bg); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--astra); background: var(--astra-soft); }
.drop i { font-size: 1.5rem; color: var(--astra); }
.drop b { font-weight: 600; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--wait, .pill--pending { background: var(--signal-soft); color: var(--signal-ink); }
.pill--sent, .pill--approved, .pill--ok { background: var(--tether-soft); color: var(--tether-ink); }
.pill--rejected, .pill--off { background: var(--danger-soft); color: var(--danger-ink); }
.pill--admin { background: var(--astra-soft); color: var(--astra-ink); }
.pill--user { background: var(--line-2); color: var(--ink-2); }

/* ---------- Table ---------- */
.table-tools { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.search { position: relative; flex: 0 1 300px; }
.search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 36px; height: 38px; }
.table-wrap { overflow-x: auto; position: relative; } /* keeps .sr-only labels inside, so they never widen the page */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; padding: 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line-2);
  font: 500 .7rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.table td { padding: 12px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--row-hover); }
.table .num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .hash { font-family: var(--f-mono); font-size: .8rem; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: .84rem; color: var(--ink-2); }
.pager[hidden] { display: none; }
.pager div { display: flex; gap: 6px; }

/* ---------- Empty ---------- */
.empty { padding: 44px 20px; text-align: center; color: var(--ink-2); }
.empty i { display: block; font-size: 1.8rem; color: var(--ink-3); margin-bottom: 10px; }
.empty b { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 600; margin-bottom: 4px; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--astra-soft); color: var(--astra-ink); font-size: .88rem; }
.notice i { font-size: 1.1rem; line-height: 1.4; }
.notice--warn { background: var(--signal-soft); color: var(--signal-ink); }
.notice--danger { background: var(--danger-soft); color: var(--danger-ink); }

/* ---------- Transmission panel (overview) ---------- */
.transmit {
  position: relative; overflow: hidden;
  padding: 26px 28px;
  background: var(--navy); color: var(--navy-ink);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center;
}
.transmit::after {
  content: ""; position: absolute; right: -90px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(98, 160, 224, .22), transparent);
  pointer-events: none;
}
.transmit.is-live::after { background: radial-gradient(closest-side, rgba(232, 162, 58, .2), transparent); }
.transmit__state { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.transmit__state h2 { color: #fff; font-size: 1.35rem; }
.transmit p { max-width: 54ch; font-size: .92rem; }
.transmit__actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.transmit .btn--ghost { background: transparent; border-color: rgba(255,255,255,.18); color: #fff; }
.transmit .btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.beacon { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%; background: #5C6E8C; }
.is-live .beacon { background: var(--signal); }
.is-live .beacon::before, .is-live .beacon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--signal);
  animation: beacon 2.4s ease-out infinite;
}
.is-live .beacon::after { animation-delay: 1.2s; }
@keyframes beacon { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
@media (max-width: 720px) { .transmit { grid-template-columns: 1fr; padding: 22px; } }

/* Shortcut tiles */
.tile { display: flex; gap: 14px; padding: 18px 20px; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.tile__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--astra-soft); color: var(--astra); font-size: 1.15rem; }
.tile--tether .tile__icon { background: var(--tether-soft); color: var(--tether); }
.tile p { color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
.tile .bi-arrow-right { margin-left: auto; align-self: center; color: var(--ink-3); }

/* ---------- SMS template bubbles ---------- */
.bubbles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bubble-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.bubble {
  position: relative; padding: 12px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--fog); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.bubble-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--ink-3); }
.counter { font: 500 .78rem var(--f-mono); color: var(--ink-3); }
.counter.is-full { color: var(--danger-ink); }

/* ---------- Secrets ---------- */
.secret { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .82rem; }
.secret button { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.secret button:hover { color: var(--astra); }

/* ---------- USDT deposit ticket ---------- */
.net-tabs { display: flex; gap: 6px; padding: 4px; background: var(--line-2); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
.net-tab {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 7px; cursor: pointer;
  font: 600 .84rem var(--f-body); color: var(--ink-2); white-space: nowrap;
}
.net-tab small { font: 500 .72rem var(--f-mono); color: var(--ink-3); margin-left: 4px; }
.net-tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

.ticket { background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.ticket__top {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px;
  background: var(--navy); color: #fff;
}
.coin { width: 34px; height: 34px; flex: none; display: block; }
.ticket__top b { font-family: var(--f-display); font-weight: 600; }
.ticket__top small { display: block; color: var(--navy-ink); font-size: .78rem; }
.ticket__body { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; padding: 22px; align-items: center; }
.ticket__qr { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ticket__qr svg { display: block; width: 100%; height: auto; }
.ticket__addr {
  display: block; margin: 8px 0 12px; padding: 12px 14px; border-radius: 8px; background: var(--fog);
  font: 500 .88rem/1.5 var(--f-mono); word-break: break-all; letter-spacing: .01em;
}
.ticket__addr .lead { color: var(--astra-ink); font-weight: 600; }
.ticket__perf { height: 0; border-top: 1.5px dashed var(--line); margin: 0 22px; }
.ticket__warn { padding: 14px 22px 18px; font-size: .84rem; color: var(--ink-2); display: flex; gap: 10px; }
.ticket__warn i { color: var(--signal); }
@media (max-width: 560px) { .ticket__body { grid-template-columns: 1fr; justify-items: center; } .ticket__qr { width: 190px; } .ticket__body > div:last-child { width: 100%; } }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: .9rem; color: var(--ink-2); counter-increment: step; }
.steps li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--astra-soft); color: var(--astra-ink); font: 600 .8rem var(--f-mono);
}
.steps b { color: var(--ink); font-weight: 600; }

/* Wallet settings rows (admin) */
.wallet-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 122px; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.wallet-row:first-child { border-top: 0; }
.wallet-row__net b { display: block; font-family: var(--f-display); font-weight: 600; }
.wallet-row__net small { color: var(--ink-3); font-size: .8rem; }
.wallet-row .hint { margin-top: 5px; font-size: .78rem; color: var(--ink-3); }
@media (max-width: 760px) { .wallet-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: .88rem; box-shadow: 0 10px 30px rgba(9, 18, 33, .25);
  animation: toast-in .2s ease-out;
}
.toast i { font-size: 1rem; line-height: 1.35; }
.toast--ok i { color: #4FD1A0; }
.toast--error i { color: #FF8C91; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--card); }
.auth__brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 48px; background: var(--navy); color: var(--navy-ink);
}
.auth__brand::after {
  content: ""; position: absolute; left: -20%; bottom: -40%; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(98, 160, 224, .2), transparent);
}
.auth__brand img { width: 170px; height: auto; position: relative; z-index: 1; }
.auth__pitch { position: relative; z-index: 1; max-width: 26rem; }
.auth__pitch h2 { color: #fff; font-size: 2rem; line-height: 1.15; font-weight: 600; margin-bottom: 14px; }
.auth__pitch p { font-size: .95rem; }
.auth__feed { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; font: 400 .78rem var(--f-mono); color: #7F93B2; }
.auth__feed span::before { content: "›"; color: var(--astra-sky); margin-right: 8px; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__form form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.auth__form h1 { font-size: 1.6rem; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { padding: 28px 24px; min-height: auto; gap: 28px; }
  .auth__pitch h2 { font-size: 1.5rem; }
  .auth__feed { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Dark-theme touches that tokens alone don't cover */
:root[data-theme="dark"] .transmit, :root[data-theme="dark"] .ticket__top { box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .side { border-right: 1px solid var(--line-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .transmit, :root:not([data-theme="light"]) .ticket__top { box-shadow: inset 0 0 0 1px var(--line); }
  :root:not([data-theme="light"]) .side { border-right: 1px solid var(--line-2); }
}
body { transition: background-color .2s; }

/* Theme switch in the sidebar */
.theme-switch { display: flex; gap: 2px; padding: 3px; margin: 0 6px; border-radius: 9px; background: var(--navy-2); }
.theme-switch button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  color: #8193B0; font: 500 .78rem var(--f-body);
}
.theme-switch button:hover { color: #fff; }
.theme-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

/* Filter chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer;
  font: 600 .82rem var(--f-body);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.chip b { font: 500 .74rem var(--f-mono); opacity: .7; }
.lock-note { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: .8rem; color: var(--ink-3); }
.link-btn { border: 0; background: none; padding: 0; color: var(--astra); font: 600 .8rem var(--f-body); cursor: pointer; }
.link-btn:hover { color: var(--astra-deep); text-decoration: underline; }
.link-btn--danger { color: var(--danger-ink); }
.role-cell { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Signup extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--astra); flex: none; }

/* Tier strip on the funds page */
.tier-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line-2); }
.tier-strip__item { background: var(--card); padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 2px; }
.tier-strip__item span { font-size: .8rem; color: var(--ink-2); }
.tier-strip__item b { font-size: 1.15rem; font-weight: 500; }
.tier-strip__item small { font-size: .76rem; color: var(--ink-3); }
.tier-strip__item.is-current { background: var(--astra-soft); box-shadow: inset 0 -2px 0 var(--astra); }
.tier-strip__item.is-current span::after { content: " · your price"; color: var(--astra-ink); font-weight: 600; }

/* ---------- Sendza logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; flex: none; display: block; }
.brand__chev { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.brand__chev--back { opacity: .55; }
.brand__word { font: 600 1.4rem/1 var(--f-display); letter-spacing: -.035em; color: #fff; }
.brand__word span { color: var(--astra-sky); }
a:hover .brand__chev { transform: translateX(1.5px); }
a:hover .brand__chev--back { transform: translateX(-1px); }
.brand--sm .brand__mark { width: 26px; height: 26px; }
.brand--sm .brand__word { font-size: 1.15rem; }
.brand--lg .brand__mark { width: 40px; height: 40px; }
.brand--lg .brand__word { font-size: 1.75rem; }
.side__brand { padding: 4px 10px 10px; }
.auth__logo { position: relative; z-index: 1; width: fit-content; }
@media (prefers-reduced-motion: reduce) { .brand__chev { transition: none; } }

/* ---------- Number status pills ---------- */
.pill--sending { background: var(--astra-soft); color: var(--astra-ink); }
.pill--sending::before { animation: pulse-dot 1.2s ease-in-out infinite; }
.pill--delivered { background: var(--tether-soft); color: var(--tether-ink); }
.pill--failed { background: var(--danger-soft); color: var(--danger-ink); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.status-flash { animation: status-flash 1.1s ease; }
@keyframes status-flash { 0% { background: var(--astra-soft); } 100% { background: transparent; } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tether-bright); animation: pulse-dot 2s ease-in-out infinite; }

/* ---------- Send queue (admin) ---------- */
.qcard { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line-2); }
.qcard:first-child { border-top: 0; }
.qcard__file { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.qcard__file > i { font-size: 1.4rem; color: var(--astra); line-height: 1.2; }
.qcard__file b { display: block; font-family: var(--f-display); font-weight: 600; word-break: break-word; }
.qcard__file small { color: var(--ink-3); font-size: .82rem; }
.qcard__money { font-size: .86rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.qcard__money b { color: var(--ink); font-family: var(--f-mono); font-weight: 500; }
.qcard__money .short { color: var(--danger-ink); }
.qcard__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.qcard__tpl { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.qcard__tpl .bubble { max-width: 420px; font-size: .84rem; padding: 8px 12px; cursor: pointer; }
.qcard__tpl .bubble:hover { outline: 1px solid var(--astra); }
@media (max-width: 900px) { .qcard { grid-template-columns: 1fr; } .qcard__actions { justify-content: flex-start; } }

/* ---------- Phone preview (website + Send SMS) ---------- */
.phone {
  justify-self: center; position: relative; width: 300px; height: 560px; padding: 14px; border-radius: 46px;
  background: #0B1424; box-shadow: 0 0 0 2px #22324C, 0 40px 80px rgba(15, 27, 45, .35);
}
.phone::before { content: ""; position: absolute; inset: 14px; border-radius: 34px; background: #F2F4F8; }
:root[data-theme="dark"] .phone::before { background: #0E1828; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone::before { background: #0E1828; } }
.phone > * { position: relative; }
.phone__notch { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 99px; background: #0B1424; z-index: 2; }
.phone__bar { display: flex; justify-content: space-between; padding: 12px 26px 0; font-size: .74rem; color: var(--ink); height: 40px; }
.phone__head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 0 12px; border-bottom: 1px solid var(--line); margin: 0 4px; }
.phone__head .avatar { width: 46px; height: 46px; font-size: 1.1rem; }
.phone__head b { font-size: .86rem; color: var(--ink); }
.phone__head small { font-size: .72rem; color: var(--ink-3); }
.phone__body { padding: 18px 16px; }
.phone__bubble { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.96); opacity: .6; } to { transform: none; opacity: 1; } }
.phone--sm { width: 270px; height: 500px; }

/* ---------- Sidebar Send SMS button ---------- */
.side__cta { margin: 0 4px; height: 44px; font-size: .95rem; box-shadow: 0 6px 20px rgba(47, 120, 207, .35); }
.side__cta.is-active { background: var(--astra-deep); }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 20px; }
.wallet { display: flex; flex-direction: column; gap: 6px; padding: 26px; background: linear-gradient(155deg, #1D3A63, var(--navy)); color: var(--navy-ink); container-type: inline-size; }
.wallet__label { font: 500 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8FA6C6; }
.wallet__amount { color: #fff; font-size: min(2.6rem, 13cqi); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.wallet__meta { font-size: .9rem; margin-bottom: 14px; }
.wallet__meta b, .wallet__meta .mono { color: #fff; font-weight: 500; }
.wallet .btn { margin-top: auto; align-self: flex-start; }
.msgs { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.msgs__head { display: flex; justify-content: space-between; align-items: flex-start; }
.bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.bar--thin { height: 8px; }
.bar__seg { height: 100%; transition: width .6s ease; }
.bar__seg--delivered { background: var(--tether-bright); }
.bar__seg--sending { background: var(--astra-sky); }
.bar__seg--waiting { background: var(--signal); }
.bar__seg--failed { background: var(--danger); }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.legend > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.legend span:nth-child(2) { font-size: .82rem; color: var(--ink-2); }
.legend b { grid-column: 2; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.dot { width: 10px; height: 10px; border-radius: 3px; }
.dot--delivered { background: var(--tether-bright); } .dot--sending { background: var(--astra-sky); }
.dot--waiting { background: var(--signal); } .dot--failed { background: var(--danger); }
.msgs__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-2); }
.msgs__state { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.msgs__state.is-on { color: var(--ink); }
.msgs__state.is-on .beacon { background: var(--signal); }
.msgs__state.is-on .beacon::before, .msgs__state.is-on .beacon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--signal); animation: beacon 2.4s ease-out infinite; }
.msgs__state.is-on .beacon::after { animation-delay: 1.2s; }
.msgs__state.is-paused .beacon { background: var(--signal); }
.msgs__state.is-done .beacon { background: var(--tether-bright); }
.msgs__state .beacon i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; color: #fff; }
.msgs__state small { font-weight: 500; color: var(--ink-3); }
.msgs__actions { display: flex; gap: 8px; }
@media (max-width: 900px) { .ov { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .legend { grid-template-columns: 1fr 1fr; row-gap: 14px; } }

.camp { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.camp:first-child { border-top: 0; }
.camp__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.camp__main b { font-family: var(--f-display); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp__main small { color: var(--ink-3); font-size: .8rem; }
.camp__msg { font-size: .84rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp__progress { display: flex; flex-direction: column; gap: 6px; }
.camp__text { font-size: .8rem; color: var(--ink-3); }
.camp__text b { color: var(--ink); font-weight: 600; }
.camp__state { justify-self: end; }
@media (max-width: 720px) { .camp { grid-template-columns: 1fr auto; } .camp__progress { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Send SMS ---------- */
.send { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.send__steps { display: flex; flex-direction: column; gap: 18px; }
.send__preview { position: sticky; top: 24px; }
.step { padding: 22px 24px; }
.step__head { display: flex; gap: 16px; align-items: flex-start; }
.step__head p { color: var(--ink-2); font-size: .88rem; margin-top: 3px; }
.step__num { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--astra); color: #fff; font: 600 .95rem var(--f-mono); }
.step__body { margin: 18px 0 0 50px; display: flex; flex-direction: column; gap: 14px; }
.step__note { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--ink-3); }
.step__note.is-ok { color: var(--tether-ink); font-weight: 600; }
.step__note.is-short { color: var(--danger-ink); }
.saved { display: flex; flex-direction: column; gap: 8px; }
.saved__list { display: flex; gap: 8px; flex-wrap: wrap; }
.receipt { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.receipt > div { display: flex; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--line-2); font-size: .92rem; }
.receipt > div:first-child { border-top: 0; }
.receipt span { color: var(--ink-2); }
.receipt__total { background: var(--surface-2); }
.receipt__total b { font-size: 1.15rem; }
.receipt .is-short { color: var(--danger-ink); }
.btn--lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 10px; }
.composer__meter { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--ink-3); }
@media (max-width: 980px) { .send { grid-template-columns: 1fr; } .send__preview { display: none; } }
@media (max-width: 560px) { .step__body { margin-left: 0; } }

.qcard__msg { max-width: 560px !important; font-size: .92rem !important; border: 1px solid var(--astra); }

/* Fixes: sidebar button never shrinks; empty-state icon rule only hits the big icon */
.side__cta { flex: none; display: flex; }
.empty i { display: inline; font-size: inherit; color: inherit; margin: 0; }
.empty > i { display: block; font-size: 1.8rem; color: var(--ink-3); margin-bottom: 10px; }
.side__spacer { flex: 1; }

/* Admin viewing a customer's dashboard */
.viewbar {
  position: sticky; top: 0; z-index: 35;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 36px; background: var(--signal); color: #3A2504; font-size: .9rem;
}
.viewbar > i { font-size: 1.1rem; }
.viewbar__btn { margin-left: auto; background: #3A2504; color: #fff; }
.viewbar__btn:hover { background: #241602; color: #fff; }
@media (max-width: 960px) { .viewbar { top: 50px; padding: 10px 16px; } }

/* Admin overview */
.astats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.astat { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: var(--ink); }
.astat:hover { color: var(--ink); border-color: var(--line-strong); }
.astat__top { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--ink-2); }
.astat__top i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--astra-soft); color: var(--astra-ink); font-size: 1rem; }
.astat b { font: 500 1.9rem/1.1 var(--f-mono); letter-spacing: -.03em; }
.astat small { color: var(--ink-3); font-size: .8rem; }
.astat--warn .astat__top i { background: var(--signal-soft); color: var(--signal-ink); }
.astat--money .astat__top i { background: var(--tether-soft); color: var(--tether-ink); }
@media (max-width: 1000px) { .astats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .astats { grid-template-columns: 1fr; } }

/* Finish dialog (send queue) */
.dlg { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(6, 14, 32, .45); }
.dlg::backdrop { background: rgba(6, 14, 32, .55); backdrop-filter: blur(2px); }
.dlg form { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 24px; }
.dlg h2 { margin: 0; }
.dlg p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.dlg__split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlg__split > div { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.dlg__split span { display: block; font-size: .78rem; color: var(--ink-3); }
.dlg__split b { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.dlg__split .is-failed b { color: var(--danger); }
.dlg__actions { display: flex; justify-content: flex-end; gap: 8px; }
.dlg .or { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-3); }
.dlg .or::before, .dlg .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* Telegram support managers (sidebar card, admin preview) */
.support-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--navy-2); color: var(--navy-ink); }
.support-card--side { margin-top: auto; }
.support-card--side + .side__wallet { margin-top: 0; }
.support-card__label { padding: 0 4px 4px; font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #8FA6C6; }
.support-card__item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: #fff; transition: background .15s; }
.support-card__item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.support-card__item i { font-size: 1.25rem; color: #2AABEE; }
.support-card__item span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.support-card__item b { font-size: .86rem; font-weight: 600; }
.support-card__item small { font: 400 .74rem var(--f-mono); color: #9DB0CC; overflow: hidden; text-overflow: ellipsis; }
.mgr-rows { display: flex; flex-direction: column; gap: 12px; }
.mgr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
.mgr-count { align-self: center; margin-top: 22px; font-size: .74rem; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 520px) { .mgr-row { grid-template-columns: 1fr auto auto; } .mgr-row .field:first-child { grid-column: 1 / -1; } }

/* Account and auth extras */
.stack-sm { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.stack-sm > .btn { align-self: flex-start; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field__link { font-size: .8rem; font-weight: 500; }
.auth__done { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.support-list { display: flex; flex-direction: column; gap: 8px; }
.email-nudge { align-items: center; margin-bottom: 20px; }
.email-nudge span { flex: 1; }
.email-nudge .btn { flex: none; }

/* Continue with Google */
.btn--google { background: #fff; color: #1F1F1F; border: 1px solid #DADCE0; gap: 10px; font-weight: 600; }
.btn--google:hover { background: #F7F8FA; color: #1F1F1F; border-color: #C6CAD1; }
.or-line { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--ink-3); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* Blockchain check result on pending payments */
.chain-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; max-width: 320px; font: 400 .78rem/1.4 var(--f-body, inherit); color: var(--ink-2); white-space: normal; }
.chain-note i { color: var(--signal); margin-top: 1px; }
.chain-note--found i { color: var(--tether); }
.chain-note--bad { color: var(--danger-ink); }
.chain-note--bad i { color: var(--danger); }

/* Announcement bar (customer dashboard and website) */
.ann { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 14px 12px 16px; border-radius: var(--r); font-size: .9rem; font-weight: 500; }
.ann[hidden] { display: none; }
.ann > i { font-size: 1.1rem; flex: none; }
.ann > span { flex: 1; }
.ann--info { background: var(--astra-soft); color: var(--astra-ink); }
.ann--offer { background: linear-gradient(100deg, #1D3A63, #2F6FE4); color: #fff; }
.ann--warning { background: var(--signal-soft); color: var(--signal-ink); }
.ann__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: .7; cursor: pointer; }
.ann__close:hover { opacity: 1; background: rgba(127, 127, 127, .15); }
.low-balance .btn { color: #fff; }
.otp-input { font-size: 1.5rem; letter-spacing: .35em; text-align: center; height: 56px; }

/* Two-step sign-in setup */
.twostep__setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.twostep__setup[hidden] { display: none; }
.twostep__qr { padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); line-height: 0; }
.twostep__qr svg { width: 180px; height: 180px; }
.twostep h2 .pill { margin-left: 8px; vertical-align: middle; }
#tfa-key { word-break: break-all; font-size: .85rem; }
@media (max-width: 640px) { .twostep__setup { grid-template-columns: 1fr; } }

/* Send SMS: list cleaning summary and scheduling */
.clean { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clean[hidden] { display: none; }
.clean__item { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.clean__item b { display: block; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.clean__item span { font-size: .76rem; color: var(--ink-3); }
.clean__item--ok b { color: var(--tether-ink); }
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.schedule[hidden] { display: none; }
.schedule__tz, .schedule__note { grid-column: 1 / -1; }
.schedule__note { margin: 0; font-size: .84rem; color: var(--ink-2); }
.net-tab i { margin-right: 4px; }
@media (max-width: 520px) { .clean { grid-template-columns: 1fr; } }

/* Campaign rows: schedule, status, report menu */
.pill--scheduled { background: rgba(124, 92, 255, .12); color: #6A4FE0; }
:root[data-theme="dark"] .pill--scheduled { color: #B6A6FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill--scheduled { color: #B6A6FF; } }
.camp__end { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.camp__actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.camp__when { color: #6A4FE0; font-weight: 500; white-space: nowrap; }
.camp__when i { margin-right: 2px; }
.camps__msg { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .camp__end { grid-column: 1 / -1; justify-content: space-between; } }

/* Refer & earn */
.refer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 22px; align-items: center; }
.refer__link { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.refer__row { display: flex; gap: 10px; align-items: center; }
.refer__row code { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.refer__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.refer__stats div { padding: 14px; background: var(--card); }
.refer__stats span { display: block; font-size: .76rem; color: var(--ink-3); }
.refer__stats b { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; }
@media (max-width: 820px) { .refer { grid-template-columns: 1fr; } .refer__row { flex-direction: column; align-items: stretch; } }
.ann-preview { display: flex; flex-direction: column; gap: 6px; }
.ann-preview .ann { margin: 0; }

/* Activity log */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.select--sm { height: 36px; font-size: .86rem; width: auto; padding-right: 32px; }
.log__what { font-weight: 600; white-space: nowrap; }
.log__what--deposit { color: var(--tether-ink); }
.log__what--security, .log__what--admin { color: var(--danger-ink); }
.log__details { max-width: 420px; color: var(--ink-2); font-size: .86rem; }

/* Analytics */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: .8rem; color: var(--ink-3); }
.kpi b { font-size: 1.7rem; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.kpi small { font-size: .78rem; color: var(--ink-3); }
.kpi--money b { color: var(--tether-ink); }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.chart__col { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; }
.chart__col:hover { background: var(--surface-2); }
.chart__bar { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--astra); opacity: .85; }
.chart__bar--money { background: var(--tether-bright); }
.chart__col:hover .chart__bar { opacity: 1; }
.chart__axis { display: flex; justify-content: space-between; margin-top: 8px; font: 400 .72rem var(--f-mono); color: var(--ink-3); }
.share { width: 120px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.share span { display: block; height: 100%; background: var(--astra); }
.page-head .net-tabs a.net-tab { text-decoration: none; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
