/* Shared styling for the auth pages (login / signup / dashboard).
   Theme-aware: follows the site's saved theme (localStorage 'writerify-theme'),
   light by default, with a toggle that persists the same key as the main site. */
:root {
  --grad: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #fbbf24 100%);
  /* Light (default) */
  --bg: radial-gradient(85% 60% at 50% 0%, #f4ecff 0%, #fbf7ff 55%, #ffffff 100%);
  --card-bg: #ffffff;
  --card-border: rgba(20, 20, 45, .09);
  --shadow: 0 24px 60px -26px rgba(90, 50, 160, .28);
  --text: #18162b;
  --muted: #6b6b80;
  --label: #4a4a5e;
  --input-bg: #f6f4fb;
  --input-border: rgba(20, 20, 45, .14);
  --input-focus: #ec4899;
  --chip-bg: rgba(20, 20, 45, .05);
  --chip-border: rgba(20, 20, 45, .1);
}
[data-theme='dark'] {
  --bg: radial-gradient(85% 60% at 50% 0%, #1e1b3a 0%, #0b0b14 60%, #07070d 100%);
  --card-bg: rgba(255, 255, 255, .04);
  --card-border: rgba(255, 255, 255, .09);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  --text: #e8e8f0;
  --muted: #9a9ab0;
  --label: #b9b9cc;
  --input-bg: rgba(255, 255, 255, .04);
  --input-border: rgba(255, 255, 255, .12);
  --input-focus: #ec4899;
  --chip-bg: rgba(255, 255, 255, .06);
  --chip-border: rgba(255, 255, 255, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
}
.auth-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; z-index: 1; }

/* Faint banner backdrop on the auth pages (login / signup) — NOT the dashboard. */
body:not(.dash-body)::before {
  content: ''; position: fixed; inset: 0;
  background: url('assets/banner.webp') center / cover no-repeat;
  opacity: .16; filter: blur(3px); transform: scale(1.06);
  z-index: 0; pointer-events: none;
}

.card {
  width: 100%; max-width: 420px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 800; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
h1 { font-size: 21px; text-align: center; margin: 14px 0 4px; }
.sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
label { display: block; font-size: 12.5px; color: var(--label); margin: 14px 0 6px; font-weight: 600; }
input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--input-border);
  background: var(--input-bg); color: var(--text); font-size: 14.5px; outline: none; transition: border-color .15s;
}
input:focus { border-color: var(--input-focus); }
.btn {
  width: 100%; margin-top: 22px; padding: 13px; border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--grad); transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.msg { margin-top: 16px; font-size: 13px; padding: 11px 13px; border-radius: 9px; display: none; }
.msg.err { display: block; background: rgba(239, 68, 68, .12); color: #ef4444; border: 1px solid rgba(239, 68, 68, .28); }
.msg.ok { display: block; background: rgba(16, 185, 129, .12); color: #059669; border: 1px solid rgba(16, 185, 129, .28); }
[data-theme='dark'] .msg.err { color: #fca5a5; }
[data-theme='dark'] .msg.ok { color: #6ee7b7; }
.row { display: flex; justify-content: flex-end; margin-top: 8px; }
.row a, .foot a { color: #a855f7; font-weight: 600; text-decoration: none; font-size: 13px; }
[data-theme='dark'] .row a, [data-theme='dark'] .foot a { color: #c4b5fd; }
.row a:hover, .foot a:hover { text-decoration: underline; }
.foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* Theme toggle — fixed top-right on every auth page. */
.theme-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 50;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--text);
}
.theme-toggle:hover { background: var(--input-bg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   Dashboard portal — fixed left sidebar + scrollable main, modern cards.
   ═══════════════════════════════════════════════════════════════════════ */
.dash-body { display: flex; min-height: 100vh; }

/* shared card + bits (used by dashboard/affiliate/settings) */
.dcard { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 22px 24px; margin-top: 18px; box-shadow: var(--shadow); }
.dlabel { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.plan { display: inline-flex; align-items: center; padding: 6px 15px; border-radius: 999px; font-weight: 800; font-size: 13.5px; color: #fff; background: var(--grad); text-transform: capitalize; }
.keybox { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
code { background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px; padding: 10px 14px; font-size: 15px; letter-spacing: .5px; color: #d97706; font-family: 'JetBrains Mono', monospace; }
[data-theme='dark'] code { color: #fcd34d; }
.copy { background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--text); padding: 9px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.copy:hover { background: var(--input-bg); }
.hint { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.loading { text-align: center; padding: 80px 0; color: var(--muted); }
a.cta { display: inline-block; margin-top: 16px; padding: 11px 20px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; text-decoration: none; font-size: 14px; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.dside { position: fixed; inset: 0 auto 0 0; width: 250px; display: flex; flex-direction: column;
  padding: 20px 14px; background: var(--card-bg); border-right: 1px solid var(--card-border); z-index: 20; }
.dside-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; padding: 4px 10px 20px; }
.dside-brand img { width: 30px; height: 30px; }
.dside-nav { display: flex; flex-direction: column; gap: 4px; }
.dnav { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: none; color: var(--label); font: inherit; font-weight: 600; font-size: 14px;
  padding: 11px 13px; border-radius: 11px; text-decoration: none; transition: background .15s, color .15s; }
.dnav svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.dnav:hover { background: var(--chip-bg); color: var(--text); }
.dnav.active { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(168, 85, 247, .7); }
.dnav.active svg { opacity: 1; }
.dside-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.dside-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; background: var(--chip-bg); border: 1px solid var(--chip-border); }
.dside-user .meta { min-width: 0; }
.dside-user .nm { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dside-user .em { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dside-logout { display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1px solid var(--chip-border);
  color: var(--muted); padding: 9px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; }
.dside-logout:hover { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .3); color: #ef4444; }
.dside-logout svg { width: 15px; height: 15px; }

/* ── Main column ─────────────────────────────────────────────────────── */
.dmain { flex: 1; margin-left: 250px; padding: 26px 34px 64px; min-width: 0; }
.dmain-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.dmain-top h1 { font-size: 25px; line-height: 1.2; margin: 0 0 5px; }
.dmain-top .sub { color: var(--muted); font-size: 14px; }
.dmain-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-up { background: var(--grad); color: #fff; padding: 9px 17px; border-radius: 10px; font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.btn-up:hover { opacity: .92; }
.dsec[hidden] { display: none; }
.dsec h2 { font-size: 15px; margin: 30px 0 0; }

/* ── Stat cards ──────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.stat { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.stat-head { display: flex; align-items: center; justify-content: space-between; }
.stat-lab { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(167,139,250,.18), rgba(236,72,153,.16)); color: #a855f7; }
.stat-ico svg { width: 17px; height: 17px; }
.stat-num { font-size: 26px; font-weight: 800; line-height: 1; margin-top: 15px; }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.stat.accent { background: var(--grad); border: none; }
.stat.accent .stat-lab, .stat.accent .stat-num, .stat.accent .stat-sub { color: #fff; }
.stat.accent .stat-ico { background: rgba(255,255,255,.2); color: #fff; }

/* ── Usage / trial bar ───────────────────────────────────────────────── */
.usage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.usage-val { font-size: 13px; color: var(--muted); font-weight: 600; }
.bar { height: 9px; border-radius: 999px; background: var(--input-bg); overflow: hidden; margin-top: 14px; }
.bar > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .5s ease; }

/* ── Quick actions ───────────────────────────────────────────────────── */
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.qa { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; cursor: pointer;
  background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; text-align: left; font: inherit; width: 100%; }
.qa:hover { transform: translateY(-2px); border-color: var(--input-focus); }
.qa-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 42px; }
.qa-ico svg { width: 20px; height: 20px; }
.qa > span { min-width: 0; }
.qa .t { display: block; font-weight: 700; font-size: 14.5px; }
.qa .d { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.qa .arr { margin-left: auto; color: var(--muted); display: flex; }
.qa .arr svg { width: 18px; height: 18px; }

/* ── Promo banner ────────────────────────────────────────────────────── */
.promo { margin-top: 26px; border-radius: 18px; padding: 28px 30px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.promo h3 { margin: 0 0 6px; font-size: 19px; }
.promo p { margin: 0; opacity: .94; font-size: 13.5px; max-width: 54ch; line-height: 1.55; }
.promo .pbtn { background: #fff; color: #7c3aed; padding: 12px 22px; border-radius: 11px; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.promo .pbtn:hover { transform: translateY(-1px); }

/* ── Account avatars ─────────────────────────────────────────────────── */
.acct-avatar, .avatar-lg { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff;
  background: var(--grad); background-size: cover; background-position: center; flex-shrink: 0; }
.acct-avatar { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
.avatar-lg { width: 72px; height: 72px; border-radius: 16px; font-size: 28px; }
.acct-avatar.has-img, .avatar-lg.has-img { color: transparent; }

/* ── How-it-works list ───────────────────────────────────────────────── */
.how { margin: 8px 0 0; padding-left: 20px; }
.how li { font-size: 13.5px; color: var(--muted); margin: 9px 0; line-height: 1.55; }
.how li strong { color: var(--text); }

/* ── Settings ────────────────────────────────────────────────────────── */
.avatar-row { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.filebtn { display: inline-block; padding: 9px 16px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13.5px;
  background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--text); }
.filebtn:hover { background: var(--input-bg); }
.dcard .btn { width: auto; padding: 11px 22px; margin-top: 0; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .dash-body { flex-direction: column; }
  .dside { position: static; width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px;
    border-right: none; border-bottom: 1px solid var(--card-border); padding: 12px 14px; }
  .dside-brand { padding: 0 8px 0 4px; }
  .dside-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .dnav { width: auto; padding: 9px 12px; }
  .dnav span { display: none; }
  .dside-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .dside-user .meta { display: none; }
  .dside-logout span { display: none; }
  .dmain { margin-left: 0; padding: 20px 16px 50px; }
  .dmain-top { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-grid { grid-template-columns: 1fr; }
}

/* ═══ Super-admin (License + User Manage) ════════════════════════════════ */
.admin-only { display: none !important; }
.dash-body.is-admin .dnav.admin-only { display: flex !important; }
.admin-sep { margin: 10px 8px 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dash-body.is-admin .admin-sep.admin-only { display: block !important; }

.gen-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
.gen-row .fld { display: flex; flex-direction: column; gap: 5px; }
.gen-row label { margin: 0; }
.gen-row select, .gen-row input { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); font-size: 14px; }
.gen-out { margin-top: 14px; display: none; }
.gen-out.show { display: block; }
.gen-out .keyline { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.table-wrap { overflow-x: auto; margin-top: 14px; }
.atable { width: 100%; border-collapse: collapse; font-size: 13px; }
.atable th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; border-bottom: 1px solid var(--card-border); white-space: nowrap; }
.atable td { padding: 10px 12px; border-bottom: 1px solid var(--card-border); vertical-align: middle; }
.atable tr:last-child td { border-bottom: none; }
.atable code { font-size: 11.5px; padding: 4px 8px; letter-spacing: .3px; }
.atable .nm { font-weight: 600; }
.atable .em { font-size: 11.5px; color: var(--muted); }
.atable select, .atable input { padding: 6px 9px; border-radius: 8px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); font-size: 12.5px; }
.atable input.keyin { width: 190px; font-family: 'JetBrains Mono', monospace; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.badge.active { background: rgba(16,185,129,.14); color: #059669; }
.badge.revoked, .badge.expired { background: rgba(239,68,68,.14); color: #ef4444; }
.badge.plan { background: var(--chip-bg); color: var(--text); }
[data-theme='dark'] .badge.active { color: #6ee7b7; }
[data-theme='dark'] .badge.revoked, [data-theme='dark'] .badge.expired { color: #fca5a5; }

.mini { padding: 6px 11px; font-size: 12px; border-radius: 8px; border: 1px solid var(--chip-border); background: var(--chip-bg); color: var(--text); cursor: pointer; font-weight: 600; white-space: nowrap; transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease; }
.mini:hover { background: var(--input-bg); border-color: var(--input-focus); transform: translateY(-1px); box-shadow: 0 4px 12px -6px rgba(120,60,180,.5); }
.mini:active { transform: translateY(0); }
.mini:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.mini.ok { background: var(--grad); color: #fff; border: none; }
.mini.danger:hover { background: rgba(239,68,68,.14); color: #ef4444; border-color: rgba(239,68,68,.3); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Revenue overview (User Manage) ──────────────────────────────────── */
.revsel { padding: 8px 34px 8px 13px; border-radius: 10px; border: 1px solid var(--input-border); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: var(--input-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 11px center;
  transition: border-color .15s ease, box-shadow .15s ease; }
.revsel:hover { border-color: var(--input-focus); }
.revsel:focus { outline: none; border-color: var(--input-focus); box-shadow: 0 0 0 3px rgba(236,72,153,.16); }
/* v2.3.4 — modernise every plain <select> (plan / sorting / per-page dropdowns):
   handcursor + smooth hover + focus ring so they match the rest of the UI. */
select { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
select:hover { border-color: var(--input-focus); }
select:focus { outline: none; border-color: var(--input-focus); box-shadow: 0 0 0 3px rgba(236,72,153,.14); }
/* Kebab (⋯) row-action trigger — clean, centred, subtle until hover. */
.mini.kebab { min-width: 38px; font-size: 17px; line-height: 1; padding: 4px 10px; letter-spacing: 1px; color: var(--muted); }
.mini.kebab:hover { color: var(--text); }
/* v2.3.5 — give the Generate-Licenses Plan dropdown the same modern custom chevron
   as the per-page dropdown, and spin the ↻ refresh icon on hover. */
.gen-row select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center;
}
.gen-row select:focus { box-shadow: 0 0 0 3px rgba(236,72,153,.14); }
.ricon { display: inline-block; transition: transform .55s cubic-bezier(.34,1.56,.64,1); }
.mini:hover .ricon { transform: rotate(360deg); }
.rev-row { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.rev-donut { position: relative; width: 132px; height: 132px; border-radius: 50%; flex: 0 0 132px; background: var(--input-bg); }
.rev-donut::after { content: ''; position: absolute; inset: 17px; border-radius: 50%; background: var(--card-bg); }
.rev-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.rev-center .n { font-size: 23px; font-weight: 800; line-height: 1; }
.rev-center .l { font-size: 10px; color: var(--muted); margin-top: 3px; letter-spacing: .04em; text-transform: uppercase; }
.rev-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; min-width: 150px; }
.rev-legend .li { display: flex; align-items: center; gap: 8px; }
.rev-legend .dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 11px; }
.rev-legend .li b { margin-left: auto; padding-left: 18px; }
.rev-metrics { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.rev-mid { margin-left: auto; text-align: center; padding: 0 10px; }
.rev-mid-amt { font-size: 21px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rev-mid-lab { font-size: 11.5px; color: var(--label); font-weight: 700; margin-top: 5px; letter-spacing: .02em; }
.rev-mid-sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.rev-mid-bdt { font-size: 19px; font-weight: 800; color: #059669; line-height: 1; margin-top: 8px; }
[data-theme='dark'] .rev-mid-bdt { color: #6ee7b7; }

/* ── Assets ratio cards (premium): two side-by-side cards, gradient ring + bars ── */
.ratio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 14px; }
@media (max-width: 820px) { .ratio-grid { grid-template-columns: 1fr; } }
.ratio-card { position: relative; overflow: hidden; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.ratio-card:hover { transform: translateY(-3px); box-shadow: 0 26px 56px -24px rgba(90,50,160,.45); }
.ratio-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.ratio-card.earn::before { background: linear-gradient(90deg, #34d399, #059669); }
.ratio-card.sup::before { background: linear-gradient(90deg, #c084fc, #a855f7); }
.ratio-card.mix::before { background: linear-gradient(90deg, #a855f7, #f97316); }
.ratio-card.grow::before { background: linear-gradient(90deg, #a78bfa, #ec4899, #fbbf24); }
.growth-chart { margin-top: 18px; height: 150px; border-radius: 10px; overflow: hidden; }

/* Two-step verification (Settings) */
.twofa-on { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); margin-bottom: 16px; }
.twofa-pill { font-weight: 800; font-size: 11px; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #10b981, #059669); padding: 4px 11px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(16, 185, 129, .55); white-space: nowrap; }
.twofa-steps { margin: 0 0 16px; padding-left: 20px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.twofa-steps b { color: var(--text); }
.twofa-qr { display: inline-block; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .4); }
.twofa-qr img { display: block; width: 176px; height: 176px; }
.twofa-secret { margin: 14px 0 2px; font-size: 12.5px; color: var(--muted); }
.twofa-secret code { font-size: 12.5px; letter-spacing: .12em; padding: 6px 10px; }
.twofa-input { width: 100%; max-width: 220px; margin-top: 16px; padding: 12px 14px; font-size: 20px; letter-spacing: .3em; text-align: center; font-weight: 700; border-radius: 11px; border: 1.5px solid var(--input-border); background: var(--input-bg); color: var(--text); outline: none; transition: border-color .15s; }
.twofa-input:focus { border-color: var(--input-focus); }
.twofa-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.twofa-actions .btn { width: auto; margin: 0; }
.btn.ghost2fa { background: transparent; color: var(--muted); border: 1.5px solid var(--input-border); box-shadow: none; }
.btn.ghost2fa:hover { color: var(--text); border-color: var(--muted); filter: none; }
.twofa-soon { margin-top: 16px; font-size: 12px; opacity: .82; }
.ratio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ratio-title { font-size: 15px; font-weight: 800; }
.ratio-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ratio-pill { font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ratio-body { display: flex; align-items: center; gap: 22px; margin-top: 16px; }
.ratio-ring { position: relative; width: 124px; height: 124px; border-radius: 50%; flex: 0 0 124px; background: var(--input-bg); box-shadow: 0 8px 22px -10px rgba(80, 40, 140, .35); }
.ratio-ring::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: var(--card-bg); }
.ratio-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.ratio-ring-c .n { font-size: 30px; font-weight: 800; line-height: 1; }
.ratio-ring-c .l { font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: .05em; text-transform: uppercase; }
.ratio-bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rbar-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.rbar-lab { font-size: 12.5px; font-weight: 600; color: var(--label); }
.rbar-val { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rbar-track { height: 9px; border-radius: 999px; background: var(--input-bg); overflow: hidden; }
.rbar-fill { display: block; height: 100%; border-radius: 999px; transition: width .7s cubic-bezier(.2, .8, .3, 1); }
@media (max-width: 520px) { .ratio-body { flex-direction: column; align-items: stretch; } .ratio-ring { align-self: center; } .ratio-bars { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .ratio-grid .ratio-card { animation: cardIn .5s cubic-bezier(.2, .7, .3, 1) both; }
  .ratio-grid .ratio-card:nth-child(2) { animation-delay: .08s; }
  .dash-body .dsec:not([hidden]) .ratio-ring { animation: donutIn .55s cubic-bezier(.2, .7, .3, 1) both; }
}

/* ── Custom gradient scrollbar — same brand violet→pink→amber as the marketing
   site, so the dashboard ("backend") matches the front-end instead of showing
   the OS default grey. Firefox uses scrollbar-color; WebKit gets the gradient
   thumb. Applies to the page + every inner scroller (tables, dropdowns). ── */
html { scrollbar-width: thin; scrollbar-color: #ec4899 transparent; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--input-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a78bfa 0%, #ec4899 50%, #fbbf24 100%);
  border-radius: 999px;
  min-height: 60px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c4b5fd 0%, #f472b6 50%, #fcd34d 100%);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #a78bfa, #ec4899, #fbbf24);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: var(--input-bg); }
.rev-ring { position: relative; width: 112px; height: 112px; border-radius: 50%; flex: 0 0 112px; background: var(--input-bg); }
.rev-ring::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--card-bg); }
@media (max-width: 760px) { .rev-ring { width: 96px; height: 96px; flex: 0 0 96px; } }
.rev-metrics .n { font-size: 27px; font-weight: 800; line-height: 1; }
.rev-metrics .l { font-size: 11.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.atable input.pricein { width: 76px; }
@media (max-width: 760px) { .rev-metrics { margin-left: 0; gap: 22px; } }

/* ── Gradient hero stat cards (Analytics / Overview) ─────────────────── */
.gstat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 20px; }
.gstat { position: relative; overflow: hidden; border-radius: 18px; padding: 20px 22px; color: #fff; box-shadow: 0 14px 30px -16px rgba(80, 40, 140, .55); }
.gstat::before { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.14); }
.gstat .gico { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; }
.gstat .gico svg { width: 18px; height: 18px; }
.gstat .glab { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .95; }
.gstat .gnum { font-size: 36px; font-weight: 800; line-height: 1; margin-top: 14px; }
.gstat .gsub { font-size: 12px; opacity: .92; margin-top: 8px; }
.gstat.g-info   { background: linear-gradient(135deg, #a855f7, #ec4899); }
.gstat.g-amazon { background: linear-gradient(135deg, #fb923c, #ef4444); }
.gstat.g-total  { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.gstat.g-words  { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.gstat.g-users  { background: linear-gradient(135deg, #0ea5e9, #6366f1); }

/* ── Generic donut charts (conic-gradient) ───────────────────────────── */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.donut { position: relative; width: 148px; height: 148px; border-radius: 50%; flex: 0 0 148px; background: var(--input-bg); }
.donut::after { content: ''; position: absolute; inset: 21px; border-radius: 50%; background: var(--card-bg); }
.donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.donut-c .n { font-size: 29px; font-weight: 800; line-height: 1; }
.donut-c .l { font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: .05em; text-transform: uppercase; }
.donut-leg { display: flex; flex-direction: column; gap: 11px; font-size: 13px; flex: 1; min-width: 150px; }
.donut-leg .li { display: flex; align-items: center; gap: 9px; }
.donut-leg .dot { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 12px; }
.donut-leg .li b { margin-left: auto; font-size: 14px; }
.donut-leg .li small { color: var(--muted); font-weight: 600; padding-left: 10px; }

/* ── Pager (User Manage table) ───────────────────────────────────────── */
.list-tools { display: flex; align-items: center; gap: 8px; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.pager button { min-width: 34px; height: 34px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.pager button:hover:not(:disabled):not(.active) { border-color: var(--input-focus); }
.pager button.active { background: var(--grad); color: #fff; border: none; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .pdots { color: var(--muted); padding: 0 2px; }
.pager .pinfo { color: var(--muted); font-size: 12px; margin-left: auto; }
@media (max-width: 620px) { .pager .pinfo { margin-left: 0; width: 100%; text-align: center; } }

/* ── Phone field: country-code select + number (signup) ──────────────── */
.phone-row { display: flex; gap: 8px; }
.cc-wrap { position: relative; flex: 0 0 auto; }
.cc-btn { display: flex; align-items: center; gap: 7px; min-width: 96px; padding: 11px 10px; border-radius: 10px;
  border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); font-size: 14px; cursor: pointer; }
.cc-btn:focus { outline: none; border-color: var(--input-focus); }
.cc-flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: 0 0 auto; }
.cc-dial { font-weight: 600; }
.cc-chev { width: 15px; height: 15px; opacity: .5; flex: 0 0 auto; }
.cc-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 290px; max-height: 288px; overflow-y: auto;
  background: #ffffff; border: 1px solid var(--card-border); border-radius: 12px; padding: 6px; box-shadow: 0 14px 36px rgba(20, 16, 48, .20); }
[data-theme='dark'] .cc-list { background: #1b1832; }
.cc-list[hidden] { display: none; }
.cc-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font-size: 14px; cursor: pointer; text-align: left; font-family: inherit; }
.cc-item:hover { background: rgba(124, 58, 237, .10); }
[data-theme='dark'] .cc-item:hover { background: rgba(167, 139, 250, .16); }
.cc-iflag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: 0 0 auto; }
.cc-iname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-idial { color: var(--muted); font-variant-numeric: tabular-nums; }
.phone-row input { flex: 1; min-width: 0; margin: 0; }

/* ── Custom branded modal (replaces native confirm) ──────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(12, 10, 28, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: modalFade .16s ease; }
.modal-overlay[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-card { width: 100%; max-width: 420px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 26px 26px 22px; box-shadow: 0 30px 70px -20px rgba(20, 10, 50, .6); text-align: center; animation: modalPop .2s cubic-bezier(.2,.8,.3,1.2); }
@keyframes modalPop { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: var(--chip-bg); }
.modal-ico.danger { background: rgba(239,68,68,.14); }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.modal-msg { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; }
.modal-btn { flex: 1; padding: 12px 16px; border-radius: 11px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, filter .12s ease; }
.modal-btn:hover { transform: translateY(-1px); }
.modal-btn:not(.ghost):not(.danger) { background: var(--grad); color: #fff; }
.modal-btn.danger { background: #ef4444; color: #fff; }
.modal-btn.danger:hover { filter: brightness(1.06); }
.modal-btn.ghost { background: var(--input-bg); color: var(--text); border-color: var(--input-border); }

/* ── Toast notifications (replaces native alert) ─────────────────────── */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { min-width: 240px; max-width: 360px; padding: 13px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #fff;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); transform: translateX(120%); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .3s ease; display: flex; align-items: center; gap: 9px; }
.toast.show { transform: none; opacity: 1; }
.toast.ok  { background: linear-gradient(135deg, #10b981, #059669); }
.toast.err { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast::before { font-size: 15px; }
.toast.ok::before  { content: '✓'; }
.toast.err::before { content: '!'; font-weight: 800; }
@media (max-width: 520px) { .toast-wrap { left: 12px; right: 12px; top: 12px; } .toast { max-width: none; } }

/* ── Sortable table headers + rank column (Overview top users) ───────── */
.atable th.sortable-th { cursor: pointer; user-select: none; white-space: nowrap; transition: color .14s ease; }
.atable th.sortable-th:hover { color: var(--text); }
.atable th.sortable-th.sorted { color: var(--input-focus); }
.atable td.rank { font-weight: 800; color: var(--muted); width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.atable tr:first-child td.rank, .atable td.rank.top { color: var(--input-focus); }

/* ── Stacked date/time cell (date on top, time beneath) ──────────────── */
.dts { display: flex; flex-direction: column; line-height: 1.25; }
.dts .d { font-weight: 600; white-space: nowrap; }
.dts .t { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; }

/* ── Pending (account not yet activated) badge ───────────────────────── */
.badge.pending { background: rgba(245,158,11,.16); color: #b45309; }
[data-theme='dark'] .badge.pending { color: #fcd34d; }

/* ── User Manage + Assets sortable headers + AnyDesk input ───────────── */
.atable th.sortable-uth, .atable th.sortable-ath { cursor: pointer; user-select: none; white-space: nowrap; transition: color .14s ease; }
.atable th.sortable-uth:hover, .atable th.sortable-ath:hover { color: var(--text); }
.atable th.sortable-uth.sorted, .atable th.sortable-ath.sorted { color: var(--input-focus); }
.atable input.anyin { width: 150px; font-family: 'JetBrains Mono', monospace; }

/* ── Earning toggle switch (Assets) ──────────────────────────────────── */
.eswitch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.eswitch input { position: absolute; opacity: 0; width: 0; height: 0; }
.eswitch .eslide { position: relative; width: 38px; height: 21px; border-radius: 999px; background: var(--input-border); transition: background .2s ease; flex: 0 0 38px; }
.eswitch .eslide::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s cubic-bezier(.2,.8,.3,1.3); }
.eswitch input:checked + .eslide { background: linear-gradient(135deg, #10b981, #059669); }
.eswitch input:checked + .eslide::after { transform: translateX(17px); }
.eswitch .elab { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 22px; }
.eswitch input:checked ~ .elab { color: #059669; }
[data-theme='dark'] .eswitch input:checked ~ .elab { color: #6ee7b7; }

/* ═══════════════════════════════════════════════════════════════════════
   v2.2.5 — Dashboard polish: entrance animations, hover depth, smooth
   micro-interactions. Scoped under .dash-body so the auth pages are untouched.
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes secIn   { from { opacity: 0; } to { opacity: 1; } }
  @keyframes cardIn  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes donutIn { from { transform: rotate(-12deg) scale(.92); opacity: .35; } to { transform: none; opacity: 1; } }
  .dash-body .dsec:not([hidden]) { animation: secIn .34s ease both; }
  .dash-body .dsec:not([hidden]) > .dcard,
  .dash-body .dsec:not([hidden]) > .promo,
  .dash-body .dsec:not([hidden]) .stat-grid > .stat,
  .dash-body .dsec:not([hidden]) .gstat-grid > .gstat,
  .dash-body .dsec:not([hidden]) .qa-grid > .qa { animation: cardIn .5s cubic-bezier(.2,.7,.3,1) both; }
  .dash-body .dsec:not([hidden]) > *:nth-child(2) { animation-delay: .05s; }
  .dash-body .dsec:not([hidden]) > *:nth-child(3) { animation-delay: .10s; }
  .dash-body .dsec:not([hidden]) > *:nth-child(4) { animation-delay: .15s; }
  .dash-body .dsec:not([hidden]) > *:nth-child(5) { animation-delay: .20s; }
  .stat-grid > .stat:nth-child(2),  .gstat-grid > .gstat:nth-child(2), .qa-grid > .qa:nth-child(2) { animation-delay: .06s; }
  .stat-grid > .stat:nth-child(3),  .gstat-grid > .gstat:nth-child(3), .qa-grid > .qa:nth-child(3) { animation-delay: .12s; }
  .stat-grid > .stat:nth-child(4),  .gstat-grid > .gstat:nth-child(4), .qa-grid > .qa:nth-child(4) { animation-delay: .18s; }
  .dash-body .dsec:not([hidden]) .donut,
  .dash-body .dsec:not([hidden]) .rev-donut { animation: donutIn .55s cubic-bezier(.2,.7,.3,1) both; }
}

/* Depth + motion on hover */
.dash-body .dcard { transition: box-shadow .2s ease, border-color .2s ease; }
.dash-body .dcard:hover { box-shadow: 0 28px 64px -26px rgba(90,50,160,.42); }
.stat { transition: transform .2s ease, box-shadow .2s ease; }
.stat:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -22px rgba(90,50,160,.45); }
.gstat { transition: transform .22s ease, box-shadow .22s ease; }
.gstat:hover { transform: translateY(-3px) scale(1.012); box-shadow: 0 26px 52px -18px rgba(80,40,140,.7); }
.gstat::before { transition: transform .5s ease, opacity .5s ease; }
.gstat:hover::before { transform: scale(1.55); opacity: .85; }
.gstat .gnum { transition: transform .22s ease; transform-origin: left center; }
.gstat:hover .gnum { transform: scale(1.04); }

/* Table rows, nav, buttons */
.atable tbody tr { transition: background .14s ease; }
.atable tbody tr:hover { background: var(--chip-bg); }
.dnav { transition: background .15s ease, color .15s ease, transform .15s ease; }
.dnav:not(.active):hover { transform: translateX(2px); }
.btn, .btn-up, .pbtn, a.cta { transition: transform .15s ease, box-shadow .2s ease, filter .15s ease; }
.btn:hover, .btn-up:hover, .pbtn:hover, a.cta:hover { box-shadow: 0 12px 26px -12px rgba(168,85,247,.55); filter: brightness(1.03); }
.btn:active, .mini:active, .btn-up:active, .modal-btn:active { transform: translateY(0) scale(.98); }
.copy, .filebtn, .revsel { transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease; }
.copy:active, .filebtn:active { transform: scale(.97); }

/* ── Search input (User Manage) ──────────────────────────────────────── */
.searchin { padding: 8px 13px; border-radius: 10px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); font-size: 13px; min-width: 230px; transition: border-color .15s ease, box-shadow .15s ease; }
.searchin::placeholder { color: var(--muted); }
.searchin:focus { outline: none; border-color: var(--input-focus); box-shadow: 0 0 0 3px rgba(236,72,153,.16); }
@media (max-width: 620px) { .searchin { min-width: 0; flex: 1; } }

/* ── "with us" tenure line (Assets joined column) ────────────────────── */
.dts .wu { font-size: 10.5px; font-weight: 700; color: #059669; margin-top: 2px; white-space: nowrap; }
[data-theme='dark'] .dts .wu { color: #6ee7b7; }

/* ── Row-actions kebab + floating dropdown (User Manage) ─────────────── */
.mini.kebab { padding: 6px 9px; font-size: 16px; line-height: 1; letter-spacing: 1px; }
.rowmenu-pop { position: fixed; z-index: 1200; min-width: 188px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 6px; box-shadow: 0 18px 46px -14px rgba(20,16,48,.55); display: flex; flex-direction: column; gap: 2px; }
.rowmenu-pop[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .rowmenu-pop:not([hidden]) { animation: menuPop .14s ease; }
  @keyframes menuPop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
}
.rowmenu-pop .menu-item { display: flex; align-items: center; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: background .12s ease; white-space: nowrap; }
.rowmenu-pop .menu-item:hover { background: var(--chip-bg); }
.rowmenu-pop .menu-item.ok { color: #059669; }
.rowmenu-pop .menu-item.danger { color: #ef4444; }
[data-theme='dark'] .rowmenu-pop .menu-item.ok { color: #6ee7b7; }
[data-theme='dark'] .rowmenu-pop .menu-item.danger { color: #fca5a5; }

/* ── Support-coverage pillar (bar) chart (Assets) ────────────────────── */
.pillars { display: flex; align-items: flex-end; gap: 26px; flex: 0 0 auto; padding: 4px 4px 0; }
.pillar { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pillar .pval { font-size: 18px; font-weight: 800; line-height: 1; }
.pillar .pcol { display: flex; align-items: flex-end; height: 96px; width: 46px; background: var(--input-bg); border-radius: 11px; }
.pillar .pfill { width: 100%; border-radius: 11px; min-height: 10px; transition: height .6s cubic-bezier(.2,.8,.3,1); }
.pillar .pfill.sup { background: linear-gradient(180deg, #34d399, #059669); }
.pillar .pfill.no { background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.pillar .plab { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ── Sort glyph on sortable column headers (dim ↕ = sortable, bright = active) ── */
.atable th.sortable-th, .atable th.sortable-uth, .atable th.sortable-ath { padding-right: 16px; }
.atable th .sarrow { font-size: 11px; vertical-align: middle; margin-left: 2px; }
.atable th .sarrow.dim { opacity: .6; }
.atable th.sortable-th:hover .sarrow.dim,
.atable th.sortable-uth:hover .sarrow.dim,
.atable th.sortable-ath:hover .sarrow.dim { opacity: 1; color: var(--input-focus); }
