/*
Theme Name: 99Coupons Theme
Theme URI: https://99coupons.com
Description: Subdomain-based coupon theme with verified deals.
Version: 1.0.0
Author: 99Coupons
Text Domain: coupon99
*/

/* ═══════════════════════════════════════
   CSS Variables
   ═══════════════════════════════════════ */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-light: #ecfdf5;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: var(--gray-50);
  --text: var(--gray-900);
  --text-secondary: var(--gray-500);
  --border: var(--gray-200);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --container: 1200px;
  --container-narrow: 720px;
  --header-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--primary-dark); }

button { cursor: pointer; font: inherit; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--gray-900);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; }

/* ═══════════════════════════════════════
   Layout
   ═══════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: var(--container-narrow); }

.site-main {
  flex: 1;
  padding-top: var(--header-h);
}

.section { padding: 4rem 0; }
.section--stores, .section--categories { background: var(--bg); }
.section--trust { background: var(--bg-alt); }

/* ═══════════════════════════════════════
   Header
   ═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.header-brand { flex-shrink: 0; }

.site-title-text {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.site-title-text span { color: var(--primary); }
a.site-title-text { text-decoration: none; }
a.site-title-text:hover { color: var(--gray-900); }

.site-logo { display: flex; align-items: center; }
.site-logo .custom-logo { height: 36px; width: auto; }

.header-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { list-style: none; display: flex; gap: 0.25rem; }
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: color 0.15s, background 0.15s;
}
.nav-menu a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--primary);
  background: var(--primary-light);
}

/* Sub-menu */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s var(--ease);
  list-style: none;
}
.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* Search in header */
.header-actions .search-form {
  display: none;
}

@media (min-width: 768px) {
  .header-actions .search-form {
    display: flex;
    position: relative;
  }
  .header-actions .search-input {
    width: 200px;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    background: var(--gray-50);
    transition: border-color 0.15s, width 0.2s;
  }
  .header-actions .search-input:focus {
    outline: none;
    border-color: var(--primary);
    width: 260px;
    background: var(--white);
  }
  .header-actions .search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    background: none;
    color: var(--gray-400);
    border: none;
  }
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  padding: 0.5rem;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: all 0.2s;
}

@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}
@media (max-width: 767px) {
  .header-nav { display: none; }
}

/* ═══════════════════════════════════════
   Mobile Drawer
   ═══════════════════════════════════════ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}
.mobile-overlay.is-visible { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  padding: 1.5rem;
}
.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-drawer-close {
  padding: 0.5rem;
  color: var(--gray-500);
}

.mobile-menu { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--gray-100); }
.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  color: var(--gray-700);
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .sub-menu {
  list-style: none;
  padding-left: 1rem;
}

.mobile-drawer .search-form {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}
.mobile-drawer .search-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
}
.mobile-drawer .search-submit {
  padding: 0.6rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-xs);
  border: none;
}

/* ═══════════════════════════════════════
   Buttons
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn--secondary:hover { background: var(--gray-200); }

.btn--visit {
  background: var(--accent);
  color: var(--white);
  width: 100%;
}
.btn--visit:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn--reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(255,255,255,0.3);
  min-width: 140px;
}
.btn--reveal:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.btn-code-partial {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.btn-label {
  font-size: 0.75rem;
  opacity: 0.85;
}

.btn--deal {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  min-width: 140px;
}
.btn--deal:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--subscribe {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  padding: 0.6rem;
}
.btn--subscribe:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn--load-more {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 2rem auto 0;
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.btn--load-more:hover { background: var(--gray-200); }

.btn--lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* ═══════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════ */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f0ff 50%, var(--gray-50) 100%);
  text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.hero-search { margin-bottom: 1.5rem; }
.hero-search .search-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-search .search-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  font-size: 1rem;
  outline: none;
}
.hero-search .search-submit {
  padding: 0.875rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
}
.hero-search .search-submit:hover { background: var(--primary-dark); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}
.trust-item svg { color: var(--accent); }

/* Hero — Recently Updated Store Chips */
.hero-stores {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}
.hero-stores-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.hero-stores-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}
.hero-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
}
.hero-store-chip:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.hero-store-chip-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
}
.hero-store-chip-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-store-chip-logo .store-logo-initial {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}
.hero-store-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hero-store-chip-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}
.hero-store-chip-count {
  font-size: 0.7rem;
  color: var(--gray-400);
}

/* ═══════════════════════════════════════
   Section Headers
   ═══════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-header h2 { margin: 0; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.section-link:hover { color: var(--primary-dark); }

/* ═══════════════════════════════════════
   Store Cards Grid
   ═══════════════════════════════════════ */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.store-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s var(--ease);
  background: var(--white);
}
.store-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.store-card-link {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.store-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}

.store-card-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-card-logo img { width: 100%; height: 100%; object-fit: cover; }

.store-card-info h3 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}
.store-card-count {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.store-card-excerpt {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.store-card-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.store-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ═══════════════════════════════════════
   Categories Grid
   ═══════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.category-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}
.category-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.category-card:hover .category-card-icon {
  background: var(--white);
}
.category-card-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
}
.category-card-count {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════
   Trust Cards
   ═══════════════════════════════════════ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.trust-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.trust-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  margin-bottom: 1rem;
}
.trust-card h3 { margin-bottom: 0.5rem; }
.trust-card p { color: var(--gray-500); font-size: 0.9rem; }

/* ═══════════════════════════════════════
   Archive Hero
   ═══════════════════════════════════════ */
.archive-hero {
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.archive-hero h1 { margin-bottom: 0.375rem; }
.archive-hero p { color: var(--gray-500); font-size: 1rem; }

/* ═══════════════════════════════════════
   Store Page — Hero
   ═══════════════════════════════════════ */
.store-hero {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--border);
}

.store-hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 767px) {
  .store-hero-inner { grid-template-columns: 1fr; }
}

.store-hero-main {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (max-width: 575px) {
  .store-hero-main { flex-direction: column; align-items: center; text-align: center; }
}

.store-hero-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--white);
}
.store-hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.store-hero-content h1 { margin-bottom: 0.5rem; display: inline; }

.store-hero-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 575px) {
  .store-hero-title-row { justify-content: center; }
}

.savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.savings-badge svg { flex-shrink: 0; }

.store-hero-intro-wrap { position: relative; margin-bottom: 0.75rem; }
.store-hero-intro {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}
.store-hero-intro--long {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-hero-intro-wrap.is-expanded .store-hero-intro--long {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.intro-toggle {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}
.intro-toggle:hover { text-decoration: underline; }
.intro-toggle svg { transition: transform 0.2s; }
.store-hero-intro-wrap.is-expanded .intro-toggle svg { transform: rotate(180deg); }

.store-hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-divider { color: var(--gray-300); }
.status-item { display: inline-flex; align-items: center; gap: 0.25rem; }
.status-item--verified { color: var(--accent); font-weight: 500; }

.store-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.store-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}
.store-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Store Hero — Panel */
.store-hero-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.store-hero-actions { margin-bottom: 1rem; }
.store-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.store-hero-metric {
  padding: 0.5rem 0;
}
.store-hero-metric-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}
.store-hero-metric-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}
.store-hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

/* ═══════════════════════════════════════
   Store Page — Layout
   ═══════════════════════════════════════ */
.store-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2.5rem 0;
  align-items: start;
}
@media (max-width: 899px) {
  .store-layout { grid-template-columns: 1fr; }
}

.coupons-header {
  margin-bottom: 1.5rem;
}
.coupons-header h2 { margin-bottom: 0.25rem; }
.coupons-header p { color: var(--gray-500); font-size: 0.9rem; }

/* Filter Tabs */
.coupon-filters {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  width: fit-content;
}
.filter-tab {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  border-radius: var(--radius-xs);
  transition: all 0.15s var(--ease);
  background: none;
  border: none;
  cursor: pointer;
}
.filter-tab:hover { color: var(--gray-700); }
.filter-tab.is-active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

.coupons-section--unverified { margin-top: 3rem; opacity: 0.8; }

/* ═══════════════════════════════════════
   Coupon Cards
   ═══════════════════════════════════════ */
.coupons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coupon-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  overflow: hidden;
}
.coupon-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.coupon-card--featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
}
.coupon-card--expired { opacity: 0.65; }
.coupon-card--lazy { display: none; }

/* Filtered out by JS */
.coupon-card--filtered { display: none; }

/* TOP OFFER badge */
.coupon-card-top-badge {
  position: absolute;
  top: 0;
  left: 1.5rem;
  padding: 0.2rem 0.625rem 0.3rem;
  background: var(--warning);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  z-index: 1;
}

.coupon-card-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
}
.coupon-card--top-offer .coupon-card-inner {
  padding-top: 1.75rem;
}

/* Discount Visual */
.coupon-card-discount {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px dashed;
}
.coupon-card-discount--\% {
  background: #eef2ff;
  border-color: var(--primary);
  color: var(--primary-dark);
}
.coupon-card-discount--\$ {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.coupon-card-discount--free {
  background: #fef3c7;
  border-color: var(--warning);
  color: #92400e;
}
.coupon-card-discount--bogo {
  background: #fce7f3;
  border-color: #ec4899;
  color: #be185d;
}
.coupon-card-discount--deal {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-600);
}
.discount-value {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}
.discount-sublabel {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.125rem;
}

@media (max-width: 575px) {
  .coupon-card-inner { flex-direction: column; align-items: stretch; }
  .coupon-card-discount {
    width: 100%;
    height: auto;
    flex-direction: row;
    gap: 0.375rem;
    padding: 0.625rem;
  }
}

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

.coupon-card-badge {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge--code { background: #dbeafe; color: #1e40af; }
.badge--deal { background: #fef3c7; color: #92400e; }
.badge--verified { background: var(--accent-light); color: var(--accent-dark); }

.coupon-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.coupon-card-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.375rem;
}
/* Coupon Meta Bar */
.coupon-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}
.coupon-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
  padding: 0.125rem 0;
}
.coupon-meta-item + .coupon-meta-item {
  margin-left: 1rem;
}
.coupon-meta-item svg { color: var(--gray-400); flex-shrink: 0; }
.coupon-meta-item--verified svg { color: var(--accent); }
.coupon-meta-item--expired { color: var(--danger); }
.coupon-meta-item--expired svg { color: var(--danger); }
@media (max-width: 600px) {
  .coupon-card-meta { gap: 0.125rem; }
  .coupon-meta-item + .coupon-meta-item { margin-left: 0.625rem; }
  .coupon-meta-item { font-size: 0.72rem; }
}

.coupon-card-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Action Meta (success rate + used today) */
.coupon-card-action-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 0.125rem;
}
.action-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.action-meta-item--success {
  color: var(--accent);
  font-weight: 600;
}

/* Feedback buttons */
.coupon-card-feedback {
  display: flex;
  gap: 0.25rem;
}
.feedback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  color: var(--gray-400);
  transition: all 0.15s;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.feedback-btn:hover { color: var(--gray-600); border-color: var(--gray-300); }
.feedback-btn--up.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.feedback-btn--down.is-active { color: var(--danger); border-color: var(--danger); background: #fef2f2; }

/* ═══════════════════════════════════════
   Store Sidebar
   ═══════════════════════════════════════ */
.store-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.sidebar-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.sidebar-card--trust {
  text-align: center;
  border-color: var(--accent);
  background: var(--accent-light);
}
.sidebar-card--trust .sidebar-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.sidebar-card--trust h3 { color: var(--accent-dark); }

/* Subscribe form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.subscribe-input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
}
.subscribe-input:focus {
  outline: none;
  border-color: var(--primary);
}
.subscribe-status {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.subscribe-status--success { color: var(--accent); }
.subscribe-status--error { color: var(--danger); }

/* Stats */
.stats-list {
  list-style: none;
}
.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem;
}
.stats-list li:last-child { border-bottom: none; }
.stats-label { color: var(--gray-500); }
.stats-value { font-weight: 600; color: var(--gray-900); }

/* Related stores */
.related-stores-list {
  list-style: none;
}
.related-stores-list li { margin-bottom: 0.5rem; }
.related-store-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
  color: inherit;
  text-decoration: none;
}
.related-store-link:hover { background: var(--gray-50); }
.related-store-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--gray-100);
}
.related-store-logo img { width: 100%; height: 100%; object-fit: cover; }
.related-store-name { font-size: 0.875rem; font-weight: 500; }

/* ─── Inline Subscribe CTA ─── */
.inline-subscribe {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f0ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius);
}
.inline-subscribe-content {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.inline-subscribe-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: var(--radius-xs);
  color: var(--primary);
  flex-shrink: 0;
}
.inline-subscribe h4 {
  font-size: 0.95rem;
  margin-bottom: 0.125rem;
}
.inline-subscribe p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
}
.inline-subscribe-form {
  display: flex;
  gap: 0.5rem;
}
.inline-subscribe-form .subscribe-input {
  flex: 1;
}
.inline-subscribe-form .btn {
  white-space: nowrap;
}
@media (max-width: 575px) {
  .inline-subscribe-form { flex-direction: column; }
}

/* ─── How to Apply ─── */
.how-to-apply {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.how-to-apply h2 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.how-to-apply-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.how-to-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.how-to-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.how-to-step-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.125rem;
}
.how-to-step-content p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
}

/* ─── Sidebar: Verified Badge ─── */
.sidebar-card--verified-badge {
  text-align: center;
  border-color: var(--accent);
  background: var(--accent-light);
}
.verified-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.sidebar-card--verified-badge h3 {
  color: var(--accent-dark);
  font-size: 0.95rem;
}
.sidebar-card--verified-badge p {
  font-size: 0.8rem;
  color: var(--accent-dark);
  opacity: 0.8;
  margin-bottom: 0;
}

/* ─── Sidebar: Why Shop ─── */
.why-shop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.why-shop-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}
.why-shop-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ─── Sidebar: Hints & Tips ─── */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tips-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}

/* ─── Shoppers Also Like ─── */
.section--also-like {
  padding: 3rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* Store logo initial fallback */
.store-logo-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
}

/* FAQs */
.store-faqs {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.store-faqs h2 { margin-bottom: 1rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  content: '−';
}
.faq-question::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   Coupon Modal
   ═══════════════════════════════════════ */
.coupon-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--ease);
}
.coupon-modal.is-open { opacity: 1; visibility: visible; }

.coupon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.coupon-modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.2s var(--ease);
}
.coupon-modal.is-open .coupon-modal-content { transform: scale(1); }

.coupon-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--gray-400);
  padding: 0.25rem;
}
.coupon-modal-close:hover { color: var(--gray-600); }

.coupon-modal-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}
.coupon-modal-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.coupon-modal-code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  padding: 1rem;
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  user-select: all;
}

.coupon-modal-status {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
  margin-bottom: 0.5rem;
}
.coupon-modal-status.is-visible { opacity: 1; }

.coupon-modal-redirect {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.coupon-modal-countdown {
  font-weight: 700;
  color: var(--primary);
}

.coupon-modal-go {
  width: 100%;
}

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

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s var(--ease);
  background: var(--white);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card-thumb { aspect-ratio: 3/2; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}
.blog-card-body h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.blog-card-body p { font-size: 0.85rem; color: var(--gray-500); }

/* Single Post */
.single-post-header {
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

/* Breadcrumb */
.single-post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.single-post-breadcrumb a {
  color: var(--gray-400);
  text-decoration: none;
}
.single-post-breadcrumb a:hover { color: var(--primary); }
.single-post-breadcrumb svg { color: var(--gray-300); }

/* Category badges */
.single-post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.badge--category {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}
.badge--category:hover {
  background: var(--primary);
  color: var(--white);
}

.single-post-excerpt {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 1.25rem;
}
.single-post-meta-sep { color: var(--gray-300); }
.single-post-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.single-post-author-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.single-post-author-chip span {
  font-weight: 600;
  color: var(--gray-700);
}
.single-post-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.single-post-hero {
  margin: 2rem 0;
}
.single-post-hero img { border-radius: var(--radius); }

/* Two-column layout */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}
@media (max-width: 899px) {
  .single-post-layout { grid-template-columns: 1fr; }
}

.single-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Author Box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.author-box-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}
.author-box-label {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.author-box-name {
  font-size: 1rem;
  margin: 0.125rem 0 0.25rem;
}
.author-box-bio {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

/* Table of Contents */
.sidebar-card--toc h3 {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.sidebar-card--toc h3 svg { color: var(--gray-400); }
.toc-nav {
  display: flex;
  flex-direction: column;
}
.toc-nav a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.8rem;
  color: var(--gray-500);
  text-decoration: none;
  border-left: 2px solid var(--gray-100);
  padding-left: 0.75rem;
  transition: all 0.15s;
  line-height: 1.4;
}
.toc-nav a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}
.toc-nav a.is-active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.toc-nav a.toc-h3 { padding-left: 1.5rem; font-size: 0.75rem; }

/* Related Posts Section */
.section--related-posts {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* Prose */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.prose h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.375rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose h4 { font-size: 1.15rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.25rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.prose a { text-decoration: underline; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  position: relative;
}
.prose blockquote::before {
  content: "\1F4CA";
  position: absolute;
  top: -12px;
  left: 12px;
  font-size: 1.25rem;
  background: #fff;
  padding: 0 4px;
  line-height: 1;
}
.prose blockquote p {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray-800);
  margin-bottom: 0;
}
.prose blockquote p em {
  font-style: normal;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--gray-100);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}
.prose pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.prose pre code { background: none; padding: 0; color: inherit; }

/* Post Navigation */
.post-navigation {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.post-navigation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.post-nav-link {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
  text-decoration: none;
}
.post-nav-link:hover { border-color: var(--primary); }
.post-nav-link--next { text-align: right; }
.post-nav-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}
.post-nav-title {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   Page
   ═══════════════════════════════════════ */
.page-header {
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-content .prose { padding: 3rem 0; }

/* ═══════════════════════════════════════
   404
   ═══════════════════════════════════════ */
.error-404 {
  padding: 6rem 0;
  text-align: center;
}
.error-404-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
}
.error-404 h1 { margin-bottom: 0.5rem; }
.error-404 p {
  color: var(--gray-500);
  margin-bottom: 2rem;
}
.error-404-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   Redeem Page
   ═══════════════════════════════════════ */
.redeem-page {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.redeem-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
}
.redeem-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.redeem-card h1 { margin-bottom: 0.5rem; }
.redeem-coupon-title {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.redeem-code {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  padding: 1.25rem;
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  user-select: all;
}
.redeem-status {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.redeem-countdown {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.redeem-countdown span {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
}
.redeem-error p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════
   Search Results
   ═══════════════════════════════════════ */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.search-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.search-result:hover { border-color: var(--primary); }
.search-result-link {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}
.search-result h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.search-result p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.375rem; }
.search-result-meta { font-size: 0.8rem; color: var(--gray-400); }

.no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════
   Infinite Scroll
   ═══════════════════════════════════════ */
.infinite-scroll-trigger {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .site-title-text { font-size: 1.25rem; }
.footer-brand .site-title-text span { color: var(--primary); }
.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.footer-links h4,
.footer-categories h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-menu {
  list-style: none;
}
.footer-menu li { margin-bottom: 0.375rem; }
.footer-menu a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-menu a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════
   WordPress Pagination
   ═══════════════════════════════════════ */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.15s;
}
.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ═══════════════════════════════════════
   WP Admin Bar offset
   ═══════════════════════════════════════ */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ═══════════════════════════════════════
   Utilities
   ═══════════════════════════════════════ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
