/* PromoCode UK - Fresh Modern Design */
/* Color palette: Deep navy, coral accent, warm grays */

:root {
  --color-primary: #1e293b;
  --color-primary-light: #334155;
  --color-accent: #f43f5e;
  --color-accent-hover: #e11d48;
  --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: #fef3c7;
  --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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 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: var(--color-primary);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

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

.site-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

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

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

.header-nav a {
  color: var(--color-gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--color-white);
}

.header-search {
  position: relative;
}

.header-search input {
  background: var(--color-primary-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--color-white);
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  font-size: 0.85rem;
  width: 220px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}

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

.header-search input:focus {
  border-color: var(--color-accent);
  width: 280px;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ===== 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(244,63,94,0.12) 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 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(244,63,94,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-warning);
  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.4rem 0.7rem;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.coupon-code-btn .code-hidden {
  padding: 0.4rem 0.6rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  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.35rem;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  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: #fef3c7;
  color: #d97706;
}

.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-list-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem;
  transition: box-shadow 0.2s;
}

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

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

.coupon-list-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.coupon-type-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

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

.coupon-type-badge .discount-value {
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 2px;
}

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

.coupon-list-title {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--color-gray-900);
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.coupon-list-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-gray-500);
  margin-bottom: 0.75rem;
}

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

/* ===== 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-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: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

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

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

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

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

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

.footer-col a {
  display: block;
  color: var(--color-gray-400);
  font-size: 0.85rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-white);
}

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

.footer-verification {
  display: inline-block;
  margin-left: 0.75rem;
  opacity: 0.6;
  font-size: 0.72rem;
}

/* ===== 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);
}

/* ===== 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;
}

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

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .header-nav.open {
    display: flex;
  }

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

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .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-main {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

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

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

  .variant-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.4rem;
  }

  .coupon-hero .hero-body {
    flex-direction: column;
    text-align: center;
  }

  .coupon-hero .hero-action {
    width: 100%;
  }

  .coupon-hero .hero-action > * {
    width: 100%;
  }

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

/* ============================================================
   Hero coupon + filter bar + discount chip + trust row
   ============================================================ */

.coupon-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%, #f0fdfa 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.75rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
  position: relative;
  overflow: hidden;
}

.coupon-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.coupon-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #059669;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.coupon-hero .hero-body {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

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

.coupon-hero .hero-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1.25;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.coupon-hero .hero-desc {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-gray-700, #374151);
  margin-bottom: 0.5rem;
}

.coupon-hero .hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-gray-500);
}

.coupon-hero .hero-sub .hero-tested {
  color: #059669;
  font-weight: 600;
}

.coupon-hero .hero-action .coupon-code-btn {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  min-width: 180px;
}

/* ----- Filter tabs ----- */
.coupon-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.filter-tab {
  background: transparent;
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-500);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-tab:hover {
  background: var(--color-gray-100, #f3f4f6);
  color: var(--color-gray-900);
}

.filter-tab.active {
  background: var(--color-gray-900);
  color: #fff;
  border-color: var(--color-gray-900);
}

.filter-tab .filter-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
}

.filter-tab.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
}

.coupon-list-item[hidden] {
  display: none;
}

/* ----- Discount chip (replaces the old coupon-type-badge on the list) ----- */
.discount-chip {
  width: 76px;
  min-height: 64px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.4rem 0.25rem;
  background: #f3f4f6;
  color: #111827;
}

.discount-chip .chip-value {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.discount-chip .chip-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  opacity: 0.85;
}

.discount-chip.chip-percent { background: #ecfdf5; color: #047857; }
.discount-chip.chip-money   { background: #fff7ed; color: #c2410c; }
.discount-chip.chip-ship    { background: #eff6ff; color: #1d4ed8; }
.discount-chip.chip-save    { background: #faf5ff; color: #7e22ce; }
.discount-chip.chip-code    { background: #fffbeb; color: #92400e; }
.discount-chip.chip-deal    { background: #ecfdf5; color: #065f46; }

.coupon-hero .discount-chip {
  width: 96px;
  min-height: 84px;
}

.coupon-hero .discount-chip .chip-value {
  font-size: 1.6rem;
}

/* ----- Trust row under title ----- */
.coupon-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--color-gray-500);
  line-height: 1.2;
}

.coupon-trust .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  background: none;
  border: 0;
}

.coupon-trust .trust-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: inherit;
  stroke: currentColor;
}

.coupon-trust .trust-ok {
  color: #059669;
  font-weight: 600;
}

.coupon-trust .trust-star {
  color: #b45309;
  font-weight: 600;
}

.coupon-trust .trust-item + .trust-item {
  position: relative;
  padding-left: 0.75rem;
}

.coupon-trust .trust-item + .trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-gray-300, #d1d5db);
}

/* ----- Stacked variants (grouped duplicates) ----- */
.variants-toggle {
  margin-top: 0.9rem;
  background: transparent;
  border: 1px dashed var(--color-gray-300, #d1d5db);
  color: var(--color-gray-700, #374151);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.variants-toggle:hover {
  background: var(--color-gray-100, #f3f4f6);
  color: var(--color-gray-900);
  border-style: solid;
}

.variants-toggle .vt-close { display: none; }
.variants-toggle[aria-expanded="true"] .vt-open { display: none; }
.variants-toggle[aria-expanded="true"] .vt-close { display: inline; }

.coupon-variants {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--color-gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.coupon-variants[hidden] { display: none; }

.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}

.variant-row .variant-meta {
  font-size: 0.78rem;
  color: var(--color-gray-500);
}

.coupon-list-item.has-variants {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

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

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

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.coupon-modal-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 1rem;
}

.coupon-modal-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  text-align: center;
  animation: modalSlideUp 0.25s ease;
}

.coupon-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gray-400);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

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

.coupon-modal-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.coupon-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

.coupon-modal-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff5f5;
}

.coupon-modal-code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  user-select: all;
}

.coupon-modal-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-success);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.coupon-modal-copy:hover {
  background: #059669;
}

.coupon-modal-hint {
  font-size: 0.8rem;
  color: var(--color-gray-500);
  margin: 0 0 1.25rem;
}

.coupon-modal-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  margin-bottom: 0.5rem;
}

.coupon-modal-visit:hover {
  background: var(--color-accent-hover);
}

.coupon-modal-redirect-hint {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin: 0;
}

@media (max-width: 480px) {
  .coupon-modal-card {
    padding: 1.5rem;
  }
  .coupon-modal-code {
    font-size: 1.1rem;
  }
}
