*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080c14;
  --surface:  #0d1423;
  --surface2: #111a2e;
  --border:   #1c2d4a;
  --text:     #e8edf7;
  --muted:    #5a7199;
  --accent:   #7c6aff;
  --accent-h: #9d8fff;
  --green:    #00e5a0;
  --yellow:   #ffb020;
  --red:      #ff4757;
  --radius:   10px;
  --fh: 'Syne', sans-serif;
  --fd: 'JetBrains Mono', monospace;
  --fb: 'Barlow', sans-serif;
  --fq: 'Quicksand', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── ACCENT BAR ─────────────────────────────────────────── */
/* removed */

/* ── LOGIN ──────────────────────────────────────────────── */

.login-page { min-height: 100vh; }

.login-split {
  display: grid;
  grid-template-columns: 7fr 3fr;
  min-height: 100vh;
}

/* Left panel */

.login-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #080c14 0%, #0d1a3a 55%, #0a1628 100%);
  display: flex;
  flex-direction: column;
}

.login-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 42% 54%, rgba(124,106,255,.09) 0%, transparent 65%);
  pointer-events: none;
}

.panel-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 56px 44px;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.panel-scene.active {
  opacity: 1;
  pointer-events: auto;
}

.scene-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scene-label {
  font-family: var(--fd);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  margin-bottom: 32px;
}

.scene-logo {
  font-family: var(--fh);
  font-size: clamp(52px, 6vw, 90px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--text);
}

.scene-logo-accent { color: var(--accent); }

.scene-glow-line {
  height: 2px;
  width: 100px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 1px;
  margin: 28px 0 24px;
}

.scene-tagline {
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}

.scene-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.scene-badge {
  font-family: var(--fd);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid;
  background: rgba(255,255,255,.02);
}

.scene-kpis {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.scene-kpi { display: flex; flex-direction: column; gap: 5px; }

.scene-kpi-val {
  font-family: var(--fh);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.scene-kpi-label {
  font-family: var(--fd);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.scene-closing-logo {
  font-family: var(--fh);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
  line-height: 1;
}

.scene-divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 28px auto;
}

.scene-foot {
  font-family: var(--fd);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--border);
  text-transform: uppercase;
  z-index: 1;
  position: relative;
}

.scene-dots {
  position: absolute;
  bottom: 44px;
  left: 56px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
}

.scene-dot {
  height: 5px;
  width: 5px;
  border-radius: 3px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  padding: 0;
}

.scene-dot.active {
  background: var(--accent);
  width: 22px;
}

/* Right column */

.login-form-col {
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  min-height: 100vh;
}

.login-card { width: 100%; max-width: 340px; }

.login-logo {
  font-family: var(--fh);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 14px;
  line-height: 1.1;
}

.login-logo span { color: var(--accent); }

.login-card .sub {
  font-family: var(--fb);
  font-weight: 300;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.login-card .sub strong {
  color: var(--text);
  font-weight: 400;
}

.login-card label {
  display: block;
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  margin-top: 22px;
}

.login-card label:first-of-type { margin-top: 0; }

/* Token boxes */

.token-grid {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-group { display: flex; gap: 6px; }

.token-box {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  caret-color: transparent;
}

.token-box:focus {
  border-color: var(--accent);
  background: rgba(124,106,255,.05);
}

.token-box.filled {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--text);
}

.token-sep {
  font-family: var(--fd);
  font-size: 16px;
  color: var(--border);
  user-select: none;
  flex-shrink: 0;
}

/* Mobile */

@media (max-width: 860px) {
  .login-split { grid-template-columns: 1fr; }
  .login-panel { display: none; }
  .login-form-col { border-left: none; padding: 40px 24px; }
  .header-inner { padding: 0 20px; }
  .dashboard-body { padding: 24px 16px 40px; }
  .wizard-card { padding: 28px 24px 24px; min-height: 360px; }
  .wizard-title { font-size: 24px; }
  .step-heading { font-size: 20px; }
  .wiz-opts--cards { flex-wrap: wrap; }
  .wiz-opts--grid { grid-template-columns: repeat(2, 1fr); }
  .wiz-confirm-row { flex-direction: column; border-radius: 10px; }
  .wiz-confirm-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .wiz-confirm-col:last-of-type { border-bottom: none; }
  .wiz-generating-text { font-size: 22px; }
}

input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 300;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
}

input:focus { border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn:hover { background: var(--accent-h); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-full { width: 100%; margin-top: 24px; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
}

.btn-ghost:hover { background: var(--surface2); color: var(--text); border-color: var(--muted); }

.error-msg {
  background: rgba(255, 71, 87, 0.07);
  border: 1px solid rgba(255, 71, 87, 0.22);
  border-radius: 7px;
  color: var(--red);
  font-family: var(--fd);
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-top: 16px;
  padding: 10px 12px;
}

.hidden { display: none !important; }

/* ── DASHBOARD HEADER ───────────────────────────────────── */

.dashboard-header {
  position: sticky;
  top: 0;
  background: rgba(8, 12, 20, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hamburger-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  justify-self: start;
}
.hamburger-btn:hover { color: var(--text); background: var(--surface2); }

.header-center {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
}

.logo {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.logo-accent { color: var(--accent); }

.beta-tag {
  font-family: var(--fd);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.admin-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.admin-shortcut:hover {
  color: var(--accent);
  border-color: rgba(124,106,255,0.4);
  background: rgba(124,106,255,0.08);
}
.admin-shortcut svg { color: var(--accent); }
.admin-shortcut.hidden { display: none; }

.credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  background: linear-gradient(135deg, rgba(124,106,255,0.12) 0%, rgba(124,106,255,0.04) 100%);
  border: 1px solid rgba(124,106,255,0.28);
  border-radius: 999px;
  font-family: var(--fd);
  color: var(--text);
  transition: all 0.18s ease;
  cursor: default;
  user-select: none;
}
.credits-pill:hover {
  border-color: rgba(124,106,255,0.5);
  background: linear-gradient(135deg, rgba(124,106,255,0.18) 0%, rgba(124,106,255,0.08) 100%);
}
.credits-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.credits-pill-icon svg {
  width: 100%;
  height: 100%;
}
.credits-pill-value {
  font-family: var(--fh, 'Syne', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1;
}
.credits-pill-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(124,106,255,0.16);
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  line-height: 1;
}
.credits-pill.low {
  background: linear-gradient(135deg, rgba(245,166,35,0.14) 0%, rgba(245,166,35,0.04) 100%);
  border-color: rgba(245,166,35,0.4);
}
.credits-pill.low .credits-pill-icon,
.credits-pill.low .credits-pill-label {
  color: var(--warn, #f5a623);
}
.credits-pill.low .credits-pill-label {
  background: rgba(245,166,35,0.16);
}
.credits-pill.empty {
  background: linear-gradient(135deg, rgba(255,85,102,0.14) 0%, rgba(255,85,102,0.04) 100%);
  border-color: rgba(255,85,102,0.4);
}
.credits-pill.empty .credits-pill-icon,
.credits-pill.empty .credits-pill-label,
.credits-pill.empty .credits-pill-value {
  color: var(--err, #ff5566);
}
.credits-pill.empty .credits-pill-label {
  background: rgba(255,85,102,0.16);
}

.period-cost-chip {
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(124,106,255,0.12);
  color: var(--accent);
  font-family: var(--fd);
  font-size: 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.user-email {
  font-family: var(--fd);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ── NOTIFICAÇÕES ───────────────────────────────────────── */

.notif-wrap { position: relative; }

.notif-bell {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  position: relative;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.notif-bell:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--accent);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #fff;
  font-family: var(--fd);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  z-index: 100;
  overflow: hidden;
}

.notif-dropdown-header {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s;
}

.notif-item:last-child { border-bottom: none; }

.notif-item.unread {
  background: rgba(124, 106, 255, 0.04);
  border-left-color: var(--accent);
}

.notif-item-msg {
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.45;
}

.notif-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-item-time {
  font-family: var(--fd);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.notif-item-link {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}

.notif-item-link:hover { color: var(--accent-h); }

.notif-empty {
  padding: 28px 16px;
  text-align: center;
  font-family: var(--fd);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ── DASHBOARD BODY ─────────────────────────────────────── */

.dashboard-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}

/* ── SECTION TITLE ──────────────────────────────────────── */

.section-title {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

/* ── MÉTRICAS ───────────────────────────────────────────── */

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-val {
  font-family: var(--fh);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-label {
  font-family: var(--fd);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ── WIZARD CARD ────────────────────────────────────────── */

.wizard-card {
  background: linear-gradient(145deg, #1c0748 0%, #0d0325 100%);
  border: 1px solid rgba(124, 106, 255, 0.15);
  border-radius: 20px;
  padding: 44px 52px 36px;
  margin-bottom: 32px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.wizard-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(ellipse, rgba(124,106,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.wizard-header { margin-bottom: 36px; }

.wizard-title {
  font-family: var(--fh);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.wizard-sub {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.wizard-step { display: none; flex: 1; flex-direction: column; }
.wizard-step.active { display: flex; }

/* Step intro */

.step-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-num-badge {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(124,106,255,0.12);
  border: 1px solid rgba(124,106,255,0.28);
  border-radius: 4px;
  padding: 3px 8px;
}

.step-kicker {
  font-family: var(--fd);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.28);
}

.step-heading {
  font-family: var(--fh);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2;
}

/* Options */

.wiz-opts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.wiz-opts--cards { flex-wrap: nowrap; gap: 12px; }

.wiz-opts--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex-wrap: unset;
  margin-bottom: 20px;
}

.wiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}

.wiz-opt:hover:not(.disabled) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(124,106,255,0.35);
  color: #fff;
}

.wiz-opt.active {
  background: rgba(124,106,255,0.18);
  border-color: rgba(124,106,255,0.6);
  color: #fff;
  font-weight: 500;
}

.wiz-opt.disabled { opacity: 0.35; cursor: default; }

.wiz-opt.active .wiz-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.wiz-opt.active .wiz-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

/* Card-style options (step 1) */

.wiz-opt--card {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  gap: 10px;
}

.wiz-opt-body strong {
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: inline;
}

.wiz-opt-body p {
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-top: 6px;
}

/* Radio indicator */

.wiz-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}

.wiz-radio.filled { border-color: var(--accent); background: var(--accent); }

.wiz-radio.filled::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.wiz-radio.small { width: 11px; height: 11px; }
.wiz-radio.small.filled::after { inset: 2px; }

/* Em breve badge */

.badge-soon {
  font-family: var(--fd);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Handle input (step 2) */

.wiz-handle-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.wiz-handle-row input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: #fff;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}

.wiz-handle-row input::placeholder { color: rgba(255,255,255,0.28); }
.wiz-handle-row input:focus { border-color: rgba(124,106,255,0.5); }

.btn-wiz-next {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-wiz-next:hover { background: var(--accent-h); }

/* Confirmation (step 4) */

.wiz-confirm-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}

.wiz-confirm-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.wiz-confirm-col:last-of-type { border-right: none; }

.wiz-confirm-label {
  font-family: var(--fd);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
}

.wiz-confirm-val {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
}

.btn-confirm {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 20px;
}

.btn-confirm:hover { background: var(--accent-h); }
.btn-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-confirm--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-confirm--ghost:hover { background: var(--surface2); border-color: var(--accent); }

.wiz-generating-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.wiz-generating-actions .btn-confirm { margin-top: 0; }

.job-access-link {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.job-access-link:hover { color: var(--text); text-decoration: underline; }

.form-error-wiz {
  font-family: var(--fd);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-top: 12px;
}

/* Generating state */

.wiz-generating {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.wiz-generating-text {
  font-family: var(--fh);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.wiz-generating-sub {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

/* Wizard dots */

.wizard-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 28px;
}

.wiz-dot {
  height: 3px;
  width: 22px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}

.wiz-dot.active {
  background: var(--accent);
  width: 36px;
}

/* ── REPORTS SECTION ────────────────────────────────────── */

.reports-section { margin-bottom: 40px; }

.reports-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.reports-header .section-title { margin-bottom: 0; }

.btn-see-all {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: color 0.15s;
}

.btn-see-all:hover { color: var(--accent-h); }

/* ── JOB ROWS ───────────────────────────────────────────── */

.jobs-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.job-row {
  background: transparent;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  padding: 16px 20px 16px 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.15s;
}

.job-row:last-child { border-bottom: none; }
.job-row:hover { background: rgba(255,255,255,0.025); }

.job-row.plat-instagram { border-left-color: #e8609a; }
.job-row.plat-youtube   { border-left-color: #f56060; }
.job-row.plat-tiktok    { border-left-color: #FF0050; }
.job-row.plat-facebook  { border-left-color: #1877F2; }

.job-row.status-pending,
.job-row.status-running {
  background: rgba(255, 176, 32, 0.03);
}

.platform-badge {
  font-family: var(--fd);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 3px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.platform-badge.instagram {
  background: rgba(193, 53, 132, 0.10);
  color: #e8609a;
  border: 1px solid rgba(193, 53, 132, 0.20);
}

.platform-badge.youtube {
  background: rgba(255, 80, 80, 0.10);
  color: #f56060;
  border: 1px solid rgba(255, 80, 80, 0.20);
}

.platform-badge.tiktok {
  background: rgba(255, 0, 80, 0.08);
  color: #FF0050;
  border: 1px solid rgba(255, 0, 80, 0.20);
}

.platform-badge.facebook {
  background: rgba(24, 119, 242, 0.10);
  color: #1877F2;
  border: 1px solid rgba(24, 119, 242, 0.22);
}

.job-handle {
  font-family: var(--fb);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-date {
  font-family: var(--fd);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.job-status {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  min-width: 90px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-label {
  font-family: var(--fd);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.job-row.status-pending .status-dot,
.job-row.status-running .status-dot {
  background: var(--yellow);
  animation: pulse 1.4s ease-in-out infinite;
}

.job-row.status-pending .status-label,
.job-row.status-running .status-label { color: var(--yellow); }

.job-row.status-done .status-dot { background: var(--green); }
.job-row.status-done .status-label { color: var(--green); }

.job-row.status-error .status-dot { background: var(--red); }
.job-row.status-error .status-label { color: var(--red); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

.btn-access {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-access:hover {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-access-placeholder { width: 120px; flex-shrink: 0; }

.empty-state {
  text-align: center;
  font-family: var(--fd);
  color: var(--muted);
  padding: 56px 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── BACK LINK ──────────────────────────────────────────── */

.back-link {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.15s;
  justify-self: start;
}

.back-link:hover { color: var(--text); }

/* ── PAGE HEADER (reports page) ─────────────────────────── */

.page-header { margin-bottom: 32px; }

.page-title {
  font-family: var(--fh);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.page-sub {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}
