/* ─────────────────────────────────────────────
   Cold Calling SaaS — Design System
   Dark glassmorphism, electric blue-purple accent
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ── */
:root {
  --bg-base:       #07070e;
  --bg-surface:    #0f0f1a;
  --bg-card:       rgba(255, 255, 255, 0.03);
  --bg-sidebar:    #0c0c18;

  --accent-from:   #6366f1;
  --accent-to:     #8b5cf6;
  --accent-glow:   rgba(99, 102, 241, 0.35);

  --text-primary:  #f0f0ff;
  --text-secondary:#9090b8;
  --text-muted:    #505078;

  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(99, 102, 241, 0.4);

  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-glow:   0 0 40px rgba(99, 102, 241, 0.15);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.4);

  --transition:    all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-from); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-to); }

/* ── Gradient text ── */
.grad-text {
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent-from);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-control::placeholder { color: rgba(144,144,184,0.5); }

/* ── Select / Dropdown fix for dark theme ── */
select.form-control {
  background: rgba(15, 15, 26, 0.95);
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239090b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
select.form-control:focus {
  border-color: var(--accent-from);
  background-color: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
select.form-control option {
  background: #0f0f1a;
  color: var(--text-primary);
  padding: 10px;
}
select.form-control option:hover,
select.form-control option:checked {
  background: #1a1a2e;
  color: #fff;
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* ── Flash messages ── */
.flash-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }

.flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid;
  backdrop-filter: blur(20px);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-success { background: rgba(16,185,129,0.12); border-color: var(--success); color: #6ee7b7; }
.flash-danger  { background: rgba(239,68,68,0.12);  border-color: var(--danger);  color: #fca5a5; }
.flash-info    { background: rgba(59,130,246,0.12);  border-color: var(--info);    color: #93c5fd; }
.flash-warning { background: rgba(245,158,11,0.12);  border-color: var(--warning); color: #fcd34d; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Auth layout ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: fixed;
  bottom: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-box {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.auth-logo h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 6px;
}

.auth-card {
  background: var(--glass-bg, rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 38px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 35px rgba(99, 102, 241, 0.2);
}

.auth-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-card .sub { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 28px; }

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── App layout (sidebar + main) ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  margin-bottom: 20px;
}

.sidebar-logo .logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
}

.sidebar-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sidebar-section {
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 10px;
  margin-top: 14px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  margin-bottom: 2px;
  text-decoration: none;
}
.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.14));
  color: #c4b5fd;
  border: 1px solid rgba(99,102,241,0.3);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99,102,241,0.1);
}
.nav-item .icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.user-avatar {
  width: 32px;
  height: 32px;
  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.82rem;
  flex-shrink: 0;
}

.user-chip-info { flex: 1; min-width: 0; }
.user-chip-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-role { font-size: 0.72rem; color: var(--text-secondary); }

/* Main content area */
.main-content {
  flex: 1;
  margin-left: 250px;
  min-height: 100vh;
  background: var(--bg-base);
}

.page-header {
  padding: 32px 36px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header .subtitle { color: var(--text-secondary); font-size: 0.88rem; margin-top: 4px; }

.page-body { padding: 0 36px 36px; }

/* ── Stat cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.stat-icon.blue   { background: rgba(99,102,241,0.15); }
.stat-icon.green  { background: rgba(16,185,129,0.15); }
.stat-icon.orange { background: rgba(245,158,11,0.15); }
.stat-icon.red    { background: rgba(239,68,68,0.15); }

.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

/* ── Welcome banner ── */
.welcome-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-banner h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.welcome-banner p  { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Setup steps ── */
.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.setup-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  cursor: pointer;
}
.setup-step:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.setup-step h3 { font-size: 0.95rem; font-weight: 600; }
.setup-step p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

.step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}
.step-badge.done    { background: rgba(16,185,129,0.15); color: var(--success); }
.step-badge.current { background: rgba(99,102,241,0.15); color: var(--accent-from); }
.step-badge.locked  { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sidebar { width: 220px; }
  .main-content { margin-left: 220px; }
}

@media (max-width: 640px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .page-header, .page-body { padding: 20px; }
}

/* ── Checkbox ── */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-from);
  cursor: pointer;
}

/* password toggle */
.input-wrapper { position: relative; }
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  transition: var(--transition);
}
.toggle-password:hover { color: var(--text-primary); }

/* ── Profile Upgrade Styles ── */

.profile-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1100px) {
  .profile-container { grid-template-columns: 1fr; }
  .persona-preview-card { position: relative; top: 0; margin-top: 24px; }
}

/* Tabs */
.profile-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.tab-btn.active {
  color: var(--accent-from);
  border-bottom-color: var(--accent-from);
}

.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Persona Preview Card */
.persona-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.avatar-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px var(--accent-glow);
}

.persona-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.persona-tone {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99,102,241,0.1);
  color: var(--accent-from);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.persona-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.persona-stat-item { text-align: left; }
.persona-stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }
.persona-stat-value { font-size: 0.85rem; font-weight: 600; }

/* Completeness Meter */
.completeness-container {
  margin-bottom: 24px;
}

.completeness-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.completeness-track {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  overflow: hidden;
}

.completeness-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-from), var(--success));
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tooltips/Help */
.field-help {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 5px;
  font-style: italic;
}

/* RAG Results */
.rag-result-item {
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}
.rag-result-item:hover { background: rgba(255,255,255,0.04); border-color: var(--border-accent); }
.rag-result-header { font-size: 0.75rem; font-weight: 700; color: var(--accent-from); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* Pulsing effect for active knowledge */
@keyframes pulse-success {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.pulse-green { animation: pulse-success 2s infinite; }

/* ─────────────────────────────────────────────────────────────
   2026 AI SaaS Executive Design System — Bento & Liquid Glass
───────────────────────────────────────────────────────────── */

/* ── Refined Root Variables ── */
:root {
  --glass-bg:        rgba(15, 23, 42, 0.72);
  --glass-bg-hover:  rgba(255, 255, 255, 0.06);
  --glass-border:    rgba(255, 255, 255, 0.09);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glass-shadow:    0 20px 45px rgba(0, 0, 0, 0.45);
}

/* ── Bento Grid Utilities ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
}

.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55), var(--glass-highlight), 0 0 35px rgba(99, 102, 241, 0.12);
}

.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .bento-span-4, .bento-span-6, .bento-span-8, .bento-span-12 {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .bento-span-4, .bento-span-6, .bento-span-8, .bento-span-12 {
    grid-column: span 1;
  }
}

/* ── Executive Badges & Status Pills ── */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.38);
  color: #a5b4fc;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.status-emerald { background: rgba(16,185,129,0.14); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.status-indigo  { background: rgba(99,102,241,0.14); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.status-amber   { background: rgba(245,158,11,0.14); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.status-rose    { background: rgba(244,63,94,0.14); color: #fb7185; border: 1px solid rgba(244,63,94,0.3); }

/* ── Executive High-Density Tables ── */
.table-container-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
}
.executive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-primary);
}
.executive-table th {
  background: rgba(15, 23, 42, 0.85);
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.executive-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}
.executive-table tr:last-child td { border-bottom: none; }
.executive-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* ── Custom Webkit Scrollbars ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); }

/* ── Luxury Glass Flash Toast Notifications ── */
.flash-container {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.flash {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 20px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.flash-success { border-left: 4px solid #10b981; }
.flash-danger  { border-left: 4px solid #ef4444; }
.flash-warning { border-left: 4px solid #f59e0b; }
.flash-info    { border-left: 4px solid #3b82f6; }

/* ── Luxury Glass Pill Navigation Tabs (.profile-tabs-nav, .tab-btn) ── */
.profile-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px;
  border-radius: 18px;
  margin-bottom: 28px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
.profile-tabs-nav .tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.profile-tabs-nav .tab-btn:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}
.profile-tabs-nav .tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.tab-content { display: none; animation: tabFadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Executive Profile Completeness Meter ── */
.completeness-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
}
.completeness-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.completeness-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Executive Bento Course Cards (.course-card, .info-chip, .meta-badge) ── */
.course-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 26px 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 30px rgba(99, 102, 241, 0.12);
}
.course-inactive {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.05);
}
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Executive Form Builder Cards (.field-card, .publish-sticky-bar) ── */
.field-card {
  background: var(--glass-bg, rgba(15, 23, 42, 0.75)) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
  margin-bottom: 14px !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.field-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 20px rgba(99, 102, 241, 0.12) !important;
}
.publish-sticky-bar {
  position: sticky;
  bottom: 24px;
  z-index: 999;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 18px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}





