/* TopMark Design System — single source of truth */
@import url('fonts.css');

:root {
  /* Brand Colors — harmonised with the refined fx.css palette
     (deeper indigo/violet, rose instead of hot pink). */
  --accent: #4f46e5;        /* indigo-600 */
  --accent-hover: #4338ca;  /* indigo-700 */
  --accent-light: rgba(79, 70, 229, 0.10);
  --accent-dim:   rgba(79, 70, 229, 0.20);

  /* Aurora Gradients — tighter hue range, less neon */
  --aurora-1: #4f46e5;      /* indigo-600 */
  --aurora-2: #7c3aed;      /* violet-600 */
  --aurora-3: #db2777;      /* rose-600 */
  --gradient-aurora: linear-gradient(135deg, var(--aurora-1), var(--aurora-2), var(--aurora-3));
  --gradient-aurora-soft: linear-gradient(135deg, rgba(79,70,229,.75), rgba(124,58,237,.75));

  /* Background & Surface — warmer paper tone */
  --bg: #f8f6f1;
  --bg-soft: #efece4;
  --card: #ffffff;

  /* Text Colors — slightly warmer slate for less stark feel */
  --text: #18181b;
  --text-soft: #3f3f46;
  --text-muted: #6b7280;

  /* Borders */
  --border: #e6e3dc;
  --border-soft: #efece4;
  --border-glass: rgba(255, 255, 255, 0.4);

  /* Semantic Colors */
  --green: #10b981; --green-light: #d1fae5;
  --amber: #f59e0b; --amber-light: #fef3c7;
  --red: #ef4444; --red-light: #fee2e2;

  /* Radii */
  --r: 16px;
  --r-sm: 8px;
  --r-lg: 24px;
  --r-full: 9999px;

  /* Shadows & Blooming */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow: 0 4px 6px -1px rgba(15,23,42,.05), 0 2px 4px -1px rgba(15,23,42,.03);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.06), 0 4px 6px -2px rgba(15,23,42,.04);
  --shadow-aurora: 0 0 20px rgba(79,70,229,0.15), 0 0 40px rgba(168,85,247,0.1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-blur: blur(12px);

  /* Fluid Easings */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark theme overrides for the legacy variables. Mirrors the palette
   defined in fx.css so legacy components (auth modal etc.) read
   correctly in dark mode. */
[data-theme="dark"] {
  --bg:           #0b0b10;
  --bg-soft:      #13131a;
  --card:         #1a1a21;

  --text:         #f4f4f5;
  --text-soft:    #d4d4d8;
  --text-muted:   #9ca3af;

  --border:       rgba(244, 244, 245, 0.09);
  --border-soft:  rgba(244, 244, 245, 0.05);
  --border-glass: rgba(255, 255, 255, 0.06);

  /* Brand accents — lighter shades for visibility on dark */
  --accent:       #818cf8;          /* indigo-400 */
  --accent-hover: #6366f1;          /* indigo-500 */
  --accent-light: rgba(129,140,248,.14);
  --accent-dim:   rgba(129,140,248,.22);

  --aurora-1:     #818cf8;
  --aurora-2:     #a78bfa;
  --aurora-3:     #fb7185;

  --green-light:  rgba(16,185,129,.15);
  --amber-light:  rgba(245,158,11,.15);
  --red-light:    rgba(239,68,68,.15);

  --glass-bg:     rgba(26, 26, 33, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.06);

  --shadow-sm:    0 1px 2px rgba(0,0,0,.4);
  --shadow:       0 4px 6px -1px rgba(0,0,0,.5), 0 2px 4px -1px rgba(0,0,0,.4);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.6), 0 4px 6px -2px rgba(0,0,0,.4);
  --shadow-aurora: 0 0 20px rgba(129,140,248,.18), 0 0 40px rgba(167,139,250,.12);
}

/* Base Setup with Noise Grain */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Subtle Noise Texture Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Focus Rings (Accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease-out-quint); }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }

/* Typography specifics */
.stat-value, .v, .tabular-nums {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.code, .ms-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Layout */
main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.page-title { font-size: 2rem; font-weight: 700; margin-bottom: .25rem; letter-spacing: -.03em; }
.page-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }

/* Animations */
@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Staggered Entrance Classes */
.animate-enter { animation: fade-slide-up 0.6s var(--ease-out-quint) both; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header (Glassmorphism & Nav Pill Indicator) */
.site-header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: nowrap; }
.header-inner > #logo-container { flex-shrink: 0; }
.header-inner > .nav-links { flex: 1 1 auto; min-width: 0; position: relative; }
.header-inner > #prompt-budget-chip { flex-shrink: 0; }

.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }
.logo svg { width: 32px; height: 32px; padding: 6px; background: var(--gradient-aurora); border-radius: 10px; color: #fff; box-shadow: var(--shadow-aurora); }

.nav-links { display: flex; gap: .25rem; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  position: relative;
  padding: .5rem .875rem;
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-out-quint);
  white-space: nowrap; flex-shrink: 0;
  z-index: 1;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* Tab Indicator Shared Layout Logic (requires JS to move the pill, but CSS sets it up) */
.nav-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  background: var(--accent-light);
  border-radius: var(--r-full);
  z-index: 0;
  transition: all 0.4s var(--ease-spring);
  pointer-events: none;
}
/* Fallback if JS isn't managing the indicator */
.nav-links:not(:has(.nav-indicator)) a.active {
  background: var(--accent-light);
}

/* Cards (High Impact, Lift on Hover) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--ease-out-quint);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-soft);
}
.card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; letter-spacing: -0.01em; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .75rem; }

/* Hero Section (Aurora Glow) */
.hero {
  background: var(--gradient-aurora);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-aurora);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.3), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: blob-drift 20s infinite alternate ease-in-out;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem; color: #fff; line-height: 1.1; }
.hero p { font-size: 1.1rem; opacity: .95; max-width: 540px; margin-bottom: 2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; max-width: 600px; }
.hero-stat {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
}
.hero-stat .v { font-size: 1.75rem; font-weight: 700; line-height: 1; color: #fff; }
.hero-stat .l { font-size: .8rem; opacity: .9; margin-top: .35rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 500;}

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s var(--ease-spring);
  display: flex; flex-direction: column; gap: .75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-aurora);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
/* Aurora Glow Border Effect on hover */
.feature-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient-aurora);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover::after { opacity: 0.15; filter: blur(8px); }

.feature-card .icon {
  font-size: 1.5rem; width: 48px; height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .25rem;
  transition: transform 0.4s var(--ease-spring);
}
.feature-card:hover .icon { transform: scale(1.1) rotate(5deg); }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0; }
.feature-card p { font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem;
  border: none; border-radius: var(--r-sm);
  font-family: inherit; font-size: .9rem; font-weight: 500;
  transition: all 0.2s var(--ease-out-quint);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 4px rgba(79,70,229,0.2);
}
.btn-primary:hover {
  background: var(--accent-hover); color: #fff;
  box-shadow: 0 4px 10px rgba(79,70,229,0.3);
  transform: translateY(-1px);
}
.btn-primary:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--border-soft); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-sm { padding: .4rem .875rem; font-size: .85rem; }

/* Forms */
input[type=text], input[type=email], input[type=number], input[type=search], input[type=password], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: .625rem 1rem; font-family: inherit; font-size: .95rem; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--card); color: var(--text); outline: none; transition: all .2s var(--ease-out-quint);
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
textarea { resize: vertical; min-height: 100px; }

/* Chat Container */
.chat-container { display: flex; flex-direction: column; height: 600px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: var(--bg-soft); }
.chat-msg { max-width: 85%; padding: .875rem 1.125rem; border-radius: 16px; font-size: .95rem; line-height: 1.55; word-wrap: break-word; white-space: pre-wrap; }
.chat-msg.bot { background: var(--card); color: var(--text); align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-msg.user { background: var(--gradient-aurora-soft); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 2px 8px rgba(79,70,229,0.2); }
.chat-msg.bot strong { color: var(--accent); font-weight: 600; }
.chat-msg img { max-width: 100%; border-radius: var(--r-sm); margin-top: .5rem; border: 1px solid var(--border); }
.chat-msg.thinking { background: transparent; border: none; align-self: flex-start; color: var(--text-muted); font-style: italic; display: flex; align-items: center; gap: 0.5rem; padding-left: 0; }
.chat-msg.thinking::before {
  content: ''; display: block; width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite;
}

.chat-input-area { padding: 1rem; border-top: 1px solid var(--border); background: var(--card); }
.chat-input-row { display: flex; gap: .75rem; align-items: flex-end; }
.chat-input-row input { flex: 1; }
.chat-tools { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.chat-tool-btn { padding: .4rem .875rem; border: 1px solid var(--border); background: var(--card); border-radius: var(--r-full); font-size: .85rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: .3rem; transition: all .2s var(--ease-out-quint); font-weight: 500; }
.chat-tool-btn:hover { background: var(--accent-light); color: var(--accent); border-color: transparent; }

/* Subjects Grid */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.subject-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem; position: relative; overflow: hidden; transition: all 0.4s var(--ease-spring); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-dim); }
.subject-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-aurora); opacity: 0.8;}
.subject-card .sc-icon { font-size: 1.75rem; margin-bottom: .75rem; color: var(--accent); }
.subject-card h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 .25rem; letter-spacing: -0.01em;}
.subject-card .code { font-size: .8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.subject-card .stats { display: flex; gap: 1rem; margin: 1rem 0; padding: 1rem 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.subject-card .stats .stat-item { flex: 1; text-align: center; }
.subject-card .stats .v { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; font-family: 'Inter', sans-serif;}
.subject-card .stats .l { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .35rem; font-weight: 500;}
.subject-card .actions { display: flex; gap: .5rem; margin-top: auto; flex-wrap: wrap; }
.subject-card .actions a { flex: 1; text-align: center; padding: .625rem .75rem; font-size: .875rem; font-weight: 500; border-radius: var(--r-sm); background: var(--bg-soft); color: var(--text); transition: all .2s var(--ease-out-quint); }
.subject-card .actions a:hover { background: var(--accent); color: #fff; }

/* Quiz/Question Layouts */
.qp-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .qp-layout { grid-template-columns: 1fr; } }
.qp-filters { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-sm); }
.filter-group label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .5rem; display: block; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip { padding: .4rem .875rem; font-size: .85rem; font-weight: 500; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-full); color: var(--text-soft); transition: all .2s var(--ease-out-quint); }
.filter-chip:hover { background: var(--bg-soft); border-color: var(--border-soft); }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.qp-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.qp-list-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text); background: var(--bg-soft); display: flex; justify-content: space-between; }
.qp-list-items { max-height: 700px; overflow-y: auto; }
.qp-list-item { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: background .2s; }
.qp-list-item:hover { background: var(--bg-soft); }
.qp-list-item.active { background: var(--accent-light); border-left: 3px solid var(--accent); padding-left: calc(1.25rem - 3px); }

/* Mark Scheme - Typography Upgrade */
.ms { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: var(--r-sm); padding: 1.5rem; margin: 1.25rem 0; box-shadow: var(--shadow-sm); }
.ms-header h4 { color: var(--green); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ms .ms-code { background: var(--green-light); color: var(--green); padding: .1rem .4rem; border-radius: 4px; font-size: .8rem; }

/* Progress/Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease-out-quint); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .v { font-size: 2.5rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: .5rem; font-family: 'Inter', sans-serif;}
.stat-card .l { font-size: .85rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

.progress-bar { height: 8px; width: 100%; background: var(--border-soft); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--gradient-aurora); border-radius: 4px; transition: width 0.8s var(--ease-out-quint); }

/* Utilities */
.tag { font-size: .75rem; padding: .2rem .6rem; border-radius: var(--r-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }

/* Shimmer Skeleton Loading */
.skeleton {
  background: #f1f5f9;
  background-image: linear-gradient(90deg, #f1f5f9 0px, #e2e8f0 40px, #f1f5f9 80px);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--r-sm);
}

.spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Budget Chip */
.prompt-budget-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .875rem;
  font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease-out-quint);
}
.prompt-budget-chip::before { content: '⚡'; font-size: .9rem; line-height: 1; }
.prompt-budget-chip:hover { border-color: var(--accent-dim); background: var(--bg-soft); }

/* Toast */
.toast { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1rem 1.25rem; font-weight: 500; box-shadow: var(--shadow-lg); position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }

/* Icons globally stroke width */
.lucide { stroke-width: 1.75; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero { padding: 2rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  main { padding: 1.5rem 1rem 3rem; }
  .card { padding: 1.25rem; }
}
