/* 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 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo .logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.site-logo .logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.site-logo .logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: #fbbf24;
  letter-spacing: 0.01em;
}

.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);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1rem 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--color-success);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gray-800);
  line-height: 1.2;
}

.trust-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-gray-500);
  line-height: 1.3;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--color-gray-200);
}

/* ===== 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-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 2rem 0;
}

.store-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

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

.store-info h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
}

.store-info p {
  color: var(--color-gray-500);
  font-size: 0.9rem;
}

.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.5rem;
  margin-top: 0.5rem;
}

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

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

.store-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0;
}

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

.store-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.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: 1rem;
}

.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-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s;
}

.coupon-list-item:hover {
  box-shadow: var(--shadow-sm);
}

.coupon-list-item.featured,
.coupon-list-item.staff-pick {
  border-left: 3px solid var(--color-accent);
}

/* Editor's Choice coupon accent */
.coupon-list-item.editor-choice {
  border-left: 3px solid #f59e0b;
}

/* 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: 64px;
  min-height: 56px;
  border-radius: var(--radius-sm);
  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.1rem;
  font-weight: 800;
  line-height: 1;
}

.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);
}

/* ===== 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 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand .brand-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.footer-brand span {
  font-weight: 700;
  font-size: 1rem;
}

.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;
}

/* ===== 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 {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    order: 1;
  }

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

  .store-stats {
    justify-content: 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;
  }
}

@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;
  }
}
