/* 99firms - Modern Coupon & Deal Pages */
/* Color palette: Blue primary, blue accent, warm grays */

:root {
  --color-primary: #1e40af;
  --color-primary-light: #2563eb;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-code-bg: #dbeafe;
  --color-deal-bg: #ecfdf5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-gray-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

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

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

/* ===== HEADER ===== */
.site-header {
  background: #111827;
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 3.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1.5rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo span {
  color: var(--color-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav a {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  border-radius: 0.375rem;
  transition: background 0.15s, color 0.15s;
}

.header-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ===== MEGA MENU ===== */
.nav-mega-wrap {
  position: relative;
}

.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-mega-trigger svg {
  transition: transform 0.2s;
}

.nav-mega-wrap:hover .nav-mega-trigger svg {
  transform: rotate(180deg);
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.5rem;
  z-index: 150;
}

.nav-mega-wrap:hover .mega-menu {
  display: flex;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.mega-menu > :first-child {
  border-radius: 12px 0 0 12px;
}

.mega-menu > :last-child {
  border-radius: 0 12px 12px 0;
}

.mega-col {
  background: #fff;
  padding: 1.25rem 1.5rem;
  min-width: 180px;
  border-right: 1px solid var(--color-gray-100);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.mega-col:last-of-type {
  border-right: none;
}

.mega-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-400);
  margin-bottom: 0.6rem;
}

.mega-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray-700);
  text-decoration: none;
  transition: color 0.15s;
}

.mega-col a:hover {
  color: var(--color-accent);
  background: none;
}

.mega-view-all {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-gray-100);
  color: var(--color-accent) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
}

.mega-cta {
  background: var(--color-gray-50);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  min-width: 200px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-radius: 0 12px 12px 0;
}

.mega-cta-inner {
  text-align: center;
}

.mega-cta-inner strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-gray-900);
  margin-bottom: 0.35rem;
}

.mega-cta-inner p {
  font-size: 0.8rem;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.mega-cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.mega-cta-btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

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

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  transition: all 0.2s;
}

.header-search:focus-within {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.header-search svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #9ca3af;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.825rem;
  font-family: inherit;
  width: 9rem;
  color: #fff;
  transition: width 0.2s;
}

.header-search input::placeholder {
  color: #6b7280;
}

.header-search input:focus {
  width: 12rem;
}

.browse-stores-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f97316;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.browse-stores-btn:hover {
  background: #ea580c;
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: none;
  border-radius: 0.375rem;
  cursor: pointer;
  color: #d1d5db;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ===== MOBILE DRAWER ===== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  height: 100%;
  width: 18rem;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.drawer-header span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
}

.drawer-close {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: none;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background 0.15s;
}

.drawer-close:hover {
  background: var(--color-gray-100);
}

.drawer-search {
  padding: 0.75rem 1.25rem;
}

.drawer-search form {
  display: flex;
  align-items: center;
  background: var(--color-gray-100);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
}

.drawer-search svg {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.drawer-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  font-family: inherit;
  width: 100%;
  color: var(--color-gray-800);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem;
}

.drawer-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.375rem;
  transition: background 0.15s, color 0.15s;
}

.drawer-nav a:hover {
  background: #eff6ff;
  color: #2563eb;
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-gray-200);
}

.drawer-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #f97316;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem;
  border-radius: 9999px;
  transition: background 0.15s;
  text-decoration: none;
}

.drawer-footer a:hover {
  background: #ea580c;
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-900);
  color: var(--color-white);
  padding: 3.5rem 1rem 3rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(99,102,241,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-gray-400);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray-400);
  max-width: 560px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

/* Hero search bar */
.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-radius: 100px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 16px 40px rgba(0,0,0,0.35);
}

.hero-search-icon {
  position: absolute;
  left: 1.15rem;
  width: 20px;
  height: 20px;
  color: var(--color-gray-400);
  pointer-events: none;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.95rem 1rem 0.95rem 3rem;
  font-size: 1rem;
  color: var(--color-gray-800);
  border-radius: 100px 0 0 100px;
  min-width: 0;
}

.hero-search input::placeholder {
  color: var(--color-gray-400);
}

.hero-search button {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  margin: 4px;
  transition: background 0.2s;
}

.hero-search button:hover {
  background: var(--color-accent-hover);
}

/* Popular links below search */
.hero-popular {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.hero-popular span {
  color: var(--color-gray-500);
  font-weight: 500;
}

.hero-popular a {
  color: var(--color-gray-300);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s, color 0.2s;
  font-weight: 500;
}

.hero-popular a:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.25);
}

/* ===== HOMEPAGE HERO (REDESIGN) ===== */
.home-hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 50%, #f8fafc 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(59,130,246,0.08);
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-pill svg { flex-shrink: 0; }
.home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-typing {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}
.hero-typing .word {
  display: inline-block;
  opacity: 0;
  position: absolute;
  left: 0;
  white-space: nowrap;
}
.hero-typing .word.active {
  opacity: 1;
  position: relative;
}
.hero-typing::after {
  content: '|';
  color: var(--color-accent);
  font-weight: 300;
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 2px;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes typeIn {
  0% { opacity: 0; max-width: 0; }
  1% { opacity: 1; max-width: 0; }
  100% { opacity: 1; max-width: 500px; }
}
@keyframes typeOut {
  0% { opacity: 1; max-width: 500px; }
  99% { opacity: 1; max-width: 0; }
  100% { opacity: 0; max-width: 0; }
}
.hero-typing .word.typing-in {
  position: relative;
  opacity: 1;
  overflow: hidden;
  max-width: 0;
  animation: typeIn 0.6s steps(12) forwards;
}
.hero-typing .word.typing-out {
  position: relative;
  opacity: 1;
  overflow: hidden;
  animation: typeOut 0.4s steps(12) forwards;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.popular-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.popular-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-gray-400);
}
.popular-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid var(--color-gray-200);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-gray-600);
  background: var(--color-white);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.popular-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(59,130,246,0.04);
}

/* ===== TRUST BAR (REDESIGN) ===== */
.trust-bar {
  padding: 48px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: background 0.25s ease;
}
.trust-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.08);
  color: var(--color-accent);
}
.trust-item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  line-height: 1.5;
}
.trust-divider { display: none; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 80px 0;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}
.hiw-header {
  text-align: center;
  margin-bottom: 16px;
}
.hiw-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}
.hiw-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--color-gray-400);
  max-width: 520px;
  margin: 0 auto 48px;
}
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.hiw-step {
  position: relative;
  overflow: visible;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hiw-step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: transparent;
}
.hiw-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -18px;
  left: -18px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.hiw-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(59,130,246,0.08);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.hiw-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 8px;
}
.hiw-step p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}
.hiw-connector {
  display: none;
}
@media (min-width: 768px) {
  .hiw-connector {
    display: block;
    position: absolute;
    top: 50%;
    right: -14px;
    width: 28px;
    text-align: center;
    color: var(--color-gray-400);
    font-size: 1.25rem;
    z-index: 1;
    transform: translateY(-50%);
  }
}
.live-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-gray-200);
}
.live-stat { text-align: center; }
.live-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}
.live-stat-num .accent { color: var(--color-accent); }
.live-stat-label {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  font-weight: 500;
  margin-top: 2px;
}

/* Legacy trust bar (kept for backward compat) */
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* ===== RECENTLY ADDED ===== */
.recent-stores {
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1.25rem 0;
}

.recent-stores-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.recent-stores-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gray-700);
  margin: 0;
}

.recent-stores-link {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.recent-stores-link:hover {
  text-decoration: underline;
}

.recent-stores-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) transparent;
}
.recent-stores-scroll::-webkit-scrollbar {
  height: 4px;
}
.recent-stores-scroll::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 2px;
}

.recent-store-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.recent-store-chip:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

.recent-store-chip img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--color-gray-50);
}

.recent-store-chip span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

.recent-store-count {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: var(--color-gray-500) !important;
  background: var(--color-gray-100);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ===== SECTION ===== */
.section {
  padding: 2.5rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== COUPON CARDS ===== */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.coupon-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.coupon-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-300);
}

.coupon-card.featured {
  border-left: 3px solid var(--color-accent);
}

.coupon-store-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.coupon-store-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.coupon-body {
  flex: 1;
  min-width: 0;
}

.coupon-store-name {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.coupon-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coupon-desc {
  font-size: 0.82rem;
  color: var(--color-gray-500);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coupon-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coupon-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--color-code-bg);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-gray-800);
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
  overflow: hidden;
  position: relative;
}

.coupon-code-btn .code-label {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.coupon-code-btn .code-hidden {
  padding: 0.6rem 0.85rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--color-gray-500);
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 60%);
  position: relative;
}

.coupon-code-btn .code-scissors {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  opacity: 0;
  transition: opacity 0.2s;
}

.coupon-code-btn:hover .code-scissors {
  opacity: 1;
}

.coupon-code-btn:hover .code-label {
  background: var(--color-accent-hover);
}

.coupon-code-btn.revealed {
  border-color: var(--color-success);
  border-style: solid;
}

.coupon-code-btn.revealed .code-label {
  background: var(--color-success);
}

.coupon-code-btn.revealed .code-hidden {
  background: var(--color-deal-bg);
  color: var(--color-gray-900);
  font-weight: 700;
}

.coupon-code-btn.revealed .code-scissors {
  display: none;
}

.coupon-deal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.coupon-deal-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.coupon-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-verified {
  background: var(--color-deal-bg);
  color: var(--color-success);
}

.badge-featured {
  background: #dbeafe;
  color: #1e40af;
}

.coupon-expiry {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-left: auto;
}

/* ===== STORE CARDS ===== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.store-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.store-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.store-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.store-card-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--color-gray-100);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-card-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.store-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
}

.store-card-count {
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

/* ===== CATEGORY CARDS ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.category-card i {
  font-size: 1.75rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.category-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.15rem;
}

.category-card-count {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.category-card-wrap {
  display: flex;
  flex-direction: column;
}

.category-store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.5rem 0;
}

.category-store-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gray-600);
  background: var(--color-gray-100);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.category-store-tag:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ===== STORE PAGE ===== */
.store-header {
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 20px 24px;
}

.store-header .container {
  max-width: 900px;
}

.store-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.store-logo-lg {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 8px;
}

.store-logo-lg img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.store-info {
  flex: 1;
  min-width: 0;
}

.store-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.store-info p {
  color: var(--color-gray-500);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.store-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0.35rem;
}

.store-rating .star {
  display: inline-block;
  vertical-align: middle;
}

.store-rating-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-gray-900);
  margin-left: 0.15rem;
}

.store-rating-count {
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

.store-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.store-stat {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
}

.store-stat strong {
  color: var(--color-gray-900);
}

.hero-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gray-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.hero-cta:hover {
  background: #1e293b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.hero-cta svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-cta:hover svg {
  transform: translateX(2px);
}
.hero-subtitle {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  line-height: 1.5;
}

/* Single-column store layout (no sidebar) */
.store-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.store-main {
  min-width: 0;
}

.store-sidebar {
  display: none;
}

.sidebar-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-gray-900);
}

/* Sidebar: Today's Active Offers */
.sidebar-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: 0.85rem;
  color: var(--color-gray-600);
}
.sidebar-stats li:last-child { border-bottom: none; }
.sidebar-stats li strong {
  color: var(--color-gray-900);
  font-weight: 600;
}

/* Sidebar: Why Shop / Checklist */
.sidebar-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.84rem;
  color: var(--color-gray-700);
  line-height: 1.4;
}
.sidebar-checklist li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Sidebar: Hints & Tips */
.sidebar-tiplist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-tiplist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.84rem;
  color: var(--color-gray-600);
  line-height: 1.4;
}
.sidebar-tiplist li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-store-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--color-gray-700);
  font-size: 0.85rem;
}

.sidebar-store-link:hover {
  color: var(--color-accent);
}

.sidebar-store-link img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

/* Coupon list (store page) */
.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-tier-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coupon-tier-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

.coupon-tier-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.coupon-tier-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--color-blue-50, #eff6ff);
  color: var(--color-blue-600, #2563eb);
  font-size: 0.8rem;
  font-weight: 600;
}

.coupon-list-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.coupon-list-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.coupon-list-item.featured,
.coupon-list-item.staff-pick {
  border-left: none;
}

/* Editor's Choice coupon accent */
.coupon-list-item.editor-choice {
  border-left: none;
}

/* Tier badges inline with coupon title */
.coupon-list-badge {
  margin-bottom: 0.25rem;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-badge-editor {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.tier-badge-staff {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}


.coupon-type-badge {
  width: 72px;
  height: 72px;
  min-height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.25rem;
  gap: 1px;
}

.coupon-type-badge.type-code {
  background: var(--color-code-bg);
  color: #1e40af;
}

.coupon-type-badge.type-deal {
  background: var(--color-deal-bg);
  color: #065f46;
}

.coupon-type-badge .discount-value {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.coupon-type-badge .discount-off {
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.8;
}

.coupon-type-badge .discount-type {
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(0,0,0,0.06);
}

.coupon-list-body {
  flex: 1;
  min-width: 0;
}

.coupon-list-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gray-900);
  margin-bottom: 0.2rem;
}

.coupon-list-desc {
  font-size: 0.82rem;
  color: var(--color-gray-500);
}

.coupon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.coupon-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

.coupon-meta-item svg {
  opacity: 0.65;
  flex-shrink: 0;
}

.coupon-meta-success {
  color: #16a34a;
}

.coupon-meta-success svg {
  stroke: #16a34a;
}

.coupon-list-action {
  flex-shrink: 0;
}

/* ===== Code Reveal Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
}

.modal-card {
  background: var(--color-white);
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--color-gray-200);
  padding: 1.75rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-enter {
  animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-gray-100);
  color: var(--color-gray-500);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-700);
}

.modal-store-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-store-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--color-gray-100);
}

.modal-store-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gray-900);
}

.modal-coupon-title {
  font-size: 0.8rem;
  color: var(--color-gray-500);
  margin-top: 0.1rem;
}

.modal-code-box {
  background: var(--color-gray-50);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.modal-code-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
  margin-bottom: 0.5rem;
}

.modal-code-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  letter-spacing: 0.15em;
  word-break: break-all;
  user-select: all;
}

.modal-copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 0.5rem;
}

.modal-copy-btn:hover {
  background: var(--color-primary-600, #1a56db);
}

.modal-flash {
  animation: flashGreen 0.3s ease;
}

@keyframes flashGreen {
  0%  { background: #16a34a; }
  100% { background: var(--color-primary); }
}

.modal-visit-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 0;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.modal-visit-link:hover {
  color: var(--color-primary-600, #1a56db);
}

.modal-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-gray-400);
  margin-top: 0.25rem;
}

/* ===== FAQs ===== */
.faq-section {
  margin-top: 2rem;
}

.faq-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gray-900);
  margin-bottom: 0.35rem;
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ===== STORE DESCRIPTION ===== */
.store-description {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.store-description h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.store-description p {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.blog-card-image {
  width: 100%;
  height: 180px;
  background: var(--color-gray-200);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog post */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-post h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-gray-900);
}

.blog-post-meta {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.blog-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-gray-700);
}

.blog-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.blog-post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.blog-post-content p {
  margin-bottom: 1rem;
}

.blog-post-content ul, .blog-post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

/* ===== STATIC PAGES ===== */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.static-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-gray-900);
}

.static-page-updated {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.static-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--color-gray-800);
}

.static-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-gray-700);
}

.static-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--color-gray-700);
}

.static-page ul, .static-page ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.5rem;
}

.static-page li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--color-gray-700);
}

.static-page a {
  color: var(--color-blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.static-page a:hover {
  color: var(--color-blue-700);
}

/* About / Contact / Static page enhancements */
.sp-lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

.sp-mission {
  background: linear-gradient(135deg, var(--color-blue-50), #f0f4ff);
  border-left: 4px solid var(--color-blue-600);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.sp-mission p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-gray-700);
  margin: 0;
  line-height: 1.8;
}

.sp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.sp-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  background: var(--color-white);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.sp-step:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--color-blue-200);
}
.sp-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-blue-600);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 4px;
}
.sp-step-body p {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.65;
}

.sp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.sp-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--color-gray-50);
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
}
.sp-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}
.sp-stat-num span {
  color: var(--color-blue-600);
}
.sp-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-gray-500);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.sp-value {
  padding: 1.25rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  background: var(--color-white);
}
.sp-value h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 6px;
}
.sp-value p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.65;
}

.sp-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.sp-contact-card {
  padding: 1.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  background: var(--color-white);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.sp-contact-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--color-blue-200);
}
.sp-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 8px;
}
.sp-contact-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin: 0 0 12px;
  line-height: 1.65;
}
.sp-contact-card a.sp-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue-600);
  text-decoration: none;
}
.sp-contact-card a.sp-email:hover {
  text-decoration: underline;
}

.sp-response {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-gray-50);
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
  margin: 1.5rem 0 2rem;
}
.sp-response-item {
  flex: 1;
  text-align: center;
}
.sp-response-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 2px;
}
.sp-response-item span {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

@media (max-width: 640px) {
  .sp-stats { grid-template-columns: repeat(2, 1fr); }
  .sp-values { grid-template-columns: 1fr; }
  .sp-contact-grid { grid-template-columns: 1fr; }
  .sp-response { flex-direction: column; gap: 1rem; }
}

/* ===== SEARCH ===== */
.search-hero {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 2rem 0;
  text-align: center;
}

.search-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.search-box {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--color-gray-300);
  border-radius: 100px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--color-accent);
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-gray-400);
}

.search-results-info {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--color-gray-400);
}

.breadcrumb a {
  color: var(--color-gray-500);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 0.35rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 0.35rem;
}

.page-header p {
  color: var(--color-gray-500);
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111827;
  color: #fff;
  padding: 3rem 0 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

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

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand span {
  color: var(--color-accent);
}

.footer-desc {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: #9ca3af;
  font-size: 0.85rem;
  padding: 0.2rem 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 2rem;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.8rem;
}

.footer-disclosure {
  color: #4b5563;
  font-size: 0.75rem;
  max-width: 48rem;
  line-height: 1.5;
}

/* ===== ERROR PAGE ===== */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-gray-300);
  margin-bottom: 0.5rem;
}

.error-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-gray-300);
  color: var(--color-gray-700);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-600);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination .active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-gray-400);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state p {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-600);
  text-decoration: none;
  transition: all 0.2s;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.filter-tag-count {
  opacity: 0.7;
  font-size: 0.75rem;
}

/* ===== STORE SEARCH ===== */
.store-search-wrap {
  margin-bottom: 1rem;
}

.store-search {
  position: relative;
  max-width: 400px;
}

.store-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-gray-400);
  pointer-events: none;
}

.store-search input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--color-white);
  transition: border-color 0.2s;
}

.store-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.store-search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-gray-400);
  line-height: 1;
}

.store-search-clear svg {
  width: 16px;
  height: 16px;
}

.store-search-clear:hover {
  color: var(--color-gray-600);
}

/* ===== ALPHABET BAR ===== */
.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.alpha-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-gray-700);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.alpha-btn:hover:not(.disabled) {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.alpha-btn.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.alpha-btn.disabled {
  opacity: 0.35;
  cursor: default;
}

/* ===== STORE GRID ===== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.store-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.store-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
}

.store-card-count {
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-gray-500);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-gray-300);
}

.text-muted {
  color: var(--color-gray-400);
  font-size: 0.85rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.5rem;
}

.hidden {
  display: none !important;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-gray-900);
  color: var(--color-white);
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== VOTE BUTTONS ===== */
.vote-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--color-gray-200);
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-gray-400);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.vote-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.vote-btn.voted-up { border-color: var(--color-success); color: #065f46; background: #ecfdf5; }
.vote-btn.voted-down { border-color: #fca5a5; color: #991b1b; background: #fef2f2; }
.vote-label { font-size: 0.6875rem; color: var(--color-gray-400); }

/* ===== CONFIDENCE BADGES ===== */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.confidence-badge svg { flex-shrink: 0; }
.confidence-badge.high { background: #ecfdf5; color: #065f46; }
.confidence-badge.medium { background: #fef3c7; color: #92400e; }
.confidence-badge.low { background: #fef2f2; color: #991b1b; }

/* ===== SUCCESS DOT ===== */
.success-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: 28px 0;
}

/* ===== COUPON TIER SECTIONS (Redesigned) ===== */
.editors-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.editors-section .coupon-tier-header h2 { font-size: 1rem; }
.editors-label {
  font-size: 0.6875rem;
  font-weight: 700;
  background: #92400e;
  color: #fff;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.editors-section .coupon-list-item { border-color: #fde68a; background: rgba(255,255,255,0.85); }
.editors-section .coupon-list-item:hover { border-color: #fbbf24; box-shadow: 0 4px 16px rgba(251,191,36,0.15); }

.staff-section {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.staff-section .coupon-tier-header h2 { font-size: 1rem; }
.staff-label {
  font-size: 0.6875rem;
  font-weight: 700;
  background: #4338ca;
  color: #fff;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.staff-section .coupon-list-item { border-color: #c7d2fe; background: rgba(255,255,255,0.85); }
.staff-section .coupon-list-item:hover { border-color: #818cf8; box-shadow: 0 4px 16px rgba(99,102,241,0.15); }

.other-coupons-desc, .deals-desc {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.count-badge {
  background: var(--color-blue-100, #dbeafe);
  color: var(--color-primary, #1e40af);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* ===== COMMUNITY FEED ===== */
.feed-section {
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 40px 24px;
}
.feed-inner { max-width: var(--max-width); margin: 0 auto; }
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.feed-header h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.feed-summary { font-size: 0.75rem; color: var(--color-gray-400); font-weight: 500; }
.feed-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.feed-list::-webkit-scrollbar { width: 4px; }
.feed-list::-webkit-scrollbar-thumb { background: var(--color-gray-200); border-radius: 4px; }
.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  font-size: 0.8125rem;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: var(--color-gray-50); }
.feed-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.feed-body { flex: 1; min-width: 0; line-height: 1.4; color: var(--color-gray-600); }
.feed-user { font-weight: 600; color: var(--color-gray-900); }
.feed-code {
  font-family: 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--color-gray-900);
}
.feed-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
}
.feed-status.worked { background: #ecfdf5; color: #065f46; }
.feed-status.failed { background: #fef2f2; color: #991b1b; }
.feed-time { flex-shrink: 0; font-size: 0.6875rem; color: var(--color-gray-400); white-space: nowrap; }

/* ===== EMAIL SIGNUP ===== */
.email-section { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }
.email-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.email-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.email-card p { font-size: 0.8125rem; color: var(--color-gray-600); margin-bottom: 20px; }
.email-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.email-form input {
  flex: 1; min-width: 0;
  padding: 10px 16px;
  border: 1px solid #93c5fd;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-gray-900);
  outline: none;
}
.email-form input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.email-form input::placeholder { color: var(--color-gray-400); }
.email-form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.email-form button:hover { background: var(--color-accent-hover); }
.email-note { font-size: 0.6875rem; color: var(--color-gray-400); margin-top: 10px; }

/* ===== STICKY TOP CTA ===== */
.sticky-cta {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-cta-text { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sticky-cta-text img {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: contain;
  padding: 4px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.sticky-cta-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}
.sticky-cta-label span { color: #60a5fa; font-weight: 800; }
.sticky-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16,185,129,0.15);
  color: #34d399;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-left: 8px;
}
.sticky-cta-badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}
.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.sticky-cta-btn:hover { background: var(--color-accent-hover); box-shadow: 0 4px 24px rgba(59,130,246,0.45); }

/* ===== SHARE SIDEBAR ===== */
.share-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.share-sidebar.visible { opacity: 1; pointer-events: auto; }
.share-sidebar .share-label {
  font-size: 0.5625rem;
  color: var(--color-gray-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-200);
  background: #fff;
  color: var(--color-gray-400);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.share-btn:hover { border-color: var(--color-accent); color: var(--color-accent); transform: scale(1.1); box-shadow: var(--shadow-md); }

/* ===== SPECIAL BADGES ===== */
.special-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.special-badge.student-badge { background: #ede9fe; color: #5b21b6; }
.special-badge.family-badge { background: #dbeafe; color: #1e40af; }
.special-badge.trial-badge { background: #ecfdf5; color: #065f46; }

/* ===== DESKTOP ADJUSTMENTS ===== */
@media (min-width: 769px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-disclosure {
    text-align: right;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .store-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-search button {
    padding: 0.85rem 1.2rem;
    font-size: 0.85rem;
  }

  .trust-bar-inner {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
  }

  .trust-divider {
    display: none;
  }

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

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

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

  .store-content {
    padding: 16px 16px 40px;
  }

  .store-header-inner {
    flex-direction: column;
    text-align: center;
  }

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

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

  .coupon-list-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .coupon-type-badge {
    align-self: center;
  }

  .coupon-list-action {
    align-self: center;
  }

  .coupon-meta {
    justify-content: center;
  }

  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .trust-item { padding: 16px; }
  .hiw-grid { grid-template-columns: 1fr; }
  .hiw-connector { display: none !important; }
  .live-stats { gap: 24px; flex-wrap: wrap; }
  .live-stat-num { font-size: 1.5rem; }
  .home-hero { padding: 48px 0 40px; }
  .home-hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 28px; }

  .share-sidebar { display: none; }
  .sticky-cta-inner { padding: 10px 16px; }
  .sticky-cta-badge { display: none; }
  .sticky-cta-btn { padding: 8px 16px; font-size: 0.8125rem; }
  .email-form { flex-direction: column; }
  .feed-time { display: none; }

  .hero-cta { display: none; }
  .store-header-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .store-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero h1 br {
    display: none;
  }
}
