/* ============================================
   SCHOLARSHIP EXPLORER — PRESTIGE EDITORIAL
   Aesthetic: High-end prospectus meets fintech
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Burgundy-Gold-Cream palette */
  --clr-burgundy: #7B1E3A;
  --clr-burgundy-deep: #5A1229;
  --clr-burgundy-light: #A03050;
  --clr-gold: #C9963B;
  --clr-gold-light: #E8C876;
  --clr-gold-pale: #F5E6C4;
  --clr-cream: #FDF6EC;
  --clr-cream-dark: #F5EDE0;
  --clr-warm-white: #FEFCF8;
  --clr-navy: #1A1A2E;
  --clr-charcoal: #2D2D3A;
  --clr-slate: #6B6B80;
  --clr-mist: #B0B0C0;

  /* Semantic colors */
  --bg-primary: var(--clr-warm-white);
  --bg-secondary: var(--clr-cream);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFDF8;
  --bg-nav: rgba(254, 252, 248, 0.85);
  --bg-modal: #FFFFFF;
  --bg-input: #FFFFFF;

  --text-primary: var(--clr-navy);
  --text-secondary: var(--clr-slate);
  --text-muted: var(--clr-mist);
  --text-accent: var(--clr-burgundy);
  --text-on-accent: #FFFFFF;

  --border-color: rgba(26, 26, 46, 0.08);
  --border-strong: rgba(26, 26, 46, 0.15);
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 26, 46, 0.12);
  --shadow-glow: 0 0 30px rgba(201, 150, 59, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg-primary: #0F0F17;
  --bg-secondary: #161622;
  --bg-card: #1C1C2E;
  --bg-card-hover: #222238;
  --bg-nav: rgba(15, 15, 23, 0.9);
  --bg-modal: #1C1C2E;
  --bg-input: #161622;

  --text-primary: #E8E6F0;
  --text-secondary: #9090A8;
  --text-muted: #5A5A72;
  --text-accent: var(--clr-gold-light);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(201, 150, 59, 0.2);

  --clr-burgundy: #C24466;
  --clr-burgundy-light: #D65A7A;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
}

/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

[data-theme="dark"] .noise-overlay {
  opacity: 0.04;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--clr-burgundy-deep) 0%, var(--clr-burgundy) 35%, var(--clr-burgundy-light) 70%, var(--clr-gold) 100%);
  padding: var(--space-3xl) var(--space-lg);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__circle--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.hero__circle--2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -50px;
  animation: float 15s ease-in-out infinite reverse;
}

.hero__circle--3 {
  width: 250px;
  height: 250px;
  top: 40%;
  left: 15%;
  border-color: rgba(255, 255, 255, 0.05);
  animation: float 25s ease-in-out infinite 5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.02); }
  66% { transform: translate(-15px, 20px) scale(0.98); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold-light);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
}

.hero__title-line {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.hero__title-line:nth-child(1) { animation-delay: 0.3s; }
.hero__title-line--accent {
  color: var(--clr-gold-light);
  font-size: clamp(3rem, 8vw, 6rem);
  animation-delay: 0.5s;
}
.hero__title-line--italic {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  animation-delay: 0.7s;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.hero__stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite 2s;
}

.hero__scroll-cue svg {
  width: 20px;
  height: 20px;
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   HERO — 3-column layout with side tips
   ============================================ */
.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 360px 1fr 360px;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
  max-width: 1600px;
  padding: 0 var(--space-md);
}

.hero__content {
  text-align: center;
}

.hero__tips-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 0;
}

.hero__tips-left {
  animation: fadeInLeft 0.8s var(--ease-out) 1.3s forwards;
}

.hero__tips-right {
  animation: fadeInRight 0.8s var(--ease-out) 1.3s forwards;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.hero__tip-card {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.hero__tip-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
}

.hero__tip-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: rgba(201, 150, 59, 0.22);
  border: 1px solid rgba(201, 150, 59, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gold-light);
}

.hero__tip-icon svg {
  width: 24px;
  height: 24px;
}

.hero__tip-card h4 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.hero__tip-card p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

@media (max-width: 1300px) {
  .hero__layout {
    grid-template-columns: 300px 1fr 300px;
    gap: var(--space-lg);
  }
}

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .hero__tips-side {
    flex-direction: row;
    justify-content: center;
    opacity: 1;
    animation: none;
  }
  .hero__tips-left { order: 2; }
  .hero__content { order: 1; }
  .hero__tips-right { order: 3; }
  .hero__tip-card { flex: 1; max-width: 220px; }
}

@media (max-width: 640px) {
  .hero__tips-side {
    flex-direction: column;
    align-items: center;
  }
  .hero__tip-card {
    max-width: 280px;
    width: 100%;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--duration-normal) ease;
}

.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-accent);
}

.nav__brand svg {
  width: 20px;
  height: 20px;
  color: var(--clr-gold);
}

.nav__tabs {
  display: flex;
  gap: var(--space-xs);
}

.nav__tab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  position: relative;
}

.nav__tab svg {
  width: 18px;
  height: 18px;
}

.nav__tab:hover {
  color: var(--text-primary);
  background: var(--border-color);
}

.nav__tab--active {
  color: var(--clr-burgundy);
  background: rgba(123, 30, 58, 0.08);
}

[data-theme="dark"] .nav__tab--active {
  color: var(--clr-gold-light);
  background: rgba(201, 150, 59, 0.12);
}

.nav__tab-badge {
  background: var(--clr-burgundy);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

[data-theme="dark"] .nav__tab-badge {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

.nav__theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
  color: var(--text-secondary);
}

.nav__theme-toggle:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.nav__theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-icon--dark { display: none; }
[data-theme="dark"] .theme-icon--light { display: none; }
[data-theme="dark"] .theme-icon--dark { display: block; }

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  min-height: 60vh;
}

.tab-content {
  display: none;
}

.tab-content--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ============================================
   SEARCH
   ============================================ */
.search-section {
  margin-bottom: var(--space-xl);
}

.search-bar {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.search-bar__icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--duration-fast) ease;
}

.search-bar__input {
  width: 100%;
  height: 56px;
  padding: 0 var(--space-3xl) 0 calc(var(--space-lg) + 30px);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--duration-normal) var(--ease-out);
  outline: none;
}

.search-bar__input::placeholder {
  color: var(--text-muted);
}

.search-bar__input:focus {
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-glow);
}

.search-bar__input:focus ~ .search-bar__icon {
  color: var(--clr-gold);
}

.search-bar__clear {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease;
}

.search-bar__clear:hover {
  color: var(--text-primary);
}

.search-bar__clear svg {
  width: 18px;
  height: 18px;
}

.search-section__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stats-bar::-webkit-scrollbar { display: none; }

.stats-bar__inner {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  min-width: max-content;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}

.stat-chip__bar {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.stat-chip__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s var(--ease-out);
}

.stat-chip__count {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.filters {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.filters__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.filters__title svg {
  width: 18px;
  height: 18px;
  color: var(--clr-gold);
}

.filters__reset {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--duration-fast) ease;
}

.filters__reset:hover {
  color: var(--clr-burgundy);
}

.filter-group {
  margin-bottom: var(--space-lg);
}

.filter-group__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.filter-chip svg {
  width: 13px;
  height: 13px;
}

.filter-chip:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.filter-chip--active {
  background: var(--clr-burgundy);
  border-color: var(--clr-burgundy);
  color: white;
}

[data-theme="dark"] .filter-chip--active {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

.filter-range {
  padding: var(--space-sm) 0;
}

.filter-range__slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  outline: none;
}

.filter-range__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-gold);
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.filter-range__slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.filter-range__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-gold);
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.filter-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.filter-range__value {
  font-weight: 600;
  color: var(--clr-gold);
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.filter-toggle input {
  display: none;
}

.filter-toggle__switch {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--border-strong);
  position: relative;
  transition: background var(--duration-fast) ease;
  flex-shrink: 0;
}

.filter-toggle__switch::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.filter-toggle input:checked + .filter-toggle__switch {
  background: var(--clr-gold);
}

.filter-toggle input:checked + .filter-toggle__switch::after {
  transform: translateX(16px);
}

.filter-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease;
}

.filter-select:focus {
  border-color: var(--clr-gold);
}

.filters-mobile-toggle {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-bottom: var(--space-md);
  transition: all var(--duration-fast) ease;
}

.filters-mobile-toggle svg {
  width: 16px;
  height: 16px;
}

.filters-mobile-toggle:hover {
  border-color: var(--clr-gold);
}

/* ============================================
   RESULTS
   ============================================ */
.results__header {
  margin-bottom: var(--space-lg);
}

.results__count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.results__count strong {
  color: var(--text-primary);
  font-weight: 600;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.results__empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--text-muted);
}

.results__empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.results__empty h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.results__loading {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--clr-gold);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SCHOLARSHIP CARD
   ============================================ */
.scholarship-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.scholarship-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-burgundy), var(--clr-gold));
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.scholarship-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.scholarship-card:hover::before {
  opacity: 1;
}

.scholarship-card--high-match::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card__badge--category {
  background: rgba(123, 30, 58, 0.08);
  color: var(--clr-burgundy);
}

[data-theme="dark"] .card__badge--category {
  background: rgba(194, 68, 102, 0.15);
}

.card__badge--scope {
  background: rgba(201, 150, 59, 0.1);
  color: var(--clr-gold);
}

.card__badge--renewable {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.card__bookmark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-color);
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast) ease;
}

.card__bookmark svg {
  width: 16px;
  height: 16px;
}

.card__bookmark:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.card__bookmark--active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: white;
}

.card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__provider {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.card__description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.card__amount {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-gold);
}

.card__deadline {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.card__deadline svg {
  width: 14px;
  height: 14px;
}

.card__match {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.card__match--high {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.card__match--medium {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.card__match--low {
  background: rgba(107, 107, 128, 0.1);
  color: var(--text-muted);
}

/* ============================================
   DETAIL MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  animation: fadeIn 0.2s ease;
}

.modal-overlay--active {
  display: flex;
}

.modal {
  background: var(--bg-modal);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease-out);
}

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

.modal__close {
  position: sticky;
  top: var(--space-md);
  float: right;
  margin: var(--space-md) var(--space-md) 0 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 2;
  transition: all var(--duration-fast) ease;
}

.modal__close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__content {
  padding: var(--space-2xl);
}

.modal__header {
  margin-bottom: var(--space-xl);
}

.modal__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.modal__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.modal__provider {
  font-size: 1rem;
  color: var(--text-secondary);
}

.modal__amount-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(201, 150, 59, 0.08), rgba(123, 30, 58, 0.05));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.modal__amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-gold);
}

.modal__deadline-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal__deadline-info strong {
  color: var(--text-primary);
}

.modal__section {
  margin-bottom: var(--space-xl);
}

.modal__section-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.modal__section-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal__section-body a {
  color: var(--clr-burgundy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) ease;
}

.modal__section-body a:hover {
  border-color: var(--clr-burgundy);
}

[data-theme="dark"] .modal__section-body a {
  color: var(--clr-gold-light);
}

[data-theme="dark"] .modal__section-body a:hover {
  border-color: var(--clr-gold-light);
}

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

.modal__tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.modal__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.modal__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  border: none;
  text-decoration: none;
}

.modal__btn svg {
  width: 16px;
  height: 16px;
}

.modal__btn--primary {
  background: var(--clr-burgundy);
  color: white;
}

.modal__btn--primary:hover {
  background: var(--clr-burgundy-deep);
  transform: translateY(-1px);
}

[data-theme="dark"] .modal__btn--primary {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

.modal__btn--secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.modal__btn--secondary:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.modal__btn--bookmarked {
  background: var(--clr-gold);
  color: white;
}

/* ============================================
   WELCOME POPUP
   ============================================ */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn 0.3s ease;
}

.welcome-overlay--hidden { display: none; }

.welcome-popup {
  background: var(--bg-modal);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.4s var(--ease-out);
}

.welcome-popup__header {
  text-align: center;
  padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(201, 150, 59, 0.08), rgba(123, 30, 58, 0.06));
  border-bottom: 1px solid var(--border-color);
}

.welcome-popup__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.welcome-popup__icon svg { width: 28px; height: 28px; }

.welcome-popup__header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.welcome-popup__header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.welcome-popup__actions {
  padding: var(--space-md) var(--space-lg);
}

.action-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.action-item:hover {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.action-item__number {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clr-burgundy);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .action-item__number {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

.action-item[data-priority="1"] .action-item__number,
.action-item[data-priority="2"] .action-item__number {
  background: linear-gradient(135deg, var(--clr-gold), #E8C876);
  color: var(--clr-navy);
  box-shadow: 0 2px 8px rgba(201, 150, 59, 0.3);
}

.action-item__content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.action-item__content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.action-item__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  margin-left: auto;
}

.welcome-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.welcome-popup__remember {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.welcome-popup__remember input { cursor: pointer; }

.welcome-popup__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  background: var(--clr-burgundy);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.welcome-popup__btn:hover {
  background: var(--clr-burgundy-deep);
  transform: translateY(-1px);
}

[data-theme="dark"] .welcome-popup__btn {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

.welcome-popup__btn svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .welcome-popup__footer { flex-direction: column; gap: var(--space-md); }
  .welcome-popup__header { padding: var(--space-lg); }
  .welcome-popup__header h2 { font-size: 1.3rem; }
  .action-item__content h4 { font-size: 0.82rem; }
}

/* ============================================
   ACTION PLAN TAB
   ============================================ */
.actionplan {
  max-width: 900px;
  margin: 0 auto;
}

.actionplan__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.actionplan__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.actionplan__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.actionplan__timeline {
  position: relative;
  padding-left: 40px;
}

.actionplan__timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-gold), var(--clr-burgundy), var(--border-color));
}

.timeline-phase {
  position: relative;
  margin-bottom: var(--space-2xl);
}

.timeline-phase__marker {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-strong);
  z-index: 2;
}

.timeline-phase__marker--urgent {
  border-color: var(--clr-gold);
  background: var(--clr-gold);
  box-shadow: 0 0 12px rgba(201, 150, 59, 0.4);
}

.timeline-phase__marker--important {
  border-color: var(--clr-burgundy);
  background: var(--clr-burgundy);
}

.timeline-phase__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.timeline-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) ease;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

a.timeline-card { cursor: pointer; }

a.timeline-card:hover {
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-card--urgent {
  border-left: 3px solid var(--clr-gold);
}

.timeline-card--important {
  border-left: 3px solid var(--clr-burgundy);
}

.timeline-card__priority {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-card--urgent .timeline-card__priority {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-light));
  color: var(--clr-navy);
}

.timeline-card--important .timeline-card__priority {
  background: var(--clr-burgundy);
  color: white;
}

.timeline-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.timeline-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--clr-gold);
  letter-spacing: 0.02em;
}

.timeline-card > svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Pro Tips */
.actionplan__tips {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-color);
}

.actionplan__tips > h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.actionplan__tips > h3 svg {
  width: 24px;
  height: 24px;
  color: var(--clr-gold);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.tip-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) ease;
}

.tip-card:hover {
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-sm);
}

.tip-card svg {
  width: 22px;
  height: 22px;
  color: var(--clr-gold);
  margin-bottom: var(--space-md);
}

.tip-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.tip-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .actionplan__timeline { padding-left: 30px; }
  .actionplan__timeline::before { left: 10px; }
  .timeline-phase__marker { left: -28px; }
  .actionplan__title { font-size: 1.6rem; }
  .tips-grid { grid-template-columns: 1fr; }
}

/* ============================================
   BOOKMARKS
   ============================================ */
.bookmarks-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.bookmarks-header__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.bookmarks-header__subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bookmarks-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  min-height: 300px;
}

.bookmarks-column {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  min-height: 200px;
}

.bookmarks-column__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
}

.bookmarks-column__header svg {
  width: 18px;
  height: 18px;
  color: var(--clr-gold);
}

.bookmarks-column__header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bookmarks-column__count {
  margin-left: auto;
  background: var(--border-color);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.bookmarks-column__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bookmark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.bookmark-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.bookmark-card__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.bookmark-card__provider {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.bookmark-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-gold);
  margin-bottom: var(--space-sm);
}

.bookmark-card__actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.bookmark-card__status-btn {
  font-size: 0.65rem;
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--duration-fast) ease;
}

.bookmark-card__status-btn:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.bookmark-card__status-btn--remove {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.bookmark-card__status-btn--remove:hover {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
  color: #EF4444;
}

.bookmarks-empty {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
  display: none;
}

.bookmarks-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.bookmarks-empty h3 {
  font-family: var(--font-display);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--clr-navy);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--ease-out), toastOut 0.3s ease 2.7s forwards;
  max-width: 350px;
}

[data-theme="dark"] .toast {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

.toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.footer__note {
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    border-radius: 0;
    max-height: 100vh;
    padding: var(--space-xl);
  }

  .filters--open {
    display: block;
    animation: fadeIn 0.2s ease;
  }

  .filters-mobile-toggle {
    display: inline-flex;
  }

  .bookmarks-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
    padding: var(--space-2xl) var(--space-md);
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }

  .main {
    padding: var(--space-lg) var(--space-md);
  }

  .nav__inner {
    padding: 0 var(--space-md);
  }

  .nav__brand span {
    display: none;
  }

  .results__grid {
    grid-template-columns: 1fr;
  }

  .bookmarks-board {
    grid-template-columns: 1fr;
  }

  .modal {
    margin: var(--space-md);
    max-height: 90vh;
  }

  .modal__content {
    padding: var(--space-lg);
  }

  .modal__name {
    font-size: 1.4rem;
  }

  .modal__amount {
    font-size: 1.5rem;
  }

  .modal__actions {
    flex-direction: column;
  }

  .modal__btn {
    justify-content: center;
  }
}
