/* ==============================================================================
   AITRAFFICGRAVITY.COM — LUXURY MINIMALIST DESIGN SYSTEM (PHASE 5 ELEVATED)
   Inspired by outbid.lol, elevated with warm tones, sleek typography & tactile feedback
   ============================================================================== */

/* Fonts are preloaded asynchronously in HTML <head> for zero-FCP render blocking */

:root {
  /* Warm Paper & Terracotta Light Theme (outbid.lol signature aesthetic) */
  --bg-primary: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F3EFE9;
  --bg-surface-elevated: #FFFFFF;
  
  --text-primary: #1A1816;
  --text-secondary: #746E65;
  --text-muted: #A39D94;
  
  --brand-primary: #E26D5C;       /* Terracotta warm flame */
  --brand-primary-hover: #D15A48;
  --brand-primary-light: #FCECE9;
  --brand-accent: #38B000;        /* Live green dot */
  --brand-gold: #FFB703;
  
  --border-subtle: #EAE4DC;
  --border-strong: #D5CDC2;
  
  --shadow-sm: 0 1px 2px rgba(26, 24, 22, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 24, 22, 0.06);
  --shadow-lg: 0 12px 32px rgba(26, 24, 22, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  /* Obsidian & Flame Luxury Dark Theme */
  --bg-primary: #0F0E11;
  --bg-surface: #18171C;
  --bg-surface-subtle: #211F26;
  --bg-surface-elevated: #28262E;
  
  --text-primary: #F5F3EF;
  --text-secondary: #A7A39C;
  --text-muted: #6B6760;
  
  --brand-primary: #FF6B57;
  --brand-primary-hover: #FF8270;
  --brand-primary-light: rgba(255, 107, 87, 0.15);
  --brand-accent: #00E599;
  --brand-gold: #FFD166;
  
  --border-subtle: #2B2933;
  --border-strong: #3D3A47;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

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

/* Live Outbid Ticker Tape */
.ticker-tape-container {
  width: 100%;
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 50;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: tickerSlide 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-fire {
  color: #FF5533;
}

.ticker-amount {
  font-weight: 700;
  color: var(--brand-primary);
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Top Navigation Bar Wrapper (Sticky & Frosted Glass) */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(250, 247, 242, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .navbar-wrapper {
  background: rgba(15, 14, 17, 0.88);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 18px;
  border-right: 1px solid var(--border-subtle);
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.88;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
}

.brand-tld {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-left: 1px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.brand-icon img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-icon img {
  transform: scale(1.08) rotate(4deg);
}

.brand-icon span {
  display: block;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

.brand-icon span:first-child {
  width: 13px;
  background-color: var(--brand-primary);
}

.brand-icon span:last-child {
  width: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-links .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
  line-height: 1;
  transition: all 0.16s ease;
}

.nav-links .nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-surface-subtle);
}

.nav-icon {
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
  margin: 0 4px;
  flex-shrink: 0;
}

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

/* Mobile Bar Controls (hidden on desktop) */
.nav-mobile-bar {
  display: none;
  align-items: center;
  gap: 8px;
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  color: var(--text-primary);
}

.mobile-menu-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--brand-primary);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Navigation Dropdown Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  z-index: 999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 28px 16px;
  animation: slideDownMobile 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  display: block;
}

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

.mobile-nav-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.mobile-nav-link:active {
  background: var(--bg-surface-hover);
  border-color: var(--brand-primary);
  transform: scale(0.99);
}

.mobile-nav-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
}

.mobile-nav-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mobile-nav-text small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.mobile-nav-arrow {
  color: var(--text-muted);
  font-size: 1rem;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-nav-sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.mobile-nav-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mobile-nav-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-subtle);
  transform: scale(1.08);
}

/* Container */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Live Traffic Stats Banner */
.stats-banner {
  margin: 12px 0 20px 0;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease;
}

.stats-banner:hover {
  transform: translateY(-1px);
}

.stats-banner-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(56, 176, 0, 0.6);
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 176, 0, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(56, 176, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 176, 0, 0); }
}

.stats-banner-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stats-banner-sub a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text-secondary);
}

.stats-banner-sub a:hover {
  color: var(--text-primary);
}

/* Timeframe Segmented Control (All-Time vs Today) */
.segmented-control {
  display: flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 24px;
}

.segment-btn {
  background: transparent;
  border: none;
  padding: 6px 18px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.segment-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero-headline {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.claim-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.stepper-btn:hover {
  transform: scale(1.12);
  background: var(--brand-primary);
  color: #FFF;
}

.stepper-btn:active {
  transform: scale(0.95);
}

.claim-amount-input {
  width: 140px;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  text-align: center;
  outline: none;
  border-bottom: 2px dashed transparent;
  transition: border-color 0.2s ease;
}

.claim-amount-input:focus {
  border-bottom-color: var(--brand-primary);
}

/* PHASE 5: QUICK-ACTION BID BOOSTER CHIPS */
.bid-booster-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.booster-chip {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.booster-chip:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.booster-chip.chip-sovereign {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.15), rgba(255, 85, 51, 0.15));
  border-color: var(--brand-gold);
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 24px auto;
  line-height: 1.45;
}

.hero-subtitle span {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Bidding Form Card */
.bidding-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* PHASE 5: LIVE FAVICON INSPECTOR PREVIEW BADGE */
.favicon-preview-badge {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
}

.favicon-preview-badge img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.form-input, .form-select {
  width: 100%;
  padding: 16px 18px 16px 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-light);
}

.form-select {
  appearance: none;
  padding-left: 20px;
  padding-right: 48px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Dynamic Rank Predictor Box */
.rank-prediction-box {
  background: var(--brand-primary-light);
  border: 1px dashed var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.3s ease;
}

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

/* Primary Outbid Button */
.btn-outbid {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--radius-full);
  border: none;
  background-color: var(--brand-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(226, 109, 92, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-outbid:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(226, 109, 92, 0.45);
}

.btn-outbid:active {
  transform: translateY(0);
}

/* Top-Up Quick Action Helper Link */
.topup-helper-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
  cursor: pointer;
}

.topup-helper-link span {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Category Filter Pills Bar */
.category-filter-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 18px 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-count-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}

[data-theme="dark"] .category-count-badge {
  background: rgba(255, 255, 255, 0.12);
}

.category-pill:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(226, 109, 92, 0.3);
}

.category-pill.active .category-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Leaderboard Table Container */
.leaderboard-container {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease, transform 0.15s ease;
  position: relative;
  cursor: pointer;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-row:hover {
  background-color: var(--bg-surface-subtle);
}

.rank-product-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.rank-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.leaderboard-row:hover .rank-badge {
  transform: scale(1.08);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1A1816;
  box-shadow: 0 2px 10px rgba(255, 165, 0, 0.45);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #F0F0F0, #C5C5C5);
  color: #1A1816;
  box-shadow: 0 2px 8px rgba(197, 197, 197, 0.4);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #E6A15C, #C77732);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(199, 119, 50, 0.4);
}

.product-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.product-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.verified-icon {
  color: #0077FF;
  display: inline-flex;
  font-size: 0.95rem;
}

.product-tagline {
  font-size: 0.84rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* Gravity Pull Progress Meter */
.gravity-meter-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  width: 140px;
}

.gravity-meter-bar {
  flex: 1;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.gravity-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.gravity-meter-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
}

.rank-stats-price {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  text-align: right;
}

.stat-clicks {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-clicks strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bid-price-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

/* PHASE 5: GRAVITY SPOTLIGHT MODAL & SHARE ON X */
.spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spotlight-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-avatar img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.spotlight-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-surface-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
}

.spotlight-meta-item {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spotlight-meta-item strong {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.btn-share-x {
  background: #000000;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-share-x:hover {
  background: #242424;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-share-x {
  background: #FFFFFF;
  color: #000000;
}

[data-theme="dark"] .btn-share-x:hover {
  background: #E0E0E0;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 14, 17, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal-dialog {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-surface-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body p {
  margin-bottom: 14px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.modal-body li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  width: 100%;
  max-width: 820px;
  margin: auto auto 20px auto;
  padding: 30px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

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

/* Canvas Confetti */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero-headline {
    font-size: 2.2rem;
  }
  .claim-amount-input {
    font-size: 2.2rem;
    width: 110px;
  }
  .product-tagline {
    max-width: 160px;
  }
  .gravity-meter-container {
    display: none;
  }
  .rank-stats-price {
    gap: 10px;
  }
  .stat-clicks {
    display: none;
  }
}

/* ==========================================================================
   PHASE 6: DYNAMIC BID CALCULATOR & RANK PROJECTION ENGINE STYLING
   ========================================================================== */

.nav-calc-link {
  color: var(--brand-primary) !important;
  font-weight: 600;
  border: 1px solid rgba(226, 109, 92, 0.22);
  background: rgba(226, 109, 92, 0.05);
}

.nav-calc-link:hover {
  background: var(--brand-primary) !important;
  color: #FFF !important;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(226, 109, 92, 0.25);
}

/* Hero Calculator Quick Trigger Banner */
.calc-trigger-wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 16px auto;
}

.btn-calc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-focus);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-calc-trigger:hover {
  border-style: solid;
  border-color: var(--brand-primary);
  background: var(--bg-surface-subtle);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(226, 109, 92, 0.12);
  color: var(--text-primary);
}

.calc-trigger-icon {
  font-size: 1.2rem;
}

.calc-trigger-text {
  flex: 1;
  text-align: left;
}

.calc-trigger-badge {
  background: var(--brand-primary);
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Calculator Dialog & Body */
.calc-dialog {
  max-width: 680px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header-with-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-icon-badge {
  font-size: 1.8rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.calc-controls-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .calc-controls-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.calc-field-group {
  display: flex;
  flex-direction: column;
}

.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.calc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-slider-value-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-primary);
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.calc-currency-symbol {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.calc-number-input {
  width: 100%;
  padding: 10px 14px 10px 30px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  transition: border-color var(--transition-normal);
}

.calc-number-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--bg-surface);
}

/* Range Slider */
.calc-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border-subtle);
  outline: none;
  cursor: pointer;
  margin: 6px 0;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(226, 109, 92, 0.4);
  transition: transform 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.calc-select-input,
.calc-text-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition-normal);
}

.calc-select-input:focus,
.calc-text-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--bg-surface);
}

/* Presets */
.calc-presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.calc-presets-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-preset-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-preset-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.calc-chip-max {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(226, 109, 92, 0.15));
  border-color: rgba(255, 180, 0, 0.5);
  color: var(--text-primary);
  font-weight: 700;
}

.calc-chip-max:hover {
  background: var(--gold-gradient);
  color: #1A1816;
}

/* Top-Up Alert Banner */
.calc-topup-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 180, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--text-primary);
  animation: pulse-border 2s infinite;
}

.topup-pulse-icon {
  font-size: 1.2rem;
}

/* KPI Dashboard Grid */
.calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

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

.calc-kpi-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.calc-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.kpi-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-main-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-card-rank .kpi-main-val {
  color: var(--brand-primary);
}

.kpi-card-savings .kpi-main-val {
  color: var(--emerald-pulse);
}

.kpi-sub-val {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Rivalry Indicator Strip */
.calc-rivalry-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

@media (max-width: 540px) {
  .calc-rivalry-strip {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

.rivalry-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rivalry-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.badge-green {
  background: rgba(56, 176, 0, 0.12);
  color: #2D9900;
  border: 1px solid rgba(56, 176, 0, 0.3);
}

.badge-orange {
  background: rgba(226, 109, 92, 0.12);
  color: var(--brand-primary);
  border: 1px solid rgba(226, 109, 92, 0.3);
}

.rivalry-swords {
  font-size: 1rem;
}

/* Apply CTA Button */
.calc-footer-actions {
  width: 100%;
}

.btn-calc-apply {
  width: 100%;
  background: var(--brand-primary);
  color: #FFF;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 14px rgba(226, 109, 92, 0.35);
}

.btn-calc-apply:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(226, 109, 92, 0.45);
}

/* ==========================================================================
   PHASE 7: DODO PAYMENTS LIVE CHECKOUT & SUCCESS CELEBRATION STYLING
   ========================================================================== */

/* Post-Payment Success Banner */
.payment-success-banner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px auto;
  background: linear-gradient(135deg, rgba(56, 176, 0, 0.15), rgba(0, 229, 153, 0.1));
  border: 1px solid rgba(56, 176, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(56, 176, 0, 0.2);
  animation: slide-down 0.4s ease;
}

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

.success-trophy {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.success-message {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.success-dismiss {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.success-dismiss:hover {
  color: var(--text-primary);
}

/* Checkout Confirmation Dialog */
.checkout-confirm-dialog {
  max-width: 540px;
  width: 95%;
}

.checkout-secure-icon {
  font-size: 1.8rem;
  background: rgba(226, 109, 92, 0.1);
  border: 1px solid rgba(226, 109, 92, 0.25);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.checkout-review-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  gap: 12px;
}

.review-label {
  color: var(--text-muted);
  font-weight: 500;
}

.review-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.review-url {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand-primary);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-rank {
  background: var(--brand-primary);
  color: #FFF;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.review-item.total-row {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 10px;
  margin-top: 4px;
}

.total-price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Payment Rails & Trust Badges */
.payment-rails-badge-container {
  margin-bottom: 16px;
}

.rails-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.rails-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rail-tag {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Agreement Checkbox */
.checkout-agreement-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 20px;
  cursor: pointer;
}

.checkout-agreement-checkbox input {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

.checkout-agreement-checkbox a {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* Proceed Button & Spinner */
.checkout-actions {
  width: 100%;
  margin-bottom: 14px;
}

.btn-proceed-dodo {
  width: 100%;
  background: var(--brand-primary);
  color: #FFF;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 14px rgba(226, 109, 92, 0.35);
}

.btn-proceed-dodo:hover:not(:disabled) {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(226, 109, 92, 0.45);
}

.btn-proceed-dodo:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.checkout-footer-guarantee {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==============================================================================
   PHASE 9: REAL-TIME SSE STREAM, PRESENCE & DYNAMIC RANK SHUFFLE STYLES
   ============================================================================== */

/* SSE Connection Status Pill */
.sse-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
}

.sse-status-badge.live {
  border-color: rgba(46, 204, 113, 0.4);
  background: rgba(46, 204, 113, 0.08);
  color: #2ECC71;
}

.sse-status-badge.reconnecting {
  border-color: rgba(255, 180, 0, 0.4);
  background: rgba(255, 180, 0, 0.08);
  color: #FFB400;
}

.sse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
  animation: ssePulse 1.8s infinite ease-in-out;
}

@keyframes ssePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

/* Rank Shift Badges (Animated Transitions) */
.rank-shift-up {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2ECC71;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  animation: popIn 0.3s ease;
}

.rank-shift-down {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #E26D5C;
  background: rgba(226, 109, 92, 0.12);
  border: 1px solid rgba(226, 109, 92, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  animation: popIn 0.3s ease;
}

.rank-shift-new {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #FFB400;
  background: rgba(255, 180, 0, 0.15);
  border: 1px solid rgba(255, 180, 0, 0.4);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  letter-spacing: 0.03em;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Smooth Leaderboard Row Transitions */
.leaderboard-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease;
}

.leaderboard-item.row-just-climbed {
  background: rgba(46, 204, 113, 0.08) !important;
  border-color: rgba(46, 204, 113, 0.4) !important;
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.2);
}

.leaderboard-item.row-just-outbid {
  background: rgba(226, 109, 92, 0.08) !important;
  border-color: rgba(226, 109, 92, 0.4) !important;
  box-shadow: 0 0 16px rgba(226, 109, 92, 0.2);
}

/* Activity Drawer Modal */
.activity-drawer-card {
  max-width: 540px;
  width: 95%;
}

.activity-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2ECC71;
  width: fit-content;
}

.activity-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  margin: 16px 0;
  padding-right: 4px;
}

.activity-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.activity-feed-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  background: var(--bg-surface-hover);
}

.activity-item-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.activity-item-details {
  flex: 1;
  min-width: 0;
}

.activity-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.activity-item-meta {
  text-align: right;
  flex-shrink: 0;
}

.activity-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.activity-item-amount {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.activity-drawer-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* ==============================================================================
   PHASE 10: 1-CLICK MAGIC RECLAIM BATTLE STYLES
   ============================================================================== */
.reclaim-battle-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(226, 109, 92, 0.15), rgba(255, 180, 0, 0.12));
  border: 1.5px solid rgba(226, 109, 92, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(226, 109, 92, 0.2);
  animation: slideInDown 0.4s ease;
}

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

.reclaim-battle-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.reclaim-battle-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reclaim-battle-info strong {
  font-size: 0.95rem;
  color: #FFF;
  letter-spacing: -0.01em;
}

.reclaim-battle-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reclaim-battle-delta {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2ECC71;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* ==============================================================================
   RESPONSIVE DESIGN ENGINE (DESKTOP, LAPTOP, TABLET & PHONE OPTIMIZATION)
   ============================================================================== */

/* Base Global Mobile Fixes */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

/* Explicit Desktop & Laptop Viewports (>= 1081px) */
@media (min-width: 1081px) {
  .mobile-nav-drawer {
    display: none !important;
  }
  .nav-mobile-bar {
    display: none !important;
  }
  .nav-desktop {
    display: flex !important;
  }
}

/* Laptops & Compact Desktops (1081px to 1240px) */
@media (min-width: 1081px) and (max-width: 1240px) {
  .navbar {
    max-width: 100%;
    padding: 8px 14px;
    gap: 8px;
  }
  .brand-logo {
    font-size: 1.15rem;
    padding-right: 12px;
    margin-right: 4px;
  }
  .nav-links {
    gap: 3px;
  }
  .nav-links .nav-item {
    padding: 5px 7px;
    font-size: 0.80rem;
    gap: 4px;
  }
  .nav-icon {
    font-size: 0.78rem;
  }
  .sse-status-badge {
    padding: 3px 7px;
    font-size: 0.68rem;
  }
}

/* Tablets, Small Laptops & Mobile (<= 1080px) */
@media (max-width: 1080px) {
  .navbar {
    width: 100%;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Switch desktop text links to mobile hamburger */
  .nav-desktop {
    display: none !important;
  }

  .nav-mobile-bar {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .brand-logo {
    font-size: 1.25rem;
    gap: 8px;
    border-right: none;
    padding-right: 0;
  }

  .container {
    padding: 8px 14px 60px 14px;
    width: 100%;
  }

  /* Live Activity Ticker on Mobile */
  .live-ticker-wrap {
    font-size: 0.78rem;
    padding: 6px 0;
  }

  /* Stats Pill */
  .stats-banner {
    width: 100%;
    font-size: 0.82rem;
    padding: 6px 12px;
    white-space: normal;
    text-align: center;
  }

  /* Hero Section */
  .hero-headline {
    font-size: clamp(2rem, 7.5vw, 3rem);
    gap: 4px;
  }

  .claim-amount-input {
    font-size: clamp(2rem, 7.5vw, 3rem);
    width: 130px;
  }

  .stepper-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .quick-add-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
  }

  .quick-add-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* Teaser Banner */
  .calculator-teaser-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
    padding: 12px 14px;
  }

  .teaser-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
  }

  /* Form Inputs (16px to prevent iOS Safari auto-zoom) */
  .form-input, .form-select {
    font-size: 16px !important;
    padding: 13px 14px 13px 44px;
  }

  .outbid-btn {
    font-size: 1.12rem;
    padding: 15px 20px;
    min-height: 52px;
  }

  /* Category Filter Pills (Smooth Touch Horizontal Carousel) */
  .category-pills {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px 2px;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
  }

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

  .category-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 13px;
    font-size: 0.86rem;
  }

  /* Leaderboard List Container */
  .leaderboard-container {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .leaderboard-row {
    padding: 14px 12px;
    gap: 10px;
  }

  .rank-product-info {
    gap: 10px;
  }

  .rank-badge {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .product-avatar {
    width: 36px;
    height: 36px;
  }

  .product-name {
    font-size: 0.96rem;
    max-width: 170px;
  }

  .product-tagline {
    font-size: 0.78rem;
    max-width: 160px;
  }

  .gravity-meter-container {
    display: none;
  }

  .stat-clicks {
    display: none;
  }

  .bid-price-tag {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 12px;
  }

  .modal-dialog {
    padding: 22px 16px;
    border-radius: var(--radius-md);
    max-height: 90vh;
    width: 100%;
  }

  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  /* Footer */
  .footer {
    padding: 24px 14px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 0.84rem;
  }
}

/* Extra Small Phones (<= 390px, e.g. iPhone 12/13/14 mini, SE) */
@media (max-width: 390px) {
  .navbar {
    padding: 10px 12px;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .container {
    padding: 6px 10px 50px 10px;
  }

  .product-name {
    max-width: 130px;
  }

  .product-tagline {
    max-width: 120px;
  }

  .leaderboard-row {
    padding: 12px 8px;
    gap: 8px;
  }

  .bid-price-tag {
    font-size: 0.98rem;
  }

  .claim-amount-input {
    width: 110px;
    font-size: 2rem;
  }

  .hero-headline {
    font-size: 2rem;
  }
}

/* =============================================================================
   PHASE 16: CATEGORY MICRO-CROWN, TRAFFIC PROOF & FOUNDER LOOKUP STYLES
   ============================================================================= */

/* Category Micro-Crown Dynamic Notice */
.category-crown-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(255, 85, 51, 0.08));
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-top: 4px;
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-crown-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.category-crown-badge {
  background: linear-gradient(135deg, #FFB800, #FF5533);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-category-crown {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 85, 51, 0.3);
}

.btn-category-crown:hover {
  background: #ff6b4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 85, 51, 0.45);
}

/* Safety & Ad Compliance Trust Badge */
.safety-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(0, 229, 153, 0.05);
  border: 1px solid rgba(0, 229, 153, 0.18);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin: 16px 0;
  text-align: center;
  line-height: 1.4;
}

.safety-shield-icon {
  font-size: 1.1rem;
}

.safety-trust-badge strong {
  color: var(--success);
}

/* Transparency Modal & Metrics Grid */
.transparency-dialog {
  max-width: 680px;
}

.transparency-header {
  margin-bottom: 24px;
}

.trust-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 229, 153, 0.15);
  color: var(--success);
  border: 1px solid rgba(0, 229, 153, 0.3);
  margin-bottom: 10px;
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.metric-value {
  font-size: 1.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-value.highlight-green {
  color: var(--success);
}

.metric-value.highlight-gold {
  color: #FFB800;
}

.metric-delta {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Acquisition Referrer Channels Breakdown */
.referrers-breakdown {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.referrers-breakdown h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.referrer-channel-bar {
  margin-bottom: 10px;
}

.referrer-channel-bar:last-child {
  margin-bottom: 0;
}

.channel-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.channel-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.channel-fill {
  height: 100%;
  background: linear-gradient(90deg, #00E599, #00B87A);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.transparency-guarantee {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0, 229, 153, 0.05);
  border: 1px solid rgba(0, 229, 153, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.transparency-guarantee strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.guarantee-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* Founder Self-Serve Portal Modal */
.manage-dialog {
  max-width: 560px;
}

.manage-header {
  margin-bottom: 20px;
}

.manage-search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.manage-search-box input {
  flex: 1;
}

.btn-lookup {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-lookup:hover {
  background: #ff6b4a;
}

.btn-lookup:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Founder Result Card */
.founder-result-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  animation: fadeInDown 0.25s ease-out;
}

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

.founder-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.founder-rank-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.founder-rank-badge.gold {
  background: #FFB800;
  color: #000;
}

.founder-category-tag {
  font-size: 0.75rem;
  color: var(--brand-accent);
  background: rgba(255, 85, 51, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.founder-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.founder-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.founder-stat small {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.founder-stat strong {
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.status-verified {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
}

.founder-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-topup-crown {
  width: 100%;
  background: linear-gradient(135deg, #FFB800, #FF8C00);
  color: #000;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 184, 0, 0.35);
}

.btn-topup-crown:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-topup-sovereign {
  width: 100%;
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 85, 51, 0.35);
}

.btn-topup-sovereign:hover {
  background: #ff6b4a;
  transform: translateY(-1px);
}

.founder-crown-held,
.founder-sovereign-held {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFB800;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.founder-not-found {
  background: rgba(255, 85, 51, 0.08);
  border: 1px dashed rgba(255, 85, 51, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.btn-claim-new {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Price Flash Animation on Micro-Crown Auto-Fill */
@keyframes priceFlash {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 184, 0, 0)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.8)); color: #FFB800; }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 184, 0, 0)); }
}

.price-flash {
  animation: priceFlash 0.5s ease-out;
}

/* Mobile Responsive Adjustments for Phase 16 */
@media (max-width: 600px) {
  .category-crown-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .category-crown-left {
    font-size: 0.84rem;
  }
  .btn-category-crown {
    width: 100%;
    text-align: center;
    padding: 8px;
  }
  .transparency-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .founder-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .manage-search-box {
    flex-direction: column;
  }
  .btn-lookup {
    width: 100%;
    padding: 10px;
  }
}

/* =============================================================================
   PHASE 17: DIRECT VISIT LINK & ATTRIBUTION STYLES
   ============================================================================= */

.product-name-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.product-name-link:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

.row-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 85, 51, 0.1);
  color: var(--brand-accent);
  border: 1px solid rgba(255, 85, 51, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.row-visit-btn:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 85, 51, 0.4);
}

/* Notification Email Group in Checkout Modal */
.checkout-email-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
}

.checkout-email-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
}

.checkout-email-label small {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.checkout-email-input {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  width: 100%;
}

.checkout-email-input:focus {
  border-color: var(--brand-accent);
  outline: none;
}

@media (max-width: 500px) {
  .row-visit-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
  }
}

/* ==============================================================================
   SEO AUDIT & CONTENT EXPANSION STYLES
   Semantic H1, Skip Link, How It Works, FAQ Accordion, Trust Architecture & Footer
   ============================================================================== */

/* Accessibility Skip Navigation */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  z-index: 999999;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-to-content:focus {
  top: 16px;
  outline: 2px solid var(--text-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 10px 18px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Semantic SEO H1 */
.hero-main-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Button Reset for converted Modal Anchors */
button.nav-item,
button.nav-drawer-link,
button.footer-btn,
button.inline-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

button.inline-link-btn {
  font-size: inherit;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline;
}

button.inline-link-btn:hover {
  color: var(--text-primary);
}

/* Section Shared Architecture */
.how-it-works-section,
.trust-architecture-section {
  width: 100%;
  max-width: 1200px;
  margin: 56px auto 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border-subtle);
}

.faq-section {
  width: 100%;
  max-width: 1100px;
  margin: 56px auto 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border-subtle);
}

.section-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px auto;
  line-height: 1.55;
}

/* How It Works 4-Step Grid */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  text-align: left;
}

.how-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.how-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.how-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.how-step-num,
.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.how-step-icon,
.step-icon {
  font-size: 1.25rem;
  width: 38px;
  height: 38px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.how-step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.how-step-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

/* Frequently Asked Questions Accordion */
.faq-accordion {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  list-style: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--brand-primary);
  background: var(--bg-surface-subtle);
}

.faq-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid rgba(226, 109, 92, 0.2);
}

[data-theme="dark"] .faq-pill {
  background: rgba(255, 107, 87, 0.15);
  border-color: rgba(255, 107, 87, 0.3);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 14px;
}

.faq-answer strong {
  color: var(--text-primary);
}

/* E-E-A-T Trust Architecture Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  text-align: left;
}

.trust-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  width: fit-content;
}

.trust-pill.verified {
  background: rgba(56, 176, 0, 0.12);
  color: #38b000;
  border: 1px solid rgba(56, 176, 0, 0.24);
}

[data-theme="dark"] .trust-pill.verified {
  background: rgba(0, 229, 153, 0.14);
  color: #00e599;
  border: 1px solid rgba(0, 229, 153, 0.28);
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.trust-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Comprehensive SEO Footer */
.footer {
  width: 100%;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  margin-top: 64px;
  padding: 56px 24px 32px 24px;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col.brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.founder-badge-wrapper {
  margin: 4px 0 6px 0;
}

.founder-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.16s ease;
  width: fit-content;
}

.founder-badge-link:hover {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.founder-badge-link svg {
  color: var(--text-primary);
  flex-shrink: 0;
}

.founder-badge-link strong {
  color: var(--brand-primary);
  font-weight: 700;
}

.founder-badge-link .badge-arrow {
  color: var(--brand-primary);
  font-weight: 700;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.16s ease;
}

.social-icon-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links .footer-btn {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
  display: inline-block;
}

.footer-links a:hover,
.footer-links .footer-btn:hover {
  color: var(--brand-primary);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Responsive Breakpoints for SEO Components */
@media (max-width: 900px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .hero-main-title {
    font-size: 0.92rem;
  }

  .faq-question {
    font-size: 0.92rem;
    padding: 16px 16px;
  }

  .faq-answer {
    font-size: 0.85rem;
    padding: 0 16px 16px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .footer {
    padding: 40px 16px 28px 16px;
  }
}

/* ==============================================================================
   SEO & AUDIT CLEANUP UTILITIES (ELIMINATING INLINE STYLES FOR PERFECT AUDIT)
   ============================================================================== */
.d-none { display: none !important; }
#rankPredictionBox,
#categoryCrownNotice,
#topupResultBox,
#calcTopUpAlert,
#btnDodoSpinner,
#founderResultCard,
#founderNotFound {
  display: none;
}
.text-brand { color: var(--brand-primary) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center !important; }
.text-flame { color: #FF5533 !important; }
.no-underline { text-decoration: none !important; }
.underline-offset-4 { text-decoration: underline; text-underline-offset: 4px; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fs-xs { font-size: 0.8rem !important; }
.fs-sm { font-size: 0.85rem !important; }
.fs-base { font-size: 0.95rem !important; }
.fs-md { font-size: 1.05rem !important; }
.lh-15 { line-height: 1.5 !important; }

.mt-4 { margin-top: 4px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-2 { margin-bottom: 2px !important; }
.mb-6 { margin-bottom: 6px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-14 { margin-bottom: 14px !important; }
.pt-12 { padding-top: 12px !important; }
.p-12 { padding: 12px !important; }
.p-14 { padding: 14px !important; }
.border-t-subtle { border-top: 1px solid var(--border-subtle) !important; }

.sr-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gravity-bar-100 { width: 100% !important; }
.gravity-bar-8 { width: 8% !important; }
.gravity-bar-6 { width: 6% !important; }

.channel-share-44 { width: 44.2% !important; }
.channel-share-28 { width: 28.6% !important; }
.channel-share-14 { width: 14.1% !important; }
.channel-share-8 { width: 8.4% !important; }
.channel-share-4 { width: 4.7% !important; }

.footer-support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.subtle-code-box {
  background: var(--bg-surface-subtle);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  overflow-x: auto;
  margin-bottom: 14px;
}

.crown-notice-box {
  background: var(--brand-primary-light);
  padding: 14px;
  border-radius: var(--radius-md);
  color: var(--brand-primary);
  font-size: 0.95rem;
}

/* SEO 28-Category Directory Silo */
.footer-category-directory {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}

.footer-category-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 16px;
}

.footer-category-link {
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
  padding: 3px 0;
}

.footer-category-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

