/* ─────────────────────────────────────────────────────────────────────────
   CyberMentor — Premium Dark Cybersecurity UI
   Design System: Navy/Teal/Cyan glassmorphism aesthetic
   Typography: JetBrains Mono (code/UI) + Inter (body)
───────────────────────────────────────────────────────────────────────── */

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:            #070d1a;
  --clr-bg-2:          #0c1527;
  --clr-surface:       rgba(12, 21, 39, 0.7);
  --clr-surface-hover: rgba(20, 35, 65, 0.85);
  --clr-border:        rgba(0, 220, 220, 0.12);
  --clr-border-bright: rgba(0, 220, 220, 0.35);

  --clr-cyan:          #00dcdc;
  --clr-cyan-dim:      rgba(0, 220, 220, 0.15);
  --clr-teal:          #00b4b4;
  --clr-green:         #00ff9d;
  --clr-green-dim:     rgba(0, 255, 157, 0.12);

  --clr-text:          #e4eaf5;
  --clr-text-dim:      #7b92b8;
  --clr-text-muted:    #3d5275;

  --clr-user-bubble:   rgba(0, 180, 180, 0.18);
  --clr-agent-bubble:  rgba(12, 24, 50, 0.9);

  --clr-danger:        #ff4d6d;
  --clr-warning:       #ffc947;

  /* Typography */
  --font-body:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-glow:  0 0 40px rgba(0, 220, 220, 0.08);
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-btn:   0 4px 20px rgba(0, 220, 220, 0.25);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.25s ease;
  --t-slow:   0.4s ease;

  /* Layout */
  --sidebar-w: 280px;
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100dvh;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(0, 180, 180, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 100, 255, 0.05) 0%, transparent 60%);
}

/* Animated grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 220, 220, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 220, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Glassmorphism Utility ─────────────────────────────────────────────── */
.glass {
  background: var(--clr-surface);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--clr-border);
}

/* ── Overlay / Modal ───────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--sp-4);
  transition: opacity var(--t-normal);
}
.overlay:not(.active) { opacity: 0; pointer-events: none; }

.onboarding-card {
  max-width: 440px;
  width: 100%;
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: slideUp var(--t-slow) ease both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onboarding-logo {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.logo-shield {
  font-size: 3.5rem;
  display: block;
  margin-bottom: var(--sp-2);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 220, 220, 0.4)); }
  50%       { filter: drop-shadow(0 0 25px rgba(0, 220, 220, 0.8)); }
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--clr-cyan);
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(0, 220, 220, 0.3);
}

.logo-sub {
  color: var(--clr-text-dim);
  font-size: 0.875rem;
  margin-top: var(--sp-1);
}

.onboarding-tagline {
  text-align: center;
  color: var(--clr-text-dim);
  margin-bottom: var(--sp-6);
  font-size: 0.95rem;
  line-height: 1.5;
}

.onboarding-form { display: flex; flex-direction: column; gap: var(--sp-3); }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-dim);
}

.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--clr-border-bright);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--clr-text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
}
.form-input::placeholder { color: var(--clr-text-muted); }
.form-input:focus {
  border-color: var(--clr-cyan);
  box-shadow: 0 0 0 3px rgba(0, 220, 220, 0.12);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-teal) 100%);
  color: var(--clr-bg);
  font-weight: 600;
  box-shadow: var(--shadow-btn);
  justify-content: center;
  width: 100%;
  padding: var(--sp-4);
}
.btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 220, 220, 0.4);
}
.btn-primary:not(:disabled):active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--clr-text-dim);
  border: 1px solid var(--clr-border);
  font-size: 0.8rem;
  padding: var(--sp-2) var(--sp-3);
}
.btn-ghost:hover {
  border-color: var(--clr-border-bright);
  color: var(--clr-text);
}

/* ── App Layout ────────────────────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100dvh;
  position: relative;
  z-index: 1;
}
.app-layout.hidden { display: none; }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  border-right: 1px solid var(--clr-border);
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--t-normal);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.sidebar-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-cyan);
  letter-spacing: -0.3px;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: var(--clr-text-dim);
  cursor: pointer;
  padding: var(--sp-1);
  border-radius: var(--r-sm);
  display: none; /* Mobile only */
}

.user-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--clr-cyan), var(--clr-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-bg);
  flex-shrink: 0;
}

.user-info { min-width: 0; }
.user-name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-badge {
  font-size: 0.7rem;
  color: var(--clr-green);
  font-family: var(--font-mono);
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--clr-text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: all var(--t-fast);
  text-align: left;
}
.quick-action-btn:hover {
  background: var(--clr-surface-hover);
  border-color: var(--clr-border);
  color: var(--clr-text);
  transform: translateX(2px);
}

.quick-action-btn.btn-support-mission {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-action-btn.btn-support-mission:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  border-color: #f59e0b;
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  transform: translateX(3px);
}

.quick-action-btn.btn-danger-action {
  color: #f87171;
  margin-top: var(--sp-2);
  border-top: 1px dashed rgba(239, 68, 68, 0.2);
  padding-top: var(--sp-3);
}

.quick-action-btn.btn-danger-action:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-support-coffee-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-support-coffee-header:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.footer-donate-link {
  color: #fbbf24 !important;
  font-weight: 600;
}

.qa-icon { font-size: 1rem; flex-shrink: 0; }

/* Progress Panel */
.progress-panel {
  padding: var(--sp-4);
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.progress-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
  font-family: var(--font-mono);
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.progress-empty {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-style: italic;
  text-align: center;
  padding: var(--sp-4) 0;
}

.milestone-item {
  background: var(--clr-green-dim);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.78rem;
  color: var(--clr-text);
  animation: fadeIn var(--t-normal) ease;
}
.milestone-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--clr-text-muted);
  margin-top: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sidebar-footer {
  padding: var(--sp-4);
  border-top: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.footer-brand, .footer-tech {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}
.footer-brand a {
  color: var(--clr-cyan);
  text-decoration: none;
}
.footer-brand a:hover { text-decoration: underline; }
.footer-tech { font-family: var(--font-mono); }

/* ── Chat Area ─────────────────────────────────────────────────────────── */
.chat-area {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  border-radius: 0;
  flex-shrink: 0;
}

.agent-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--clr-text-dim);
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--clr-green);
  box-shadow: 0 0 8px var(--clr-green);
  transition: background var(--t-normal), box-shadow var(--t-normal);
}
.status-dot.thinking {
  background: var(--clr-cyan);
  box-shadow: 0 0 12px var(--clr-cyan);
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Messages ──────────────────────────────────────────────────────────── */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  scroll-behavior: smooth;
}

.message {
  display: flex;
  gap: var(--sp-3);
  animation: messageIn 0.2s ease both;
  max-width: 100%;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message.user { flex-direction: row-reverse; }

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 600;
}

.message.agent .message-avatar {
  background: linear-gradient(135deg, var(--clr-cyan), var(--clr-teal));
  color: var(--clr-bg);
  font-size: 1rem;
}

.message.user .message-avatar {
  background: rgba(255,255,255,0.1);
  color: var(--clr-text);
  font-size: 0.8rem;
}

.message-bubble {
  max-width: 75%;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  line-height: 1.65;
  font-size: 0.92rem;
}

.message.agent .message-bubble {
  background: var(--clr-agent-bubble);
  border: 1px solid var(--clr-border);
  border-top-left-radius: var(--r-sm);
}

.message.user .message-bubble {
  background: var(--clr-user-bubble);
  border: 1px solid rgba(0, 220, 220, 0.2);
  border-top-right-radius: var(--r-sm);
}

/* Markdown inside agent bubbles */
.message-bubble h2, .message-bubble h3 {
  font-family: var(--font-mono);
  color: var(--clr-cyan);
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: 0.95rem;
  letter-spacing: -0.3px;
}
.message-bubble h2:first-child,
.message-bubble h3:first-child { margin-top: 0; }

.message-bubble p { margin-bottom: var(--sp-3); }
.message-bubble p:last-child { margin-bottom: 0; }

.message-bubble ul, .message-bubble ol {
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
}
.message-bubble li { margin-bottom: var(--sp-1); }

.message-bubble strong { color: var(--clr-cyan); font-weight: 600; }

.message-bubble code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(0, 220, 220, 0.1);
  color: var(--clr-cyan);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

.message-bubble pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  overflow-x: auto;
  margin: var(--sp-3) 0;
}
.message-bubble pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
  color: var(--clr-text);
}

.message-bubble hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-4) 0;
}

.message-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-3) 0;
  font-size: 0.85rem;
}
.message-bubble th {
  background: rgba(0, 220, 220, 0.1);
  color: var(--clr-cyan);
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.message-bubble td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
}
.message-bubble tr:last-child td { border-bottom: none; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-4) var(--sp-5);
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-cyan);
  border-radius: var(--r-full);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-6px); opacity: 1; }
}

/* ── Input Area ────────────────────────────────────────────────────────── */
.input-area {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--clr-border);
  border-radius: 0;
  flex-shrink: 0;
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input-wrapper:focus-within {
  border-color: var(--clr-border-bright);
  box-shadow: 0 0 0 3px rgba(0, 220, 220, 0.08);
}

.message-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  resize: none;
  max-height: 180px;
  overflow-y: auto;
}
.btn-icon-action {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--clr-border);
  color: var(--clr-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--t-fast);
}

.btn-icon-action:hover {
  background: rgba(0, 220, 220, 0.15);
  border-color: var(--clr-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: none;
  background: linear-gradient(135deg, var(--clr-cyan), var(--clr-teal));
  color: var(--clr-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-fast);
  box-shadow: 0 2px 12px rgba(0, 220, 220, 0.3);
}
.send-btn:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 220, 220, 0.5);
}
.send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.input-hint {
  margin-top: var(--sp-2);
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  text-align: center;
  font-family: var(--font-mono);
}
.input-hint kbd {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.68rem;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform var(--t-normal);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle-btn { display: flex; }
  .message-bubble { max-width: 90%; }
  .chat-header { padding: var(--sp-3) var(--sp-4); }
  .messages-container { padding: var(--sp-4); }
  .input-area { padding: var(--sp-3) var(--sp-4); }
}

/* ── Auth Status Message & Resources Modal ─────────────────────────────── */
.auth-status-msg {
  font-size: 0.8rem;
  color: var(--clr-accent-amber);
  margin: var(--sp-2) 0;
  text-align: center;
  min-height: 1.2rem;
}

.resources-card {
  max-width: 680px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.resources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.resources-header h2 {
  font-size: 1.25rem;
  color: var(--clr-text-primary);
  margin: 0;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--clr-text-sub);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 var(--sp-2);
}
.btn-close:hover { color: var(--clr-text-primary); }

.resources-content {
  overflow-y: auto;
  padding-right: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.resource-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}

.resource-item h3 {
  font-size: 0.95rem;
  color: var(--clr-accent-cyan);
  margin: 0 0 var(--sp-1) 0;
}

.resource-item p {
  font-size: 0.85rem;
  color: var(--clr-text-sub);
  margin: 0 0 var(--sp-2) 0;
}

.resource-item a {
  font-size: 0.8rem;
  color: var(--clr-accent-cyan);
  text-decoration: underline;
}

/* ── Media Cards (Veo Video & Lyria Audio) ────────────────────────────── */
.media-card {
  margin: var(--sp-3) 0;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid var(--clr-cyan);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.video-card {
  border-color: rgba(0, 220, 220, 0.4);
}

.audio-card {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(15, 23, 42, 0.7);
}

.media-header {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-cyan);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.media-player {
  width: 100%;
  border-radius: var(--r-sm);
  outline: none;
}

video.media-player {
  max-height: 280px;
  background: #000;
}

audio.media-player {
  height: 40px;
}

.media-link a {
  font-size: 0.78rem;
  color: var(--clr-teal);
  text-decoration: underline;
}

/* ── Cyber Focus Audio Synthesizer Card ────────────────────────────── */
.cyber-audio-player {
  margin: var(--sp-4) 0;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(13, 27, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  animation: fadeIn 0.3s ease;
}

.audio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-bottom: var(--sp-2);
}

.audio-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.audio-status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.audio-status-pill.active {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.audio-wave-container {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.audio-visualizer-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
}

.audio-visualizer-bars span {
  display: block;
  width: 4px;
  height: 6px;
  background: rgba(56, 189, 248, 0.4);
  border-radius: 2px;
  transition: height 0.1s ease, background 0.2s ease;
}

.audio-visualizer-bars.active span {
  background: #38bdf8;
  animation: barBounce 0.8s infinite ease-in-out alternate;
}

.audio-visualizer-bars.active span:nth-child(1) { animation-delay: 0.0s; }
.audio-visualizer-bars.active span:nth-child(2) { animation-delay: 0.15s; }
.audio-visualizer-bars.active span:nth-child(3) { animation-delay: 0.3s; }
.audio-visualizer-bars.active span:nth-child(4) { animation-delay: 0.45s; }
.audio-visualizer-bars.active span:nth-child(5) { animation-delay: 0.2s; }
.audio-visualizer-bars.active span:nth-child(6) { animation-delay: 0.35s; }
.audio-visualizer-bars.active span:nth-child(7) { animation-delay: 0.5s; }
.audio-visualizer-bars.active span:nth-child(8) { animation-delay: 0.1s; }
.audio-visualizer-bars.active span:nth-child(9) { animation-delay: 0.25s; }
.audio-visualizer-bars.active span:nth-child(10) { animation-delay: 0.4s; }

@keyframes barBounce {
  0%   { height: 6px; }
  50%  { height: 26px; }
  100% { height: 12px; }
}

.audio-preset-info {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  text-align: center;
}

.audio-preset-info strong {
  color: var(--clr-text);
}

.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.btn-audio-toggle {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-audio-toggle:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.btn-audio-toggle.playing {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: rgba(248, 113, 113, 0.5);
}

.mood-selectors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-audio-mood {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-text-muted);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-audio-mood:hover,
.btn-audio-mood.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

/* ── Focus Music Studio Deck ────────────────────────────────────────── */
.focus-studio-deck {
  margin: 0 var(--sp-4) var(--sp-3) var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  animation: slideUp 0.25s ease;
  z-index: 15;
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deck-track-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.deck-icon {
  font-size: 1.4rem;
  background: rgba(56, 189, 248, 0.15);
  padding: 6px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.deck-info {
  display: flex;
  flex-direction: column;
}

.deck-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #38bdf8;
}

.deck-tag {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
}

.deck-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.btn-close-deck {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.btn-close-deck:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.deck-progress-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.deck-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  min-width: 32px;
}

.deck-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  flex: 1;
}

.deck-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  cursor: pointer;
}

.deck-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.deck-main-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-text);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.deck-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.deck-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #fff;
  font-weight: 600;
  padding: 6px 16px;
}

.deck-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.deck-btn.active {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.deck-visualizer-mini {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.deck-visualizer-mini span {
  display: block;
  width: 3px;
  height: 4px;
  background: rgba(56, 189, 248, 0.3);
  border-radius: 1px;
}

.deck-visualizer-mini.active span {
  background: #38bdf8;
  animation: barBounceMini 0.7s infinite ease-in-out alternate;
}

.deck-visualizer-mini.active span:nth-child(1) { animation-delay: 0.0s; }
.deck-visualizer-mini.active span:nth-child(2) { animation-delay: 0.1s; }
.deck-visualizer-mini.active span:nth-child(3) { animation-delay: 0.2s; }
.deck-visualizer-mini.active span:nth-child(4) { animation-delay: 0.3s; }
.deck-visualizer-mini.active span:nth-child(5) { animation-delay: 0.15s; }
.deck-visualizer-mini.active span:nth-child(6) { animation-delay: 0.25s; }
.deck-visualizer-mini.active span:nth-child(7) { animation-delay: 0.05s; }
.deck-visualizer-mini.active span:nth-child(8) { animation-delay: 0.35s; }

@keyframes barBounceMini {
  0%   { height: 4px; }
  100% { height: 18px; }
}

.deck-volume-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vol-icon { font-size: 0.8rem; }
.vol-slider { width: 70px; }

.deck-playlist-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.deck-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--clr-text-muted);
  border-radius: var(--r-sm);
  padding: 4px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.deck-tab:hover,
.deck-tab.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

/* ── Mindmap & Transfer Explorer Modal ───────────────────────────────── */
.mindmap-card {
  width: 92%;
  max-width: 960px;
  max-height: 88vh;
  background: var(--clr-bg-card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mindmap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  gap: var(--sp-4);
}

.mindmap-title-area h2 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--clr-text-primary);
  margin: 0 0 var(--sp-1) 0;
  letter-spacing: -0.4px;
}

.mindmap-sub {
  font-size: 0.85rem;
  color: var(--clr-text-sub);
  margin: 0;
}

.mindmap-nav-tabs {
  display: flex;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.mindmap-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-sub);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t-fast);
}

.mindmap-tab.active,
.mindmap-tab:hover {
  background: rgba(0, 220, 220, 0.12);
  border-color: var(--clr-cyan);
  color: var(--clr-cyan);
}

.mindmap-view {
  overflow-y: auto;
  padding-right: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-height: calc(88vh - 180px);
}

.mindmap-view.hidden { display: none !important; }

.transfer-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(10, 25, 47, 0.5);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  flex-wrap: wrap;
}

.transfer-controls .control-group {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.transfer-controls label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-cyan);
}

.transfer-arrow-badge {
  font-size: 1.4rem;
  color: var(--clr-accent-cyan);
  font-weight: 700;
}

.role-selector-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.role-selector-bar label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-cyan);
}

.role-selector-bar select {
  max-width: 320px;
}

/* Transfer Results Card */
.transfer-summary-card {
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.compatibility-bar-wrapper {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.compatibility-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-full);
  overflow: hidden;
}

.compatibility-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-cyan), var(--clr-teal));
  border-radius: var(--r-full);
}

.compatibility-score-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-cyan);
}

.transfer-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.transfer-section h4 {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--clr-text-primary);
  margin: 0;
}

.chips-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.chip {
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.chip-shared {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.chip-bridge {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.chip-delta {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.chip-cert {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.breaking-intro-quote {
  border-left: 3px solid var(--clr-cyan);
  padding-left: var(--sp-3);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--clr-text-sub);
}

/* Skills Mindmap Grid */
.mindmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-3);
}

.mindmap-branch-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}

.mindmap-branch-card h4 {
  font-size: 0.88rem;
  color: var(--clr-cyan);
  margin: 0 0 var(--sp-2) 0;
}

.mindmap-branch-card ul {
  padding-left: var(--sp-4);
  margin: 0;
  font-size: 0.82rem;
  color: var(--clr-text-sub);
}

.mindmap-branch-card li {
  margin-bottom: var(--sp-1);
}

/* Cert Timeline */
.cert-tier-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: rgba(0, 220, 220, 0.15);
  color: var(--clr-cyan);
  white-space: nowrap;
}

/* ── Analytics Dashboard CSS ─────────────────────────────────────────────── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.analytics-stat-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.analytics-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 220, 220, 0.4);
}

.analytics-stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: var(--sp-1);
}

.analytics-stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-cyan);
}

.analytics-stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--clr-text-sub);
  margin-top: 2px;
}

.skills-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.skill-tag {
  background: rgba(0, 220, 220, 0.1);
  border: 1px solid rgba(0, 220, 220, 0.25);
  color: var(--clr-cyan);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ── Community Feed CSS ─────────────────────────────────────────────────── */
.community-feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.community-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.community-user-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
}

.community-avatar {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.community-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.community-header-line {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.82rem;
}

.community-username {
  font-weight: 600;
  color: var(--clr-text);
}

.community-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 1px 6px;
  border-radius: var(--r-sm);
}

.community-location {
  color: var(--clr-text-sub);
  font-size: 0.75rem;
}

.community-milestone-text {
  font-size: 0.88rem;
  color: var(--clr-cyan);
  font-weight: 500;
}

.community-time {
  font-size: 0.72rem;
  color: var(--clr-text-sub);
}

.community-cheer-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-text);
  padding: 6px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.community-cheer-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: scale(1.05);
}

.community-cheer-btn.cheered {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

/* ── Voice & Audio Player Controls ───────────────────────────────────────── */
.btn-icon-action.recording {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  animation: pulse-mic 1s infinite alternate;
}

@keyframes pulse-mic {
  from { transform: scale(1); box-shadow: 0 0 4px #ef4444; }
  to { transform: scale(1.12); box-shadow: 0 0 16px #ef4444; }
}

.tts-speak-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--clr-text-sub);
  margin-left: var(--sp-2);
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  transition: color 0.2s ease;
}

.tts-speak-btn:hover {
  color: var(--clr-cyan);
}

/* ── SSO Modal & Overlay Utilities ─────────────────────────────────── */
.sso-card {
  max-width: 440px;
}
.sso-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.sso-title {
  font-size: 22px;
}
.sso-form {
  margin-top: 16px;
}
.sso-instructions {
  font-size: 13px;
  color: var(--clr-text-secondary);
  margin-bottom: 12px;
}
.btn-sso-account {
  justify-content: flex-start;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(66, 133, 244, 0.15);
  border-color: rgba(66, 133, 244, 0.45);
}
.sso-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4285F4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-right: 12px;
}
.sso-account-details {
  text-align: left;
}
.sso-account-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.sso-account-email {
  font-size: 12px;
  color: var(--clr-cyan);
}
.sso-divider {
  margin: 12px 0;
}
.sso-input {
  margin-bottom: 12px;
}
.sso-submit-btn {
  width: 100%;
  margin-bottom: 10px;
}
.sso-cancel-btn {
  width: 100%;
}
.analytics-action-item {
  margin-top: 1.25rem;
}
.community-subtext {
  color: var(--clr-text-sub);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ── Universal Scrollbars ────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-cyan);
}
