/* ==========================================================================
   HopeBridge TopDonor (topdonor.hopebridge.ltd) Stylesheet
   Architecture: 100% Mobile-First (Base: 360px+), scaling smoothly to Desktop
   Concept: Outbid-inspired Pay-to-Rank Leaderboard for Social Good
   Aesthetics: Cyber Non-Profit, Gold Crown Accents, Cyan Social Impact
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Core */
  --navy: #0A192F;
  --navy-dark: #050B14;
  --navy-card: #0D1E33;
  --navy-border: #1B3554;
  --navy-subtle: #13273F;

  --teal: #00D2B4;
  --teal-glow: rgba(0, 210, 180, 0.35);
  --teal-dark: #009681;
  --teal-subtle: rgba(0, 210, 180, 0.12);

  --amber: #FFB703;
  --amber-glow: rgba(255, 183, 3, 0.4);
  --amber-dark: #E09800;
  --amber-subtle: rgba(255, 183, 3, 0.15);

  --coral: #FF5E5B;
  --gold-gradient: linear-gradient(135deg, #FFE066 0%, #F59E0B 50%, #D97706 100%);
  --silver-gradient: linear-gradient(135deg, #F1F5F9 0%, #94A3B8 50%, #64748B 100%);
  --bronze-gradient: linear-gradient(135deg, #FDBA74 0%, #EA580C 50%, #C2410C 100%);

  /* Default Dark Mode Surfaces (Cyber Outbid Aesthetic) */
  --bg: #070E17;
  --surface: #0E1A29;
  --surface-raised: #142438;
  --surface-glass: rgba(14, 26, 41, 0.94);
  --surface-glass-border: rgba(255, 255, 255, 0.08);

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --line: #1E293B;
  --line-strong: #334155;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-amber: 0 0 30px rgba(255, 183, 3, 0.22);
  --shadow-glow-teal: 0 0 30px rgba(0, 210, 180, 0.22);

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

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', var(--font-main);
  --font-mono: 'JetBrains Mono', monospace;

  /* Animation */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.18s;
  --duration: 0.3s;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg: #F4F8FA;
  --surface: #FFFFFF;
  --surface-raised: #EDF3F7;
  --surface-glass: rgba(255, 255, 255, 0.94);
  --surface-glass-border: rgba(0, 0, 0, 0.08);

  --text: #0A192F;
  --text-muted: #475569;
  --text-dim: #64748B;
  --line: #CBD5E1;
  --line-strong: #94A3B8;
  --navy-border: #CBD5E1;

  --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 25, 47, 0.09);
  --shadow-lg: 0 16px 40px rgba(10, 25, 47, 0.12);
}

/* --------------------------------------------------------------------------
   2. Base Resets & Foundation
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); /* Safe padding for mobile bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

/* Fluid Responsive Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* --------------------------------------------------------------------------
   3. Top Announcement Ribbon
   -------------------------------------------------------------------------- */
.top-notice-bar {
  background: linear-gradient(90deg, #060D17 0%, #0F233D 50%, #060D17 100%);
  color: #EDF4F8;
  border-bottom: 1px solid rgba(255, 183, 3, 0.25);
  padding: 7px 0;
  font-size: 0.78rem;
  position: relative;
  z-index: 101;
}

.notice-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}

@media (min-width: 640px) {
  .notice-inner {
    font-size: 0.82rem;
  }
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--teal);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0, 210, 180, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 180, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 210, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 180, 0); }
}

.notice-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-foundation {
  display: none;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .notice-foundation {
    display: inline-block;
  }
}

.notice-link {
  color: var(--amber);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--duration-fast) var(--ease);
}

.notice-link:hover {
  color: #FED166;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   4. Mobile-First Sticky Header
   -------------------------------------------------------------------------- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.nav-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 8px;
}

@media (min-width: 768px) {
  .nav-grid {
    height: 70px;
    gap: 16px;
  }
}

/* Brand */
.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-subdomain {
  color: var(--amber);
  background: var(--amber-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  margin-left: 2px;
}

.brand-tag {
  display: none;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: -2px;
}

@media (min-width: 480px) {
  .brand-tag {
    display: block;
  }
}

/* Realtime Analytics Header Bar */
.header-realtime-analytics {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all var(--duration-fast) var(--ease);
}

.header-realtime-analytics:hover {
  border-color: rgba(0, 210, 180, 0.35);
  box-shadow: 0 4px 18px rgba(0, 210, 180, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.analytics-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  line-height: 1;
  user-select: none;
}

.live-pulse-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.live-dot-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.live-dot-ping {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
  animation: pingRadar 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingRadar {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.analytics-val {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.analytics-val.updated {
  transform: scale(1.15);
  color: var(--teal) !important;
}

.analytics-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  white-space: nowrap;
}

.analytics-pill-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
  opacity: 0.8;
}

.analytics-stat-icon {
  color: var(--teal);
  flex-shrink: 0;
}

.online-pill .analytics-val {
  color: #10B981;
}

.today-pill .analytics-val {
  color: var(--teal);
}

/* Responsive tweaks for Realtime Analytics Header */
@media (max-width: 768px) {
  .header-realtime-analytics {
    padding: 5px 10px;
    gap: 8px;
  }
  .header-realtime-analytics .today-pill .analytics-label {
    display: none;
  }
  .header-realtime-analytics .online-pill .analytics-label {
    font-size: 0.72rem;
  }
  .analytics-val {
    font-size: 0.82rem;
  }
}

@media (max-width: 440px) {
  .header-realtime-analytics .today-pill,
  .header-realtime-analytics .analytics-pill-divider {
    display: none;
  }
}

/* Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-controls {
    gap: 10px;
  }
}

.icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease);
}

.icon-btn:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outbid-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gold-gradient);
  color: #0A192F !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(255, 183, 3, 0.35);
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
  min-height: 38px;
}

.btn-outbid-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 183, 3, 0.45);
}

.nav-cta-btn {
  display: none;
}

@media (min-width: 480px) {
  .nav-cta-btn {
    display: inline-flex;
  }
}

.mobile-nav-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. Mobile Drawer Overlay Navigation
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 16, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 340px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 111;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.45);
  padding: 20px;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.drawer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text-muted);
}

.drawer-crown-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-raised);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.drawer-crown-icon {
  font-size: 1.6rem;
}

.drawer-crown-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.drawer-crown-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--amber);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.drawer-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--duration-fast) var(--ease);
  min-height: 48px;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--teal-subtle);
  color: var(--teal);
}

.drawer-outbid-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   6. Outbid.lol Style Clean Hero & Quick Action Bar
   -------------------------------------------------------------------------- */
.outbid-hero-section {
  padding: 24px 0 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .outbid-hero-section {
    padding: 36px 0 24px;
  }
}

.hero-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.scope-active {
  color: var(--amber);
}

.scope-dot {
  color: var(--text-dim);
}

.scope-muted {
  color: var(--text-muted);
}

.hero-claim-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.4vw, 2.3rem);
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero-claim-label {
  white-space: nowrap;
}

.hero-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.hero-amount-val {
  font-family: var(--font-mono);
  color: #FF6B4A;
  background: rgba(255, 107, 74, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 107, 74, 0.25);
  cursor: pointer;
  font-size: clamp(1.1rem, 4vw, 1.85rem);
  transition: all var(--duration-fast) var(--ease);
}

.hero-amount-val:hover {
  transform: scale(1.02);
  border-color: #FF6B4A;
}

.btn-price-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .btn-price-step {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

.btn-price-step:hover {
  color: var(--text);
  border-color: #FF6B4A;
  background: rgba(255, 107, 74, 0.12);
}

/* Quick Claim Inline Bar (Mobile-First 2-Row Optimized, Desktop Single Pill) */
.quick-claim-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto 16px;
  width: 100%;
}

.quick-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  color: var(--text-muted);
}

.quick-input-wrap input {
  width: 100%;
  font-size: 0.88rem;
  color: var(--text);
  border: none;
  background: transparent;
}

.quick-input-wrap input::placeholder {
  color: var(--text-dim);
}

.quick-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.quick-select {
  flex: 1;
  min-width: 0;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.btn-quick-claim {
  flex-shrink: 0;
  background: linear-gradient(135deg, #FF6B4A 0%, #FF553E 100%);
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(255, 107, 74, 0.4);
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.btn-quick-claim:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 107, 74, 0.55);
}

/* Desktop View: Single Seamless Pill */
@media (min-width: 680px) {
  .quick-claim-bar {
    flex-direction: row;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-full);
    padding: 5px 6px 5px 16px;
    box-shadow: var(--shadow-sm);
    gap: 4px;
  }

  .quick-input-wrap {
    background: transparent;
    border: none;
    padding: 0;
    flex: 1;
  }

  .quick-actions-row {
    width: auto;
    gap: 4px;
  }

  .quick-select {
    border: none;
    background: transparent;
    padding: 6px 10px;
    width: auto;
    flex: none;
  }

  .btn-quick-claim {
    padding: 10px 22px;
    font-size: 0.92rem;
  }
}

/* --------------------------------------------------------------------------
   7. #1 Reigning Champion Compact Billboard (Always on Top)
   -------------------------------------------------------------------------- */
.spotlight-section {
  margin-bottom: 22px;
}

.spotlight-crown-card {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.08) 0%, var(--surface) 60%, rgba(10, 25, 47, 0.6) 100%);
  border: 1.5px solid rgba(255, 183, 3, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  box-shadow: 0 4px 20px rgba(255, 183, 3, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .spotlight-crown-card {
    padding: 18px 22px;
  }
}

.spotlight-crown-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 183, 3, 0.2);
}

.ribbon-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crown-icon {
  font-size: 1.1rem;
}

.crown-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.crown-rule-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 183, 3, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.spotlight-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.spotlight-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.25) 0%, rgba(255, 183, 3, 0.08) 100%);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.3);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.spotlight-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spotlight-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spotlight-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.spotlight-brand-link {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.spotlight-brand-link:hover {
  color: var(--amber);
  text-decoration: underline;
}

.spotlight-brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-dot {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.85rem;
}

.spotlight-category-chip {
  font-size: 0.72rem;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.spotlight-amount {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
}

.spotlight-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-meta-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  margin-top: 2px;
}

.spotlight-impact {
  color: var(--teal);
  font-weight: 700;
}

.spotlight-visit-link {
  color: var(--text-muted);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.spotlight-visit-link:hover {
  color: var(--text);
}

.btn-spotlight-dethrone {
  margin-left: auto;
  background: var(--gold-gradient);
  color: #0A192F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(255, 183, 3, 0.35);
  transition: transform var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.btn-spotlight-dethrone:hover {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   8. Leaderboard Section & Outbid.lol Cards
   -------------------------------------------------------------------------- */
.leaderboard-section {
  margin-bottom: 32px;
}

.leaderboard-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .leaderboard-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  color: var(--text-muted);
  width: 100%;
}

.search-box:focus-within {
  border-color: var(--teal);
  color: var(--text);
}

.search-input {
  width: 100%;
  font-size: 0.88rem;
  color: var(--text);
  border: none;
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .search-box {
    max-width: 280px;
  }
}

.category-carousel {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.category-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease);
}

.category-pill:hover {
  border-color: #FF6B4A;
  color: var(--text);
}

.category-pill.active {
  background: #FF6B4A;
  color: #FFFFFF;
  border-color: #FF6B4A;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(255, 107, 74, 0.35);
}

/* Leaderboard List Container */
.leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

/* Clean Outbid.lol Donor Card Architecture */
.outbid-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

@media (min-width: 640px) {
  .outbid-card {
    padding: 14px 18px;
    gap: 14px;
  }
}

.outbid-card:hover {
  border-color: rgba(255, 107, 74, 0.4);
  transform: translateY(-1px);
}

.card-rank {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dim);
  min-width: 26px;
  padding-top: 3px;
  flex-shrink: 0;
}

.card-rank.rank-1 { color: #FF5E5B; }
.card-rank.rank-2 { color: #FFB703; }
.card-rank.rank-3 { color: #F59E0B; }

.card-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #0B192C;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  background: #0B192C;
  transition: transform var(--duration-fast) var(--ease);
}

.card-avatar:hover .avatar-img,
.spotlight-avatar:hover .avatar-img {
  transform: scale(1.06);
}

.avatar-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.spotlight-avatar .avatar-monogram {
  font-size: 1.5rem;
}

.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-brand-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  min-width: 0;
}

.card-brand-link:hover {
  color: #FF6B4A;
  text-decoration: underline;
}

.card-brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-amount {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FF6B4A;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  margin-top: 2px;
}

.card-category-pill {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-muted);
}

.card-domain-link {
  color: var(--text-muted);
  text-decoration: underline;
}

.card-domain-link:hover {
  color: var(--text);
}

.card-impact-text {
  color: var(--teal);
  font-weight: 600;
}

.btn-card-outbid {
  margin-left: auto;
  background: var(--gold-gradient);
  color: #0A192F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(255, 183, 3, 0.3);
  transition: transform var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.btn-card-outbid:hover {
  transform: translateY(-1px);
}

/* Minimal Rules Grid */
.how-it-works-minimal {
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
}

.minimal-rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .minimal-rules-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.min-rule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.min-rule-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--amber);
  min-width: 20px;
}

/* --------------------------------------------------------------------------
   10. Touch-Friendly Pagination Controls
   -------------------------------------------------------------------------- */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .pagination-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--text);
}

.page-btn.active {
  background: var(--teal);
  color: #071526;
  border-color: var(--teal);
  box-shadow: 0 2px 10px rgba(0, 210, 180, 0.35);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   11. Rules of the Board (How Outbidding Works)
   -------------------------------------------------------------------------- */
.how-it-works-section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .how-it-works-section {
    padding: 60px 0;
  }
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.micro-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.section-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rules-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.rule-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  transition: transform var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.rule-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.rule-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--line-strong);
  position: absolute;
  top: 16px;
  right: 18px;
  opacity: 0.45;
}

.rule-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.rule-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.rule-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. Guarantee & Trust Banner
   -------------------------------------------------------------------------- */
.guarantee-section {
  margin-bottom: 40px;
}

.guarantee-card {
  background: linear-gradient(135deg, rgba(0, 210, 180, 0.1) 0%, var(--surface) 60%, rgba(10, 25, 47, 0.8) 100%);
  border: 1px solid rgba(0, 210, 180, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .guarantee-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
  }
}

.guarantee-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.guarantee-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-subtle);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-left h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.guarantee-left p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-guarantee-learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
}

.btn-guarantee-learn:hover {
  background: var(--teal);
  color: #071526;
  border-color: var(--teal);
}

/* --------------------------------------------------------------------------
   13. Mobile Bottom Sticky Outbid Action Bar
   -------------------------------------------------------------------------- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-bar-crown {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--gold-gradient);
  color: #0A192F;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sticky-bar-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--amber);
}

.sticky-outbid-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 40px;
}

/* --------------------------------------------------------------------------
   14. Native Bottom Sheet Outbid Dialog (Mobile & Desktop)
   -------------------------------------------------------------------------- */
dialog.outbid-dialog {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  width: 100vw;
  max-width: 560px;
  border-radius: 24px 24px 0 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (min-width: 640px) {
  dialog.outbid-dialog {
    position: static;
    border-radius: var(--radius-lg);
    width: calc(100vw - 32px);
  }
}

dialog.outbid-dialog::backdrop {
  background: rgba(4, 9, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-inner {
  background: var(--surface);
  border: 1px solid var(--navy-border);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .modal-inner {
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-height: 90vh;
  }
}

.modal-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--line-strong);
  margin: 0 auto 14px;
}

@media (min-width: 640px) {
  .modal-sheet-handle {
    display: none;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: var(--coral);
}

/* Math Comparison Banner */
.outbid-math-banner {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.12) 0%, var(--surface-raised) 100%);
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.math-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.math-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.math-val.crown-num {
  color: var(--amber);
}

.math-operator {
  font-size: 1.2rem;
  color: var(--amber);
}

/* Outbid Form */
.outbid-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row-duo {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.form-label .req {
  color: var(--amber);
}

.form-input, .form-select {
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 16px !important; /* Critical: Prevents iOS auto-zoom */
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 180, 0.25) !important;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Modal Live Logo Preview */
.logo-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.logo-preview-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #0B192C;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.logo-preview-box .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-preview-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-preview-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.logo-preview-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.amount-input {
  font-family: var(--font-mono) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--amber) !important;
}

.predicted-rank-badge {
  min-height: 24px;
  margin-top: 6px;
}

.amount-chip-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 6px;
}

@media (min-width: 480px) {
  .amount-chip-group {
    grid-template-columns: repeat(4, 1fr);
  }
}

.amount-chip-btn {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--duration-fast) var(--ease);
}

.amount-chip-btn:hover, .amount-chip-btn.active {
  background: var(--amber-subtle);
  border-color: var(--amber);
  color: var(--amber);
}

.modal-trust-box {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-trust-box svg {
  flex-shrink: 0;
}

.modal-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   15. Real-Time Floating Donation Toasts
   -------------------------------------------------------------------------- */
.live-toast-container {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  right: 14px;
  z-index: 105;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (min-width: 640px) {
  .live-toast-container {
    bottom: 24px;
    left: auto;
    right: 24px;
    width: 360px;
  }
}

.live-toast {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  animation: toastSlideUp 0.35s var(--ease);
}

.live-toast.toast-crown {
  border-color: var(--amber);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 183, 3, 0.1) 100%);
}

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

.live-toast.toast-exit {
  animation: toastFadeOut 0.3s forwards;
}

@keyframes toastFadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}

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

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-tag-line {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.04em;
}

.toast-headline {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.toast-close-btn {
  color: var(--text-dim);
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
}

.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--amber);
  animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* --------------------------------------------------------------------------
   16. Confetti Canvas
   -------------------------------------------------------------------------- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.top-footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--line);
  padding: 36px 0 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.82rem;
  max-width: 480px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}
