/* ==========================================================================
   TOPTIFIED.COM - Modern Design System & Global Styles
   Version: 1.0.0 (Reorganized)
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  /* Color Palette */
  --color-primary: #0F52BA;
  --color-primary-dark: #0A367D;
  --color-primary-light: #EBF2FD;
  --color-accent-green: #00B67A;
  --color-accent-green-hover: #009E69;
  --color-accent-gold: #FFB703;
  --color-accent-coral: #E63946;

  /* Neutrals & Surfaces */
  --bg-main: #F4F6F9;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F8FAFC;
  --bg-surface-elevated: #FFFFFF;
  --bg-dark: #0B132B;
  --bg-dark-surface: #1C2541;

  /* Text Colors */
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: #3B82F6;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-family);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Layout & Spacing */
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Global Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   3. Layout Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* ==========================================================================
   4. Top Announcement Bar
   ========================================================================== */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #F8FAFC;
  font-weight: 500;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent-green);
  animation: pulse-dot 2s infinite;
}

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

.currency-select {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
  outline: none;
}

.currency-select option {
  background: var(--bg-dark);
  color: #FFF;
}

/* ==========================================================================
   5. Primary Header Bar (Logo, Search, Compare)
   ========================================================================== */
.main-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}

.header-primary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), #00C49F);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(15, 82, 186, 0.3);
}

.brand-logo span.highlight {
  color: var(--color-primary);
}

.brand-verified-tag {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.3rem;
}

/* Centralized Search Bar */
.header-search-bar-central {
  position: relative;
  flex: 1;
  max-width: 540px;
}

.header-search-bar-central input {
  width: 100%;
  background-color: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.2rem 0.65rem 2.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.header-search-bar-central input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #FFF;
  box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.12);
}

.header-search-bar-central .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-results-section {
  padding: 0.8rem;
}

.search-results-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0 0.4rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-surface-subtle);
}

.search-result-item .result-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.search-result-item .result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.compare-btn-header {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(15, 82, 186, 0.2);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.compare-btn-header:hover {
  background-color: var(--color-primary);
  color: #FFF;
}

.compare-count-pill {
  background-color: var(--color-primary);
  color: #FFF;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.compare-btn-header:hover .compare-count-pill {
  background-color: #FFF;
  color: var(--color-primary);
}

/* Submit Button */
.submit-btn-header {
  background-color: var(--color-primary);
  color: #FFF;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.submit-btn-header:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 82, 186, 0.3);
}

/* Hamburger Menu Button (hidden on desktop) */
.mobile-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.mobile-hamburger:hover {
  background: #f1f5f9;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.mobile-nav-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.mobile-nav-drawer__search {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-drawer__search form {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px;
}

.mobile-nav-drawer__search .search-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.mobile-nav-drawer__search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
  color: #1e293b;
}

.mobile-nav-drawer__links {
  padding: 12px 0;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.15s ease;
}

.mobile-nav-link:hover {
  background: #f8fafc;
  color: #0F52BA;
}

.mobile-nav-link.active {
  color: #0F52BA;
  background: #eff6ff;
  border-right: 3px solid #0F52BA;
}

.mobile-nav-link__icon {
  display: flex;
  align-items: center;
  width: 20px;
  justify-content: center;
  color: inherit;
}

.mobile-nav-drawer__cta {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
}

.mobile-nav-drawer__cta .submit-btn-header {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
}

/* ==========================================================================
   6. Secondary Navigation Bar (Sticky Menu)
   ========================================================================== */
.secondary-menu-bar {
  background-color: #FFF;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.menu-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-logo-scroll {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-width 0.25s ease;
}

.secondary-menu-bar.scrolled .nav-logo-scroll {
  opacity: 1;
  max-width: 120px;
}

.menu-bar-inner::-webkit-scrollbar {
  display: none;
}

.menu-nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.menu-nav-list::-webkit-scrollbar {
  display: none;
}

.menu-nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  padding: 0.75rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.menu-nav-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.menu-nav-icon svg {
  width: 16px;
  height: 16px;
}

.menu-nav-link:hover, .menu-nav-link.active {
  color: var(--color-primary);
}

.menu-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px 2px 0 0;
}

.nav-badge-hot {
  background-color: var(--color-accent-coral);
  color: #FFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* Nav Scroll Arrows */
.nav-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.nav-scroll-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-scroll-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 82, 186, 0.2);
}

.nav-scroll-arrow:active {
  transform: scale(0.92);
}

/* ==========================================================================
   6b. Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #94a3b8;
  min-width: 320px;
  max-width: 420px;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--hiding {
  transform: translateX(120%);
  opacity: 0;
}

.toast--success { border-left-color: #16a34a; }
.toast--error { border-left-color: #dc2626; }
.toast--warning { border-left-color: #d97706; }
.toast--info { border-left-color: #0F52BA; }

.toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.toast--success .toast__icon { background: #f0fdf4; color: #16a34a; }
.toast--error .toast__icon { background: #fef2f2; color: #dc2626; }
.toast--warning .toast__icon { background: #fffbeb; color: #d97706; }
.toast--info .toast__icon { background: #eff6ff; color: #0F52BA; }

.toast__message {
  flex: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

.toast__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.toast__close:hover {
  background: #f1f5f9;
  color: #475569;
}

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 12px;
  animation: toastProgress 5s linear forwards;
}

.toast--success .toast__progress { background: #16a34a; }
.toast--error .toast__progress { background: #dc2626; }
.toast--warning .toast__progress { background: #d97706; }
.toast--info .toast__progress { background: #0F52BA; }

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

@media (max-width: 480px) {
  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }
  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0 2.2rem 0;
  text-align: center;
}

.hero-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFF;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  max-width: 860px;
  margin: 0 auto 0.8rem auto;
  letter-spacing: -0.5px;
}

.hero-title span.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), #00A86B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.8rem auto;
}

/* ==========================================================================
   8. Category Filter Bar
   ========================================================================== */
.category-filter-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

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

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

.category-pill-btn {
  background: #FFF;
  border: 1px solid var(--border-light);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-pill-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-pill-btn.active {
  background-color: var(--color-primary);
  color: #FFF;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(15, 82, 186, 0.2);
}

.category-count {
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
}

.category-pill-btn.active .category-count {
  background: rgba(255, 255, 255, 0.25);
}

.category-pill-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.category-pill-icon svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   9. Main Layout Grid
   ========================================================================== */
.main-content-section {
  padding: 2.5rem 0 4rem 0;
}

.comparison-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ==========================================================================
   10. Loading Skeleton
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-subtle) 25%, #e2e8f0 50%, var(--bg-surface-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-card {
  height: 180px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   11. Footer Styles
   ========================================================================== */
.main-footer {
  background-color: var(--bg-dark);
  color: #94A3B8;
  padding: 3.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: #FFF;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.affiliate-disclosure-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.4;
}

.footer-col h4 {
  color: #FFF;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-links a {
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   11.5 Smooth Transitions & Polish (Reddit-Style)
   ========================================================================== */

/* Smooth global interactions */
a, button, select, input {
  transition: all 0.15s ease;
}

/* Card hover - subtle and smooth */
article, .host-card, [role="listitem"] {
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

/* Smooth scroll for everything */
* {
  scroll-behavior: smooth;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: rgba(15, 82, 186, 0.15);
  color: var(--text-main);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   12a. Host Cards (Homepage Listing)
   ========================================================================== */

.host-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.host-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background 0.3s ease;
}

.host-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 82, 186, 0.25);
  box-shadow: 0 8px 24px rgba(15, 82, 186, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.host-card:hover::before {
  background: linear-gradient(90deg, #0F52BA, #3b82f6);
}

.host-card__inner {
  display: flex;
  gap: 16px;
  align-items: center;
}

.host-card__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
}

.host-card__rank-num {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.host-card__info {
  flex: 1;
  min-width: 0;
}

.host-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.host-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.host-card__name:hover {
  color: #0F52BA;
}

.host-card__badge {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.host-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
  background: #fffbeb;
  padding: 2px 8px;
  border-radius: 6px;
}

.host-card__metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.host-card__metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 3px 0;
}

.host-card__metric--speed svg { color: #0F52BA; }
.host-card__metric--uptime svg { color: #10b981; }
.host-card__metric--storage svg { color: #6366f1; }

.host-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.host-card__price {
  text-align: right;
}

.host-card__price-original {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-bottom: 1px;
}

.host-card__price-current {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0F52BA;
  line-height: 1;
}

.host-card__price-current small {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.host-card__discount {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  text-align: center;
}

.host-card__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #0F52BA;
  color: #ffffff;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 82, 186, 0.2);
}

.host-card__cta:hover {
  background: #0a3d8f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 82, 186, 0.3);
}

.host-card__cta:active {
  transform: translateY(0);
}

/* ==========================================================================
   12. Mobile Responsive Breakpoints
   ========================================================================== */

/* ---- Tablet: 1024px and below ---- */
@media (max-width: 1024px) {
  .comparison-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .host-card {
    grid-template-columns: 1fr;
  }

  .host-brand-col {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }

  .host-pricing-col {
    border-left: none;
    border-top: 1px solid var(--border-light);
    flex-direction: row;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
  }
}

/* ---- Mobile: 768px and below ---- */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on mobile */
  html, body {
    overflow-x: hidden;
  }

  /* Ensure all sections stay within viewport */
  section, main, .container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Header - compact with hamburger */
  .header-primary-inner {
    flex-wrap: nowrap;
    height: auto;
    padding: 0.75rem 0;
    gap: 0.6rem;
  }

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

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  /* Hide search bar and submit button on mobile header */
  .header-search-bar-central {
    display: none;
  }

  .header-actions-right {
    display: none;
  }

  /* Show hamburger on mobile */
  .mobile-hamburger {
    display: flex;
  }

  .compare-btn-header span {
    display: none;
  }

  .compare-btn-header {
    padding: 0.5rem 0.7rem;
  }

  /* Secondary Nav - scrollable on mobile */
  .menu-bar-inner {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .nav-logo-scroll {
    display: none;
  }

  .nav-scroll-arrow {
    display: none;
  }

  .menu-nav-list {
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 0 0.25rem;
    width: auto;
  }

  .menu-nav-link {
    font-size: 0.78rem;
    padding: 0.6rem 0.6rem;
    gap: 0.3rem;
    white-space: nowrap;
    border-radius: var(--radius-pill);
  }

  .menu-nav-link.active {
    background: var(--color-primary-light);
  }

  .menu-nav-link.active::after {
    display: none;
  }

  .menu-nav-icon svg {
    width: 14px;
    height: 14px;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0 1.5rem 0;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  /* Homepage sidebar layout override (inline styles) - FORCE single column */
  [style*="grid-template-columns: 240px"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 280px"] {
    grid-template-columns: 1fr !important;
  }

  /* Hide filter sidebar on mobile */
  #filterSidebar {
    display: none !important;
  }

  /* Category pills */
  .category-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  /* All inline grid sections - force single column on mobile */
  [style*="grid-template-columns: repeat(auto-fill, minmax(280px"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(auto-fill, minmax(300px"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline padding reductions */
  [style*="padding: 48px 0"] {
    padding: 28px 0 !important;
  }

  [style*="padding: 60px 0"] {
    padding: 32px 0 !important;
  }

  /* Category filter sticky top - adjust for mobile nav height */
  .category-filter-section {
    top: 48px !important;
  }

  /* Homepage host cards - responsive stacking */
  .host-card__inner {
    flex-wrap: wrap;
  }

  .host-card__info {
    flex-basis: calc(100% - 62px);
  }

  .host-card__actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #f1f5f9;
  }

  .host-card__cta {
    padding: 10px 24px;
  }

  /* Host cards - stack columns */
  .host-card {
    grid-template-columns: 1fr;
  }

  .host-brand-col {
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    text-align: left;
  }

  .host-logo-box {
    width: 60px;
    height: 40px;
    margin-bottom: 0;
  }

  .host-details-col {
    padding: 1rem;
  }

  .host-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .host-pricing-col {
    border-left: none;
    border-top: 1px solid var(--border-light);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 0.8rem;
  }

  .price-amount {
    font-size: 1.8rem;
  }

  .cta-claim-btn {
    width: auto;
    padding: 0.7rem 1.2rem;
    font-size: 0.88rem;
  }

  /* Comparisons grid */
  [style*="grid-template-columns: repeat(auto-fill, minmax(320px"] {
    grid-template-columns: 1fr !important;
  }

  /* Coupons grid */
  [style*="grid-template-columns: repeat(auto-fill, minmax(280px"] {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  /* Compare dock */
  .compare-dock-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .compare-selected-hosts {
    justify-content: center;
  }

  /* Modal */
  .modal-container {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 1rem 1.2rem;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  /* Results bar */
  .results-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
  }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
  }
}

/* ---- Small Mobile: 480px and below ---- */
@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  /* Header compact */
  .brand-logo {
    font-size: 1.2rem;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .header-actions-right {
    gap: 0.4rem;
  }

  .compare-btn-header {
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
  }

  /* Nav items even smaller */
  .menu-nav-link {
    font-size: 0.72rem;
    padding: 0.5rem 0.5rem;
  }

  .menu-nav-icon svg {
    width: 12px;
    height: 12px;
  }

  .nav-badge-hot {
    font-size: 0.55rem;
    padding: 0.05rem 0.25rem;
  }

  /* Host cards tighter */
  .host-specs-grid {
    grid-template-columns: 1fr;
  }

  /* Homepage host cards - fully stacked on small screens */
  .host-card {
    padding: 14px 16px;
  }

  .host-card__inner {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .host-card__rank {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 28px;
    height: 28px;
  }

  .host-card__rank-num {
    font-size: 13px;
  }

  .host-card__info {
    padding-left: 38px;
    flex-basis: auto;
  }

  .host-card__name {
    font-size: 15px;
  }

  .host-card__metrics {
    gap: 8px;
  }

  .host-card__actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
  }

  .host-card__price-current {
    font-size: 18px;
  }

  .host-card__cta {
    padding: 9px 16px;
    font-size: 12px;
  }

  .host-pricing-col {
    flex-direction: column;
    text-align: center;
  }

  .cta-claim-btn {
    width: 100%;
  }

  /* Comparison cards */
  .comparison-matrix-table {
    font-size: 0.75rem;
  }

  /* Footer tighter */
  .main-footer {
    padding: 2rem 0 1.5rem 0;
  }

  .footer-brand h3 {
    font-size: 1.2rem;
  }
}
