/* Stride — Shared Component Styles */

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

html { color-scheme: light dark; }

body {
  font-family: var(--font-family);
  background: transparent;
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--motion-slow), color var(--motion-slow);
}

/* Google Fonts — Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────
   AMBIENT GLASS BACKDROP
───────────────────────────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-page);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: var(--blob-opacity);
  will-change: transform;
  transition: opacity var(--motion-slow);
}

.blob-1 {
  width: 100vmax; height: 100vmax;
  left: -20vmax; top: -20vmax;
  background: radial-gradient(circle at 35% 35%, var(--blob-1), transparent 70%);
  animation: blobFloat1 28s ease-in-out infinite;
}
.blob-2 {
  width: 90vmax; height: 90vmax;
  right: -15vmax; top: 5%;
  background: radial-gradient(circle at 65% 35%, var(--blob-2), transparent 70%);
  animation: blobFloat2 32s ease-in-out infinite;
}
.blob-3 {
  width: 80vmax; height: 80vmax;
  left: 5%; bottom: -25vmax;
  background: radial-gradient(circle at 50% 50%, var(--blob-3), transparent 70%);
  animation: blobFloat3 36s ease-in-out infinite;
}
.blob-4 {
  width: 70vmax; height: 70vmax;
  right: 8%; bottom: -15vmax;
  background: radial-gradient(circle at 50% 50%, var(--blob-4), transparent 70%);
  animation: blobFloat1 24s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(5vw, 4vh) scale(1.12); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-4vw, 6vh) scale(1.08); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(3vw, -5vh) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

/* ─────────────────────────────────────────
   GLOBAL ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0; /* Ensures it's hidden before animation starts */
}

/* Stagger utilities */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }

/* ─────────────────────────────────────────
   TYPOGRAPHY UTILITIES
───────────────────────────────────────── */
.text-display  { font-size: var(--fs-display); font-weight: 700; line-height: 1.2; }
.text-h1       { font-size: var(--fs-h1); font-weight: 600; line-height: 1.3; }
.text-h2       { font-size: var(--fs-h2); font-weight: 600; line-height: 1.35; }
.text-h3       { font-size: var(--fs-h3); font-weight: 500; line-height: 1.4; }
.text-body     { font-size: var(--fs-body); font-weight: 400; line-height: 1.6; }
.text-small    { font-size: var(--fs-small); font-weight: 400; line-height: 1.55; }
.text-label    { font-size: var(--fs-label); font-weight: 500; line-height: 1.4; }
.text-caption  { font-size: var(--fs-caption); font-weight: 400; line-height: 1.4; }
.text-draft    { font-size: var(--fs-draft); font-weight: 400; line-height: 1.7; }

.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-blue      { color: var(--color-stride-blue); }

/* ─────────────────────────────────────────
   NAV BAR — floating glass capsule
───────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  width: 100%;
  max-width: var(--container-w);
  margin: var(--space-3) auto 0;
  padding: 0 var(--space-4);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 1px var(--glass-highlight), inset 0 0 20px rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  position: sticky;
  top: var(--space-3);
  z-index: 100;
  transition: background var(--motion-slow), border-color var(--motion-slow);
}

/* Wide dashboard variant — matches .wrap-dashboard content below it.
   Used on Home/Draft/Published/Collab navbars only. */
.navbar-wide {
  max-width: var(--dashboard-w);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
}

.navbar-logo-text {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.navbar-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-stride-blue), var(--color-deep-blue));
  color: var(--color-white);
  font-size: 32px;
  font-weight: 800;
  border-radius: 12px;
  padding: 0 5px;
  letter-spacing: -0.5px;
}

.navbar-center {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar-back {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-stride-blue);
  font-size: 14px;
  font-weight: 500;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
.navbar-back:hover { background: rgba(46,127,184,0.12); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-stride-blue), var(--color-deep-blue));
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}


.avatar-purple { background: linear-gradient(135deg, #8E44AD, #6B3FA0); }
.avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

/* ─────────────────────────────────────────
   GLOBAL NAV BAR
───────────────────────────────────────── */
#global-nav {
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="dark"] #global-nav {
  background: rgba(15,19,23,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ─────────────────────────────────────────
   NAVIGATION TABS
───────────────────────────────────────── */
.tabs-container {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: var(--radius-full);
}
[data-theme="dark"] .tabs-container {
  background: rgba(255, 255, 255, 0.08);
}
.nav-tab {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}
[data-theme="dark"] .nav-tab {
  color: #8FA3B8;
}
.nav-tab:hover {
  color: var(--text-primary);
}
.nav-tab.active {
  background: var(--color-white);
  color: var(--color-stride-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 600;
}
[data-theme="dark"] .nav-tab.active {
  background: rgba(255,255,255,0.13);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
  text-decoration: none;
  letter-spacing: -0.1px;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-stride-blue), var(--color-deep-blue));
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(46,127,184,0.22);
}
.btn-primary:hover {
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--glass-surface);
  color: var(--color-stride-blue);
  border: 1px solid var(--color-stride-blue);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
}
.btn-secondary:hover { background: var(--glass-surface-strong); }

.btn-ghost {
  background: var(--glass-surface);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
}
.btn-ghost:hover { background: var(--glass-surface-strong); }

.btn-streak {
  background: linear-gradient(135deg, var(--color-amber), #D4911F);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(245,166,35,0.25);
}
.btn-streak:hover {
  box-shadow: var(--shadow-streak);
  transform: translateY(-1px);
}

.btn-inline {
  width: auto;
  min-height: 36px;
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
}

/* Centered pill CTA — never full-bleed, always has breathing room on the sides */
.btn-pill {
  width: auto;
  min-width: 220px;
  margin: 0 auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
  border-radius: var(--radius-full);
}

/* ─────────────────────────────────────────
   CARDS — frosted glass
───────────────────────────────────────── */
.card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 1px var(--glass-highlight), inset 0 0 20px rgba(255,255,255,0.05);
  padding: var(--space-6);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  transition: background var(--motion-slow), border-color var(--motion-slow), transform var(--motion-base), box-shadow var(--motion-base);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), inset 0 1px 1px var(--glass-highlight), inset 0 0 20px rgba(255,255,255,0.1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--glass-highlight), transparent 45%);
  pointer-events: none;
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   CHIPS / TAGS
───────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color var(--motion-fast), transform var(--motion-fast);
  user-select: none;
}
.chip:active { transform: scale(0.96); }

.chip-technical  { background: var(--pillar-technical-bg);  color: var(--pillar-technical-text); }
.chip-leadership { background: var(--pillar-leadership-bg); color: var(--pillar-leadership-text); }
.chip-community  { background: var(--pillar-community-bg);  color: var(--pillar-community-text); }
.chip-creative   { background: var(--pillar-creative-bg);   color: var(--pillar-creative-text); }
.chip-research   { background: var(--pillar-research-bg);   color: var(--pillar-research-text); }

.chip.selected   { border-color: currentColor; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* ─────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────── */
.progress-bar-wrap {
  background: rgba(46,127,184,0.14);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-stride-blue), var(--color-sky-blue));
  border-radius: var(--radius-full);
  transition: width var(--motion-slow);
}

/* Step dots (onboarding) */
.step-dots {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  transition: background var(--motion-base), width var(--motion-base);
}
.step-dot.active {
  background: var(--color-stride-blue);
  width: 20px;
}

/* Onboarding profile payoff card */
.profile-payoff {
  width: 100%;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 1px var(--glass-highlight);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
}
.profile-payoff-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--color-stride-blue);
  margin-bottom: var(--space-4);
}
.profile-persona {
  font-size: 17px; font-weight: 600; color: var(--text-primary);
  margin-bottom: var(--space-2); line-height: 1.4;
}
.profile-positioning {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: var(--space-4);
}
.profile-meta {
  display: flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap; margin-top: var(--space-3);
  padding-top: var(--space-3); border-top: 1px solid var(--border-default);
}
.profile-tone-label {
  font-size: 12px; padding: 2px var(--space-2);
  border-radius: var(--radius-sm); background: var(--color-ghost);
  color: var(--text-muted); font-weight: 500;
}

/* ─────────────────────────────────────────
   STREAK BANNER
───────────────────────────────────────── */
.streak-banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  color: #92400E;
  font-size: 14px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
}

.streak-banner .icon-flame { color: #D97706; }

/* ─────────────────────────────────────────
   STREAK ISLAND (liquid glass)
───────────────────────────────────────── */
.streak-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
  transition: box-shadow 0.2s ease;
}

.streak-island:hover {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .streak-island {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────
   UPCOMING EVENTS CARD (glass treatment)
───────────────────────────────────────── */
#upcoming-events-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

[data-theme="dark"] #upcoming-events-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ─────────────────────────────────────────
   BADGES
───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.badge-warning { background: var(--color-red-light);   color: var(--color-red); }
.badge-success { background: var(--color-green-light); color: var(--color-green); }

/* ─────────────────────────────────────────
   INLINE SVG ICONS
───────────────────────────────────────── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon svg {
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────────────────────────────────────
   DIVIDER
───────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-4) 0;
}

/* ─────────────────────────────────────────
   SECTION LABEL
───────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

/* ─────────────────────────────────────────
   STRIDE INPUT — text / email fields
───────────────────────────────────────── */
.stride-input {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--glass-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  font-family: var(--font-family);
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
  transition: border-color var(--motion-base), box-shadow var(--motion-base);
  box-sizing: border-box;
}
.stride-input::placeholder { color: var(--text-muted); }
.stride-input:focus {
  outline: none;
  border-color: var(--color-stride-blue);
  box-shadow: 0 0 0 3px rgba(46,127,184,0.12);
}
.stride-input:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─────────────────────────────────────────
   THEME TOGGLE — floating glass button
───────────────────────────────────────── */
#theme-toggle {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--glass-surface-strong);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(46,127,184,0.1);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stride-blue);
  transition: background var(--motion-fast), transform var(--motion-fast);
}
#theme-toggle:hover { transform: scale(1.06); }
#theme-toggle:active { transform: scale(0.94); }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun  { display: none; }
:root[data-theme="dark"] .icon-moon { display: inline-flex; }

/* ─────────────────────────────────────────
   PERSONA LEARNING NOTE
   Shown under profile card when Stride updates the persona
───────────────────────────────────────── */
.persona-learning-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: rgba(46,127,184,0.08);
  border: 1px solid rgba(46,127,184,0.22);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  color: var(--color-deep-blue);
  line-height: 1.5;
}
.persona-learning-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-stride-blue);
}
.persona-learning-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Autofill chip animation — chips glow briefly when auto-selected */
@keyframes chipAutofill {
  0%   { box-shadow: 0 0 0 0 rgba(46,127,184,0);  transform: scale(1); }
  40%  { box-shadow: 0 0 0 6px rgba(46,127,184,0.20); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(46,127,184,0);  transform: scale(1); }
}
.chip-autofilled {
  animation: chipAutofill 0.6s ease-out forwards;
}

/* ─────────────────────────────────────────
   MOMENT MODAL OVERLAY
───────────────────────────────────────── */
.moment-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 20, 28, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: overlayFadeIn 0.2s ease-out;
}
.moment-modal-overlay[hidden] { display: none; }

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.moment-modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: var(--space-6);
}

@media (min-width: 600px) {
  .moment-modal-overlay {
    align-items: center;
    padding: var(--space-6);
  }
  .moment-modal {
    border-radius: var(--radius-xl);
    max-height: 85vh;
  }
}

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

.moment-bullet-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.moment-bullet-row .moment-bullet-input {
  flex: 1;
  resize: none;
  overflow: hidden;
  min-height: 40px;
  font-size: 14px;
}

/* ─────────────────────────────────────────
   TOOLTIPS — for floating corner buttons
───────────────────────────────────────── */
.has-tooltip { position: relative; }
.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-charcoal);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast), transform var(--motion-fast);
  box-shadow: var(--shadow-md);
}
.has-tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────
   DARK MODE OVERRIDES
───────────────────────────────────────── */
[data-theme="dark"] .chip.selected {
  background: #1A5F8A !important;
  color: #ffffff !important;
  border-color: #2E7FB8 !important;
}

[data-theme="dark"] .btn-primary {
  background: #2E7FB8;
  color: #ffffff;
}

[data-theme="dark"] .btn-ghost {
  color: #E0E6ED;
  border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .stride-input,
[data-theme="dark"] .input-glass {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #ffffff;
}

[data-theme="dark"] .stride-input::placeholder,
[data-theme="dark"] .input-glass::placeholder {
  color: rgba(255,255,255,0.4);
}

[data-theme="dark"] .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
