/* Minimal-dashboard inspired theme — Ammad Tech blue */

:root {
  --bg: #F4F6F8;
  --paper: #FFFFFF;
  --text: #1C252E;
  --text-2: #637381;
  --text-3: #919EAB;
  --primary: #0A66D6;
  --primary-dark: #0048A8;
  --primary-darker: #002F73;
  --primary-soft: rgba(10, 102, 214, 0.08);
  --primary-soft-2: rgba(10, 102, 214, 0.16);
  --error: #FF5630;
  --error-soft: rgba(255, 86, 48, 0.12);
  --success: #118D57;
  --success-soft: rgba(34, 197, 94, 0.16);
  --warning: #B76E00;
  --warning-soft: rgba(255, 171, 0, 0.16);
  --info: #006C9C;
  --info-soft: rgba(0, 184, 217, 0.16);
  --border: rgba(145, 158, 171, 0.2);
  --shadow: 0 0 2px rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
  --shadow-lg: 0 0 2px rgba(145, 158, 171, 0.24), 0 24px 48px -8px rgba(10, 102, 214, 0.24);
  --radius: 16px;
  --radius-sm: 8px;
  --sidebar-w: 280px;
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
  background: rgba(145, 158, 171, 0.12);
  border-radius: 6px;
  padding: 2px 6px;
}

pre {
  background: #0E2747;
  color: #DCE7F5;
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  line-height: 1.6;
}
pre code { background: none; color: inherit; padding: 0; }

/* ---------------------------------------------------------------- layout */

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--paper);
  border-right: 1px dashed var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
  padding: 4px 8px;
  margin-bottom: 28px;
}
.logo:hover { text-decoration: none; }
.logo-accent { color: var(--primary); }
.logo-img { height: 52px; width: auto; display: block; }
.logo-center { justify-content: center; margin-bottom: 8px; }

.nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  padding: 0 12px 8px;
}

.nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
}
.nav-item svg { color: var(--text-3); }
.nav-item:hover { background: rgba(145, 158, 171, 0.08); text-decoration: none; }
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}
.nav-item.active svg { color: var(--primary); }

.sidebar-footer { margin-top: auto; padding: 12px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(244, 246, 248, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title { font-size: 22px; font-weight: 700; margin: 0; }

.content {
  padding: 16px 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1200px;
  width: 100%;
}
/* page-level wrappers keep the same section rhythm as .content itself */
#queue-live {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-narrow { max-width: 560px; }

.card-header { margin-bottom: 16px; }
.card-header h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.card-header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header-row > div { min-width: 0; }
.card-header-row h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.card h3 { font-size: 14px; font-weight: 700; margin: 20px 0 8px; }

.muted { color: var(--text-2); margin: 4px 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat { display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.stat-value { min-height: 28px; display: flex; align-items: center; }
.stat-number { font-size: 28px; font-weight: 800; }
.stat-hint { font-size: 12px; color: var(--text-3); }

/* highlighted hero stats (global billing summary) */
.stat-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-lg);
}
.stat-hero .stat-label { color: rgba(255, 255, 255, 0.82); }
.stat-hero .stat-number { color: #fff; }
.stat-hero .stat-hint { color: rgba(255, 255, 255, 0.7); }
.stat-hero .stat-icon {
  position: absolute; right: -8px; bottom: -12px; opacity: 0.18; color: #fff;
}

/* ---------------------------------------------------------------- tables */

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  padding: 12px 16px;
}
.table th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.table th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.table td {
  padding: 13px 16px;
  border-bottom: 1px dashed var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: var(--primary-soft); }
.cell-right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }
.row-link { cursor: pointer; }

.empty-state { text-align: center; padding: 24px 0; }

/* ---------------------------------------------------------------- badges & chips */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-error { background: var(--error-soft); color: var(--error); }
.badge-sd { background: var(--info-soft); color: var(--info); }
.badge-hd { background: var(--primary-soft-2); color: var(--primary-dark); }
.badge-uhd { background: var(--warning-soft); color: var(--warning); }

.chip {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(145, 158, 171, 0.16);
  color: var(--text-2);
}
.chip-success { background: var(--primary-soft-2); color: var(--primary-dark); }
.chip-get { background: var(--info-soft); color: var(--info); }
.chip-post { background: var(--primary-soft-2); color: var(--primary-dark); }

.price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- forms */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }

.field input {
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(145, 158, 171, 0.32);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.form-stack { display: flex; flex-direction: column; }
.form-inline { display: flex; align-items: flex-end; gap: 12px; }
.form-inline .field { margin-bottom: 0; }
.field-grow { flex: 1; }

/* ---------------------------------------------------------------- buttons */

.btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 16px rgba(10, 102, 214, 0.24); }
.btn-soft { background: rgba(145, 158, 171, 0.16); color: var(--text); }
.btn-soft:hover { background: rgba(145, 158, 171, 0.28); }
.btn-danger { background: var(--error-soft); color: var(--error); }
.btn-danger:hover { background: rgba(255, 86, 48, 0.24); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- alerts */

.alert {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 500;
}
.alert-error { background: var(--error-soft); color: #B71D18; }
.alert-success { background: var(--success-soft); color: var(--success); }

.token-reveal { display: flex; flex-direction: column; gap: 12px; }
.token-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.token-value {
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  word-break: break-all;
}

/* ---------------------------------------------------------------- modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 37, 46, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  animation: modal-pop 0.16s ease-out;
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-close {
  border: none; background: none; cursor: pointer;
  color: var(--text-3); font-size: 22px; line-height: 1; padding: 0 4px;
}
.modal-close:hover { color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------------------------------------------------------------- auth pages */

.auth-body { margin: 0; }

.auth-split { display: flex; min-height: 100vh; }

.auth-brand {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 55%, var(--primary-darker) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
}
.auth-brand-content { position: relative; z-index: 2; max-width: 440px; }
.auth-brand .logo-img { height: 96px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25)); }
.auth-brand h2 { font-size: 30px; font-weight: 800; margin: 28px 0 12px; line-height: 1.2; }
.auth-brand p { font-size: 15px; color: rgba(255, 255, 255, 0.82); line-height: 1.6; margin: 0; }
.auth-brand .feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-brand .feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: rgba(255,255,255,0.92); }
.auth-brand .feature-list svg { flex-shrink: 0; }

/* moving "video" objects in the brand panel background */
.video-scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.v-obj { position: absolute; opacity: 0.16; color: #fff; }
.v-play {
  border-radius: 28%;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.v-1 { width: 120px; height: 120px; left: 8%;  top: 18%; animation: float-y 9s ease-in-out infinite; }
.v-2 { width: 76px;  height: 76px;  left: 70%; top: 12%; animation: float-y 7s ease-in-out infinite 0.6s; }
.v-3 { width: 150px; height: 150px; left: 62%; top: 58%; animation: float-y 11s ease-in-out infinite 0.3s; }
.v-4 { width: 60px;  height: 60px;  left: 22%; top: 70%; animation: float-y 8s ease-in-out infinite 1.1s; }
.v-ring {
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: none;
}
.r-1 { width: 220px; height: 220px; left: -60px; top: 50%; animation: pulse-ring 6s ease-out infinite; opacity: 0.12; }
.r-2 {
  width: 320px; height: 320px; right: -120px; top: 8%;
  border-color: rgba(255, 255, 255, 0.3);
  animation: drift-ring 16s ease-in-out infinite;
  opacity: 0.16;
}
.film-strip {
  position: absolute; top: 0; bottom: 0; width: 46px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.16) 0 16px, transparent 16px 34px);
  opacity: 0.1;
}
.fs-1 { left: 40%; animation: scroll-strip 14s linear infinite; }

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-26px) rotate(6deg); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.05; }
  50%  { transform: scale(1.1);  opacity: 0.18; }
  100% { transform: scale(0.85); opacity: 0.05; }
}
/* large ring that drifts across the panel while breathing in scale */
@keyframes drift-ring {
  0%   { transform: translate(0, 0) scale(0.9) rotate(0deg);            opacity: 0.10; }
  25%  { transform: translate(-90px, 70px) scale(1.05) rotate(45deg);  opacity: 0.20; }
  50%  { transform: translate(-40px, 180px) scale(0.95) rotate(90deg); opacity: 0.16; }
  75%  { transform: translate(-120px, 90px) scale(1.1) rotate(135deg); opacity: 0.22; }
  100% { transform: translate(0, 0) scale(0.9) rotate(180deg);         opacity: 0.10; }
}
@keyframes scroll-strip {
  from { background-position-y: 0; }
  to   { background-position-y: 200px; }
}

.auth-panel {
  width: 480px;
  max-width: 100%;
  flex-shrink: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
}
.auth-panel-inner { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-panel h1 { font-size: 24px; font-weight: 800; margin: 20px 0 6px; }
.auth-panel .muted { margin-bottom: 24px; }
.auth-panel .alert { margin-bottom: 16px; }
.auth-logo-mark { height: 48px; width: auto; }

/* centered, enlarged header (logo + title + subtitle) in the form panel */
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .auth-logo-mark { height: 92px; margin: 0 auto 10px; display: block; }
.auth-head h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.auth-head .muted { margin: 0 auto; max-width: 320px; }
/* Arabic tagline below the logo mark on auth pages */
.auth-tagline {
  display: block;
  font-size: 15px; font-weight: 700;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.4;
  margin: 0 0 18px;
}

/* auth form polish */
.auth-form { display: flex; flex-direction: column; gap: 4px; }
.auth-form .btn-block { margin-top: 4px; padding: 13px 18px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .v-obj, .film-strip { animation: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .auth-brand { display: none; }
  .auth-panel { width: 100%; padding: 40px 24px; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .topbar, .content { padding-left: 20px; padding-right: 20px; }
  .form-inline { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------- logo extras */

/* sidebar logo: tagline sits beside the mark */
.logo-row { flex-direction: row; align-items: center; gap: 12px; }
.logo-tagline {
  font-size: 13px; font-weight: 700;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: 0;
  max-width: 130px;
}

/* ---------------------------------------------------------------- sidebar nav extras */

.nav-section { margin-top: 16px; }
.nav-divider { height: 1px; background: var(--border); margin: 8px 0; }

.btn-signout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(145, 158, 171, 0.06);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.05s;
}
.btn-signout svg { color: var(--text-3); transition: color 0.18s, transform 0.18s; }
.btn-signout:hover {
  background: var(--error-soft);
  color: var(--error);
  border-color: rgba(255, 86, 48, 0.32);
  box-shadow: 0 8px 16px rgba(255, 86, 48, 0.16);
}
.btn-signout:hover svg { color: var(--error); transform: translateX(3px); }
.btn-signout:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- badge + button extras */

.badge-inactive { background: var(--warning-soft); color: var(--warning); }
.btn-success { background: var(--success-soft); color: var(--success); }
.btn-success:hover { background: rgba(17, 141, 87, 0.24); }

/* ---------------------------------------------------------------- token reveal modal */

.token-reveal-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.modal-token-reveal { max-width: 520px; text-align: center; }
.modal-token-reveal .token-row { justify-content: center; margin-top: 16px; }
.modal-token-reveal .modal-actions { justify-content: center; margin-top: 20px; }
.modal-token-reveal p { margin: 0 0 8px; }

/* ---------------------------------------------------------------- page hero */

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 40px 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--primary-darker) 100%);
  box-shadow: var(--shadow-lg);
}
.page-hero-body { position: relative; z-index: 2; max-width: 640px; }
.page-hero-body.hero-wide { max-width: none; }
.hero-wide .hero-chips { flex-wrap: nowrap; }
.hero-wide .hero-chip { white-space: nowrap; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.page-hero h2 { margin: 18px 0 10px; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.15; }
.page-hero p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.hero-chip svg { opacity: 0.9; }
.page-hero-art { position: absolute; inset: 0; z-index: 1; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-orb-1 {
  width: 280px; height: 280px; right: -60px; top: -90px;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%);
}
.hero-orb-2 {
  width: 200px; height: 200px; right: 140px; bottom: -110px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
}

/* ---------------------------------------------------------------- pricing page */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing-card.popular::before {
  content: "";
  position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--primary-soft), transparent 40%);
  pointer-events: none;
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; z-index: 2;
  padding: 5px 18px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(10, 102, 214, 0.36);
}
.pricing-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pricing-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.pricing-icon-sd { background: var(--info-soft); color: var(--info); }
.pricing-icon-hd { background: var(--primary-soft-2); color: var(--primary-dark); }
.pricing-icon-uhd { background: var(--warning-soft); color: var(--warning); }
.pricing-tier { margin-top: 4px; }
.pricing-name { font-size: 17px; font-weight: 700; }
.pricing-price {
  position: relative; z-index: 1;
  font-size: 48px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px;
}
.pricing-price sup { font-size: 22px; font-weight: 700; vertical-align: super; color: var(--text-2); }
.pricing-period { position: relative; z-index: 1; font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.pricing-divider { height: 1px; background: var(--border); margin: 0 0 20px; border: none; }
.pricing-features {
  list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; flex: 1;
}
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.pricing-features svg { flex-shrink: 0; color: var(--success); margin-top: 1px; }
.pricing-example {
  font-size: 12px; color: var(--text-3); margin-top: auto;
  padding-top: 16px; border-top: 1px dashed var(--border);
}

/* ---------------------------------------------------------------- settings page */

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.settings-form-card { display: flex; flex-direction: column; }

/* password input with trailing show/hide toggle */
.input-affix { position: relative; display: flex; }
.input-affix input { flex: 1; padding-right: 44px; width: 100%; }
.input-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; background: none; cursor: pointer;
  color: var(--text-3); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.input-toggle:hover { color: var(--primary); background: var(--primary-soft); }
.input-toggle.on { color: var(--primary); }

/* password strength meter */
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pw-meter-track {
  flex: 1; height: 6px; border-radius: 999px;
  background: rgba(145, 158, 171, 0.2); overflow: hidden;
}
.pw-meter-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--text-3); transition: width 0.25s ease, background 0.25s ease;
}
.pw-meter-label { font-size: 12px; font-weight: 600; color: var(--text-3); min-width: 56px; }
.pw-meter[data-level="1"] .pw-meter-bar { width: 25%; background: var(--error); }
.pw-meter[data-level="2"] .pw-meter-bar { width: 55%; background: var(--warning); }
.pw-meter[data-level="3"] .pw-meter-bar { width: 78%; background: var(--info); }
.pw-meter[data-level="4"] .pw-meter-bar { width: 100%; background: var(--success); }
.pw-meter[data-level="1"] .pw-meter-label { color: var(--error); }
.pw-meter[data-level="2"] .pw-meter-label { color: var(--warning); }
.pw-meter[data-level="3"] .pw-meter-label { color: var(--info); }
.pw-meter[data-level="4"] .pw-meter-label { color: var(--success); }

.alert { display: flex; align-items: center; gap: 10px; }
.alert svg { flex-shrink: 0; }

.security-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.security-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.security-item:hover { background: rgba(145, 158, 171, 0.06); }
.security-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.security-item strong { display: block; margin-bottom: 2px; }
.security-item .muted { margin: 0; font-size: 13px; }

/* ---------------------------------------------------------------- live queue */

.stat-cap { font-size: 16px; font-weight: 700; color: var(--text-3); margin-left: 6px; }

.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-3);
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}
.live-dot.on {
  background: var(--success);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(17, 141, 87, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(17, 141, 87, 0); }
}

.badge-running { background: var(--primary-soft-2); color: var(--primary-dark); }
.badge-queued  { background: var(--warning-soft); color: var(--warning); }

@media (prefers-reduced-motion: reduce) {
  .live-dot.on { animation: none; }
}

/* ---------------------------------------------------------------- live system metrics */

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 4px 2px;
}
.section-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.live-status {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  white-space: nowrap;
}

.metric-card .stat-number { font-variant-numeric: tabular-nums; }
.meter {
  height: 9px; border-radius: 999px;
  background: var(--primary-soft);
  overflow: hidden;
}
.meter-fill {
  display: block; height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: width 0.6s ease, background 0.6s ease;
}
.meter-fill.warn { background: linear-gradient(90deg, var(--warning) 0%, #c47d12 100%); }
.meter-fill.hot  { background: linear-gradient(90deg, #e0564a 0%, var(--error) 100%); }

/* ---------------------------------------------------------------- billing steps */

.billing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.billing-step { display: flex; flex-direction: column; gap: 12px; position: relative; }
.billing-step-num {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 14px rgba(10, 102, 214, 0.28);
}
/* connector line between steps (hidden on the last of a row / when wrapped) */
.billing-step:not(:last-child)::after {
  content: "";
  position: absolute; top: 18px; left: 48px; right: -20px; height: 2px;
  background: repeating-linear-gradient(to right, var(--border) 0 6px, transparent 6px 12px);
}
.billing-step strong { display: block; margin-bottom: 2px; }
.billing-step .muted { margin: 0; font-size: 13px; }

@media (max-width: 720px) {
  .billing-step:not(:last-child)::after { display: none; }
}
