/* ==========================================================================
   OUTBIDINDIE.LOL — LIGHT & CLEAN SINGLE LEADERBOARD THEME
   No Podium Clutter, Catchy Row Badges, Realistic ₹1k-₹3k Pricing & Fast UI
   ========================================================================== */

:root {
  /* Core Backgrounds */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-card: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-activity: #f1f5f9;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Refined Accents */
  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-amber-subtle: rgba(217, 119, 6, 0.08);
  --accent-amber-border: rgba(217, 119, 6, 0.25);
  
  --accent-emerald: #059669;
  --accent-emerald-light: #10b981;
  --accent-emerald-subtle: rgba(5, 150, 105, 0.08);
  --accent-emerald-border: rgba(5, 150, 105, 0.25);

  --accent-purple: #7c3aed;
  --accent-purple-subtle: rgba(124, 58, 237, 0.08);
  
  --accent-blue: #2563eb;
  --accent-blue-subtle: rgba(37, 99, 235, 0.08);

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-highlight: rgba(217, 119, 6, 0.35);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Soft Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.03);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* Ambient Backdrops */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-top-left {
  top: -150px;
  left: -100px;
  background: #fed7aa;
}

.glow-top-right {
  top: 100px;
  right: -150px;
  background: #a7f3d0;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Utility Helpers */
.tabular-nums {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-saffron { color: var(--accent-amber); }
.text-emerald { color: var(--accent-emerald); }
.text-purple { color: var(--accent-purple); }
.text-blue { color: var(--accent-blue); }
.text-center { text-align: center; }

.gradient-text-saffron {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   LIVE ACTIVITY BAR
   ========================================================================== */
.live-activity-bar {
  position: relative;
  z-index: 50;
  background: var(--bg-activity);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.35rem 0;
  font-size: 0.78rem;
}

.activity-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-subtle);
  border: 1px solid var(--accent-emerald-border);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

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

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-item {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.ticker-item strong {
  color: var(--text-primary);
}

.total-volume-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.total-volume-pill .muted-label {
  color: var(--text-muted);
}

.total-volume-pill strong {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-primary);
}

.flag-icon {
  font-size: 1.25rem;
}

.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-dot {
  color: var(--accent-amber);
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--accent-amber-subtle);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
}

.header-center-stats {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-bubble {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.stat-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-amber);
  border-radius: 50%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Buttons */
.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-primary {
  background: var(--accent-amber);
  color: #ffffff;
  border: none;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* ==========================================================================
   ULTRA-COMPACT HERO BAR
   ========================================================================== */
.compact-hero-bar {
  position: relative;
  z-index: 10;
  padding: 0.85rem 0 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
}

.compact-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.compact-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.compact-title {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
}

.compact-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.compact-hero-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.compact-metrics-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.metric-mini {
  display: flex;
  flex-direction: column;
}

.metric-mini-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-mini strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-claim-hero {
  background: var(--accent-amber);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.25);
  white-space: nowrap;
}

.btn-claim-hero:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* ==========================================================================
   LEADERBOARD SECTION (PROMINENT, CLEAN & CATCHY TABLE)
   ========================================================================== */
.leaderboard-section {
  position: relative;
  z-index: 10;
  padding: 0.85rem 0 3rem;
}

.leaderboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

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

.cat-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.cat-tab:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.cat-tab.active {
  background: var(--accent-amber);
  color: #ffffff;
  border-color: var(--accent-amber);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 250px;
}

.search-input-box i {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.search-input-box input {
  padding: 0.42rem 0.85rem 0.42rem 2.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   LEADERBOARD TABLE (CLEAN, PROMINENT & HIGH SIGNAL)
   ========================================================================== */
.leaderboard-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.leaderboard-table-header {
  display: grid;
  grid-template-columns: 85px 1fr 140px 120px 120px 115px;
  gap: 0.85rem;
  padding: 0.65rem 1.15rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 85px 1fr 140px 120px 120px 115px;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all 0.15s ease;
}

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

.leaderboard-row:hover {
  background: #f8fafc;
}

/* Rank Highlights */
.leaderboard-row-rank1 {
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
  border-left: 3px solid var(--accent-amber);
}

.leaderboard-row-rank2 {
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
  border-left: 3px solid #94a3b8;
}

.leaderboard-row-rank3 {
  background: linear-gradient(90deg, #fff7ed 0%, #ffffff 100%);
  border-left: 3px solid #c2410c;
}

.row-rank-col {
  display: flex;
  align-items: center;
}

.row-rank-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.rank-crown-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.rank-1-badge {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.rank-2-badge {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.rank-3-badge {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.row-startup-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.row-logo {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--accent-amber);
  flex-shrink: 0;
}

.row-texts {
  min-width: 0;
}

.row-title-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.row-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.row-name:hover {
  color: var(--accent-amber);
}

.row-inline-stage {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: var(--accent-emerald-subtle);
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-sm);
}

.row-tagline {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
  margin-top: 0.1rem;
}

.row-category-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: inline-block;
  white-space: nowrap;
}

.row-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.row-bid-amount {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--accent-amber);
}

.btn-outbid-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-outbid-row:hover {
  background: var(--accent-amber);
  color: #ffffff;
  border-color: var(--accent-amber);
}

.btn-outbid-rank1 {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  font-weight: 800;
}

.btn-outbid-rank1:hover {
  background: var(--accent-amber);
  color: #ffffff;
  border-color: var(--accent-amber);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.empty-state h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* ==========================================================================
   INVESTOR VALUE SECTION
   ========================================================================== */
.investor-focus-section {
  position: relative;
  z-index: 10;
  padding: 2.25rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

.investor-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.investor-header {
  margin-bottom: 1.5rem;
}

.investor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.investor-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  transition: transform 0.2s ease;
}

.investor-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-amber-border);
}

.investor-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.bg-saffron-subtle { background: var(--accent-amber-subtle); }
.bg-emerald-subtle { background: var(--accent-emerald-subtle); }
.bg-purple-subtle { background: var(--accent-purple-subtle); }
.bg-blue-subtle { background: var(--accent-blue-subtle); }

.investor-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.investor-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   PAYMENT STACK SECTION
   ========================================================================== */
.payment-stack-section {
  position: relative;
  z-index: 10;
  padding: 1rem 0 3rem;
}

.stack-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}

.stack-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.stack-header h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  margin: 0.35rem 0 0.25rem;
  color: var(--text-primary);
}

.stack-header p {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.stack-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gateway-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gateway-card.featured {
  border-color: var(--accent-emerald-border);
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%);
}

.gateway-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.gateway-title {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.gateway-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex: 1;
}

.gateway-rate {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ==========================================================================
   MODAL & BIDDING FORM (LIGHT & CRISP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease;
}

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

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bidding-modal-card {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.rules-modal-card {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes modalPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: #e2e8f0;
}

.modal-header {
  margin-bottom: 1.15rem;
}

.modal-header.text-left {
  text-align: left;
}

.widget-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.widget-icon {
  font-size: 1.5rem;
}

.widget-header-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.widget-header-title p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  background: var(--accent-emerald-subtle);
  border: 1px solid var(--accent-emerald-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.75rem;
}

.bid-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  pointer-events: none;
}

input[type="text"],
input[type="url"],
input[type="number"],
select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem 0.6rem 2.1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.custom-select-wrapper select {
  padding-left: 0.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1em;
  cursor: pointer;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent-amber);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Bid Amount Input Row */
.bid-amount-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggested-rank-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.bid-amount-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.currency-prefix {
  position: absolute;
  left: 0.9rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-amber);
  z-index: 2;
  pointer-events: none;
}

.big-bid-input {
  padding-left: 2.1rem !important;
  font-family: var(--font-mono) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: var(--accent-amber) !important;
  max-width: 200px;
}

.quick-bid-pills {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  flex: 1;
}

.quick-add-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-add-btn:hover {
  background: #e2e8f0;
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.highlight-pill {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
  font-weight: 700;
}

.highlight-pill:hover {
  background: var(--accent-amber);
  color: #ffffff;
}

/* Live Card Preview Box */
.live-preview-container {
  background: #f8fafc;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin: 0.25rem 0;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.preview-card {
  background: #ffffff;
  border: 1px solid var(--accent-amber-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.preview-rank {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-amber);
  min-width: 34px;
}

.preview-logo {
  width: 34px;
  height: 34px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-amber);
  flex-shrink: 0;
}

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

.preview-header-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.1rem;
}

.preview-header-line h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-category-tag,
.preview-city-tag {
  font-size: 0.65rem;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.preview-tagline-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-url-text {
  font-size: 0.7rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.preview-bid-pill {
  text-align: right;
  flex-shrink: 0;
}

.preview-bid-label {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.preview-bid-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-amber);
}

/* Submit Row */
.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn-claim-rank {
  width: 100%;
  background: var(--accent-amber);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.25);
}

.btn-claim-rank:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.checkout-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modal Summary Box */
.modal-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.15rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.summary-row strong {
  color: var(--text-primary);
}

.text-muted-link {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.summary-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.55rem 0;
}

.total-row {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.text-xl { font-size: 1.15rem !important; }

/* Payment Methods */
.payment-method-selector {
  margin-bottom: 1.15rem;
}

.section-sublabel {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pay-option {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pay-option:hover {
  border-color: var(--border-medium);
  background: #f1f5f9;
}

.pay-option.active {
  border-color: var(--accent-amber);
  background: #fffbeb;
}

.pay-option input {
  margin-right: 0.65rem;
  accent-color: var(--accent-amber);
}

.pay-option-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.pay-option-content strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.pay-option-content small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-confirm-pay {
  width: 100%;
  background: var(--accent-emerald);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.25);
}

.btn-confirm-pay:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.modal-disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Rules FAQ Body */
.rules-content-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.faq-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.74rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .investor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-options-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-table-header,
  .leaderboard-row {
    grid-template-columns: 60px 1fr 120px 95px 95px 105px;
  }
}

@media (max-width: 768px) {
  .header-center-stats {
    display: none;
  }

  .compact-hero-right {
    width: 100%;
    justify-content: space-between;
  }

  .bid-form-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-box {
    width: 100%;
  }

  .leaderboard-table-header {
    display: none;
  }

  .leaderboard-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.85rem;
  }

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

  .preview-card {
    flex-direction: column;
    text-align: center;
  }

  .preview-header-line {
    justify-content: center;
  }

  .preview-bid-pill {
    text-align: center;
  }
}
