:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --text: #0b1220;
  --muted: #55627a;
  --indigo: #4f46e5;
  --indigo-hover: #4338ca;
  --indigo-soft: #eef2ff;
  --cyan: #06b6d4;
  --grad: linear-gradient(90deg, #4f46e5, #06b6d4);
  --green: #059669;
  --green-strong: #047857;
  --green-soft: #e7f7f0;
  /* Two colors with their own jobs: indigo is the brand and the actions, green is the saving. */
  --tint-indigo: #f4f3ff;
  --tint-green: #effbf5;
  --navy: #0f172a;
  --red: #e11d48;
  --red-soft: #fdecf0;
  --radius: 12px;
  --radius-large: 16px;
  --shadow: 0 30px 60px rgba(15, 23, 42, .10), 0 0 0 6px rgba(79, 70, 229, .05);
  --mono: "JetBrains Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter Tight", "Segoe UI", system-ui, sans-serif;
}

main { flex: 1; }

/* Headings: semi-bold with gentle tracking reads calmer and more professional than the heaviest weight. */
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--indigo); }
code, pre { font-family: var(--mono); }

.grad-text { color: var(--indigo); }

.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: 24px; }
.page { padding-block: 48px 80px; }
.page-narrow { max-width: 760px; padding-block: 56px 80px; }
.prose p { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.12rem; }
.empty { color: var(--muted); }

.eyebrow { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo-hover); font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.eyebrow-green { background: var(--green-soft); color: var(--green-strong); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.button-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .25); }
.button-primary:hover { background: var(--indigo-hover); }
.button-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.button-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.button-large { padding: 15px 28px; }
.button-block { width: 100%; }
.link-button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.link-button:hover { color: var(--text); }

:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, .85);
  backdrop-filter: blur(12px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }

/* The name in Outfit, a soft geometric face; Save in the brand indigo, as in the logo. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 1.55rem; font-weight: 600; letter-spacing: 0; text-decoration: none; }
.brand b { font-weight: 600; color: var(--indigo); }
/* The coin stack has fine details (reeding, the dollar), so it needs more room than a flat mark. */
.logo { flex: none; width: 40px; height: 40px; }

.site-nav { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.site-nav > a:not(.button) { color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--text); }
.site-nav form { margin: 0; }

.language-menu { position: relative; }
.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: ""; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.language-menu[open] summary { border-color: var(--indigo); color: var(--indigo); }
.language-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(15, 23, 42, .10);
}
.language-list a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.language-list a:hover { background: var(--surface-2); }
.language-list a.is-active { background: var(--indigo-soft); color: var(--indigo); font-weight: 700; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); }

/* Hero */
.hero { padding-block: 64px 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.hero h1 span { display: block; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust b { color: var(--green-strong); }

/* The first screen shows what a shopper sees: the AliExpress checkout and the ClinkSave panel over it. */
.demo { position: relative; padding: 24px 0 0; }
.checkout { border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); box-shadow: 0 30px 60px rgba(15, 23, 42, .10); overflow: hidden; }
.checkout-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .85rem; font-weight: 700; }
.checkout-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.checkout-bar span { margin-left: 8px; }
.checkout-body { padding: 18px 20px 44px; }
.checkout-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checkout-item .thumb { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, #e0e7ff, #ccfbf1); }
.checkout-item .thumb.alt { background: linear-gradient(135deg, #fef3c7, #fce7f3); }
.checkout-item .lines i { display: block; height: 9px; margin: 6px 0; border-radius: 5px; background: var(--surface-2); }
.checkout-item .lines i + i { width: 60%; }
.checkout-item b { font-weight: 700; }
.checkout-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 16px; font-weight: 700; }
.checkout-total s { margin-right: 8px; color: var(--muted); font-weight: 600; }
.checkout-total strong { color: var(--green); font-size: 1.5rem; letter-spacing: -.02em; }

.clink-panel { position: relative; width: min(320px, 82%); margin: -30px -12px 0 auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 24px 50px rgba(15, 23, 42, .16); font-size: .9rem; }
.clink-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 1rem/1 'Outfit', sans-serif; }
.clink-panel-head img { width: 22px; height: 22px; }
.clink-panel-head b { font-weight: 600; color: var(--indigo); }
.clink-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--surface-2); opacity: 0; animation: line-in .35s ease forwards; }
.clink-row:nth-of-type(2) { animation-delay: .5s; }
.clink-row:nth-of-type(3) { animation-delay: 1s; }
.clink-row:nth-of-type(4) { animation-delay: 1.5s; }
.clink-row:nth-of-type(5) { animation-delay: 2s; }
.clink-row code { font-size: .85rem; }
.clink-row .ok { color: var(--green); font-weight: 700; }
.clink-row .no { color: var(--red); font-weight: 600; font-size: .82rem; }
.clink-row.best { margin-inline: -8px; padding-inline: 8px; border-radius: 8px; background: var(--green-soft); }
.clink-row.best .ok::after { content: " ★"; }
.clink-mark { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; background: var(--green); }
.clink-mark.no { background: var(--red); }
.clink-note { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }

.save-chip { position: absolute; top: 0; right: 8px; padding: 10px 16px; border-radius: 12px; background: var(--green); color: #fff; box-shadow: 0 14px 30px rgba(5, 150, 105, .3); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.save-chip small { display: block; margin-bottom: 2px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

.demo.is-done .clink-row { opacity: 1; animation: none; }

@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* Section backgrounds take turns, so the page does not read as one long sheet. */
.section-tint, .section-mint { padding-block: 72px; }
.section-tint { background: var(--tint-indigo); }
.section-mint { background: var(--tint-green); }
.section + .section-tint, .section + .section-mint { padding-top: 72px; }
.section-tint + .section, .section-mint + .section { padding-top: 72px; }

/* The last call to install, on a dark band. */
.cta-dark { padding-block: 72px; background: var(--navy); color: #e2e8f0; }
.cta-dark .container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta-dark h2 { color: #fff; }
.cta-dark .lead { margin: 0; color: #cbd5e1; }
.cta-dark .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.button-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(5, 150, 105, .35); }
.button-green:hover { background: var(--green-strong); }
.cta-dark .button-ghost { border-color: #334155; background: transparent; color: #e2e8f0; }
.cta-dark .button-ghost:hover { border-color: #e2e8f0; color: #fff; }
@media (max-width: 900px) {
  .cta-dark .container { grid-template-columns: 1fr; }
  .cta-dark .actions { justify-content: flex-start; }
  .clink-panel { width: auto; margin: -30px 12px 0; }
  .save-chip { top: -8px; }
}

/* Sections */
.section { padding-block: 72px; }
.section + .section { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li, .feature-grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps p, .feature-grid p { margin: 0; color: var(--muted); }
.step-number {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 32px;
  margin-bottom: 16px;
  padding-inline: 10px;
  border-radius: 8px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: .9rem;
  font-weight: 800;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--indigo-soft);
  color: var(--indigo);
}

.referral-band {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
}
.referral-band .lead { margin: 0; }
.link-sample { padding: 20px; border-radius: var(--radius); background: var(--text); color: #e2e8f0; font: 500 .95rem/1.7 var(--mono); }
.link-sample span { color: #67e8f9; }
.link-sample .button { margin-top: 16px; width: 100%; }

/* Cards and forms */
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.auth { display: grid; place-items: center; padding-block: 56px 80px; }
.auth .card { width: min(460px, 100%); padding: 34px; box-shadow: var(--shadow); }
.auth h1 { font-size: 1.9rem; }
.auth-switch { margin: 20px 0 0; color: var(--muted); text-align: center; }
.auth-switch a { font-weight: 700; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }

input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"], select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--indigo); background: var(--surface); outline: none; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: .85rem; }

.check { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); }
.check input { accent-color: var(--indigo); }
.field-error { display: block; margin-top: 5px; color: var(--red); font-size: .875rem; }
.form-errors ul { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); list-style: none; }
.form-errors.validation-summary-valid { display: none; }
.resend { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.resend .field-hint { margin: 0 0 10px; }
.resend .link-button { color: var(--indigo); }
.notice { padding: 11px 14px; border-radius: 10px; background: var(--indigo-soft); color: var(--indigo-hover); font-weight: 600; }

/* Account */
.referral-card { margin-bottom: 20px; }
.referral-card p { color: var(--muted); }
.referral-card input[type="text"] { font-family: var(--mono); }
.code-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.code-form label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.code-form .copy-row { align-items: center; }
.code-form input[type="text"] { text-transform: uppercase; }
.code-prefix { color: var(--muted); font: 600 .95rem/1 var(--mono); }
.settings-card { margin-bottom: 20px; }
.danger-zone { border-color: var(--red-soft); }
.danger-zone h2 { font-size: 1.15rem; }
.button-danger { border: 1px solid var(--red); background: var(--surface); color: var(--red); }
.button-danger:hover { background: var(--red-soft); }
.legal-updated { margin: -6px 0 24px; color: var(--muted); font-size: .9rem; }
.legal h2 { margin-top: 28px; font-size: 1.25rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; color: var(--muted); line-height: 1.6; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.settings-letters { margin: 8px 0 20px; padding: 0; border: none; }
.settings-letters legend { margin-bottom: 12px; font-weight: 700; }
.settings-letters .check { margin: 0 0 2px; color: var(--text); }
.settings-letters .field-hint { display: block; margin: 0 0 14px 26px; }
.copy-row { display: flex; gap: 10px; }
.copy-row input, .copy-row select { flex: 1; min-width: 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.stat { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-value { display: block; color: var(--indigo); font-size: 2.3rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
/* Saved money is green everywhere. */
.savings .stat-value { color: var(--green); }
.stat-label { color: var(--muted); font-weight: 600; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; overflow-wrap: anywhere; }
.data-table th { background: var(--bg); color: var(--muted); font: 700 .75rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.data-table tbody tr { border-top: 1px solid var(--line); }
.data-table code { white-space: nowrap; }
.data-table tbody tr:hover { background: #fafbff; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 600; }
.badge-ok { background: var(--green-soft); color: var(--green); }

.pager { display: flex; justify-content: center; gap: 16px; margin-top: 20px; color: var(--muted); font-family: var(--mono); }

/* Account and admin sections */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 32px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); width: fit-content; max-width: 100%; }
.tabs a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.is-active { background: var(--indigo-soft); color: var(--indigo); }
.tabs a.tabs-admin { color: var(--indigo); font-family: var(--mono); font-size: .9rem; }

.stats-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
a.stat { color: inherit; text-decoration: none; transition: border-color .15s; }
a.stat:hover { border-color: var(--indigo); }

.count { margin-left: 6px; color: var(--muted); font: 600 .55em/1 var(--mono); letter-spacing: 0; vertical-align: middle; }
.muted { color: var(--muted); font-size: .9em; }
.section-gap { margin-top: 44px; }
.title-break { overflow-wrap: anywhere; font-size: clamp(1.6rem, 4vw, 2.5rem); }

.badge-error { background: var(--red-soft); color: var(--red); }
.badge-warn { background: #fff4e0; color: #b45309; }
.badge-store { background: var(--indigo-soft); color: var(--indigo); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cell-action { width: 1%; text-align: right; white-space: nowrap; }
.cell-action form { margin: 0; }
.icon-button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font: 18px/1 sans-serif; cursor: pointer; }
.icon-button:hover { background: var(--red-soft); color: var(--red); }

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 500 .9rem/1.6 var(--mono);
  resize: vertical;
}
textarea:focus { border-color: var(--indigo); background: var(--surface); outline: none; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
input[type="search"], input[type="number"] {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input[type="number"] { width: 130px; }

.add-codes { margin-bottom: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
input[type="date"] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.section-gap-small { margin-top: 16px; }
.cell-action form + form { margin-top: 6px; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.search-row input[type="search"], .search-row select { flex: 1; min-width: 200px; max-width: 420px; }
.search-row label { font-weight: 700; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-list li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: .9rem; }
.chip-list code { color: var(--text); font-weight: 700; }

.run-list { display: grid; gap: 10px; }
.run { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.run[open] { border-color: #c7d2fe; }
.run summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.run summary::-webkit-details-marker { display: none; }
.run summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.run[open] summary::before { transform: rotate(90deg); }
.run-date { font: 600 .88rem/1.4 var(--mono); }
.run-user { font-weight: 700; overflow-wrap: anywhere; }
.run-device { color: var(--muted); }
.run-total { font-family: var(--mono); }
.run-best { padding: 2px 8px; border-radius: 6px; background: var(--indigo-soft); color: var(--indigo); font-weight: 700; }
.run-meta { margin: 0 18px 12px; color: var(--muted); font-size: .9rem; }
.run .table-wrap { margin: 0 18px 18px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 12px; }
.facts div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts dt { color: var(--muted); font: 700 .72rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Download */
.download-lead { max-width: 640px; }
.browser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.browser-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.browser-card h2 { margin: 18px 0 4px; font-size: 1.25rem; letter-spacing: -.02em; }
.browser-card p { flex: 1; margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
/* The browsers' own logos, shown unchanged. */
.browser-logo { display: block; width: 56px; height: 56px; }
.download-note-logos { display: flex; align-items: center; gap: 8px; }
.download-note-logos img { flex: none; }
.button.is-disabled { color: var(--muted); cursor: default; pointer-events: none; }
.download-note { margin: 16px 0 0; color: var(--muted); font-size: .92rem; }

/* Coupons */
.coupons-lead { max-width: 680px; }
.coupon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.coupon { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px dashed #c7d2fe; border-radius: var(--radius); background: var(--surface); }
.coupon-value b { display: block; color: var(--green); font: 800 2rem/1 "Inter Tight", sans-serif; letter-spacing: -.03em; }
.coupon-value span { color: var(--muted); font-size: .92rem; }
.coupon-code { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--indigo-soft); }
.coupon-code code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--indigo-hover); font-size: 1.05rem; font-weight: 700; }
.coupon-code .button { padding: 8px 14px; }
.coupon-code form { margin: 0; }
.coupon-code code.is-hidden { overflow: hidden; color: var(--muted); letter-spacing: .08em; white-space: nowrap; user-select: none; cursor: help; }
.coupon-saved { flex-shrink: 0; padding: 8px 4px; color: var(--green, #15803d); font-size: .9rem; font-weight: 600; text-decoration: none; }
.coupon-saved:hover { text-decoration: underline; }
.coupon.is-just-saved { border-style: solid; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.coupon-meta { margin: 0; color: var(--muted); font-size: .85rem; }
.coupon-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); }
.coupon-cta h2 { margin-bottom: 6px; font-size: 1.5rem; }
.coupon-cta p { margin: 0; color: var(--muted); }
.coupon-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.coupon-value { position: relative; }
.coupon-percent { position: absolute; top: 0; right: 0; padding: 3px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 700 .8rem/1.4 var(--mono); font-style: normal; }
.coupon-stat { margin: -6px 0 0; color: var(--green); font-size: .82rem; font-weight: 600; }
.coupon-stat.is-bad { color: var(--muted); font-weight: 500; }
.coupon.is-broken { opacity: .6; }
.coupon-updated { margin: -8px 0 16px; color: var(--muted); font-size: .85rem; }
.breadcrumbs { margin-bottom: 14px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--indigo); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Search pages: FAQ, links, sales, articles */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; cursor: pointer; font-weight: 700; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.link-grid a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.link-grid a:hover { border-color: var(--indigo); color: var(--indigo); }
.link-grid span { color: var(--muted); font-weight: 500; }
.seo-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.seo-links h2 { font-size: 1.2rem; }
.seo-links ul { margin: 0; padding-left: 18px; }
.seo-links li { margin-bottom: 6px; }
.seo-links a { color: var(--indigo); }
.article { max-width: 820px; }
.article-body h2 { margin-top: 32px; font-size: 1.35rem; }
.article-body p, .article-body li { color: var(--text); line-height: 1.7; }
.sale-dates { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 28px; padding: 20px 24px; }
.sale-coupons { padding-left: 18px; }
.sale-coupons li { margin-bottom: 6px; }
.tips li { margin-bottom: 8px; line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { color: var(--text); text-decoration: none; }
.guide-card h2 { font-size: 1.15rem; }
.guide-card p { margin: 0; color: var(--muted); }
.guide-card:hover { border-color: var(--indigo); }

/* Footer */
.site-footer { padding-block: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-row { display: flex; justify-content: space-between; gap: 32px; }
.footer-note { max-width: 520px; margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 10px 20px; max-width: 520px; color: var(--muted); font-size: .9rem; }
.footer-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--indigo); }

@media (max-width: 960px) {
  .hero { padding-block: 40px 24px; }
  .hero-grid, .referral-band { grid-template-columns: 1fr; gap: 40px; }
  .demo { max-width: 560px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .browser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coupon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coupon-cta { flex-direction: column; align-items: flex-start; }
  .guide-grid, .seo-links { grid-template-columns: 1fr; }

  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 20px 30px rgba(15, 23, 42, .06);
  }
  .site-nav.is-open { display: flex; }
  .language-menu { align-self: flex-start; }
  .language-list { position: static; margin-top: 8px; box-shadow: none; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .brand { font-size: 1.3rem; }
  .logo { width: 36px; height: 36px; }
  .section { padding-block: 52px; }
  .section-tint, .section-mint, .cta-dark { padding-block: 52px; }
  .checkout-body { padding: 14px 14px 42px; }
  .save-chip { font-size: 1rem; }
  .referral-band { padding: 28px 20px; }
  .hero-actions .button { width: 100%; }
  .card, .auth .card { padding: 22px; }
  .copy-row { flex-direction: column; }
  .stats { gap: 12px; }
  .footer-row { flex-direction: column; }
  .footer-links { justify-content: flex-start; }

  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table td { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; padding: 8px 16px; text-align: right; }
  /* The label keeps the value parts together on the right, even when a cell holds several. */
  .data-table td::before { content: attr(data-label); margin-right: auto; padding-right: 8px; color: var(--muted); text-align: left; overflow-wrap: normal; }
  .data-table tr { padding-block: 8px; }
  .data-table td.cell-action { width: auto; justify-content: flex-end; }
  .data-table td.cell-action:empty { display: none; }

  .tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .browser-grid { gap: 12px; margin-top: 24px; }
  .coupon-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .coupon-cta { padding: 22px 18px; }
  .browser-card { padding: 18px 16px; }
  .browser-card h2 { font-size: 1.05rem; }
  .browser-card .button { padding: 10px 8px; font-size: .92rem; }
  .stat { padding: 18px; }
  .stat-value { font-size: 1.9rem; }
  .run summary { padding: 12px 14px; }
  .run .table-wrap { margin: 0 10px 10px; }
  .run-meta { margin: 0 14px 10px; }
  .search-row input[type="search"], .search-row select { min-width: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clink-row { opacity: 1; animation: none; }
  .button, input, select { transition: none; }
}

/* Bound-coupon statistics on the home page and the account page */
.stats-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.savings-note { margin: 0 0 40px; color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) {
  .stats-3 { grid-template-columns: 1fr; gap: 12px; }
}

/* Wide screens: a wider column, slightly larger type and more cards per row. Laptops are not affected.
   Long paragraphs and articles keep their reading width. */
@media (min-width: 1600px) {
  .container { width: min(1440px, 100%); }
  .page-narrow { max-width: 820px; }
  .hero .lead { max-width: 620px; }
  .section-head { max-width: 760px; }
  .hero-grid { gap: 80px; }
  .coupon-grid, .guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1900px) {
  html { font-size: 17px; }
}

/* The extension offer above the coupon list */
.coupon-cta-top { margin: 24px 0 28px; }
.coupon-cta-note { margin: -16px 0 24px; }
@media (min-width: 1760px) {
  .container { width: min(1600px, 100%); }
}

/* Store coupons in the account: tick and add. */
.store-actions { margin: 0 0 14px; flex-wrap: wrap; gap: 10px; }
.ended-codes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; }
.ended-codes span { flex: 1; min-width: 220px; }
.store-tick { width: 44px; }
.store-tick input { width: 20px; height: 20px; accent-color: var(--indigo); cursor: pointer; }
.store-coupons label { cursor: pointer; }
.badge-new { margin-left: 6px; background: #dcfce7; color: #166534; }
@media (max-width: 640px) { .store-tick { width: auto; } }
.test-letter { margin: 0 0 32px; }
.button-small { padding: 7px 14px; font-size: .88rem; }

/* Delete in the code tables: a visible button with an icon, not a bare cross. */
.delete-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #f5a3b5; border-radius: 10px; background: var(--surface); color: var(--red); font-family: inherit; font-size: .85rem; font-weight: 600; line-height: 1.2; cursor: pointer; }
.delete-button svg { flex: none; }
.delete-button:hover { border-color: var(--red); background: var(--red); color: #fff; }
/* Adds one coupon: green, so it stands out in the row. */
.button-add { border-color: var(--green); background: var(--green); color: #fff; }
.button-add:hover { border-color: #047857; background: #047857; color: #fff; }
/* "My account" in the header: an icon and a soft indigo background, so it stands out from the links. */
.button-account { display: inline-flex; align-items: center; gap: 8px; border-color: #c7d2fe; background: var(--indigo-soft); color: var(--indigo-hover); }
.button-account:hover { border-color: var(--indigo); background: #e0e7ff; color: var(--indigo-hover); }
.button-account svg { flex: none; }
/* Links to a part of a page (#invited, #store…) stop below the sticky header, not under it. */
[id] { scroll-margin-top: 96px; }
.feature-icon-green { background: var(--green-soft); color: var(--green); }
.section-mint .savings-note, .section-tint .savings-note { margin-bottom: 0; }
.link-sample .button { font-family: "Inter Tight", "Segoe UI", system-ui, sans-serif; }

/* First screen: soft spots of the brand colors behind it, as light falling on the page. */
.hero-color {
  background:
    radial-gradient(circle at 88% 12%, rgba(165, 180, 252, .55) 0, transparent 32%),
    radial-gradient(circle at 62% 92%, rgba(134, 239, 172, .45) 0, transparent 30%),
    radial-gradient(circle at 4% 0%, rgba(186, 230, 253, .6) 0, transparent 30%),
    #fbfbff;
}
.hero-color + .section { padding-top: 72px; }
.save-chip { right: -12px; left: auto; top: 0; }

.works-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.works-in span { margin-right: 4px; }
.works-in img { width: 34px; height: 34px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.works-in + .trust { margin-top: 18px; }

/* "How it works": a color for each step. */
.steps-color li { border: 0; }
.steps-color h3 { margin-top: 2px; }
.step-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; color: #fff; }
.step-indigo { background: var(--tint-indigo) !important; }
.step-indigo .step-tile { background: var(--indigo); }
.step-indigo h3 { color: #312e81; }
.step-sky { background: #ecf7fe !important; }
.step-sky .step-tile { background: #0284c7; }
.step-sky h3 { color: #0c4a6e; }
.step-green { background: var(--tint-green) !important; }
.step-green .step-tile { background: var(--green); }
.step-green h3 { color: #14532d; }
.step-art { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--surface); box-shadow: 0 6px 16px rgba(15, 23, 42, .06); font-size: .9rem; }
.step-art code { padding: 3px 7px; border-radius: 6px; background: var(--indigo-soft); color: var(--indigo-hover); font-size: .78rem; }
.step-art span { color: var(--muted); font-weight: 600; }
.step-sky .step-art b { color: var(--text); }
.step-green .step-art b { color: var(--green); }
/* The step's icon sits at the start of the text, and the heading and text flow around it. */
.steps-color .step-tile { float: left; margin: 2px 14px 8px 0; }
.steps-color h3 { margin: 0 0 6px; padding-top: 2px; line-height: 1.25; }
.steps-color .step-art { clear: both; }
/* The home page advantages follow the same pattern as the steps: the icon at the start, the text around it. */
.feature-flow .feature-icon { float: left; margin: 2px 14px 8px 0; }
.feature-flow h3 { margin: 0 0 6px; padding-top: 2px; line-height: 1.25; }
.feature-flow p { line-height: 1.6; }
.sale-start { display: block; margin-top: 6px; font-weight: 700; color: var(--green-strong); }

/* Tips and questions */
.help-sales { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin: 28px 0 40px; }
.help-reminder { background: var(--tint-green); border-color: #bbf7d0; }
.help-reminder .step-tile { float: left; margin: 2px 14px 8px 0; background: var(--green); }
.help-reminder h2 { font-size: 1.35rem; line-height: 1.25; }
.help-reminder p { clear: both; color: var(--muted); }
.help-sales h2 { font-size: 1.35rem; }
.help-sale-list { margin: 0; padding: 0; list-style: none; }
.help-sale-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.help-sale-list li:first-child { border-top: 0; }
.help-sale-list a { font-weight: 700; text-decoration: none; }
.help-sale-list span { color: var(--muted); font-size: .92rem; }
.help-text ol li { margin-bottom: 8px; }
.help-text details { border-bottom: 1px solid var(--line); }
.help-text summary { padding: 16px 0; cursor: pointer; font-weight: 700; }
.help-text details p { margin-top: 0; }
@media (max-width: 800px) { .help-sales { grid-template-columns: 1fr; } }
.sale-history { margin: 24px 0; }
.sale-history h2 { font-size: 1.25rem; }
.sale-history ul { margin: 0; padding: 0; list-style: none; }
.sale-history li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.sale-history li:first-child { border-top: 0; }
.sale-history b { margin-right: 8px; color: var(--text); }

/* The band under the first screen: the next big sale with a countdown, or the one that is on. */
.sale-band { padding-block: 22px; background: var(--navy); color: #e2e8f0; }
.sale-band.is-on { background: linear-gradient(90deg, #065f46, #059669); }
.sale-band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.sale-band-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.sale-band-label { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #a7f3d0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sale-band-name { color: #fff; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.sale-band-name:hover { text-decoration: underline; }
.sale-band-when { color: #cbd5e1; }
.sale-band-when b { margin-left: 6px; color: #fff; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sale-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sale-band .button-ghost { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.sale-band .button-ghost:hover { border-color: #fff; color: #fff; }
.sale-band + .section { padding-top: 72px; }
.sale-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.sale-run input[type="datetime-local"] { width: auto; padding: 8px 10px; }
.sale-run-new { border-top-style: dashed; }

/* Cashback */
label.field > span:first-child, fieldset.field > legend { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
label.field input[type="number"], label.field input[type="date"] { width: 100%; }
fieldset.field { margin: 0 0 16px; padding: 0; border: 0; }
.payout-methods .check { margin: 4px 0; }
.cell-sub { display: block; margin-top: 3px; font-size: .85rem; line-height: 1.4; }
.money-plus { color: var(--green); }
.money-gone { color: var(--muted); text-decoration: line-through; }
.notice-error { background: var(--red-soft); color: var(--red); }
.stat-accent { border-color: #a7e3c9; background: var(--tint-green); }
.stat-accent .stat-value { color: var(--green); }
.card-rule { margin: 22px 0 14px; border: 0; border-top: 1px solid var(--line); }
.payout-details { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font: 600 .9rem var(--mono); user-select: all; }
.cashback-activate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; background: var(--tint-green); border-color: #a7e3c9; }
.cashback-activate h2 { margin: 0 0 4px; }
.cashback-activate p { margin: 0; color: var(--muted); }
.cashback-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.break-all { word-break: break-all; }
.order-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.order-edit select, .order-edit input { width: auto; min-width: 0; padding: 7px 9px; font-size: .9rem; }
.order-edit input[type="number"] { width: 90px; }
.order-edit input[type="text"] { flex: 1 1 140px; }
.badge-select { border-radius: 999px; font-weight: 600; }
.cashback-table td { vertical-align: top; }

.cashback-demo { position: relative; padding-top: 28px; }
.cashback-demo-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); box-shadow: var(--shadow); }
.cashback-demo-label { display: block; color: var(--muted); font-weight: 600; }
.cashback-demo-card > b { display: block; margin: 2px 0 14px; color: var(--green); font-size: 2.4rem; letter-spacing: -.02em; line-height: 1.1; }
.cashback-demo-row { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .9rem; }
.cashback-demo-row b { text-align: right; color: var(--green); }
.cashback-demo-row .badge { font-family: "Inter Tight", system-ui, sans-serif; }

.cashback-calc-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cashback-calc .form-row, .cashback-calc { display: block; }
.calc-result { margin: 8px 0 0; }
.calc-result div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.calc-result dt { color: var(--muted); font-weight: 600; }
.calc-result dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-result [data-calc-back] { color: var(--green); }
.calc-total dt { color: var(--text); }
.calc-total dd { color: var(--green); font-size: 1.5rem; }

.status-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: status; }
.status-flow li { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status-flow h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.status-flow p { margin: 0; color: var(--muted); font-size: .95rem; }

@media (max-width: 960px) {
  .status-flow { grid-template-columns: 1fr 1fr; }
  .cashback-admin-grid, .cashback-calc-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .status-flow { grid-template-columns: 1fr; }
  .cashback-activate .button { width: 100%; text-align: center; }
}

/* With the Cashback item the full menu needs more room: on middle widths the anchor to the home page section steps aside. */
@media (min-width: 961px) and (max-width: 1240px) {
  .site-nav > a.nav-wide-only { display: none; }
  .site-nav { gap: 20px; }
}
