/* ==========================================================================
   THE 26 LETTERS — Compact Outbid.lol Card Design System
   ========================================================================== */

:root {
  /* Warm Color Palette */
  --bg-app: #FAF7F2;            /* Warm cream canvas */
  --bg-card: #FFFFFF;           /* Crisp warm white */
  --bg-card-subtle: #F5EFE8;     /* Warm neutral subtle background */
  --bg-card-hover: #FFF9F6;      /* Warm peach highlight on hover */
  
  --text-main: #231E1B;         /* Warm dark obsidian text */
  --text-secondary: #4A403A;    /* Soft warm body text */
  --text-muted: #786C65;        /* Muted warm label text */
  --text-subtle: #A89C95;

  /* Terracotta / Coral Pink Accent */
  --primary-coral: #E07A5F;
  --primary-coral-hover: #D0674B;
  --primary-coral-light: #FDF2EE;
  --primary-coral-border: #F8D7CD;

  /* Status Colors */
  --emerald-live: #059669;
  --emerald-bg: #ECFDF5;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(35, 30, 27, 0.04);
  --shadow-md: 0 4px 12px rgba(35, 30, 27, 0.06);
  --shadow-lg: 0 12px 24px rgba(35, 30, 27, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Global Link & Button Text Reset — No Underlines */
a {
  text-decoration: none !important;
  color: inherit;
}

a:hover, a:focus, a:visited {
  text-decoration: none !important;
}

/* Top Navigation Header (Desktop Untouched) */
.top-nav {
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-badge {
  background: var(--text-main);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-badge.small {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17.5px;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-accent {
  color: var(--primary-coral);
}

/* Live Online & Visitors Stat Pill */
.stats-bar {
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.stats-bar-nav {
  display: flex;
}

.stats-bar-hero {
  display: none;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.live-dot-green {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-live);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--emerald-bg);
}

.stat-value-emerald {
  color: var(--emerald-live);
  font-weight: 700;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-link-btn:hover, .nav-link-btn.active {
  color: var(--primary-coral);
  background: var(--primary-coral-light);
}

/* Warm Hero Section */
.hero-section {
  padding: 32px 20px 20px 20px;
  text-align: center;
}

.hero-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.hero-description {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

/* Controls Bar */
.list-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 5px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.filter-tab {
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--primary-coral);
  color: #FFFFFF;
}

/* App Workspace Container */
.app-workspace {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 60px 24px;
}

.doc-workspace {
  padding-top: 40px;
}

/* 5-Pill Latest Activity Ticker Section */
.latest-activity-section {
  margin-top: 36px;
  margin-bottom: 32px;
}

.latest-activity-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: 0 6px 20px rgba(35, 30, 27, 0.07), 0 2px 6px rgba(35, 30, 27, 0.04);
}

.latest-activity-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.activity-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-coral);
  border-radius: 50%;
  animation: dotBlink 1.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
  box-shadow: 0 0 0 2px var(--primary-coral-light);
}

.activity-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
}

.activity-pills-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  overflow: hidden;
}

.activity-pill-item {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-pill);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.activity-pill-item:hover {
  background: var(--primary-coral-light);
}

.activity-pill-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.activity-pill-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.15;
  min-width: 0;
}

.activity-pill-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-pill-meta {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-pill-time {
  font-size: 9.5px;
  color: var(--text-subtle);
  white-space: nowrap;
}

.activity-toggle-wrapper {
  display: none;
}

/* CARDS LIST CONTAINER & CARDS */
.cards-list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ALL CLAIMED HOLDER CARDS HAVE CORAL BORDER */
.outbid-card {
  position: relative;
  background: #FFFDF9;
  border: 1.5px solid var(--primary-coral);
  border-radius: 24px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.outbid-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-coral-hover);
}

/* Unclaimed Slot Card Keep Neutral Border */
.outbid-card.unclaimed-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
}

.unclaimed-badge {
  background: var(--text-muted) !important;
  box-shadow: none !important;
}

/* FLOATING TAKEOVER BADGE PILL */
.floating-hover-takeover-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--primary-coral);
  color: #FFFFFF;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 10px rgba(224, 122, 95, 0.25);
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.outbid-card:hover .floating-hover-takeover-badge,
.ledger-row-item:hover .floating-hover-takeover-badge {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-hover-takeover-badge:hover {
  background: var(--primary-coral-hover);
  transform: translate(-50%, -1px) scale(1.03);
}

/* SECTION DIVIDER WITH FLOATING PILL */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 28px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--primary-coral-border);
}

.divider-pill {
  background: var(--primary-coral-light);
  color: var(--primary-coral);
  border: 1px solid var(--primary-coral-border);
  padding: 5px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ALL PURCHASES LEDGER MINIMAL LIST ROW */
.ledger-list-container {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--primary-coral-border);
}

.ledger-row-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--primary-coral-border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.ledger-row-item:hover {
  background: var(--bg-card-hover);
}

.card-left, .ledger-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ledger-rank-grey {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: -0.2px;
  line-height: 1;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.ledger-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  flex-shrink: 0;
}

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

.ledger-title-line, .card-title-line {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ledger-desc-text, .card-desc-text {
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-meta-line, .card-meta-line {
  font-size: 12.5px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ledger-price-val, .card-price-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
  flex-shrink: 0;
  text-align: right;
  transition: color 0.15s ease;
}

.card-brand-title {
  color: var(--text-main);
  transition: color 0.15s ease;
}

.domain-link-text {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.15s ease;
}

.outbid-card:hover .card-brand-title,
.outbid-card:hover .card-price-val,
.outbid-card:hover .domain-link-text,
.ledger-row-item:hover .card-brand-title,
.ledger-row-item:hover .domain-link-text,
.ledger-row-item:hover .ledger-price-val {
  color: var(--primary-coral);
}

.letter-badge-circle {
  background: var(--primary-coral);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(224, 122, 95, 0.25);
}

.card-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.fallback-brand-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* LIVE BLINKING DOT FOR CLICK COUNTER */
.click-count-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blinking-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary-coral);
  border-radius: 50%;
  animation: dotBlink 1.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
  box-shadow: 0 0 0 2px var(--primary-coral-light);
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.65); }
}

.click-count-text {
  color: var(--primary-coral);
  font-weight: 700;
}

.card-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.outbid-btn-pill {
  background: var(--primary-coral-light);
  color: var(--primary-coral);
  border: 1px solid var(--primary-coral-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.outbid-btn-pill:hover {
  background: var(--primary-coral);
  color: #FFFFFF;
  border-color: var(--primary-coral);
  transform: scale(1.04);
}

/* DEDICATED DOCUMENT PAGE CARDS */
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.doc-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 36px;
  color: var(--text-main);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.doc-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--primary-coral-border);
}

.doc-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-body h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-main);
  margin-top: 14px;
}

.doc-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.doc-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
}

.doc-box h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.doc-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.rules-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.rule-item-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.rule-item-box:hover {
  border-color: var(--primary-coral-border);
  background: var(--bg-card-hover);
}

.rule-num {
  background: var(--primary-coral);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(224, 122, 95, 0.25);
}

.rule-content { flex: 1; }

.rule-content h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16.5px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.rule-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* PAGINATION CONTROLS */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 16px 0;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-nav-btn {
  background: none;
  border: none;
  color: var(--primary-coral);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.page-nav-btn:hover:not(.disabled) {
  color: var(--primary-coral-hover);
  background: var(--primary-coral-light);
}

.page-nav-btn.disabled {
  color: var(--text-subtle);
  cursor: not-allowed;
  opacity: 0.4;
}

.page-num-btn {
  background: none;
  border: none;
  color: var(--primary-coral);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.page-num-btn:hover:not(.active) { background: var(--primary-coral-light); }

.page-num-btn.active {
  background: var(--primary-coral);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(224, 122, 95, 0.3);
}

.page-ellipsis {
  color: var(--primary-coral);
  font-weight: 700;
  font-size: 14px;
  padding: 0 4px;
}

.pagination-info {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* OUTBID.LOL STEPPER CONTROLS IN MODAL */
.bid-stepper-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 12px;
}

.stepper-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.stepper-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stepper-btn {
  background: var(--primary-coral-light);
  color: var(--primary-coral);
  border: 1px solid var(--primary-coral-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.stepper-btn:hover {
  background: var(--primary-coral);
  color: #FFFFFF;
  transform: scale(1.08);
}

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

.stepper-amount-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.stepper-currency {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--primary-coral);
}

.stepper-input {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  color: var(--primary-coral);
  border: none;
  background: transparent;
  width: 140px;
  text-align: center;
  outline: none;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper-input[type=number] {
  -moz-appearance: textfield;
}

.stepper-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-chip-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-chip-btn:hover {
  background: var(--primary-coral-light);
  color: var(--primary-coral);
  border-color: var(--primary-coral-border);
}

.bid-status-hint {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* TOTAL REVENUE SECTION */
.total-revenue-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  text-align: center;
}

.revenue-top-text {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.total-revenue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 16px 48px;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.total-revenue-amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 58px;
  line-height: 1;
  color: #231E1B;
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.total-revenue-amount .currency-symbol {
  color: var(--primary-coral);
  font-size: 48px;
}

.revenue-bottom-text {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Warm Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 30, 27, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, visibility;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(35, 30, 27, 0.16);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-card-subtle);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-letter-badge {
  background: var(--primary-coral);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

.form-group { margin-bottom: 14px; }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

input[type="text"], input[type="url"] {
  width: 100%;
  padding: 9px 13px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
}

input:focus {
  border-color: var(--primary-coral);
  background: #FFFFFF;
}

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.legal-consent-box {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.checkbox-container {
  display: flex;
  gap: 8px;
  cursor: pointer;
}

.consent-text a { color: var(--primary-coral); }

.submit-bid-btn {
  width: 100%;
  background: var(--primary-coral);
  color: #FFFFFF;
  border: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.submit-bid-btn:hover { background: var(--primary-coral-hover); }

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 36px 24px;
  margin-top: 52px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover, .footer-links a.active { color: var(--primary-coral); }

.footer-copyright {
  font-size: 11.5px;
  color: var(--text-subtle);
}

/* MOBILE RESPONSIVE MEDIA QUERIES (max-width: 640px) */
@media (max-width: 640px) {
  html, body { width: 100%; overflow-x: hidden; }
  .nav-container { padding: 10px 14px; width: 100%; box-sizing: border-box; }
  .brand-title { font-size: 15px; }

  .stats-bar-nav { display: none !important; }
  .stats-bar-hero {
    display: inline-flex !important;
    padding: 4px 14px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat-item { font-size: 11.5px; }

  .hero-section { padding: 24px 14px 18px 14px; width: 100%; box-sizing: border-box; }
  .hero-title { font-size: 26px; letter-spacing: -0.6px; margin-bottom: 8px; }
  .hero-description { font-size: 13px; margin-bottom: 16px; line-height: 1.45; }

  .app-workspace { padding: 16px 12px 36px 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .doc-card { padding: 20px 16px; border-radius: 18px; }
  .doc-title { font-size: 24px; }
  .doc-box-grid { grid-template-columns: 1fr; gap: 10px; }
  .rule-item-box { padding: 14px; gap: 12px; }
  .rule-num { width: 28px; height: 28px; font-size: 13px; }
  .rule-content h3 { font-size: 14.5px; }
  .rule-content p { font-size: 12.5px; }

  .latest-activity-section { margin-top: 24px; margin-bottom: 20px; }
  .latest-activity-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(35, 30, 27, 0.06);
  }
  .latest-activity-header { margin-bottom: 10px; }
  .activity-pills-row { display: flex; flex-direction: column; gap: 0; }
  .activity-pill-item {
    background: transparent;
    border-radius: 0;
    padding: 7px 0 8px 0;
    border-bottom: 1px solid rgba(35, 30, 27, 0.07);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .activity-pill-item:last-child { border-bottom: none; }
  .activity-pill-logo { width: 24px; height: 24px; border-radius: 50%; margin-top: 2px; flex-shrink: 0; }
  .activity-pill-info { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; min-width: 0; }
  .activity-pill-name { font-size: 12.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .activity-pill-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .activity-pill-time { font-size: 10px; color: var(--text-subtle); }

  .activity-toggle-wrapper { display: flex; justify-content: center; margin-top: 8px; width: 100%; }
  .activity-toggle-btn { background: transparent; border: none; font-family: var(--font-body); font-weight: 600; font-size: 11.5px; color: var(--text-muted); cursor: pointer; padding: 2px 8px; }

  .cards-list-container { width: 100%; box-sizing: border-box; gap: 12px; }
  .outbid-card { padding: 12px 14px; gap: 10px; width: 100%; border-radius: 16px; box-sizing: border-box; }
  .card-left, .ledger-left { flex-direction: column; align-items: center; gap: 4px; }
  .letter-badge-circle { width: 24px; height: 24px; font-size: 11px; }
  .ledger-rank-grey { width: auto; font-size: 13.5px; }
  .card-brand-logo, .ledger-brand-logo { width: 32px; height: 32px; }
  .card-brand-title { font-size: 13.5px; }
  .card-desc-text, .ledger-desc-text {
    font-size: 12px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-meta-line, .ledger-meta-line { font-size: 10.5px; }
  .card-price-val, .ledger-price-val { font-size: 16px; }
  .outbid-btn-pill { padding: 3px 10px; font-size: 11px; }

  .ledger-list-container { width: 100%; box-sizing: border-box; }
  .ledger-row-item { padding: 12px 4px; gap: 10px; width: 100%; box-sizing: border-box; }

  .section-divider { margin: 24px 0 16px 0; width: 100%; box-sizing: border-box; }
  .divider-pill { padding: 3px 14px; font-size: 10.5px; }

  .total-revenue-card { padding: 12px 28px; border-radius: 20px; }
  .total-revenue-amount { font-size: 38px; }
  .total-revenue-amount .currency-symbol { font-size: 32px; }

  .modal-card { max-width: 92vw; padding: 18px 14px; box-sizing: border-box; }
  .stepper-input { font-size: 28px; width: 110px; }
  .stepper-currency { font-size: 26px; }
}

/* ==========================================================================
   Modern Warm Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

.toast-card {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--primary-coral-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(35, 30, 27, 0.12);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

.toast-card.toast-success {
  border-color: #A7F3D0;
  background: #F0FDF4;
}

.toast-card.toast-error {
  border-color: #FECACA;
  background: #FEF2F2;
}

.toast-card.toast-info {
  border-color: var(--primary-coral-border);
  background: #FFFDF9;
}

.toast-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 3px;
}

.toast-message {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
}

.toast-close:hover {
  opacity: 1;
}

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

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

@media (max-width: 640px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ==========================================================================
   2-Row Alphabetical A-Z Grid (13x2 Perfectly Fitted)
   ========================================================================== */
.alpha-2row-grid-container {
  display: grid !important;
  grid-template-columns: repeat(13, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 1140px !important;
  margin: 24px auto 44px auto !important;
  box-sizing: border-box !important;
}

.alpha-grid-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  box-shadow: 0 4px 12px rgba(35, 30, 27, 0.05);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
  text-decoration: none;
}

.alpha-grid-tile:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 14px 28px rgba(224, 122, 95, 0.22);
  border-color: var(--primary-coral);
  z-index: 15;
}

.alpha-tile-letter {
  position: absolute;
  top: 7px;
  left: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1;
  background: var(--bg-card-subtle);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.alpha-grid-tile.claimed .alpha-tile-letter {
  background: var(--primary-coral-light);
  color: var(--primary-coral);
}

.alpha-tile-logo-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 4px;
}

.alpha-tile-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.alpha-unclaimed-glyph {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: #C8C0B8;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.alpha-grid-tile:hover .alpha-tile-logo {
  transform: scale(1.1);
}

.alpha-grid-tile:hover .alpha-unclaimed-glyph {
  color: var(--primary-coral);
  transform: scale(1.15);
}

.alpha-tile-external-icon {
  position: absolute;
  top: 7px;
  right: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  color: var(--text-subtle);
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
  z-index: 2;
  opacity: 0.6;
}

.alpha-grid-tile:hover .alpha-tile-external-icon {
  color: var(--primary-coral);
  opacity: 1;
  transform: translate(1px, -1px);
}

.alpha-tile-action-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  background: var(--primary-coral);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.16s ease, transform 0.16s ease;
  cursor: pointer;
  z-index: 5;
}

.alpha-grid-tile:hover .alpha-tile-action-btn {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  .nav-container {
    padding: 8px 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .brand-title {
    font-size: 14px;
  }
  .nav-right-links {
    gap: 12px;
  }
  .nav-link-item {
    font-size: 12px;
  }

  .stats-bar-nav { display: none !important; }
  .stats-bar-hero {
    display: inline-flex !important;
    padding: 4px 12px;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 11px;
  }
  .stat-item { font-size: 11px; }

  .hero-section {
    padding: 16px 12px 10px 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-title {
    font-size: 23px;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .hero-description {
    font-size: 12.5px;
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 95%;
  }

  .filter-tabs {
    padding: 3px;
    gap: 3px;
    margin-bottom: 14px;
  }
  .filter-tab {
    padding: 6px 14px;
    font-size: 12px;
  }

  .app-workspace {
    padding: 8px 12px 24px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Mobile View: 5 in a Row Large Touch-Friendly Tiles */
  .alpha-2row-grid-container {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 2px !important;
    margin: 8px auto 16px auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .alpha-grid-tile {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    border-radius: 14px !important;
    padding: 4px 4px 16px 4px !important;
    box-shadow: 0 2px 6px rgba(35, 30, 27, 0.05) !important;
    touch-action: manipulation;
  }

  .alpha-grid-tile:active {
    transform: scale(0.95);
    border-color: var(--primary-coral) !important;
  }

  .alpha-tile-letter {
    top: 3px !important;
    left: 4px !important;
    width: 14px !important;
    height: 14px !important;
    font-size: 8.5px !important;
    border-radius: 4px !important;
  }

  .alpha-tile-external-icon {
    top: 3px !important;
    right: 4px !important;
    font-size: 9px !important;
  }

  .alpha-tile-logo {
    width: 30px !important;
    height: 30px !important;
    border-radius: 7px !important;
  }

  .alpha-unclaimed-glyph {
    font-size: 18px !important;
  }

  .alpha-tile-action-btn {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 2.5px 0 !important;
    font-size: 8px !important;
    border-radius: 0 0 12px 12px !important;
  }

  /* Cards List on Mobile */
  .cards-list-container {
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
  }
  .outbid-card {
    padding: 10px 12px;
    gap: 8px;
    width: 100%;
    border-radius: 14px;
    box-sizing: border-box;
  }
  .card-left, .ledger-left {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .letter-badge-circle {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .card-brand-logo, .ledger-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .card-brand-title {
    font-size: 13.5px;
    line-height: 1.2;
  }
  .card-desc-text, .ledger-desc-text {
    font-size: 11.5px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-meta-line, .ledger-meta-line {
    font-size: 10px;
    gap: 4px;
  }
  .card-price-val, .ledger-price-val {
    font-size: 15px;
  }
  .outbid-btn-pill {
    padding: 3px 10px;
    font-size: 10.5px;
  }

  /* Total Raised & Bottom Section */
  .total-revenue-section {
    margin-top: 24px;
    gap: 8px;
  }
  .revenue-top-text {
    font-size: 13.5px;
  }
  .total-revenue-card {
    padding: 10px 24px;
    border-radius: 18px;
  }
  .total-revenue-amount {
    font-size: 32px;
  }
  .total-revenue-amount .currency-symbol {
    font-size: 26px;
  }
  .revenue-bottom-text {
    font-size: 12px;
  }

  /* Modal on Mobile */
  .modal-overlay {
    padding: 12px;
  }
  .modal-card {
    max-width: 100%;
    width: 100%;
    padding: 20px 16px;
    border-radius: 20px;
    max-height: 88vh;
    box-sizing: border-box;
  }
  .modal-title {
    font-size: 17px;
  }
  .stepper-input {
    font-size: 28px;
    width: 80px;
  }
  .stepper-currency {
    font-size: 26px;
  }
  .stepper-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Footer on Mobile */
  .footer {
    padding: 24px 12px 30px 12px;
  }
  .footer-text {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .footer-links {
    gap: 14px;
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   Documentation & Legal Pages (Tight, Crisp, Professional Typography)
   ========================================================================== */
.doc-workspace {
  max-width: 820px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 24px 20px 48px 20px !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .doc-workspace {
    padding: 16px 14px 36px 14px !important;
  }
}

.doc-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: var(--text-main);
  letter-spacing: -0.6px;
  margin-bottom: 4px;
  line-height: 1.15;
}

@media (max-width: 640px) {
  .doc-title {
    font-size: 24px;
  }
}

.doc-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
  max-width: 760px;
}

.doc-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.doc-body p {
  margin-bottom: 12px;
}

.doc-body h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-main);
  margin: 22px 0 8px 0;
  letter-spacing: -0.3px;
}

.doc-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  margin: 14px 0 4px 0;
}

.doc-body a.doc-inline-link {
  color: var(--primary-coral) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.doc-body a.doc-inline-link:hover {
  text-decoration: underline !important;
  opacity: 0.85;
}

.doc-body ul, .doc-body ol {
  margin: 6px 0 14px 20px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 14px;
}

.doc-body li {
  margin-bottom: 4px;
}

.doc-footer-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.doc-footer-cta .outbid-btn-pill {
  padding: 8px 20px !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--text-main);
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.2s ease;
}

.doc-footer-cta .outbid-btn-pill:hover {
  background: var(--primary-coral);
}

