/* ========================================================
   YEXA.SI - EXACT OUTBID.LOL DESIGN SYSTEM
   Fresh Green / Off-White Minimalist Aesthetic, Green Accents,
   Pill Navigators, Clean Two-Column Layout, Dark Mode Toggle
   ======================================================== */

:root {
  /* Core Palette - Warm Cream & Coral (Exact outbid.lol) */
  --bg-page: #f5faf6;
  --bg-card: #ffffff;
  --bg-card-hover: #f4fbf5;
  --bg-card-active: #eaf7ed;
  --bg-subtle: #f0f7f1;
  --bg-input: #ffffff;
  --bg-pill: #eaf3eb;
  --bg-pill-hover: #dcebe0;

  /* Accent - YEXA Green */
  --accent: #16803d;
  --accent-hover: #116530;
  --accent-light: #e8f7ec;
  --accent-subtle: #eef9f0;
  --accent-border: #c7e8d0;

  /* Neutral Borders */
  --border-subtle: #dfe9e1;
  --border-strong: #cbd9ce;
  --border-focus: #16803d;

  /* Typography */
  --text-main: #1e1e24;
  --text-secondary: #5a5754;
  --text-muted: #8b8580;
  --text-dim: #a8a29d;

  /* Status */
  --green-online: #10b981;
  --red-today: #ef4444;

  /* Fonts */
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 8px 24px rgba(22, 128, 61, 0.10), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 20px 45px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);

  --radius-pill: 9999px;
  --radius-card: 18px;
  --radius-sm: 10px;
}

/* Dark Mode Palette */
body.dark-mode {
  --bg-page: #0f1013;
  --bg-card: #17181e;
  --bg-card-hover: #1f2028;
  --bg-card-active: #252631;
  --bg-subtle: #1e1f26;
  --bg-input: #1a1b22;
  --bg-pill: #22232c;
  --bg-pill-hover: #2b2d38;

  --accent: #22a34a;
  --accent-hover: #34c759;
  --accent-light: rgba(34, 163, 74, 0.15);
  --accent-subtle: rgba(34, 163, 74, 0.10);
  --accent-border: rgba(34, 163, 74, 0.30);

  --border-subtle: #282a35;
  --border-strong: #383a48;
  --border-focus: #22a34a;

  --text-main: #f5f5f7;
  --text-secondary: #c2c0c7;
  --text-muted: #8b8a94;
  --text-dim: #64636d;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 25px 60px rgba(0, 0, 0, 0.8);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select {
  font-family: inherit;
  outline: none;
}

/* Container */
.site-wrapper {
  max-width: 1140px;
  margin: 0 auto;

}

/* ========================================================
   1. HEADER BAR
   ======================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 1.25rem;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

/* Brand Logo (3 stepped bars + yexa.si) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-bars {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 24px;
}

.logo-bars .bar {
  display: block;
  height: 3.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.logo-bars .bar-1 { width: 14px; }
.logo-bars .bar-2 { width: 19px; }
.logo-bars .bar-3 { width: 24px; }

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

/* Stats Pill Badge */
.stats-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.stats-pill-badge:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  color: var(--text-main);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green-online);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.15); }
}

.dot-sep {
  color: var(--text-dim);
}

.stats-link-text {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Header Right Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-item-btn {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  padding: 0.25rem 0.2rem;
}

.nav-item-btn:hover {
  color: var(--accent);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

/* Search Drawer */
.search-drawer {
  margin-bottom: 1rem;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-drawer-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.search-drawer-inner input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.92rem;
  color: var(--text-main);
}

.search-drawer-inner input::placeholder {
  color: var(--text-dim);
}

.clear-search-btn {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1;
}

/* ========================================================
   2. CATEGORY PILLS BAR (Scrollable Horizontal)
   ======================================================== */
.category-pills-bar {
  margin: 0.5rem 0 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.pills-scroll-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.pill-chip {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1.05rem;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.pill-chip:hover {
  background-color: var(--bg-pill);
  color: var(--text-main);
}

.pill-chip.active {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(22, 128, 61, 0.25);
}

/* ========================================================
   3. TIMEFRAME SWITCHER (All-time / Today)
   ======================================================== */
.time-switcher-container {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 1.5rem;
}

.time-switcher-pill {
  display: inline-flex;
  background-color: var(--bg-pill);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.time-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.time-btn:hover {
  color: var(--text-main);
}

.time-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 128, 61, 0.25);
}

.trophy-icon {
  font-size: 0.95rem;
}

.red-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--red-today);
  display: inline-block;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* ========================================================
   4. HERO SECTION (Claim #1 for - $17006 +)
   ======================================================== */
.hero-section {
  text-align: center;
  margin: 0.75rem auto 2.5rem;
  max-width: 820px;
}

.hero-claim-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.claim-prefix {
  font-weight: 800;
}

.claim-price-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.04em;
  transition: transform 0.15s ease;
}

.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-pill);
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
  user-select: none;
}

.step-btn:hover {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
  transform: scale(1.08);
}

/* Unified Hero Input Form */
.hero-input-form {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.45rem 0.35rem 1.15rem;
  box-shadow: var(--shadow-sm);
  gap: 0.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-input-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.hero-url-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1.4;
  position: relative;
}

.globe-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.hero-url-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.65rem 0;
}

.hero-url-wrapper input::placeholder {
  color: var(--text-dim);
}

.fetch-loader-inline {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-category-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  border-left: 1px solid var(--border-subtle);
  padding-left: 0.85rem;
  flex: 0.9;
}

.hero-select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.65rem 1.5rem 0.65rem 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-chevron {
  position: absolute;
  right: 0.5rem;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-claim-btn {
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 10px rgba(22, 128, 61, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-claim-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(22, 128, 61, 0.4);
}

/* ========================================================
   5. MAIN TWO-COLUMN LAYOUT
   ======================================================== */
.main-content-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2rem;
  align-items: start;
}

/* Left Column: Ranked Cards List */
.left-main-column {
  min-width: 0;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Individual Ranked Card */
.ranked-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.15rem 1.35rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ranked-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Rank Number on Left */
.card-rank-col {
  width: 36px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  flex-shrink: 0;
}

.card-rank-col.rank-top {
  color: var(--accent);
}

.card-rank-col.rank-sub {
  color: var(--text-dim);
}

/* App Icon (Square rounded) */
.card-icon-img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* Card Content Body */
.card-content-body {
  flex: 1;
  min-width: 0;
}

.card-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.card-title-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 80%;
}

.card-title-link:hover {
  color: var(--accent);
}

.card-bid-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.card-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Meta Row */
.card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--bg-pill);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-domain-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.meta-domain-link:hover {
  color: var(--accent);
}

.btn-see-details {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  cursor: pointer;
}

.btn-see-details:hover {
  color: var(--accent);
}

.btn-outbid-chip {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  transition: all 0.18s ease;
}

.btn-outbid-chip:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.btn-claim-empty {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* ========================================================
   6. RIGHT SIDEBAR: TODAY'S RANKING WIDGET
   ======================================================== */
.right-sidebar-column {
  display: flex;
  flex-direction: column;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sidebar-title h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.see-all-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.see-all-link:hover {
  text-decoration: underline;
}

.today-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.today-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.today-rank-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 18px;
  flex-shrink: 0;
}

.today-item-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.today-item-title {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.sidebar-action-box {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-sidebar-claim {
  width: 100%;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-sidebar-claim:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Recent Bids Feed */
.feed-pulse-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.recent-bids-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8rem;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.feed-item strong {
  color: var(--text-main);
}

.feed-amount-badge {
  color: var(--accent);
  font-weight: 700;
}

/* ========================================================
   7. FOOTER
   ======================================================== */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ========================================================
   8. MODALS & OVERLAYS
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 16, 19, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-emoji {
  font-size: 1.25rem;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* Live Card Preview Box in Claim Modal */
.preview-box {
  background: var(--bg-page);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.35rem;
}

.preview-header-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.preview-card-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.preview-card-rank {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.preview-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-subtle);
}

.preview-card-details {
  flex: 1;
  min-width: 0;
}

.preview-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.preview-card-title-row strong {
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-card-price {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}

.preview-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.2rem 0 0.35rem;
}

.preview-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.preview-meta-pill {
  background: var(--bg-pill);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-secondary);
}

/* Form inputs inside modals */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.styled-input, .styled-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all 0.18s ease;
}

.styled-input:focus, .styled-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.amount-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-tag {
  position: absolute;
  left: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  pointer-events: none;
}

.styled-input.with-currency {
  padding-left: 2rem;
  font-weight: 700;
  font-size: 1rem;
}

.rank-projection-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.projection-icon {
  font-size: 1.15rem;
}

.btn-checkout-confirm {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 128, 61, 0.35);
  transition: all 0.2s ease;
}

.btn-checkout-confirm:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 128, 61, 0.45);
}

/* Quick chips */
.quick-chips-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quick-chip {
  padding: 0.3rem 0.85rem;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
}

.quick-chip.beat-rank1 {
  color: var(--accent);
  font-weight: 700;
  border-color: var(--accent-border);
  margin-left: auto;
}

/* Math breakdown in Outbid modal */
.outbid-math-card {
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
}

.math-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}

.math-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

.math-row.final-row {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-main);
}

.color-coral {
  color: var(--accent);
}

/* Target card in Outbid modal */
.outbid-target-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-subtle);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.outbid-target-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.outbid-target-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.highlight-badge {
  color: var(--accent);
  font-weight: 700;
}

.highlight-price {
  font-weight: 700;
  color: var(--text-main);
}

/* Details Modal Elements */
.details-top-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.details-logo-img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.details-info-wrap {
  flex: 1;
}

.details-info-wrap h3 {
  font-size: 1.2rem;
  color: var(--text-main);
}

.details-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0.2rem 0 0.5rem;
}

.details-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.details-site-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.details-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-stat-box {
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}

.stat-box-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.stat-box-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.bid-history-container {
  margin-bottom: 1.25rem;
}

.bid-history-container h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.bids-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 160px;
  overflow-y: auto;
}

.bid-ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.bid-ledger-item .ledger-who {
  font-weight: 600;
  color: var(--text-main);
}

.bid-ledger-item .ledger-time {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.bid-ledger-item .ledger-amt {
  color: var(--accent);
  font-weight: 700;
}

.btn-details-boost {
  width: 100%;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-details-boost:hover {
  background-color: var(--accent-hover);
}

/* Stats Modal Elements */
.stats-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-tile {
  background: var(--bg-subtle);
  border-radius: 14px;
  padding: 1.15rem;
}

.tile-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tile-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tile-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.stats-explainer-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stats-explainer-box h4 {
  color: var(--text-main);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

/* Rules / About modal content */
.modal-text-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.rule-block {
  margin-bottom: 1.15rem;
}

.rule-block h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast-msg {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--text-main);
  color: var(--bg-page);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: slideToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 900px) {
  .main-content-layout {
    grid-template-columns: 1fr;
  }

  .right-sidebar-column {
    order: -1;
    margin-bottom: 1rem;
  }

  .hero-claim-headline {
    font-size: 2.2rem;
  }

  .claim-price-tag {
    font-size: 2.4rem;
  }

  .header {
    flex-wrap: wrap;
  }

  .header-nav {
    gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .site-wrapper {
    padding: 0.75rem 1rem 3rem;
  }

  .hero-input-form {
    flex-direction: column;
    border-radius: 20px;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .hero-category-wrapper {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 0.5rem;
    width: 100%;
  }

  .hero-claim-btn {
    width: 100%;
  }

  .hero-claim-headline {
    font-size: 1.8rem;
    gap: 0.5rem;
  }

  .claim-price-tag {
    font-size: 2rem;
  }

  .form-row-grid {
    grid-template-columns: 1fr;
  }

  .ranked-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .card-icon-img {
    width: 48px;
    height: 48px;
  }

  .card-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .card-title-link {
    max-width: 100%;
  }

  .stats-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* Website favicon inside the homepage URL input */
.hero-favicon-preview {
  display: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Keep the original globe icon aligned */
.hero-url-wrapper .globe-icon {
  flex-shrink: 0;
}

/* Confirmation Rank Popup */
#modalClaim .confirm-rank-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

#modalClaim .confirm-rank-item,
#modalClaim .confirm-price-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--line, #273144);
    border-radius: 12px;
    background: var(--panel, #101622);
}

#modalClaim .confirm-rank-details span {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--muted, #9ba7ba);
}

#modalClaim .confirm-rank-details strong {
    font-size: 27px;
    color: var(--text, #f5f7fb);
}

#modalClaim .confirm-rank-details small {
    font-size: 12px;
    color: var(--muted, #9ba7ba);
}

#modalClaim .confirm-rank-description {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--muted, #9ba7ba);
}

#modalClaim .confirm-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.6;
}

#modalClaim .confirm-terms input {
    margin-top: 4px;
    flex-shrink: 0;
}

#modalClaim .confirm-terms a,
#modalClaim .confirm-policy-links a {
    color: var(--accent, #e57255);
}

#modalClaim .confirm-policy-links {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    font-size: 12px;
}

#modalClaim .confirm-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

#modalClaim .confirm-modal-actions button {
    flex: 1;
    cursor: pointer;
}

#modalClaim .btn-cancel-confirm {
    padding: 13px 18px;
    border: 1px solid var(--line, #273144);
    border-radius: 11px;
    background: transparent;
    color: #fa6705 !important;
}

#modalClaim #confirmCheckoutMessage {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 12px;
}

@media (max-width: 480px) {
    #modalClaim .confirm-rank-details {
        gap: 8px;
    }

    #modalClaim .confirm-rank-item,
    #modalClaim .confirm-price-item {
        padding: 13px;
    }

    #modalClaim .confirm-modal-actions {
        flex-direction: column;
    }
}

/* =========================================
   YEXA.SI RESPONSIVE HEADER NAVIGATION
   Existing theme colors are preserved
========================================= */

.header {
    position: relative;
    z-index: 1000;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav-links,
.header-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border-subtle, #dfe9e1);
    border-radius: 12px;
    background: var(--bg-card, #fff);
    color: var(--text-main, #1e1e24);
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Tablet and mobile */
@media (max-width: 768px) {
    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-left {
        min-width: 0;
        flex: 1;
        gap: 10px;
    }

    .stats-pill-badge {
        max-width: 180px;
        overflow: hidden;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        background: var(--bg-card, #fff);
        border: 1px solid var(--border-subtle, #dfe9e1);
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(30, 30, 36, 0.10);
        z-index: 1001;
    }

    .header-nav.is-open {
        display: flex;
    }

    .header-nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: 100%;
    }

    .header-nav-links .nav-item-btn {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        text-align: left;
        border-radius: 10px;
    }

    .header-nav-actions {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-subtle, #dfe9e1);
    }

    .header-nav-actions .icon-btn {
        width: 42px;
        height: 42px;
    }

    .search-drawer {
        width: 100%;
        max-width: 100%;
    }

    .search-drawer-inner {
        min-width: 0;
    }

    #searchInput {
        min-width: 0;
        width: 100%;
    }
}

/* Small mobile screens */
@media (max-width: 420px) {
    .header-left {
        gap: 7px;
    }

    .stats-pill-badge {
        max-width: 135px;
        font-size: 11px;
    }

    .stats-link-text {
        display: none;
    }

    .brand-name {
        font-size: 19px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Respect existing dark-mode theme */
.dark-mode .header-nav {
    background: var(--bg-card, #1e1e24);
    border-color: var(--border-subtle, #38343a);
}

.dark-mode .mobile-menu-toggle {
    background: var(--bg-card, #1e1e24);
    color: var(--text-main, #fff);
    border-color: var(--border-subtle, #38343a);
}
/* Free directory submission form */
.listing-submit-fields {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}
.listing-submit-fields label {
    margin-top: 6px;
    color: var(--text-main, #18221d);
    font-size: 13px;
    font-weight: 650;
}
.listing-submit-fields .styled-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border-subtle, #dce5df);
    border-radius: 10px;
    background: var(--bg-card, #fff);
    color: var(--text-main, #18221d);
    font: inherit;
}
.listing-submit-fields textarea.styled-input {
    min-height: 90px;
    resize: vertical;
}
.listing-submit-fields .styled-input:focus {
    outline: 2px solid rgba(22, 163, 74, .22);
    border-color: #16a34a;
}
#btnConfirmClaim:disabled {
    opacity: .65;
    cursor: wait;
}

/* Free-listing auto-fill confirmation summary */
.listing-source-summary{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:0 0 18px;border:1px solid rgba(22,163,74,.22);border-radius:12px;background:rgba(22,163,74,.06);min-width:0}
.listing-source-summary img{flex:0 0 32px;object-fit:contain;border-radius:6px;background:#fff}
.listing-source-summary>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.listing-source-summary strong{font-size:14px;overflow-wrap:anywhere;color:var(--text-primary,#172033)}
.listing-source-summary span{font-size:12px;color:var(--text-secondary,#64748b)}
.autofill-hint{font-size:11px;font-weight:500;color:#16a34a;margin-left:5px}

/* =========================================
   YEXA.SI — PREMIUM RESPONSIVE FOOTER
========================================= */

.site-footer {
    --footer-green: #16a34a;
    --footer-green-dark: #15803d;
    --footer-text: #17231b;
    --footer-muted: #64748b;
    --footer-border: #e5ebe6;

    width: 100%;
    margin-top: 55px;
    background: linear-gradient(180deg, #ffffff 0%, #f5faf6 100%);
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text);
}

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer a {
    text-decoration: none;
}

.footer-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(130px, .8fr)
                           minmax(140px, .8fr) minmax(220px, 1.1fr);
    gap: 38px;
    padding: 48px 0 38px;
}

/* Brand */

.footer-brand {
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #14231a;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -1px;
}

.footer-logo-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(22, 163, 74, .2);
}

.footer-logo-dot {
    color: var(--footer-green);
}

.footer-description {
    max-width: 330px;
    margin: 17px 0;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.85;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    font-weight: 750;
}

.footer-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #22c55e;
}

/* Navigation */

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.footer-nav h3 {
    margin: 5px 0 7px;
    color: var(--footer-text);
    font-size: 13px;
    font-weight: 850;
}

.footer-nav a {
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.6;
    transition: color .2s ease, transform .2s ease;
}

.footer-nav a:hover {
    color: var(--footer-green-dark);
    transform: translateX(3px);
}

/* CTA */

.footer-cta {
    padding: 20px;
    border: 1px solid #d7f2df;
    border-radius: 17px;
    background:
        radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 48%),
        #f0fdf4;
}

.footer-cta-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    background: #dcfce7;
    color: #15803d;
    font-size: 21px;
    font-weight: 800;
}

.footer-cta h3 {
    margin: 13px 0 7px;
    font-size: 15px;
    font-weight: 850;
}

.footer-cta p {
    margin: 0;
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.75;
}

.footer-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    margin-top: 16px;
    padding: 10px 13px;
    border-radius: 10px;
    background: var(--footer-green);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.footer-submit-btn:hover {
    background: var(--footer-green-dark);
    transform: translateY(-1px);
}

/* Bottom bar */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    min-height: 65px;
    padding: 17px 0;
    border-top: 1px solid var(--footer-border);
}

.footer-copy,
.footer-tagline {
    margin: 0;
    color: var(--footer-muted);
    font-size: 11px;
    line-height: 1.8;
}

.footer-copy strong {
    color: var(--footer-text);
    font-weight: 850;
}

.footer-tagline {
    text-align: right;
}

/* Tablet */

@media (max-width: 950px) {
    .footer-main {
        grid-template-columns: minmax(0, 1.3fr) minmax(130px, 1fr)
                               minmax(130px, 1fr);
        gap: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 520px;
    }

    .footer-cta {
        grid-column: 1 / -1;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .site-footer {
        margin-top: 35px;
    }

    .footer-inner {
        width: calc(100% - 28px);
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 18px;
        padding: 30px 0 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo {
        font-size: 23px;
    }

    .footer-logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .footer-description {
        max-width: 100%;
        margin: 13px 0;
        font-size: 12px;
        line-height: 1.8;
    }

    .footer-nav {
        gap: 12px;
    }

    .footer-nav h3 {
        margin: 0 0 3px;
        font-size: 13px;
    }

    .footer-nav a {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .footer-cta {
        grid-column: 1 / -1;
        padding: 18px;
        border-radius: 14px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 16px 0 20px;
    }

    .footer-copy,
    .footer-tagline {
        text-align: left;
        font-size: 11px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        transition: none !important;
    }
}


/* ========================================================
   CONSOLIDATED HEADER CSS (moved from includes/header.php)
   Original rules preserved; source order retained.
   ======================================================== */

/* ==========================================
   YEXA.SI — PREMIUM RESPONSIVE HEADER
   Supports Light and Dark Mode
========================================== */

:root {
    --yx-green: #19b85b;
    --yx-green-light: #35e77b;
}

/* LIGHT MODE — DEFAULT */

body:not(.dark-mode):not(.dark-theme)
.site-wrapper > header.header {
    background: rgba(248, 252, 249, 0.96) !important;
    color: #14251a !important;
    border: none !important;
    box-shadow: none !important;
}

body:not(.dark-mode):not(.dark-theme)
.site-wrapper > header.header .brand-name {
    color: #14251a !important;
}

body:not(.dark-mode):not(.dark-theme)
.site-wrapper > header.header .nav-item-btn {
    color: #43564a !important;
}

body:not(.dark-mode):not(.dark-theme)
.site-wrapper > header.header .nav-item-btn:hover {
    color: #119447 !important;
    background: rgba(25, 184, 91, 0.09) !important;
}

body:not(.dark-mode):not(.dark-theme)
.site-wrapper > header.header .icon-btn,
body:not(.dark-mode):not(.dark-theme)
.site-wrapper > header.header .mobile-menu-toggle {
    color: #263b2d !important;
    background: rgba(25, 60, 35, 0.055) !important;
}

body:not(.dark-mode):not(.dark-theme)
.site-wrapper > header.header .mobile-menu-toggle span {
    background: #263b2d !important;
}

/* DARK MODE */

body.dark-mode .site-wrapper > header.header,
body.dark-theme .site-wrapper > header.header {
    background: rgba(8, 13, 11, 0.96) !important;
    color: #f0f7f2 !important;
    border: none !important;
    box-shadow: none !important;
}

body.dark-mode .site-wrapper > header.header .brand-name,
body.dark-theme .site-wrapper > header.header .brand-name {
    color: #f3fff6 !important;
}

body.dark-mode .site-wrapper > header.header .nav-item-btn,
body.dark-theme .site-wrapper > header.header .nav-item-btn {
    color: #b8c8bd !important;
}

body.dark-mode .site-wrapper > header.header .nav-item-btn:hover,
body.dark-theme .site-wrapper > header.header .nav-item-btn:hover {
    color: #79ffac !important;
    background: rgba(53, 231, 123, 0.09) !important;
}

body.dark-mode .site-wrapper > header.header .icon-btn,
body.dark-theme .site-wrapper > header.header .icon-btn,
body.dark-mode .site-wrapper > header.header .mobile-menu-toggle,
body.dark-theme .site-wrapper > header.header .mobile-menu-toggle {
    color: #e3eee7 !important;
    background: rgba(255, 255, 255, 0.045) !important;
}

body.dark-mode .site-wrapper > header.header .mobile-menu-toggle span,
body.dark-theme .site-wrapper > header.header .mobile-menu-toggle span {
    background: #eaf5ed !important;
}

/* HEADER LAYOUT */

body .site-wrapper > header.header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 76px;
    padding: 0 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    border-radius: 0 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    font-family: 'Plus Jakarta Sans', sans-serif;
}

body .site-wrapper > header.header::before,
body .site-wrapper > header.header::after {
    content: none !important;
    display: none !important;
}

/* LOGO */

.brand-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;

    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.brand-logo .logo-bars {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.brand-logo .logo-bars .bar {
    display: none !important;
}

/* Unique Y-shaped logo */

.yexa-symbol {
    display: block;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: visible;

    filter: drop-shadow(0 0 8px rgba(53, 231, 123, 0.25));
}

.brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.3px;
    line-height: 1;
    white-space: nowrap;
    border: none !important;
    background: transparent !important;
}

.brand-name .brand-si {
    color: var(--yx-green) !important;
}

/* NAVIGATION */

body .site-wrapper > header.header .header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;

    position: static;
    flex: 1;
    width: auto;
    margin: 0;
    padding: 0;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item-btn {
    min-height: 43px;
    padding: 0 15px;

    border: none !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ACTION BUTTONS */

.header-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav-actions .icon-btn {
    width: 43px;
    height: 43px;
    min-width: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    cursor: pointer;
}

#btnThemeToggle {
    color: #e0b84d;
}

.mobile-menu-toggle {
    display: none;
}

/* MOBILE */

@media (max-width: 768px) {
    body .site-wrapper > header.header {
        min-height: 66px;
        padding: 0 15px;
        gap: 10px;
    }

    .brand-logo .logo-bars {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .yexa-symbol {
        width: 46px;
        height: 46px;
    }

    /* Show icon, hide wordmark */

    .brand-name {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        width: 40px;
        height: 40px;
        min-width: 40px;

        border: none !important;
        border-radius: 12px !important;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 3px;
        transition: 0.2s ease;
    }

    body .site-wrapper > header.header .header-nav {
        display: none !important;

        position: absolute !important;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;

        width: auto;
        padding: 12px !important;

        flex-direction: column;
        align-items: stretch;
        gap: 12px;

        background: #f8fcf9 !important;
        border: none !important;
        border-radius: 16px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    }

    body.dark-mode .site-wrapper > header.header .header-nav,
    body.dark-theme .site-wrapper > header.header .header-nav {
        background: #0d1510 !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35) !important;
    }

    body .site-wrapper > header.header .header-nav.is-open {
        display: flex !important;
    }

    .header-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .nav-item-btn {
        width: 100%;
        min-height: 45px;
        justify-content: flex-start;
        text-align: left;
    }

    .header-nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .site-wrapper > .search-drawer {
        top: 66px;
    }
}

@media (max-width: 380px) {
    body .site-wrapper > header.header {
        padding: 0 11px;
    }

    .brand-logo .logo-bars,
    .yexa-symbol {
        width: 41px;
        height: 41px;
    }

    .brand-logo .logo-bars {
        flex-basis: 41px;
    }

    .header-nav-actions {
        gap: 6px;
    }
}
/* ===== YEXA RESPONSIVE HEADER FIX ===== */

.site-wrapper > header.header {
    width: 100%;
    min-height: 76px;
    padding: 0 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    position: sticky;
    top: 0;
    z-index: 1000;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Light theme */
body:not(.dark-mode):not(.dark-theme)
.site-wrapper > header.header {
    background: rgba(248, 252, 249, .96) !important;
    color: #17271d !important;
}

/* Dark theme */
body.dark-mode .site-wrapper > header.header,
body.dark-theme .site-wrapper > header.header {
    background: rgba(8, 13, 11, .96) !important;
    color: #f0f7f2 !important;
}

/* Logo */
.brand-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.yexa-symbol {
    display: block;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    overflow: visible;
    filter: drop-shadow(0 0 8px rgba(53, 231, 123, .24));
}

.brand-name {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1;
    white-space: nowrap;
}

.brand-name .brand-si {
    color: #20c969 !important;
}

/* Desktop navigation */
.site-wrapper > header.header .header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    position: static;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.header-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-item-btn {
    padding: 12px 15px;
    color: #506056 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 11px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.dark-mode .nav-item-btn,
body.dark-theme .nav-item-btn {
    color: #c1d0c5 !important;
}

/* Right-side actions */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.header-right .icon-btn,
.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    color: #263a2c !important;
    background: rgba(30, 70, 40, .055) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    cursor: pointer;
}

body.dark-mode .header-right .icon-btn,
body.dark-theme .header-right .icon-btn,
body.dark-mode .mobile-menu-toggle,
body.dark-theme .mobile-menu-toggle {
    color: #e8f4eb !important;
    background: rgba(255, 255, 255, .055) !important;
}

#btnThemeToggle {
    color: #b99b34 !important;
}

body.dark-mode #btnThemeToggle,
body.dark-theme #btnThemeToggle {
    color: #f2df91 !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 19px;
    height: 2px;
    display: block;
    border-radius: 3px;
    background: currentColor;
}

/* Mobile */
@media (max-width: 768px) {
    .site-wrapper > header.header {
        min-height: 66px;
        padding: 0 14px;
        gap: 8px;
    }

    /* Icon only */
    .yexa-symbol {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        display: none !important;
    }

    /* Hide desktop navigation until hamburger is clicked */
    .site-wrapper > header.header .header-nav {
        display: none !important;

        position: absolute !important;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        padding: 12px !important;

        flex-direction: column;
        align-items: stretch;
        gap: 8px;

        background: #f8fcf9 !important;
        border: none !important;
        border-radius: 16px !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, .12) !important;
    }

    body.dark-mode .site-wrapper > header.header .header-nav,
    body.dark-theme .site-wrapper > header.header .header-nav {
        background: #101914 !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, .35) !important;
    }

    .site-wrapper > header.header .header-nav.is-open {
        display: flex !important;
    }

    .header-nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .nav-item-btn {
        width: 100%;
        min-height: 44px;
        text-align: left;
        justify-content: flex-start;
    }

    /* Keep all three mobile controls visible */
    .header-right {
        display: flex !important;
        align-items: center;
        gap: 7px;
    }

    .header-right .icon-btn,
    .mobile-menu-toggle {
        display: inline-flex !important;
        width: 39px;
        height: 39px;
        min-width: 39px;
        border-radius: 12px !important;
    }

    .mobile-menu-toggle {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 360px) {
    .site-wrapper > header.header {
        padding: 0 9px;
        gap: 5px;
    }

    .yexa-symbol {
        width: 39px;
        height: 39px;
    }

    .header-right {
        gap: 5px;
    }

    .header-right .icon-btn,
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }
}
/* ===== YEXA.SI BRAND LOGO ===== */

.yexa-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
    flex-shrink: 0;

    margin: 0;
    padding: 0;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.yexa-logo-img {
    display: block;
    width: 64px;
    height: 64px;
    flex-shrink: 0;

    object-fit: contain;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
}

.yexa-brand-name {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1;
    white-space: nowrap;
    color: #17271d;
}

.yexa-brand-si {
    color: #16c968;
}

/* Dark mode */
body.dark-mode .yexa-brand-name,
body.dark-theme .yexa-brand-name {
    color: #f5fff8;
}

/* Mobile: hide text, keep logo */
@media (max-width: 768px) {
    .yexa-brand {
        gap: 0;
    }

    .yexa-logo-img {
        width: 46px;
        height: 46px;
    }

    .yexa-brand-name {
        display: none !important;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .yexa-logo-img {
        width: 40px;
        height: 40px;
    }
}
/* YEXA Live Search Results */
.header-search-results {
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1ebe4;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.header-search-results[hidden] {
    display: none !important;
}

.header-search-result {
    display: block;
    padding: 12px 15px;
    color: #17271d;
    text-decoration: none;
    border-bottom: 1px solid #edf2ee;
}

.header-search-result:last-child {
    border-bottom: 0;
}

.header-search-result:hover {
    background: rgba(25, 184, 91, 0.08);
}

.header-search-result strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.header-search-result small {
    display: block;
    margin-top: 4px;
    color: #66766b;
    font-size: 12px;
}

.header-search-result .yexa-search-tagline {
    color: #53665a;
}

.yexa-search-message {
    padding: 14px 15px;
    color: #53665a;
    font-size: 13px;
}

body.dark-mode .header-search-results,
body.dark-theme .header-search-results {
    background: #101914;
    border-color: #29392e;
}

body.dark-mode .header-search-result,
body.dark-theme .header-search-result {
    color: #f0f7f2;
    border-color: #29392e;
}

body.dark-mode .header-search-result:hover,
body.dark-theme .header-search-result:hover {
    background: rgba(53, 231, 123, 0.08);
}

body.dark-mode .header-search-result small,
body.dark-theme .header-search-result small,
body.dark-mode .yexa-search-message,
body.dark-theme .yexa-search-message {
    color: #b7c8bc;
}


/* ========================================================
   CONSOLIDATED HOMEPAGE CSS (moved from index.php)
   Original rules preserved; source order retained.
   ======================================================== */

/* =========================================================
   YEXA.SI — SHARE TO RANK HOMEPAGE
   Scoped homepage styling
   ========================================================= */

.yexa-home {
    --sr-green: #16a34a;
    --sr-green-dark: #15803d;
    --sr-green-light: #dcfce7;
    --sr-green-soft: #f0fdf4;
    --sr-text: #17231b;
    --sr-muted: #64748b;
    --sr-border: #e2e8e4;
    --sr-card: #ffffff;
    --sr-bg: #f8faf9;
    color: var(--sr-text);
}

.yexa-home * {
    box-sizing: border-box;
}

.yexa-home a {
    text-decoration: none;
}

.yexa-home button,
.yexa-home input,
.yexa-home select,
.yexa-home textarea {
    font: inherit;
}

.yexa-home .sr-container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.yexa-home .sr-category-bar {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 20px 0 15px;
    scrollbar-width: thin;
}

.yexa-home .sr-category-bar .pill-chip {
    flex: 0 0 auto;
    border: 1px solid var(--sr-border);
    border-radius: 999px;
    background: var(--sr-card);
    color: var(--sr-muted);
    padding: 9px 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.yexa-home .sr-category-bar .pill-chip:hover,
.yexa-home .sr-category-bar .pill-chip.active {
    background: var(--sr-green-light);
    color: var(--sr-green-dark);
    border-color: #86efac;
}

.yexa-home .sr-hero {
    position: relative;
    overflow: hidden;
    margin: 22px 0 20px;
    padding: 46px 25px;
    border: 1px solid #bbf7d0;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(34,197,94,.13),
            transparent 35%
        ),
        linear-gradient(135deg, #f0fdf4, #ffffff 65%);
    text-align: center;
}

.yexa-home .sr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    color: var(--sr-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.yexa-home .sr-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.yexa-home .sr-hero h1 {
    max-width: 850px;
    margin: 19px auto 14px;
    font-size: clamp(32px, 5vw, 57px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.045em;
    color: #14231a;
}

.yexa-home .sr-hero h1 span {
    color: var(--sr-green);
}

.yexa-home .sr-hero-description {
    max-width: 690px;
    margin: 0 auto;
    color: #526458;
    font-size: 16px;
    line-height: 1.8;
}

.yexa-home .sr-hero-form {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 220px auto;
    gap: 10px;
    max-width: 930px;
    margin: 28px auto 0;
}

.yexa-home .sr-url-wrap,
.yexa-home .sr-category-wrap {
    position: relative;
    min-width: 0;
}

.yexa-home .sr-url-wrap input,
.yexa-home .sr-category-wrap select {
    width: 100%;
    min-height: 54px;
    border: 1px solid #d5e2d8;
    border-radius: 12px;
    background: #fff;
    color: #17231b;
    outline: none;
}

.yexa-home .sr-url-wrap input {
    padding: 0 15px 0 43px;
}

.yexa-home .sr-url-wrap input:focus,
.yexa-home .sr-category-wrap select:focus {
    border-color: var(--sr-green);
    box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}

.yexa-home .sr-url-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #718378;
    pointer-events: none;
}

.yexa-home .hero-favicon-preview {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    object-fit: contain;
}

.yexa-home .sr-category-wrap select {
    appearance: auto;
    padding: 0 12px;
    cursor: pointer;
}

.yexa-home .sr-submit-btn {
    display: inline-flex;
    min-height: 54px;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--sr-green);
    color: white;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(22,163,74,.15);
    transition: .2s ease;
}

.yexa-home .sr-submit-btn:hover {
    background: var(--sr-green-dark);
    transform: translateY(-1px);
}

.yexa-home .sr-submit-btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.yexa-home .sr-hero-note {
    margin-top: 15px;
    color: #647568;
    font-size: 12px;
}

.yexa-home .sr-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 28px;
}

.yexa-home .sr-benefit {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--sr-border);
    border-radius: 15px;
    background: var(--sr-card);
}

.yexa-home .sr-benefit-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--sr-green-light);
    font-size: 20px;
}

.yexa-home .sr-benefit h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 800;
}

.yexa-home .sr-benefit p {
    margin: 0;
    color: var(--sr-muted);
    font-size: 12px;
    line-height: 1.7;
}

.yexa-home .sr-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 0 0 16px;
}

.yexa-home .sr-section-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.yexa-home .sr-section-heading p {
    margin: 6px 0 0;
    color: var(--sr-muted);
    font-size: 13px;
}

.yexa-home .sr-time-switcher {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    background: var(--sr-card);
}

.yexa-home .sr-time-switcher .time-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sr-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.yexa-home .sr-time-switcher .time-btn.active {
    background: var(--sr-green-light);
    color: var(--sr-green-dark);
}

.yexa-home .sr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 305px;
    gap: 22px;
    align-items: start;
}

.yexa-home .sr-main-column {
    min-width: 0;
}

.yexa-home .cards-list {
    display: grid;
    gap: 12px;
}

.yexa-home .ranked-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 19px;
    border: 1px solid var(--sr-border);
    border-radius: 16px;
    background: var(--sr-card);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.yexa-home .ranked-card:hover {
    border-color: #86efac;
    box-shadow: 0 7px 22px rgba(15,23,42,.045);
}

.yexa-home .ranked-card.top-card {
    border-color: #86efac;
    background: linear-gradient(120deg, #f0fdf4, #fff 55%);
}

.yexa-home .card-rank-col {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--sr-border);
    border-radius: 10px;
    background: #f8faf9;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.yexa-home .card-rank-col.rank-top {
    border-color: #bbf7d0;
    background: #dcfce7;
    color: #166534;
}

.yexa-home .card-icon-img {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.yexa-home .card-content-body {
    min-width: 0;
    flex: 1;
}

.yexa-home .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.yexa-home .card-title-link {
    color: var(--sr-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.yexa-home .card-title-link:hover {
    color: var(--sr-green-dark);
}

.yexa-home .card-bid-price {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    font-weight: 800;
}

.yexa-home .card-tagline {
    margin: 7px 0 11px;
    color: var(--sr-muted);
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.yexa-home .card-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #78867d;
    font-size: 11px;
}

.yexa-home .card-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #f1f5f2;
    color: #526458;
    font-weight: 700;
}

.yexa-home .meta-domain-link {
    color: #526458;
    overflow-wrap: anywhere;
}

.yexa-home .meta-domain-link:hover {
    color: var(--sr-green-dark);
}

.yexa-home .listing-share-count {
    color: var(--sr-green-dark);
    font-weight: 800;
}

.yexa-home .btn-see-details {
    color: var(--sr-green-dark);
    font-weight: 800;
}

.yexa-home .empty-state {
    padding: 45px 20px;
    border: 1px dashed var(--sr-border);
    border-radius: 16px;
    background: var(--sr-card);
    text-align: center;
}

.yexa-home .empty-icon {
    font-size: 34px;
}

.yexa-home .empty-state h3 {
    margin: 12px 0 6px;
}

.yexa-home .empty-state p {
    color: var(--sr-muted);
    font-size: 13px;
    line-height: 1.7;
}

.yexa-home .btn-claim-empty {
    margin-top: 10px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--sr-green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.yexa-home .sr-sidebar {
    display: grid;
    gap: 16px;
}

.yexa-home .sidebar-widget {
    overflow: hidden;
    border: 1px solid var(--sr-border);
    border-radius: 16px;
    background: var(--sr-card);
}

.yexa-home .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--sr-border);
}

.yexa-home .sidebar-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.yexa-home .sidebar-title h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 850;
}

.yexa-home .red-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--sr-green);
}

.yexa-home .see-all-link {
    border: 0;
    background: transparent;
    color: var(--sr-green-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.yexa-home .today-items-list {
    padding: 7px 14px;
}

.yexa-home .today-item-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 11px 0;
    border-bottom: 1px solid #f0f3f1;
}

.yexa-home .today-item-row:last-child {
    border-bottom: 0;
}

.yexa-home .today-rank-num {
    flex: 0 0 auto;
    color: #829087;
    font-size: 11px;
    font-weight: 800;
}

.yexa-home .today-item-img {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border: 1px solid var(--sr-border);
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
    padding: 3px;
}

.yexa-home .today-item-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--sr-text);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yexa-home .today-item-price {
    flex: 0 0 auto;
    color: var(--sr-green-dark);
    font-size: 10px;
    font-weight: 800;
}

.yexa-home .sr-sidebar-cta {
    margin: 0 14px 14px;
    padding: 15px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: var(--sr-green-soft);
}

.yexa-home .sr-sidebar-cta h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 850;
}

.yexa-home .sr-sidebar-cta p {
    margin: 0 0 12px;
    color: var(--sr-muted);
    font-size: 12px;
    line-height: 1.7;
}

.yexa-home .btn-sidebar-claim {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: var(--sr-green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.yexa-home .btn-sidebar-claim:hover {
    background: var(--sr-green-dark);
}

.yexa-home .sr-how-list {
    display: grid;
    gap: 14px;
    padding: 17px;
}

.yexa-home .sr-how-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.yexa-home .sr-how-number {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 9px;
    background: var(--sr-green-light);
    color: var(--sr-green-dark);
    font-size: 12px;
    font-weight: 850;
}

.yexa-home .sr-how-step strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.yexa-home .sr-how-step p {
    margin: 0;
    color: var(--sr-muted);
    font-size: 11px;
    line-height: 1.65;
}

.yexa-home .sr-footer {
    margin-top: 38px;
    padding: 24px 0 0;
    border-top: 1px solid var(--sr-border);
}

.yexa-home .sr-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.yexa-home .sr-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
}

.yexa-home .sr-footer-links a {
    color: var(--sr-muted);
    font-size: 12px;
}

.yexa-home .sr-footer-links a:hover {
    color: var(--sr-green-dark);
}

.yexa-home .sr-footer-copy {
    margin: 0;
    color: var(--sr-muted);
    font-size: 11px;
    line-height: 1.8;
}

.yexa-home .sr-footer-copy strong {
    color: var(--sr-text);
}

.yexa-home .sr-share-explainer {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--sr-border);
    border-radius: 16px;
    background: var(--sr-card);
}

.yexa-home .sr-share-explainer h2 {
    margin: 0 0 9px;
    font-size: 20px;
    font-weight: 850;
}

.yexa-home .sr-share-explainer > p {
    max-width: 850px;
    margin: 0;
    color: var(--sr-muted);
    font-size: 13px;
    line-height: 1.85;
}

.yexa-home .sr-share-explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.yexa-home .sr-share-explainer-grid > div {
    padding: 15px;
    border-radius: 12px;
    background: var(--sr-bg);
}

.yexa-home .sr-share-explainer-grid strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.yexa-home .sr-share-explainer-grid span {
    display: block;
    color: var(--sr-muted);
    font-size: 12px;
    line-height: 1.7;
}

/* Free listing modal */

.yexa-home .modal-backdrop {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    background: rgba(15,23,42,.58);
    backdrop-filter: blur(5px);
}

.yexa-home .modal-card {
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid var(--sr-border);
    border-radius: 18px;
    background: var(--sr-card);
    color: var(--sr-text);
    box-shadow: 0 25px 80px rgba(0,0,0,.2);
}

.yexa-home .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--sr-border);
}

.yexa-home .modal-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 850;
}

.yexa-home .modal-close-btn {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--sr-border);
    border-radius: 9px;
    background: var(--sr-bg);
    color: var(--sr-text);
    font-size: 24px;
    cursor: pointer;
}

.yexa-home .modal-body {
    padding: 22px;
}

.yexa-home .confirm-rank-description {
    margin: 0 0 18px;
    color: var(--sr-muted);
    font-size: 13px;
    line-height: 1.8;
}

.yexa-home .listing-source-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 13px;
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    background: var(--sr-bg);
}

.yexa-home .listing-source-summary img {
    flex: 0 0 32px;
    object-fit: contain;
}

.yexa-home .listing-source-summary strong,
.yexa-home .listing-source-summary span {
    display: block;
    overflow-wrap: anywhere;
}

.yexa-home .listing-source-summary strong {
    font-size: 13px;
}

.yexa-home .listing-source-summary span {
    margin-top: 4px;
    color: var(--sr-muted);
    font-size: 11px;
}

.yexa-home .listing-submit-fields label,
.yexa-home .modal-body > label:not(.confirm-terms) {
    display: block;
    margin: 14px 0 7px;
    font-size: 12px;
    font-weight: 800;
}

.yexa-home .autofill-hint {
    color: var(--sr-muted);
    font-size: 10px;
    font-weight: 500;
}

.yexa-home .styled-input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--sr-border);
    border-radius: 10px;
    background: var(--sr-card);
    color: var(--sr-text);
    outline: none;
}

.yexa-home textarea.styled-input {
    min-height: 85px;
    resize: vertical;
}

.yexa-home .styled-input:focus {
    border-color: var(--sr-green);
    box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}

.yexa-home .confirm-terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 19px;
    color: var(--sr-muted);
    font-size: 11px;
    line-height: 1.7;
}

.yexa-home .confirm-terms input {
    margin-top: 3px;
    accent-color: var(--sr-green);
}

.yexa-home .confirm-terms a,
.yexa-home .confirm-policy-links a {
    color: var(--sr-green-dark);
    font-weight: 700;
}

.yexa-home .confirm-policy-links {
    display: flex;
    gap: 9px;
    margin-top: 10px;
    font-size: 11px;
}

.yexa-home .confirm-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.yexa-home .btn-cancel-confirm,
.yexa-home .btn-checkout-confirm {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.yexa-home .btn-cancel-confirm {
    border: 1px solid var(--sr-border);
    background: var(--sr-card);
    color: var(--sr-text);
}

.yexa-home .btn-checkout-confirm {
    flex: 1;
    border: 0;
    background: var(--sr-green);
    color: white;
}

.yexa-home .btn-checkout-confirm:hover {
    background: var(--sr-green-dark);
}

.yexa-home .btn-checkout-confirm:disabled {
    opacity: .65;
    cursor: wait;
}

.yexa-home #confirmCheckoutMessage {
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.7;
}

.yexa-home .fetch-loader-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #bbf7d0;
    border-top-color: var(--sr-green);
    border-radius: 50%;
    animation: sr-spin .7s linear infinite;
}

@keyframes sr-spin {
    to { transform: rotate(360deg); }
}

.yexa-home .toast-container {
    position: fixed;
    z-index: 100001;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.yexa-home .toast-msg {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 350px;
    padding: 13px 16px;
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    background: var(--sr-card);
    color: var(--sr-text);
    font-size: 12px;
    line-height: 1.6;
    box-shadow: 0 8px 30px rgba(15,23,42,.12);
}

@media (max-width: 900px) {
    .yexa-home .sr-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 15px;
    }

    .yexa-home .sr-hero-form {
        grid-template-columns: minmax(0, 1fr) 190px;
    }

    .yexa-home .sr-submit-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .yexa-home .sr-container {
        width: min(100% - 22px, 600px);
    }

    .yexa-home .sr-hero {
        margin-top: 14px;
        padding: 33px 15px;
        border-radius: 18px;
    }

    .yexa-home .sr-hero h1 {
        font-size: clamp(31px, 8vw, 43px);
    }

    .yexa-home .sr-hero-description {
        font-size: 13px;
    }

    .yexa-home .sr-hero-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .yexa-home .sr-submit-btn {
        grid-column: auto;
        width: 100%;
    }

    .yexa-home .sr-benefits {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .yexa-home .sr-benefit {
        padding: 14px;
    }

    .yexa-home .sr-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .yexa-home .sr-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .yexa-home .sr-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .yexa-home .sr-time-switcher {
        width: 100%;
    }

    .yexa-home .sr-time-switcher .time-btn {
        flex: 1;
    }

    .yexa-home .ranked-card {
        gap: 9px;
        padding: 13px 10px;
    }

    .yexa-home .card-rank-col {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        font-size: 10px;
    }

    .yexa-home .card-icon-img {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .yexa-home .card-header-row {
        flex-direction: column;
        gap: 6px;
    }

    .yexa-home .card-title-link {
        font-size: 14px;
    }

    .yexa-home .card-tagline {
        font-size: 12px;
    }

    .yexa-home .card-meta-row {
        gap: 6px;
        font-size: 10px;
    }

    .yexa-home .sr-share-explainer {
        padding: 17px;
    }

    .yexa-home .sr-share-explainer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .yexa-home .sr-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .yexa-home .modal-backdrop {
        align-items: flex-start;
        padding: 12px;
    }

    .yexa-home .modal-card {
        margin: auto 0;
        max-height: calc(100vh - 24px);
    }

    .yexa-home .modal-body {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yexa-home *,
    .yexa-home *::before,
    .yexa-home *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
/* ==================================================
   YEXA.SI — FINAL LEADERBOARD LAYOUT
   Desktop: Independent listing scroll + sticky sidebar
   Mobile: Normal page scrolling
================================================== */

/* DESKTOP */
@media (min-width: 992px) {

    /* Keep both columns aligned */
    .yexa-home .sr-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 270px !important;
        align-items: start !important;
        gap: 20px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* Left column should not create its own scroll */
    .yexa-home .sr-main-column {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* The actual listing box is the only scrolling area */
    .yexa-home #cardsList {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        min-height: 0 !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        padding: 0 8px 10px 0 !important;
        box-sizing: border-box !important;

        overscroll-behavior-y: contain;
        scrollbar-width: thin;
        scrollbar-color: #86efac #f0fdf4;
    }

    /* Cards occupy the full available width */
    .yexa-home #cardsList > *,
    .yexa-home .ranked-card {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Keep empty state outside the listing scroll */
    .yexa-home .sr-main-column > .empty-state {
        max-width: 100% !important;
        margin-top: 12px;
    }

    /* Sidebar remains sticky on the right */
    .yexa-home .sr-sidebar {
        position: sticky !important;
        top: 15px !important;
        align-self: start !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;

        width: 100% !important;
        max-width: 270px !important;
        min-width: 0 !important;

        height: auto !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        margin: 0 !important;
        padding: 0 3px 5px 0 !important;
        box-sizing: border-box !important;

        scrollbar-width: thin;
        z-index: 5;
    }

    /* Sidebar widgets should retain natural height */
    .yexa-home .sidebar-widget {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}


/* TABLET AND MOBILE */
@media (max-width: 991px) {

    .yexa-home .sr-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .yexa-home .sr-main-column {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;

        padding: 0 !important;
        overflow: visible !important;
    }

    /* No nested scrolling on mobile */
    .yexa-home #cardsList {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;
        padding: 0 !important;
    }

    .yexa-home #cardsList > *,
    .yexa-home .ranked-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .yexa-home .sr-sidebar {
        position: static !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        max-height: none !important;
        overflow: visible !important;

        padding: 0 !important;
    }

    .yexa-home .sidebar-widget {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}


/* SMALL MOBILE CARD FIX */
@media (max-width: 480px) {

    .yexa-home .ranked-card {
        gap: 8px !important;
        padding: 12px 9px !important;
    }

    .yexa-home .card-content-body {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .yexa-home .card-title-link,
    .yexa-home .card-tagline,
    .yexa-home .meta-domain-link {
        overflow-wrap: anywhere !important;
    }

    .yexa-home .card-meta-row {
        flex-wrap: wrap !important;
    }
}
/* FIX: Normal page scrolling + sticky sidebar */
@media (min-width: 992px) {

    .yexa-home #cardsList {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior-y: auto !important;
    }

    .yexa-home .sr-sidebar {
        position: sticky !important;
        top: 15px !important;
        align-self: start !important;

        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ========================================================
   YEXA.SI DARK MODE FIX — HOMEPAGE BLOCKS & CARDS
   Keeps the existing layout; only corrects theme colors.
   ======================================================== */
body.dark-mode .yexa-home,
body.dark-theme .yexa-home {
    --sr-green: #35e77b;
    --sr-green-dark: #35e77b;
    --sr-green-light: rgba(53, 231, 123, .14);
    --sr-green-soft: rgba(53, 231, 123, .08);
    --sr-text: var(--text-main, #f3f7f4);
    --sr-muted: var(--text-secondary, #b7c8bc);
    --sr-border: var(--border-subtle, #29332d);
    --sr-card: var(--bg-card, #151a17);
    --sr-bg: var(--bg-page, #080d0b);
    color: var(--text-main, #f3f7f4);
}

body.dark-mode .yexa-home .sr-hero,
body.dark-theme .yexa-home .sr-hero {
    background: radial-gradient(circle at 90% 10%, rgba(53,231,123,.09), transparent 35%), #111813 !important;
    border-color: #294333 !important;
}
body.dark-mode .yexa-home .sr-hero h1,
body.dark-theme .yexa-home .sr-hero h1 { color: #f3fff6 !important; }
body.dark-mode .yexa-home .sr-hero-description,
body.dark-theme .yexa-home .sr-hero-description,
body.dark-mode .yexa-home .sr-hero-note,
body.dark-theme .yexa-home .sr-hero-note { color: #b7c8bc !important; }
body.dark-mode .yexa-home .sr-eyebrow,
body.dark-theme .yexa-home .sr-eyebrow {
    background: #17251b !important;
    border-color: #294333 !important;
    color: #75efa0 !important;
}
body.dark-mode .yexa-home .sr-url-wrap input,
body.dark-theme .yexa-home .sr-url-wrap input,
body.dark-mode .yexa-home .sr-category-wrap select,
body.dark-theme .yexa-home .sr-category-wrap select {
    background: #151a17 !important;
    color: #f3f7f4 !important;
    border-color: #303a33 !important;
}
body.dark-mode .yexa-home .sr-url-wrap input::placeholder,
body.dark-theme .yexa-home .sr-url-wrap input::placeholder { color: #84968a !important; }
body.dark-mode .yexa-home .sr-url-icon,
body.dark-theme .yexa-home .sr-url-icon { color: #a6b7ab !important; }
body.dark-mode .yexa-home .sr-category-bar .pill-chip,
body.dark-theme .yexa-home .sr-category-bar .pill-chip,
body.dark-mode .yexa-home .sr-time-switcher,
body.dark-theme .yexa-home .sr-time-switcher,
body.dark-mode .yexa-home .sr-benefit,
body.dark-theme .yexa-home .sr-benefit,
body.dark-mode .yexa-home .ranked-card,
body.dark-theme .yexa-home .ranked-card,
body.dark-mode .yexa-home .sidebar-widget,
body.dark-theme .yexa-home .sidebar-widget,
body.dark-mode .yexa-home .empty-state,
body.dark-theme .yexa-home .empty-state {
    background: #111813 !important;
    color: #f3f7f4 !important;
    border-color: #29372e !important;
}
body.dark-mode .yexa-home .ranked-card.top-card,
body.dark-theme .yexa-home .ranked-card.top-card {
    background: linear-gradient(120deg, #14251a, #111813 65%) !important;
    border-color: #31583d !important;
}
body.dark-mode .yexa-home .card-rank-col,
body.dark-theme .yexa-home .card-rank-col {
    background: #1a211c !important;
    color: #c2cfc6 !important;
    border-color: #303a33 !important;
}
body.dark-mode .yexa-home .card-rank-col.rank-top,
body.dark-theme .yexa-home .card-rank-col.rank-top {
    background: rgba(53,231,123,.14) !important;
    color: #75efa0 !important;
    border-color: #31583d !important;
}
body.dark-mode .yexa-home .card-icon-img,
body.dark-theme .yexa-home .card-icon-img,
body.dark-mode .yexa-home .today-item-img,
body.dark-theme .yexa-home .today-item-img {
    background: #fff !important;
    border-color: #303a33 !important;
}
body.dark-mode .yexa-home .card-bid-price,
body.dark-theme .yexa-home .card-bid-price,
body.dark-mode .yexa-home .card-category-badge,
body.dark-theme .yexa-home .card-category-badge {
    background: rgba(53,231,123,.10) !important;
    color: #a1f5bc !important;
    border-color: #31583d !important;
}
body.dark-mode .yexa-home .card-meta-row,
body.dark-theme .yexa-home .card-meta-row,
body.dark-mode .yexa-home .meta-domain-link,
body.dark-theme .yexa-home .meta-domain-link,
body.dark-mode .yexa-home .sr-benefit p,
body.dark-theme .yexa-home .sr-benefit p,
body.dark-mode .yexa-home .sr-section-heading p,
body.dark-theme .yexa-home .sr-section-heading p,
body.dark-mode .yexa-home .empty-state p,
body.dark-theme .yexa-home .empty-state p { color: #b7c8bc !important; }
body.dark-mode .yexa-home .sidebar-header,
body.dark-theme .yexa-home .sidebar-header { border-bottom-color: #29372e !important; }
body.dark-mode .yexa-home .sr-time-switcher .time-btn,
body.dark-theme .yexa-home .sr-time-switcher .time-btn { color: #b7c8bc !important; }
body.dark-mode .yexa-home .sr-time-switcher .time-btn.active,
body.dark-theme .yexa-home .sr-time-switcher .time-btn.active,
body.dark-mode .yexa-home .sr-category-bar .pill-chip.active,
body.dark-theme .yexa-home .sr-category-bar .pill-chip.active {
    background: rgba(53,231,123,.14) !important;
    color: #75efa0 !important;
    border-color: #31583d !important;
}
body.dark-mode .yexa-home .sr-section-heading h2,
body.dark-theme .yexa-home .sr-section-heading h2,
body.dark-mode .yexa-home .sr-benefit h3,
body.dark-theme .yexa-home .sr-benefit h3,
body.dark-mode .yexa-home .sidebar-title,
body.dark-theme .yexa-home .sidebar-title,
body.dark-mode .yexa-home .card-title-link,
body.dark-theme .yexa-home .card-title-link { color: #f3f7f4 !important; }

/* Inline-colored homepage info blocks also follow dark mode. */
body.dark-mode .yexa-home [style*="background:#fff"],
body.dark-mode .yexa-home [style*="background: #fff"],
body.dark-mode .yexa-home [style*="background:#ffffff"],
body.dark-mode .yexa-home [style*="background: #ffffff"],
body.dark-mode .yexa-home [style*="background:#f8faf9"],
body.dark-mode .yexa-home [style*="background: #f8faf9"],
body.dark-mode .yexa-home [style*="background:#f0fdf4"],
body.dark-mode .yexa-home [style*="background: #f0fdf4"],
body.dark-theme .yexa-home [style*="background:#fff"],
body.dark-theme .yexa-home [style*="background: #fff"],
body.dark-theme .yexa-home [style*="background:#ffffff"],
body.dark-theme .yexa-home [style*="background: #ffffff"],
body.dark-theme .yexa-home [style*="background:#f8faf9"],
body.dark-theme .yexa-home [style*="background: #f8faf9"],
body.dark-theme .yexa-home [style*="background:#f0fdf4"],
body.dark-theme .yexa-home [style*="background: #f0fdf4"] {
    background-color: #111813 !important;
    color: #f3f7f4 !important;
    border-color: #29372e !important;
}
body.dark-mode .yexa-home [style*="color:#17231b"],
body.dark-mode .yexa-home [style*="color: #17231b"],
body.dark-mode .yexa-home [style*="color:#14231a"],
body.dark-mode .yexa-home [style*="color: #14231a"],
body.dark-mode .yexa-home [style*="color:#526458"],
body.dark-mode .yexa-home [style*="color: #526458"],
body.dark-theme .yexa-home [style*="color:#17231b"],
body.dark-theme .yexa-home [style*="color: #17231b"],
body.dark-theme .yexa-home [style*="color:#14231a"],
body.dark-theme .yexa-home [style*="color: #14231a"],
body.dark-theme .yexa-home [style*="color:#526458"],
body.dark-theme .yexa-home [style*="color: #526458"] { color: #d4e0d7 !important; }

/* ========================================================
   YEXA.SI FOOTER — DARK MODE COMPATIBILITY PATCH
   Keeps the existing footer layout; fixes light-only colors.
   ======================================================== */
body.dark-mode footer.site-footer,
body.dark-theme footer.site-footer {
    background: #0b100d !important;
    background-image: none !important;
    color: #eef7f0 !important;
    border-top-color: #29372e !important;
    color-scheme: dark;
}

body.dark-mode footer.site-footer .footer-logo,
body.dark-theme footer.site-footer .footer-logo,
body.dark-mode footer.site-footer .footer-nav h3,
body.dark-theme footer.site-footer .footer-nav h3,
body.dark-mode footer.site-footer .footer-cta h3,
body.dark-theme footer.site-footer .footer-cta h3,
body.dark-mode footer.site-footer .footer-copy,
body.dark-theme footer.site-footer .footer-copy,
body.dark-mode footer.site-footer .footer-copy strong,
body.dark-theme footer.site-footer .footer-copy strong,
body.dark-mode footer.site-footer .footer-tagline,
body.dark-theme footer.site-footer .footer-tagline {
    color: #eef7f0 !important;
}

body.dark-mode footer.site-footer .footer-description,
body.dark-theme footer.site-footer .footer-description,
body.dark-mode footer.site-footer .footer-nav a,
body.dark-theme footer.site-footer .footer-nav a,
body.dark-mode footer.site-footer .footer-cta p,
body.dark-theme footer.site-footer .footer-cta p {
    color: #b7c8bc !important;
}

body.dark-mode footer.site-footer .footer-nav a:hover,
body.dark-theme footer.site-footer .footer-nav a:hover {
    color: #75efa0 !important;
}

body.dark-mode footer.site-footer .footer-badge,
body.dark-theme footer.site-footer .footer-badge {
    background: #17251b !important;
    border-color: #31583d !important;
    color: #a1f5bc !important;
}

body.dark-mode footer.site-footer .footer-status-dot,
body.dark-theme footer.site-footer .footer-status-dot {
    background: #35e77b !important;
}

body.dark-mode footer.site-footer .footer-cta,
body.dark-theme footer.site-footer .footer-cta {
    background: #111813 !important;
    background-image: none !important;
    border-color: #29372e !important;
    color: #eef7f0 !important;
    box-shadow: none !important;
}

body.dark-mode footer.site-footer .footer-cta-icon,
body.dark-theme footer.site-footer .footer-cta-icon {
    background: rgba(53, 231, 123, .14) !important;
    color: #75efa0 !important;
}

body.dark-mode footer.site-footer .footer-bottom,
body.dark-theme footer.site-footer .footer-bottom {
    border-top-color: #29372e !important;
}

body.dark-mode footer.site-footer .footer-submit-btn,
body.dark-theme footer.site-footer .footer-submit-btn {
    background: #16803d !important;
    color: #ffffff !important;
    border-color: #16803d !important;
}

body.dark-mode footer.site-footer .footer-submit-btn:hover,
body.dark-theme footer.site-footer .footer-submit-btn:hover {
    background: #22a34a !important;
    color: #ffffff !important;
}
