:root {
  --navy: #0f2924;
  --navy-soft: #183f37;
  --accent: #d97706;
  --accent-hover: #b45309;
  --emerald: #15803d;
  --emerald-bg: #dcfce7;
  --bg: #f8f7f3;
  --card: #ffffff;
  --ink: #182220;
  --muted: #576561;
  --border: #e3ded3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.topbar {
  background: #091b18;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.4rem 1.25rem;
  text-align: center;
}

.topbar a { color: #fcd34d; text-decoration: underline; }

.navbar {
  background: var(--navy);
  color: #fff;
  padding: 0.95rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover { color: #fcd34d; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 2.8rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.hero p {
  color: #d1fae5;
  font-size: 1rem;
  margin-bottom: 1.35rem;
}

.search-bar {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 9px;
  outline: none;
}

.search-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.section-region {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px auto 600px;
  margin-bottom: 2.5rem;
}

@supports not (content-visibility: auto) {
  .section-region {
    contain: layout style paint;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-head h2 {
  font-size: 1.35rem;
  color: var(--navy);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.store-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
  border-color: var(--navy);
}

.store-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  color: #fcd34d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.offer-pill {
  background: var(--emerald-bg);
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.coupon-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  display: grid;
  grid-template-columns: 115px 1fr auto;
  gap: 1.15rem;
  align-items: center;
}

@media (max-width: 680px) {
  .coupon-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.discount-box {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px dashed #f59e0b;
  border-radius: 12px;
  padding: 0.8rem 0.5rem;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.verified-tag {
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
  margin-right: 0.5rem;
}

/* Masked GET CODE button */
.get-code-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.72rem 1.15rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.15s;
}

.get-code-btn:hover { background: var(--navy-soft); }

.code-peel {
  background: #fef3c7;
  color: #92400e;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.85rem;
}

.get-deal-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.72rem 1.25rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.get-deal-btn:hover { background: var(--accent-hover); }

/* Light-dismiss Modal Dialog */
dialog {
  margin: auto;
  width: min(500px, 92vw);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 1.6rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  text-align: center;
}

dialog::backdrop {
  background-color: rgba(15, 41, 36, 0.65);
  backdrop-filter: blur(3px);
}

.revealed-code {
  background: #fef3c7;
  border: 2px dashed var(--accent);
  padding: 0.85rem;
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #92400e;
  border-radius: 10px;
  margin: 1rem 0;
  letter-spacing: 1.5px;
}

footer {
  background: #091b18;
  color: #cbd5e1;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
