/* ============================================
   Anne Aurora — Web Total (PVP3)
   Premium, clara, humana, elegante
   Dark + glass + aurora accents (violeta, azul, ciano, dourado suave)
   Mobile-first, vanilla, acessível
   ============================================ */

:root {
  /* Master Design System - Anne Aurora Premium SaaS (from Master Prompt) */
  --bg: #0F172A; /* deep navy */
  --bg-elev: #1e2937;
  --bg-card: #1e2937;
  --panel: rgba(30, 41, 59, 0.85);
  --panel-solid: #1e2937;
  --text: #f8fafc;
  --text-strong: #ffffff;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(148, 163, 184, 0.35);

  /* Aurora accents: teal #14B8A6, purple #8B5CF6, pink #EC4899 */
  --teal: #14B8A6;
  --teal-light: #5eead4;
  --purple: #8B5CF6;
  --purple-light: #c4b5fd;
  --pink: #EC4899;
  --pink-light: #f9a8d4;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #22d3ee;
  --gold: #fde047;
  --gold-soft: #facc15;
  --success: #4ade80;
  --danger: #f87171;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.2);
  --aurora-gradient: linear-gradient(135deg, #14B8A6, #8B5CF6, #EC4899);

  /* Legacy / Admin */
  --admin-accent: #f472b6;
  --admin-bg: #0f0a14;
  --warning: #fbbf24;
  --table-header: rgba(148,163,184,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* SaaS Premium Components - Master Prompt style */
.navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.hero {
  background: linear-gradient(180deg, #0F172A 0%, #1e2937 100%);
  padding: 80px 20px 60px;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.card, .glass {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover, .glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.btn {
  background: #1e2937;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--purple);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}
.aurora-text {
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.whatsapp-preview {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px;
  font-family: monospace;
  font-size: 13px;
}
.tab {
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab.active {
  border-bottom-color: var(--teal);
  color: var(--teal);
}

/* Additional SaaS elements for full implementation */
.agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.agent-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--aurora-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}
.stats-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.stat {
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  flex: 1;
}
.knowledge-section {
  margin-bottom: 16px;
}
.knowledge-card {
  background: var(--bg-elev);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  border-left: 3px solid var(--teal);
}
.chat-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 4px 0;
}
.chat-bubble.user {
  background: var(--purple);
  color: white;
  align-self: flex-end;
}
.chat-bubble.agent {
  background: #1e2937;
  border: 1px solid var(--line);
}
.pricing-tier {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-card);
  transition: all 0.2s;
}
.pricing-tier.popular {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
}
.feature-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 14px;
}
.feature-check:before {
  content: "✓";
  color: var(--teal);
  font-weight: bold;
}

/* Subtle aurora background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 8% 6%, rgba(124,58,237,0.07), transparent 60%),
    radial-gradient(820px 460px at 92% 10%, rgba(59,130,246,0.06), transparent 55%),
    radial-gradient(620px 380px at 48% 92%, rgba(250,204,21,0.035), transparent 65%);
}

/* Layout */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(5,7,15,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  height: 64px;
  display: flex; align-items: center;
  padding: 0 16px;
}
.topbar-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text-strong); text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--blue-light));
  display: grid; place-items: center; position: relative;
}
.logo-mark::after { content: ""; position: absolute; width: 9px; height: 9px; background: #fff; border-radius: 50%; filter: blur(0.5px); }

.user-pill {
  display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px 4px 6px; font-size: 13px;
}
.user-pill .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #05070f;
}

.main {
  flex: 1;
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 12px;
  gap: 0;
}

/* Sidebar */
.sidebar {
  width: 240px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  display: none;
  flex-shrink: 0;
}
@media (min-width: 980px) { .sidebar { display: block; } }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 2px 0; border-radius: 14px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: all .1s ease;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-item.active { background: rgba(124,58,237,0.12); color: var(--text-strong); border-left: 3px solid var(--purple); }

.nav-section { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted-2); margin: 18px 0 6px 8px; text-transform: uppercase; }

/* Mobile nav */
.mobile-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: rgba(5,7,15,0.98); border-top: 1px solid var(--line);
  padding: 6px 4px; gap: 2px; justify-content: space-around;
}
@media (min-width: 980px) { .mobile-nav { display: none; } }
.mobile-nav a { flex: 1; text-align: center; font-size: 11px; padding: 6px 4px; color: var(--muted); text-decoration: none; border-radius: 10px; }
.mobile-nav a.active { color: var(--purple-light); background: rgba(124,58,237,0.1); }

/* Content area */
.content {
  flex: 1; min-width: 0; padding: 18px 12px 90px;
}
@media (min-width: 980px) { .content { padding: 24px 28px 40px; } }

/* Views */
.view { display: none; }
.view.active { display: block; }

/* Hero / Landing */
.hero { padding: 42px 0 32px; }
.hero-grid {
  display: grid; gap: 36px; align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}
h1.hero-title {
  font-size: clamp(30px, 5.8vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px;
  color: var(--text-strong);
}
.lead { font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel-solid); border: 1px solid var(--line);
}
.hero-visual img { width: 100%; display: block; height: auto; }
.hero-visual .overlay {
  position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,7,15,0.1), rgba(5,7,15,0.55));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.035); color: var(--text);
  text-decoration: none; cursor: pointer; transition: .12s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.07); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue)); border: none; color: #fff;
  box-shadow: 0 4px 18px rgba(124,58,237,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(124,58,237,0.45); }
.btn-ghost { background: transparent; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), #f59e0b); color: #111827; border: none; font-weight: 800;
}
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-full { width: 100%; }

/* Cards & Glass */
.glass, .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.card { padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }

.feature { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.feature .icon { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(124,58,237,0.1); border-radius: 12px; }

/* Section headers */
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: var(--text-strong); }
.section-sub { color: var(--muted); margin-bottom: 18px; }

/* Wizard */
.wizard { max-width: 680px; margin: 0 auto; }
.progress {
  height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; margin-bottom: 24px; overflow: hidden;
}
.progress-bar {
  height: 100%; background: linear-gradient(to right, var(--purple), var(--blue)); width: 0%; transition: width .3s ease;
}
.step { display: none; }
.step.active { display: block; }
.step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.step h2 { margin: 0; font-size: 20px; }

.form-grid { display: grid; gap: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; color: #cbd5e1; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; background: #0b0d16; border: 1px solid var(--line); color: var(--text);
  border-radius: 14px; padding: 11px 14px; font: inherit;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--purple-light); outline: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 13px; cursor: pointer; transition: .1s;
}
.pill:hover, .pill.active { border-color: var(--purple-light); color: var(--text); background: rgba(124,58,237,0.08); }

.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.suggestion {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); cursor: pointer;
}
.suggestion:hover { background: rgba(124,58,237,0.1); }

/* Review / Summary */
.summary { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--muted); font-size: 13px; }
.summary-value { font-weight: 600; text-align: right; }

/* Dashboard */
.dash-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dash-card {
  padding: 18px; cursor: pointer; transition: transform .1s ease, border-color .1s;
}
.dash-card:hover { transform: translateY(-2px); border-color: var(--purple-light); }
.dash-card .value { font-size: 26px; font-weight: 800; line-height: 1; }
.dash-card .label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Agent dashboard hero polish (human, minimal) */
.agent-hero {
  padding: 18px 20px;
  border: 1px solid var(--purple-light);
  background: linear-gradient(180deg, rgba(124,58,237,0.06), transparent);
}
.agent-hero .value { font-size: 15px; line-height: 1.35; }

/* Profissões grid - premium, human, responsive */
.profissoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.profissao-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: transform .15s ease, border-color .15s ease;
  cursor: pointer;
}
.profissao-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple-light);
}
.profissao-card .icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.profissao-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.profissao-card .tagline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.profissao-card .quick {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.4;
}
.profissao-card .btns {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Detalhe da profissão - clean layout */
.profissao-hero {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(124,58,237,.08), transparent);
  border: 1px solid var(--purple-light);
  margin-bottom: 20px;
}
.profissao-section {
  margin-bottom: 24px;
}
.profissao-section h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.func-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.func-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.whatsapp-example {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
  margin: 8px 0;
}
.limites {
  background: rgba(250,204,21,.08);
  border: 1px solid #facc15;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}

/* Lists & items */
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; background: rgba(255,255,255,0.015); }
.item .main { flex: 1; min-width: 0; }
.item .meta { font-size: 12px; color: var(--muted-2); }
.actions { display: flex; gap: 6px; }

/* Toast */
.toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 300; }
.toast {
  background: var(--panel-solid); border: 1px solid var(--line); color: var(--text);
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; display: none;
}
.toast.show { display: block; animation: toastIn .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(2,3,8,0.85); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 250; padding: 16px; }
.modal.open { display: flex; }
.modal-content { width: 100%; max-width: 460px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }

.json-preview {
  background: #0a0c14; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-family: ui-monospace, monospace; font-size: 12.5px; white-space: pre; overflow: auto; max-height: 260px;
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 24px 0 16px; }
  .content { padding-bottom: 110px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
}

/* Accessibility */
:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
/* ============================================
   Minimalist Dynamic Anne Aurora
   Clean, light animations (transform + opacity only for perf)
   ============================================ */

/* Light, performant animations */
.view {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.view.active {
  opacity: 1;
  transform: translateY(0);
}

.btn, .pill, .glass, .card, .dash-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.glass:hover, .card:hover, .dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.check-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.check-item .check {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.check-item.done .check {
  transform: scale(1.1);
}

/* Toast slide */
.toast {
  animation: toastIn 0.2s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form focus lift */
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.15);
}

/* Minimalist base tweaks */
.app { max-width: 1080px; margin: 0 auto; }
.topbar { backdrop-filter: blur(12px); }
.sidebar { border-right: 1px solid var(--line); background: rgba(5,7,15,0.6); }
.nav-item { border-radius: 10px; padding: 8px 12px; }
.glass, .card, .ready-card { border-radius: 16px; }
.hero-title { font-size: clamp(28px, 5.5vw, 42px); }
.section-title { font-size: 20px; letter-spacing: -0.01em; }
.grid { gap: 12px; }
.form-row label { font-size: 12px; }

/* Birth flow refinements for lightness */
.birth-screen, .ready-screen { max-width: 560px; }
.checklist { padding: 4px; }
.check-item { padding: 10px 12px; font-size: 14px; }
.ready-card { padding: 20px; }

/* Remove heavy effects for minimalism */
.aurora, .farol, .beam { display: none !important; } /* keep hero clean */
.hero-visual { background: linear-gradient(145deg, rgba(124,58,237,0.08), rgba(59,130,246,0.05)); border-radius: 16px; }

/* ============================================
   ROLE-BASED + ADMIN PREMIUM EXTENSIONS
   Dark, clean, sophisticated
   ============================================ */

/* Role classes on body or .app for scoping */
.role-admin .topbar { background: rgba(15,10,20,0.96); border-bottom-color: rgba(244,114,182,0.2); }
.role-admin .sidebar { background: var(--admin-bg); }
.role-admin .nav-item.active { color: var(--admin-accent); border-color: var(--admin-accent); }
.role-admin .badge-admin { background: rgba(244,114,182,0.15); color: var(--admin-accent); border:1px solid rgba(244,114,182,0.3); padding:2px 8px; border-radius:999px; font-size:11px; font-weight:600; }

.role-client .topbar { /* client specific if needed */ }

/* Strict public/private separation - hide private areas immediately when in public role */
body.role-public .private-view,
body.role-public .admin-view,
body.role-public .client-only,
body:not(.role-client):not(.role-admin) #view-painel,
body:not(.role-client):not(.role-admin) #view-meu-agente,
body:not(.role-client):not(.role-admin) #view-agent-detail,
body:not(.role-client):not(.role-admin) #view-memoria,
body:not(.role-client):not(.role-admin) #view-tarefas,
body:not(.role-client):not(.role-admin) #view-jornal,
body:not(.role-client):not(.role-admin) #view-arquivos,
body:not(.role-client):not(.role-admin) #view-status,
body:not(.role-client):not(.role-admin) #view-equipe-apoio,
body:not(.role-admin) .admin-view,
body:not(.role-admin) #view-admin-overview,
body:not(.role-admin) #view-admin-users,
body:not(.role-admin) #view-admin-agents,
body:not(.role-admin) #view-admin-operacao,
body:not(.role-admin) #view-admin-conteudo,
body:not(.role-admin) #view-admin-monitoramento,
body:not(.role-admin) #view-admin-sistema {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* When in public, force only public views visible */
body.role-public .view:not(.public-view) {
  display: none !important;
}

/* Admin shell */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(15,10,20,0.6);
  border-bottom: 1px solid rgba(244,114,182,0.15);
}
.admin-header .badge { font-size:12px; }

.admin-sidebar {
  width: 220px;
  background: #0c0812;
  border-right: 1px solid rgba(148,163,184,0.1);
  padding: 12px 8px;
  overflow: auto;
}
.admin-sidebar .nav-group { margin-top: 16px; font-size:11px; text-transform:uppercase; letter-spacing:0.5px; color: var(--muted-2); padding: 0 8px; }
.admin-sidebar .nav-item { display:block; padding:8px 12px; border-radius:8px; color: var(--muted); font-size:14px; }
.admin-sidebar .nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.admin-sidebar .nav-item.active { background: rgba(244,114,182,0.1); color: var(--admin-accent); }

.admin-content { flex:1; padding: 20px; overflow:auto; }

/* Tables */
.table { width:100%; border-collapse: collapse; font-size:13px; }
.table th { text-align:left; padding:10px 12px; background: var(--table-header); color:var(--muted); font-weight:500; border-bottom:1px solid var(--line); }
.table td { padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.table tr:hover { background: rgba(255,255,255,0.015); }
.table .action-btn { font-size:12px; padding:4px 10px; }

.card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:12px; }
.stat-card { background: var(--bg-card); border:1px solid var(--line); border-radius:12px; padding:14px; }
.stat-card .label { font-size:12px; color:var(--muted); }
.stat-card .value { font-size:22px; font-weight:700; margin:4px 0; }
.stat-card .sub { font-size:11px; color:var(--muted-2); }

/* Tabs */
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:16px; }
.tab { padding:8px 14px; border-radius:8px 8px 0 0; color:var(--muted); cursor:pointer; font-size:14px; }
.tab.active { color:var(--text); border-bottom:2px solid var(--purple); background: rgba(124,58,237,0.06); }

/* QR mock */
.qr-mock {
  width: 160px; height:160px; background:#fff; border:8px solid #111; border-radius:8px;
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.qr-mock.admin { border-color:#4c1d95; background: linear-gradient(#fff,#f3e8ff); }
.qr-mock .qr-inner { width:120px; height:120px; background:#111; border-radius:4px; display:grid; grid-template-columns:repeat(5,1fr); gap:3px; padding:8px; }
.qr-mock .qr-inner > div { background:#fff; border-radius:1px; }
.qr-mock .label { position:absolute; bottom:-22px; font-size:10px; color:var(--muted); white-space:nowrap; }
.qr-warning {
  background: rgba(251,191,36,0.1); border:1px solid rgba(251,191,36,0.3); color:#fcd34d;
  padding:10px 14px; border-radius:8px; font-size:13px; margin:12px 0;
}
.qr-admin-only {
  font-size:11px; background:#4c1d95; color:white; padding:1px 6px; border-radius:3px; letter-spacing:0.5px;
}

/* Warnings and admin chrome */
.warning-box { background: rgba(248,113,113,0.08); border-left:4px solid #f87171; padding:12px 14px; border-radius:4px; font-size:13px; }
.sensitive { color:#f472b6; font-weight:600; }

.mock-pill { font-size:11px; padding:1px 7px; border-radius:999px; background:rgba(148,163,184,0.1); color:var(--muted-2); }

/* Responsive admin */
@media (max-width: 900px) {
  .admin-sidebar { display:none; } /* simple: in real would collapse to top or drawer */
}

/* SaaS enhancements - clean modern with aurora accents, WhatsApp preview, skill cards */
.whatsapp-preview {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 12px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.4;
}
.whatsapp-preview .msg-you { color: #4ade80; margin-bottom: 4px; }
.whatsapp-preview .msg-agent { color: #a78bfa; margin-bottom: 8px; }
.skill-card { border-left: 3px solid var(--purple); }
.recommended { box-shadow: 0 0 0 1px rgba(163, 163, 172, 0.2); }
.preview-chat { font-family: ui-monospace, monospace; }
