:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --bg: #f7f8fb;
  --bg-muted: #eef2f7;
  --surface: #ffffff;
  --text: #1f2933;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --border: #e6eaf0;
  --border-strong: #d5dbe3;
  --primary: #f26a21;
  --primary-hover: #d85a16;
  --primary-soft: #fff1e8;
  --blue: #3ba3e0;
  --red: #e23d32;
  --navy: #1e2a3a;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(30, 42, 58, 0.06);
  --header-h: 76px;
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.45rem; line-height: 1.22; letter-spacing: -0.03em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.85rem; }
a { color: #c2410c; text-decoration: none; }
a:hover { color: var(--primary-hover); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50;
}
.skip-link:focus { left: 8px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow, .pill-note {
  margin: 0 auto 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c2410c;
}
.pill-note {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #ffd7c2; box-shadow: var(--shadow);
}
.lede { font-size: 1.08rem; color: var(--text-soft); max-width: 40rem; margin-inline: auto; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-img { height: 58px; width: auto; display: block; }
.logo-img--footer { height: 64px; }
.logo-img--auth { height: 86px; margin: 0 auto; }
.logo-img--admin { height: 48px; background: #fff; border-radius: 10px; padding: 4px 6px; }
.logo--admin { color: #fff; font-weight: 700; }

.btn,
.btn-ghost,
.btn-small {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: 1px solid transparent;
  border-radius: 999px; padding: 0.72rem 1.15rem;
  font-weight: 700; font-size: 0.92rem; cursor: pointer;
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 16px rgba(242, 106, 33, 0.25);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.84rem; box-shadow: none; }
.btn-ghost {
  background: #fff; color: var(--text); border-color: var(--border-strong); box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }
.chip {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 0.84rem; font-weight: 600;
}
.chip:hover { border-color: #ffc9a8; color: var(--text); background: var(--primary-soft); }
.chip--accent { background: var(--primary-soft); border-color: #ffd7c2; color: #c2410c; }

.promo-bar {
  background: var(--navy); color: #fff; font-size: 0.84rem; font-weight: 600;
  padding: 8px 0; text-align: center;
}
.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(12px);
}
.header-row { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--text-soft); font-weight: 600; font-size: 0.9rem;
  padding: 0.42rem 0.75rem; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--bg-muted); }
.nav a.is-active { color: var(--text); background: var(--primary-soft); }
.nav-toggle { display: none; }
.menu-btn {
  display: none; margin-left: auto;
  border: 1px solid var(--border); background: #fff;
  border-radius: 10px; padding: 8px 12px; font-weight: 600; cursor: pointer;
}

.hero {
  padding: 52px 0 28px;
  background:
    radial-gradient(900px 280px at 15% -10%, rgba(59, 163, 224, 0.16), transparent 60%),
    radial-gradient(700px 240px at 90% 0%, rgba(242, 106, 33, 0.14), transparent 55%),
    #fff;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-inner { max-width: 820px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 22px 0 26px; }
.page-hero .hero-actions { justify-content: flex-start; margin: 16px 0 0; }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px;
}
.trust-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px;
  box-shadow: var(--shadow);
}
.trust-card strong { display: block; font-size: 1.2rem; }
.trust-card span { color: var(--muted); font-size: 0.78rem; }
.chip-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}

.section { padding: 8px 0 10px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 40px 0 18px;
}
.section-head a { font-size: 0.88rem; font-weight: 700; }

.offer-list { display: grid; gap: 14px; }
.card-grid, .store-grid, .cat-grid, .post-grid { display: grid; gap: 16px; }
.card-grid { grid-template-columns: 1fr; }
.store-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cat-grid, .post-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.coupon-card, .store-tile, .cat-tile, .post-tile, .stat, .panel, .step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.coupon-card {
  display: grid; grid-template-columns: 132px 1fr minmax(180px, auto);
  overflow: hidden; min-height: 132px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.coupon-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 42, 58, 0.1); }
.coupon-deal {
  display: grid; place-content: center; text-align: center; gap: 4px;
  background: linear-gradient(180deg, #ff8a3d, var(--primary));
  color: #fff; position: relative;
}
.coupon-deal::after {
  content: ""; position: absolute; right: -7px; top: 18px; bottom: 18px; width: 14px;
  background: radial-gradient(circle at 0 8px, transparent 7px, #fff 8px) 0 0 / 14px 16px repeat-y;
}
.coupon-deal span { font-weight: 800; font-size: 1.05rem; padding: 0 10px; }
.coupon-deal small { opacity: 0.9; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; }
.coupon-body { padding: 18px 18px 16px; }
.coupon-store { margin: 0 0 4px; font-size: 0.82rem; font-weight: 700; }
.coupon-store a { color: var(--blue); }
.coupon-body h3 { margin-bottom: 6px; }
.coupon-body p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 6px; }
.coupon-actions {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 16px; background: #fcfdff; border-left: 1px dashed var(--border-strong);
}
.coupon-actions .btn, .code-chip { width: 100%; }
.code-chip {
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700;
  border: 1px dashed #f2b48a; background: var(--primary-soft);
  color: #c2410c; border-radius: 999px; padding: 0.62rem 0.7rem; cursor: pointer;
}
.code-chip:hover, .code-chip.is-copied { border-color: var(--primary); }

.store-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease;
}
.store-tile:hover { border-color: #ffd7c2; color: var(--text); transform: translateY(-2px); }
.store-tile--round {
  flex-direction: column; text-align: center; padding: 20px 12px 16px;
}
.store-avatar, .store-tile span:first-child {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border);
  color: var(--navy); font-weight: 800; font-size: 1.2rem;
  box-shadow: var(--shadow);
}
.store-tile strong { display: block; font-size: 0.9rem; }
.store-tile em { color: var(--muted); font-style: normal; font-size: 0.8rem; }

.cat-tile, .post-tile {
  display: grid; gap: 8px; padding: 20px; color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cat-tile:hover, .post-tile:hover { border-color: #ffd7c2; color: var(--text); transform: translateY(-2px); }
.cat-tile span, .post-tile .muted { color: var(--muted); font-size: 0.85rem; }
.tag { font-size: 0.72rem; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { padding: 22px; }
.step-card span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 16px; margin-bottom: 10px;
}
.faq-item summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.faq-item p { color: var(--text-soft); }

.page-hero { padding: 36px 0 8px; text-align: left; }
.page-hero .lede, .page-hero p { max-width: 40rem; color: var(--text-soft); margin-inline: 0; }
.alpha { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.alpha a {
  min-width: 36px; text-align: center;
  padding: 7px 9px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 0.82rem; font-weight: 600;
}
.alpha a:hover { border-color: #ffd7c2; }
.alpha a.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.article { padding: 36px 0 48px; max-width: 760px; }
.article.wrap { margin-left: auto; margin-right: auto; }
.prose p { color: var(--text-soft); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.stack-form { display: grid; gap: 14px; max-width: 640px; }
.stack-form label { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%; margin-top: 6px; padding: 11px 12px;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
}
.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}
.check { display: flex; gap: 8px; align-items: center; font-weight: 550; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 0; }
legend { padding: 0 6px; font-weight: 650; }

.flash {
  margin: 16px auto 0; padding: 12px 14px; border-radius: 10px;
  width: min(var(--wrap), calc(100% - 40px)); font-size: 0.92rem; border: 1px solid transparent;
}
.admin-main .flash { width: auto; margin: 0 0 16px; }
.auth-card .flash { width: auto; margin: 0 0 12px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }
.flash-err { background: var(--err-bg); color: var(--err); border-color: #fecaca; }

.site-footer {
  margin-top: 64px; padding: 44px 0 28px;
  background: var(--navy); color: #cbd5e1;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 28px; }
.footer-grid h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: #94a3b8; }
.footer-grid a, .footer-grid p { display: block; color: #cbd5e1; margin: 0 0 8px; }
.footer-grid a:hover { color: #fff; }
.subscribe input {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid #334155; background: #111827; color: #fff;
}
.fineprint { color: #94a3b8; font-size: 0.82rem; margin-top: 24px; }

.banner-row { display: grid; gap: 12px; margin-top: 24px; }
.banner img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

.admin-body {
  display: grid; grid-template-columns: 248px 1fr;
  min-height: 100vh; background: var(--bg);
}
.admin-nav { min-height: 100vh; background: #111827; }
.admin-side {
  background: #111827; color: #e2e8f0;
  padding: 22px 16px; display: flex; flex-direction: column; gap: 18px;
}
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a {
  color: #cbd5e1; padding: 9px 10px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
}
.admin-side nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-side nav a.is-active { background: rgba(242, 106, 33, 0.2); color: #fff; }
.admin-side .btn-ghost {
  width: 100%; background: transparent; color: #e2e8f0; border-color: #334155; box-shadow: none;
}
.admin-side .btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-toggle { display: none; }
.admin-menu-btn {
  display: none; border: 1px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 8px 12px; font-weight: 600; cursor: pointer;
}
.admin-main { padding: 28px 32px 48px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin-top h1 { margin: 0; font-size: 1.45rem; }
.admin-top span { color: var(--muted); font-size: 0.86rem; }
.toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.panel { padding: 0; overflow: hidden; width: 100%; }
.panel--form { padding: 22px; max-width: 720px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface); }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--bg); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fffaf6; }
.row-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.row-actions a { font-weight: 600; font-size: 0.86rem; }
.row-actions button {
  background: none; border: 0; color: var(--err); cursor: pointer; font-weight: 600; font-size: 0.86rem; padding: 0;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px; }
.stat span { color: var(--muted); font-size: 0.8rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.stat strong { font-size: 1.8rem; display: block; margin-top: 6px; letter-spacing: -0.03em; }

.auth-body { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.auth-card {
  width: min(420px, 100%);
  background: var(--surface); padding: 32px;
  border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow);
  text-align: center;
}
.auth-card .stack-form { text-align: left; }
.auth-card h1 { margin: 18px 0 16px; font-size: 1.5rem; }
.auth-card .btn { width: 100%; }

@media (max-width: 1024px) {
  .trust-row, .steps-grid, .footer-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .coupon-card { grid-template-columns: 110px 1fr; }
  .coupon-actions { grid-column: 1 / -1; flex-direction: row; border-left: 0; border-top: 1px dashed var(--border-strong); }
  .admin-main { padding: 20px; }
}

@media (max-width: 860px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .logo-img { height: 48px; }
  .menu-btn { display: inline-flex; }
  .header-row { flex-wrap: wrap; }
  .nav, .header-cta { display: none; width: 100%; }
  .nav { flex-direction: column; align-items: stretch; margin: 0 0 12px; padding-bottom: 8px; }
  .nav-toggle:checked ~ .nav,
  .nav-toggle:checked ~ .header-cta { display: flex; }
  .header-cta { margin-bottom: 12px; }
  .site-header { height: auto; }
  .hero, .page-hero { padding-top: 28px; }
  .trust-row, .steps-grid, .footer-grid, .stat-grid { grid-template-columns: 1fr; }
  .coupon-card { grid-template-columns: 1fr; }
  .coupon-deal { min-height: 88px; }
  .coupon-deal::after { display: none; }
  .admin-body { display: block; }
  .admin-nav { min-height: 0; padding: 12px 16px 0; background: transparent; }
  .admin-menu-btn { display: inline-flex; margin-bottom: 12px; }
  .admin-side { display: none; padding: 16px; border-radius: 12px; }
  .admin-nav-toggle:checked ~ .admin-side { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; transform: none !important; }
}
