/* ============================================
   RELATÓRIO ESG — Style Sheet
   MakeApp / foxtecnologiaonline
   ============================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #141416;
  --bg-tertiary: #1a1a1d;
  --border: #27272a;
  --border-hover: #3f3f46;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-muted: #52525b;
  --accent: #a78bfa;
  --accent-from: #a78bfa;
  --accent-to: #818cf8;
  --accent-glow: rgba(167, 139, 250, 0.15);
  --success: #22c55e;
  --success-bg: #052e16;
  --warning: #fbbf24;
  --warning-bg: #1c1917;
  --error: #ef4444;
  --error-bg: #7f1d1d;
  --info: #3b82f6;
  --info-bg: #1e3a5f;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --focus-ring: 0 0 0 3px rgba(167,139,250,0.4);
}

[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4f4f5;
  --border: #e4e4e7;
  --border-hover: #d4d4d8;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #71717a;
  --text-muted: #a1a1aa;
  --accent: #7c3aed;
  --accent-from: #7c3aed;
  --accent-to: #6366f1;
  --accent-glow: rgba(124,58,237,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

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

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

/* ---------- SKIP TO CONTENT ---------- */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); text-decoration: none;
  font-weight: 600; font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- CONTAINER ---------- */
.container { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 960px; }
.container-full { max-width: 100%; }

/* ---------- TOAST ---------- */
.toast-container {
  position: fixed; top: 1rem; right: 1rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 0.85rem;
  animation: toastIn 300ms ease-out;
  max-width: 400px;
}
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; color: var(--text-secondary); }
.toast-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.1rem; padding: 0.2rem; line-height: 1;
}
.toast.toast-out { animation: toastOut 300ms ease-in forwards; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }
.toast-info { border-left: 3px solid var(--info); }
.toast-warning { border-left: 3px solid var(--warning); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ---------- SKELETON ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 999px; width: 44px; height: 24px; cursor: pointer;
  position: relative; transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); transition: var(--transition);
}
[data-theme="light"] .theme-toggle::after { left: 22px; }
.theme-toggle:focus-visible { box-shadow: var(--focus-ring); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; text-decoration: none; border: none;
  cursor: pointer; transition: all var(--transition);
  position: relative; overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.1); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-outline {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
}
.btn-outline::after { display: none; }
.btn-outline:hover { background: var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text-secondary); border: 1px solid var(--border);
}
.btn-ghost::after { display: none; }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-danger { background: var(--error); }
.btn-success { background: var(--success); }

/* ---------- BADGE ---------- */
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.badge-accent { background: #1e1b4b; color: var(--accent); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-error { background: var(--error-bg); color: var(--error); }

/* ---------- NAV ---------- */
.nav-bar {
  background: rgba(10,10,11,0.85); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; padding: 0.75rem 0;
}
[data-theme="light"] .nav-bar { background: rgba(250,250,250,0.85); }
.nav-inner { display: flex; align-items: center; gap: 1rem; }
.nav-brand {
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
  transition: color var(--transition); white-space: nowrap;
}
.nav-brand:hover { color: var(--accent); }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 0.75rem; }

/* ---------- HERO ---------- */
.hero { text-align: center; padding: 4rem 0 3rem; }
.hero-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--accent-glow); color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem;
}
.highlight {
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 1.5rem;
}
.hero-cta { margin-bottom: 1rem; }
.hero-note { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  font-size: 0.82rem; color: var(--text-secondary);
}

/* ---------- SECTION ---------- */
.section { padding: 4rem 0; text-align: center; }
.section-alt { background: var(--bg-secondary); }
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 2rem;
}

/* ---------- COUNTDOWN ---------- */
.countdown-bar {
  background: linear-gradient(135deg, var(--warning-bg), var(--bg-secondary));
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem;
  text-align: center;
}
.countdown-bar h3 { font-size: 0.9rem; color: var(--warning); margin-bottom: 0.5rem; }
.countdown-grid { display: flex; justify-content: center; gap: 1rem; }
.countdown-item { text-align: center; }
.countdown-num {
  font-size: 1.5rem; font-weight: 800; color: var(--text-primary);
  display: block; line-height: 1;
}
.countdown-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }

/* ---------- GRIDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: left;
  transition: all var(--transition);
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.card p { font-size: 0.85rem; color: var(--text-secondary); }
.card-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }

/* ---------- PAIN POINTS ---------- */
.pain-card { border-left: 3px solid var(--error); }

/* ---------- STEPS ---------- */
.steps { display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.step {
  text-align: center; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; width: 140px;
}
.step-num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff; font-weight: 700; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.8rem; color: var(--text-secondary); }
.step-arrow { color: var(--text-muted); font-size: 1.2rem; font-weight: 700; }

/* ---------- PLANS ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.plan-card {
  position: relative; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: left;
}
.plan-card.featured { border-color: var(--accent); transform: scale(1.05); }
.plan-popular {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 0.2rem 0.8rem; border-radius: 999px; letter-spacing: 0.05em; white-space: nowrap;
}
.plan-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.plan-price { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.plan-price small { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.plan-card ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.plan-card li { padding: 0.3rem 0; font-size: 0.85rem; color: var(--text-secondary); }
.plan-card li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---------- CALCULADORA RISCO ---------- */
.calc-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; max-width: 500px; margin: 0 auto;
  text-align: left;
}
.calc-box label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin: 0.75rem 0 0.3rem; }
.calc-box select, .calc-box input {
  width: 100%; padding: 0.5rem 0.75rem;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-primary); font-size: 0.9rem;
}
.calc-result {
  margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm);
  background: var(--accent-glow); text-align: center;
  display: none;
}
.calc-result.visible { display: block; }
.calc-result strong { display: block; font-size: 1.5rem; color: var(--accent); }
.calc-result span { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- REGULATIONS ---------- */
.reg-list { text-align: left; max-width: 600px; margin: 0 auto; }
.reg-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.reg-item:last-child { border-bottom: none; }
.reg-name { font-weight: 600; font-size: 0.85rem; color: var(--accent); white-space: nowrap; }
.reg-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- COMPARISON ---------- */
.comparison { max-width: 600px; margin: 0 auto; }
.comp-row {
  display: grid; grid-template-columns: 1fr 40px 1fr; gap: 1rem;
  align-items: center; padding: 1rem; border-bottom: 1px solid var(--border);
  text-align: center;
}
.comp-row:last-child { border-bottom: none; }
.comp-bad { background: var(--error-bg); border-radius: var(--radius-sm); padding: 0.5rem; color: var(--error); }
.comp-good { background: var(--success-bg); border-radius: var(--radius-sm); padding: 0.5rem; color: var(--success); }
.comp-vs { color: var(--text-muted); font-weight: 700; font-size: 0.85rem; }

/* ---------- TESTIMONIAL ---------- */
.testimonial {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; max-width: 500px; margin: 0 auto;
}
.testimonial blockquote { font-style: italic; color: var(--text-secondary); margin-bottom: 0.5rem; }
.testimonial cite { color: var(--text-muted); font-size: 0.85rem; font-style: normal; }

/* ---------- BENCHMARK ---------- */
.benchmark-grid { display: grid; gap: 0.75rem; }
.bench-row { display: flex; align-items: center; gap: 1rem; }
.bench-label { width: 120px; font-size: 0.8rem; color: var(--text-secondary); text-align: right; }
.bench-track { flex: 1; height: 20px; background: var(--bg-tertiary); border-radius: 999px; overflow: hidden; }
.bench-fill { height: 100%; background: linear-gradient(90deg, var(--accent-from), var(--accent-to)); border-radius: 999px; transition: width 1s ease-out; }
.bench-pct { width: 40px; text-align: right; font-size: 0.8rem; font-weight: 600; color: var(--accent); }

/* ---------- PARTNER ---------- */
.partner-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin: 0 auto;
  max-width: 500px; text-align: left;
}
.partner-card h3 { color: var(--accent); }
.partner-card ul { list-style: none; padding: 0; margin: 1rem 0; }
.partner-card li { padding: 0.3rem 0; font-size: 0.85rem; color: var(--text-secondary); }
.partner-card li::before { content: "✓ "; color: var(--success); }

/* ---------- STATUS BADGE ---------- */
.badge-wrapper { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.badge-display {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-glow); border: 1px solid var(--accent);
  border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.8rem; color: var(--text-primary);
}
.badge-check { color: var(--success); font-weight: 700; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; font-size: 0.85rem; color: var(--text-muted); padding: 2rem 0; margin-top: 2rem; border-top: 1px solid var(--border); }
.footer a { color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.footer a:hover { color: var(--accent); }

/* ---------- FORMS ---------- */
.auth-form { max-width: 420px; margin: 0 auto; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.6rem 0.75rem;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group input.input-error { border-color: var(--error); }
.field-error { display: block; font-size: 0.75rem; color: var(--error); margin-top: 0.2rem; min-height: 1em; }
.field-hint { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Password strength */
.pw-meter { height: 4px; background: var(--bg-tertiary); border-radius: 2px; margin-top: 0.3rem; overflow: hidden; }
.pw-bar { height: 100%; width: 0; border-radius: 2px; transition: all .3s; }
.pw-bar.weak { width: 25%; background: var(--error); }
.pw-bar.medium { width: 55%; background: var(--warning); }
.pw-bar.strong { width: 85%; background: var(--success); }
.pw-bar.very-strong { width: 100%; background: #06b6d4; }

/* Password requirements */
.pw-reqs { margin-top: 0.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1rem; }
.pw-req { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.pw-req.met { color: var(--success); }

.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 1rem; }
.form-checkbox input { width: auto; margin-top: 0.15rem; }
.form-checkbox label { font-size: 0.83rem; color: var(--text-secondary); }
.form-checkbox a { color: var(--accent); }
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.forgot-link { font-size: 0.83rem; color: var(--accent); text-decoration: none; }
.auth-redirect { text-align: center; font-size: 0.85rem; color: var(--text-secondary); margin-top: 1.5rem; }
.auth-redirect a { color: var(--accent); }

/* Social login */
.social-divider { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin: 1.5rem 0 1rem; position: relative; }
.social-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.social-divider span { background: var(--bg-primary); padding: 0 0.5rem; position: relative; z-index: 1; }
.social-btns { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.social-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-secondary); transition: var(--transition);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- RIPPLE ---------- */
.ripple { position: relative; overflow: hidden; }
.ripple::before {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  width: 0; height: 0; transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.ripple:active::before { width: 300px; height: 300px; }

/* ---------- DASHBOARD ---------- */
.dash-page { background: var(--bg-primary); }

.dash-topbar {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 0.6rem 0; position: sticky; top: 0; z-index: 100;
}
.dash-topbar-inner { display: flex; align-items: center; gap: 0.75rem; }
.dash-prod-name { color: var(--accent); font-weight: 600; flex: 1; font-size: 0.9rem; }
.dash-user { display: flex; align-items: center; gap: 0.5rem; }
.dash-user-name { font-size: 0.82rem; color: var(--text-secondary); }
.dash-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #fff; flex-shrink: 0;
}

.dash-layout { display: flex; gap: 2rem; padding: 1.5rem 0; min-height: calc(100vh - 60px); }
.dash-sidebar { width: 200px; flex-shrink: 0; }
.dash-nav { display: flex; flex-direction: column; gap: 0.15rem; position: sticky; top: 80px; }
.dash-nav-item {
  padding: 0.55rem 1rem; border-radius: var(--radius-sm);
  color: var(--text-tertiary); text-decoration: none; font-size: 0.85rem;
  transition: all var(--transition); border: none; background: none; cursor: pointer;
  text-align: left;
}
.dash-nav-item:hover { background: var(--bg-secondary); color: var(--text-secondary); }
.dash-nav-item.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }

.dash-main { flex: 1; min-width: 0; }
.dash-section { display: none; }
.dash-section.active { display: block; }
.dash-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }

/* Dash cards */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.dash-card-full { grid-column: 1 / -1; }
.dash-card-label { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.dash-card-value { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.dash-card-trend { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Onboarding wizard */
.wizard-banner {
  background: linear-gradient(135deg, #1e1b4b, var(--bg-secondary));
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.wizard-banner h3 { margin-bottom: 0.25rem; }
.wizard-banner p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1rem; }
.wizard-steps { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.wiz-step {
  flex: 1; padding: 0.5rem; border-radius: var(--radius-sm);
  background: var(--bg-tertiary); text-align: center; font-size: 0.72rem;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.wiz-step.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.wiz-step.done { background: var(--success-bg); color: var(--success); }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer;
}
.checklist-item.done { color: var(--text-muted); text-decoration: line-through; }
.checklist-item.done .check-box { background: var(--success); border-color: var(--success); }
.checklist-item.done .check-box::after { content: '✓'; color: #fff; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; }
.check-box {
  width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--border);
  flex-shrink: 0; display: flex; transition: var(--transition);
}

/* Connectors */
.connector-list { display: flex; flex-direction: column; gap: 0.5rem; }
.connector-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.connector-name { flex: 1; font-weight: 500; font-size: 0.9rem; }
.connector-status { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; }
.connector-ok { background: var(--success-bg); color: var(--success); }
.connector-soon { background: var(--warning-bg); color: var(--warning); }

/* Audit log */
.audit-list { max-height: 300px; overflow-y: auto; }
.audit-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.82rem;
}
.audit-item:last-child { border-bottom: none; }
.audit-time { color: var(--text-muted); font-size: 0.72rem; white-space: nowrap; }
.audit-action { flex: 1; color: var(--text-secondary); }

/* Config */
.config-group { margin-bottom: 1rem; }
.config-group label { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.config-input {
  width: 100%; padding: 0.5rem 0.75rem;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-primary); font-size: 0.9rem;
}
.config-section-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin: 1.5rem 0 0.5rem; }
.zone-danger { border: 1px solid rgba(239,68,68,0.3); padding: 1rem; border-radius: var(--radius-sm); }

/* Chart placeholder */
.chart-area { position: relative; height: 200px; display: flex; align-items: flex-end; gap: 0.75rem; padding: 1rem 0; }
.chart-bar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; min-height: 20px;
}
.chart-bar-fill {
  width: 100%; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-from), var(--accent-to));
  transition: height 1s ease-out;
}
.chart-bar-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ---------- RATE LIMIT ---------- */
.login-attempts {
  font-size: 0.78rem; color: var(--warning); text-align: center;
  margin-bottom: 0.5rem; min-height: 1.2em;
}

/* ---------- MFA ---------- */
.mfa-setup {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; margin: 1rem 0;
}
.mfa-setup h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.mfa-setup p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.mfa-codes { font-family: monospace; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent); background: var(--bg-primary); padding: 0.5rem; border-radius: 4px; }

/* ---------- REFERRAL ---------- */
.referral-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.referral-link {
  display: block; background: var(--bg-primary); border: 1px dashed var(--accent);
  border-radius: var(--radius-sm); padding: 0.75rem; margin: 1rem 0;
  font-family: monospace; font-size: 0.85rem; color: var(--accent);
  cursor: pointer;
}

/* ---------- CONTENT HUB ---------- */
.hub-item {
  display: block; padding: 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); text-decoration: none;
  color: var(--text-primary); transition: var(--transition);
  text-align: left;
}
.hub-item:hover { border-color: var(--accent); }
.hub-item h4 { font-size: 0.9rem; font-weight: 600; }
.hub-item p { font-size: 0.78rem; color: var(--text-secondary); }

/* ---------- EMPTY STATES ---------- */
.empty-state { text-align: center; padding: 2rem 1rem; }
.empty-illustration { width: 120px; height: 90px; margin-bottom: 1rem; display: inline-block; }
.empty-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.empty-desc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1rem; max-width: 300px; margin-left: auto; margin-right: auto; }
.empty-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ---------- CHART TOOLTIP ---------- */
.chart-area { position: relative; height: 200px; display: flex; align-items: flex-end; gap: 0.75rem; padding: 1rem 0 0.5rem; }
.chart-bar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; min-height: 20px;
}
.chart-bar-fill {
  width: 100%; border-radius: 4px 4px 0 0; cursor: pointer;
  background: linear-gradient(180deg, var(--accent-from), var(--accent-to));
  transition: height 1s ease-out; position: relative;
}
.chart-bar-fill:hover::after {
  content: attr(data-tooltip); position: absolute; top: -30px; left: 50%;
  transform: translateX(-50%); background: var(--bg-primary); color: var(--text-primary);
  padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.72rem;
  white-space: nowrap; border: 1px solid var(--border); z-index: 5;
}
.chart-bar-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.3rem; }
.chart-toggle {
  display: inline-flex; gap: 0; margin-left: 1rem; vertical-align: middle;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.chart-toggle-btn {
  padding: 0.2rem 0.6rem; font-size: 0.72rem; font-weight: 600;
  background: var(--bg-tertiary); border: none; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.chart-toggle-btn.active { background: var(--accent-glow); color: var(--accent); }
.chart-period-label { font-weight: 600; color: var(--accent); }
.chart-container { transition: opacity 0.3s; }

/* ---------- SWIPE INDICATOR ---------- */
.swipe-indicator {
  display: none; text-align: center; font-size: 0.72rem;
  color: var(--text-muted); padding: 0.5rem 0;
}
@media (max-width: 768px) {
  .swipe-indicator { display: block; }
}

/* ---------- ANIMATIONS ---------- */
.fade-in { animation: fadeIn 0.5s ease-out; }
.slide-up { animation: slideUp 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 350px; }
  .plan-card.featured { transform: none; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; }
  .dash-nav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 0.25rem; }
  .dash-nav-item { white-space: nowrap; font-size: 0.8rem; padding: 0.4rem 0.75rem; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
  .countdown-grid { gap: 0.5rem; }
  .pw-reqs { grid-template-columns: 1fr; }
  .comp-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .comp-vs { display: none; }
  .reg-item { flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .dash-cards { grid-template-columns: 1fr; }
}
