/* SMartbilling Elite 1.0.0.3 - UI */
:root {
  --primary: #5b5bf7; --primary-2: #8a5cf6; --primary-soft: rgba(91, 91, 247, .10);
  --bg: #f3f4fa; --bg-2: #eceef7; --card: #ffffff; --card-2: #f8f9fd; --border: #e4e6f2; --border-2: #d6d9ea;
  --text: #1b1f3b; --text-2: #4b5075; --muted: #8a8fb0;
  --ok: #12a150; --ok-soft: rgba(18, 161, 80, .12); --warn: #d97706; --warn-soft: rgba(217, 119, 6, .12);
  --err: #dc2626; --err-soft: rgba(220, 38, 38, .10); --info: #0ea5e9; --info-soft: rgba(14, 165, 233, .12);
  --shadow: 0 1px 2px rgba(20, 24, 60, .04), 0 6px 24px rgba(20, 24, 60, .06);
  --shadow-lg: 0 20px 60px rgba(20, 24, 60, .18);
  --radius: 14px; --radius-sm: 9px; --sidebar: 256px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1024; --bg-2: #13173a; --card: #151a3a; --card-2: #1a2046; --border: #252c5a; --border-2: #323a70;
    --text: #e9ebff; --text-2: #b7bce6; --muted: #7d84b8; --primary-soft: rgba(124, 124, 255, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1024; --bg-2: #13173a; --card: #151a3a; --card-2: #1a2046; --border: #252c5a; --border-2: #323a70;
  --text: #e9ebff; --text-2: #b7bce6; --muted: #7d84b8; --primary-soft: rgba(124, 124, 255, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; } .grow { flex: 1; } .hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.top { align-items: flex-start; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .g3, .g-main { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g4 { grid-template-columns: 1fr; } }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex: 0 0 var(--sidebar); background: var(--card); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 16px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: 0 6px 16px rgba(91, 91, 247, .35); flex: none; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand b { display: block; font-size: 15px; letter-spacing: -.01em; }
.brand span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.nav { padding: 6px 12px 12px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; margin: 2px 0; border-radius: 10px; color: var(--text-2); font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--card-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a .pill { margin-left: auto; }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 26px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 18px; margin: 0; }
.topbar .crumb { color: var(--muted); font-size: 12.5px; }
.content { padding: 26px; max-width: 1480px; width: 100%; margin: 0 auto; }
.content.full { padding: 0; max-width: none; flex: 1; display: flex; }
.topbar .menu-btn { display: none; }
.banner { background: linear-gradient(90deg, var(--warn), #f59e0b); color: #fff; padding: 8px 26px; font-weight: 600; display: flex; gap: 12px; align-items: center; justify-content: center; }
.banner button { background: rgba(255, 255, 255, .25); color: #fff; border: 0; }
.banner svg { width: 18px; height: 18px; flex: none; }
.banner .btn { background: rgba(255, 255, 255, .22); color: #fff; border: 0; box-shadow: none; }
.banner { flex-wrap: wrap; text-align: center; }
svg:not([width]):not([class*="chart"]) { max-width: 100%; }
.card-h svg, .page-head svg, .list-item > svg, .row > svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .topbar .menu-btn { display: inline-flex; }
  .content { padding: 16px; } .topbar { padding: 0 16px; }
  .scrim { position: fixed; inset: 0; background: rgba(10, 12, 30, .45); z-index: 35; }
}

/* ---------- avatar / user menu ---------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #22c1c3, var(--primary)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; background: none; color: inherit; font: inherit; }
.user-chip:hover { background: var(--card); border-color: var(--border); }
.user-chip .who { text-align: left; line-height: 1.2; } .user-chip .who b { font-size: 13px; display: block; } .user-chip .who span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) { .user-chip .who { display: none; } }
.dropdown { position: absolute; right: 20px; top: 58px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 60; }
.dropdown a, .dropdown button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--card-2); text-decoration: none; }
.dropdown svg { width: 16px; height: 16px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 15px; }
.card-b { padding: 20px; } .card-b.tight { padding: 0; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .lbl { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi .val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi .ico { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi .ico svg { width: 20px; height: 20px; }
.kpi.ok .ico { background: var(--ok-soft); color: var(--ok); } .kpi.warn .ico { background: var(--warn-soft); color: var(--warn); } .kpi.err .ico { background: var(--err-soft); color: var(--err); } .kpi.info .ico { background: var(--info-soft); color: var(--info); }
.trend { font-size: 12px; font-weight: 600; } .trend.up { color: var(--ok); } .trend.down { color: var(--err); }
.hero { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: 0; border-radius: 18px; padding: 26px 28px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.hero::before { content: ""; position: absolute; right: 80px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero h2 { color: #fff; font-size: 22px; } .hero p { opacity: .9; margin: 4px 0 0; }
.hero .btn { background: #fff; color: var(--primary); border-color: #fff; }
.hero .btn.ghost { background: rgba(255, 255, 255, .16); color: #fff; border-color: transparent; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--card); color: var(--text); font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: transform .05s, background .15s, box-shadow .15s, opacity .15s; text-decoration: none !important; }
.btn:hover { background: var(--card-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(91, 91, 247, .30); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: var(--err); color: #fff; border-color: var(--err); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--card-2); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 38px; padding: 0; } .btn.sm.icon { width: 30px; }
.btn.block { width: 100%; } .btn.lg { height: 46px; font-size: 15px; }
.btn .spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
label.f { display: block; }
label.f > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
label.f > small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--card); color: var(--text); font: 14px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.check small { display: block; color: var(--muted); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 38px; height: 22px; border-radius: 22px; background: var(--border-2); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { left: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; } }
.search { position: relative; } .search svg { position: absolute; left: 11px; top: 11px; width: 17px; height: 17px; color: var(--muted); }
.search input { padding-left: 36px; min-width: 240px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--card-2); white-space: nowrap; }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .1s; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr:hover { background: var(--card-2); }
.cell-user { display: flex; align-items: center; gap: 10px; } .cell-user .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.cell-user b { display: block; font-weight: 600; } .cell-user span { color: var(--muted); font-size: 12px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; opacity: .5; margin-bottom: 8px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; text-transform: capitalize; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); } .pill.info { background: var(--info-soft); color: var(--info); }
.pill.primary { background: var(--primary-soft); color: var(--primary); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 12, 30, .5); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 100; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--card); border-radius: 16px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); animation: pop .18s; border: 1px solid var(--border); }
.modal.wide { max-width: 820px; }
.modal-h { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-h h3 { margin: 0; }
.modal-b { padding: 22px; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--card-2); border-radius: 0 0 16px 16px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow-lg); max-width: 380px; font-weight: 500; animation: pop .2s; display: flex; gap: 10px; align-items: flex-start; }
.toast.err { background: var(--err); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }
.alert { padding: 12px 14px; border-radius: 10px; background: var(--info-soft); color: var(--text); border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.warn { background: var(--warn-soft); } .alert.err { background: var(--err-soft); } .alert.ok { background: var(--ok-soft); }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .15), transparent 40%), linear-gradient(135deg, #3a3ad8, #7b4ff2 55%, #b04ff2); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art h1 { font-size: 40px; line-height: 1.1; color: #fff; max-width: 520px; }
.auth-art p { opacity: .88; font-size: 16px; max-width: 480px; }
.auth-art .feat { display: grid; gap: 14px; margin-top: 28px; }
.auth-art .feat div { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.auth-art .feat svg { width: 22px; height: 22px; padding: 4px; background: rgba(255, 255, 255, .18); border-radius: 8px; flex: none; }
.auth-art .orb { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--card); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h2 { font-size: 26px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan { padding: 26px; display: flex; flex-direction: column; position: relative; transition: transform .15s, box-shadow .15s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan.hl { border: 2px solid var(--primary); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: .8px; }
.plan .price { font-size: 36px; font-weight: 750; letter-spacing: -.03em; margin: 12px 0 2px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { display: flex; gap: 9px; padding: 5px 0; color: var(--text-2); }
.plan li svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 2px; }
.plan.current { outline: 2px dashed var(--ok); outline-offset: 3px; }

/* ---------- tracking frame ---------- */
.tracking { flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 64px); }
.tracking iframe { flex: 1; width: 100%; border: 0; background: var(--card); min-height: calc(100vh - 110px); }
.tracking-bar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border); background: var(--card); font-size: 12.5px; flex-wrap: wrap; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); padding: 7px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow-lg); z-index: 5; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.donut-wrap .legend { flex-direction: column; gap: 8px; }

/* ---------- misc ---------- */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }
.progress { height: 8px; background: var(--bg-2); border-radius: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 8px; }
.steps { counter-reset: s; display: grid; gap: 10px; } .steps div { counter-increment: s; display: flex; gap: 10px; }
.steps div::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--card-2), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; min-height: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--muted); }
.copy { cursor: pointer; } .copy:hover { color: var(--primary); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); } .status-dot.err { background: var(--err); box-shadow: 0 0 0 3px var(--err-soft); } .status-dot.warn { background: var(--warn); }
.item-lines td { padding: 6px 4px !important; border: 0 !important; }
.loader { display: grid; place-items: center; min-height: 50vh; }
.loader .spin { width: 34px; height: 34px; border: 3px solid var(--primary); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
/* password strength & confirmation compare */
.pw-meter { height: 5px; background: var(--bg-2); border-radius: 5px; margin-top: 7px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .2s, background .2s; background: var(--err); }
.pw-meter i[data-s="1"] { background: #f97316; } .pw-meter i[data-s="2"] { background: var(--warn); } .pw-meter i[data-s="3"] { background: #22c55e; } .pw-meter i[data-s="4"] { background: var(--ok); }
small.match { font-weight: 600; min-height: 1em; } small.match.ok { color: var(--ok) !important; } small.match.bad { color: var(--err) !important; }
.code-input { font-family: var(--mono); font-size: 26px !important; letter-spacing: 10px; text-align: center; height: 56px !important; }
.usage { display: flex; align-items: center; gap: 14px; }
.usage .progress { flex: 1; height: 10px; }
.progress i.full { background: linear-gradient(90deg, var(--warn), var(--err)); }
.banner.info { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.kbd { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; font-size: 12px; word-break: break-all; }
