/* Sarim Tools — light + red, after the brand banner. Shared by store, account and admin. */

/* Poppins, self-hosted (SIL OFL, see assets/fonts/OFL.txt) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #e3242a;
  --red-2: #c51d23;
  --red-hot: #fb1f1e;
  --red-50: #fff1f1;
  --red-100: #ffdfe0;
  --ink: #16171b;
  --ink-2: #565b67;
  --ink-3: #8a8f9b;
  --line: #ecedf1;
  --line-2: #f3f4f7;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --green: #138a4a;
  --green-50: #e7f6ee;
  --amber: #9c5a00;
  --amber-50: #fff3df;
  --blue: #2450a8;
  --blue-50: #eef3ff;
  --star: #f5b301;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(22,23,27,.04), 0 12px 32px -18px rgba(22,23,27,.22);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  /* aliases used by admin.css */
  --bg-2: var(--soft);
  --red-d: var(--red-2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; touch-action: manipulation; }
a, button, input, select, textarea, label { -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-2); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.hp { position: absolute; left: -10000px; }

/* ---------- header ---------- */
.announce { background: var(--red); color: #fff; text-align: center; font-size: .86rem; font-weight: 500; padding: 8px 16px; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(22,23,27,.35); }
@supports (backdrop-filter: blur(8px)) { .topbar { background: rgba(255,255,255,.85); backdrop-filter: saturate(1.5) blur(12px); } }
.topbar-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--red); }
.nav-wallet { background: var(--soft); padding: 6px 14px; border-radius: 999px; }
.nav-wallet strong { color: var(--ink); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.cur { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; font-size: .8rem; font-weight: 600; }
.cur a { padding: 5px 12px; border-radius: 999px; color: var(--ink-3); text-decoration: none; }
.cur a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22,23,27,.12); }
.acct { color: var(--ink); font-weight: 600; text-decoration: none; }
.acct:hover { color: var(--red); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; }
.cart-link:hover { background: var(--red-2); color: #fff; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--red); font-size: .78rem; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu-btn { display: none; }
.nav-only-m { display: none !important; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--red); background: var(--red); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .14s ease-out; }
/* feedback on press, not on release */
.btn:active:not(:disabled), .cart-link:active, .groups a:active, .groups button:active, .copy:active, .qty button:active { transform: scale(.96); transition-duration: 60ms; }
.brand-card:active { transform: scale(.985); transition-duration: 60ms; }
.btn:hover { background: var(--red-2); border-color: var(--red-2); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #dcdee4; }
.btn-ghost:hover { background: #fff; color: var(--red); border-color: var(--red); }
.btn-soft { background: var(--red-50); color: var(--red); border-color: var(--red-50); }
.btn-soft:hover { background: var(--red-100); color: var(--red-2); border-color: var(--red-100); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-icon { width: 46px; padding: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.hint { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 6px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=url], input[type=datetime-local], input[type=file], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #dcdee4; border-radius: 12px;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
input:user-invalid, textarea:user-invalid, select:user-invalid, [aria-invalid="true"] { border-color: var(--red-2); background: #fffafa; }
.field-error { display: block; font-size: .8rem; color: var(--red-2); margin-top: 6px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--red); vertical-align: -3px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

.flashes { margin-top: 20px; display: grid; gap: 8px; }
.flash { padding: 13px 18px; border-radius: var(--r); background: var(--soft); font-weight: 500; }
.flash-success { background: var(--green-50); color: #0c5b30; }
.flash-error { background: var(--red-50); color: #9b1015; }
.flash-info { background: var(--blue-50); color: #1d3a73; }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--green-50); color: var(--green); }
.badge-wait { background: var(--blue-50); color: var(--blue); }
.badge-warn { background: var(--amber-50); color: var(--amber); }
.badge-bad { background: var(--red-50); color: var(--red-2); }

.stock { font-size: .82rem; font-weight: 500; }
.stock::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: currentColor; }
.stock-ok { color: var(--green); }
.stock-low { color: var(--amber); }
.stock-out { color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chip { font-size: .75rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.chip-ok { background: var(--green-50); color: var(--green); }
.chip-part { background: var(--amber-50); color: var(--amber); }
.chip-none { background: var(--soft); color: var(--ink-3); }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.stars { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.stars svg { display: block; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.06; letter-spacing: -0.035em; max-width: 15ch; margin-bottom: 18px; text-wrap: balance; }
.hero-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 44ch; margin-bottom: 28px; }
.searchbar { position: relative; max-width: 540px; }
.searchbar input { min-height: 60px; border-radius: 999px; padding: 0 150px 0 54px; font-size: 1rem; border-color: #e1e3e9; box-shadow: var(--shadow); }
.searchbar svg { position: absolute; left: 22px; top: 30px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.searchbar .btn { position: absolute; right: 7px; top: 7px; min-height: 46px; }
.perks { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 26px 0 0; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23e3242a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; flex: none; }

.hero-art { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; justify-self: end; }
.hero-art .blob { position: absolute; inset: 4% 2% 6% 6%; width: 92%; height: 90%; }
.hero-art .dot { position: absolute; border-radius: 50%; background: linear-gradient(135deg, #ff3b3b, #d8262c); }
.hero-art .dot-1 { width: 34px; height: 34px; top: 3%; left: 8%; }
.hero-art .dot-2 { width: 18px; height: 18px; bottom: 6%; right: 6%; }
.bubble { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(120, 10, 14, .45); }
.bubble img { width: 52%; height: 52%; object-fit: contain; border-radius: 10px; }
.bubble.b1 { top: 6%; left: 30%; }
.bubble.b2 { top: 16%; right: 4%; width: 19%; }
.bubble.b3 { top: 40%; left: 4%; width: 20%; }
.bubble.b4 { top: 44%; right: 18%; width: 17%; }
.bubble.b5 { bottom: 26%; left: 33%; width: 16%; }
.bubble.b6 { bottom: 10%; right: 4%; width: 18%; }
.deal { position: absolute; left: 0; bottom: 4%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; max-width: 300px; }
.deal:hover { color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--red-100); }
.deal img { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.deal b { display: block; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.deal span { font-size: .82rem; color: var(--ink-3); }
.deal strong { color: var(--red); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: pop .5s cubic-bezier(.2,.9,.3,1.3) both; }
  .bubble.b2 { animation-delay: .06s; } .bubble.b3 { animation-delay: .12s; } .bubble.b4 { animation-delay: .18s; } .bubble.b5 { animation-delay: .24s; } .bubble.b6 { animation-delay: .3s; }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } }
}

/* ---------- home: tool grid ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-head p { margin: 4px 0 0; color: var(--ink-2); }
.groups { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin-bottom: 22px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.groups > * { scroll-snap-align: start; }
.groups::-webkit-scrollbar { display: none; }
.groups button, .groups a { flex: none; display: inline-flex; align-items: center; font: inherit; font-size: .88rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .14s ease-out; }
.groups button:hover, .groups a:hover { border-color: var(--ink-3); color: var(--ink); }
.groups button[aria-pressed="true"], .groups a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tool-search { width: 100%; max-width: 320px; }
.tool-search input { min-height: 44px; border-radius: 999px; padding-left: 18px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.brand-card { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.brand-card:hover { color: var(--ink); border-color: var(--red-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-card img { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; }
.brand-card strong { font-size: 1.04rem; font-weight: 600; line-height: 1.3; }
.brand-card .plans { font-size: .82rem; color: var(--ink-3); }
.brand-card .from { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.brand-card .from span { font-size: .78rem; color: var(--ink-3); }
.brand-card .from b { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.brand-card .flag { position: absolute; top: 18px; right: 18px; }
.brand-card.is-out { background: var(--soft); }
.brand-card.is-out img { filter: grayscale(.6); opacity: .8; }
.empty-search { display: none; padding: 36px 0; text-align: center; color: var(--ink-2); }
.empty-search.show { display: block; }

/* ---------- home: how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ff3b3b, #d8262c); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* ---------- WhatsApp band ---------- */
.help-band { position: relative; overflow: hidden; border-radius: 28px; padding: 44px 48px; background: linear-gradient(120deg, #f6302f, #d3232a); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.help-band::before, .help-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.help-band::before { width: 260px; height: 260px; right: -60px; top: -120px; }
.help-band::after { width: 120px; height: 120px; left: 38%; bottom: -70px; }
.help-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.help-band p { margin: 0; color: rgba(255,255,255,.88); }
.help-band > * { position: relative; z-index: 1; }
.help-band .btn-white svg { color: #25d366; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(18, 140, 70, .6); }
.wa-float:hover { color: #fff; background: #1ebe5a; }

/* ---------- brand page ---------- */
.brand-hero { position: relative; overflow: hidden; background: var(--soft); padding: 22px 0 36px; }
.brand-hero .blob { position: absolute; right: -80px; top: -60px; width: 300px; height: 300px; }
.crumbs { font-size: .84rem; color: var(--ink-3); padding: 0 0 18px; position: relative; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.brand-hero-in { position: relative; display: flex; gap: 22px; align-items: center; }
.brand-hero-in img { width: 88px; height: 88px; border-radius: 24px; background: #fff; padding: 12px; box-shadow: var(--shadow); flex: none; }
.brand-hero h1 { margin: 0 0 4px; }
.brand-hero p { margin: 0; color: var(--ink-2); }
.plan-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 28px 0 22px; }
.plan-tools .groups { margin: 0; padding: 0; }
.plan-tools .right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.plan-tools select { width: auto; min-height: 40px; border-radius: 999px; padding: 6px 36px 6px 16px; font-size: .88rem; }
.plan-tools .check { font-size: .88rem; color: var(--ink-2); margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px 18px; padding: 8px 0 72px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.plan.popular { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.plan .tag { position: absolute; top: -12px; left: 20px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 1rem; line-height: 1.4; margin: 0 0 12px; overflow-wrap: anywhere; }
.plan h3 a { color: var(--ink); text-decoration: none; }
.plan h3 a:hover { color: var(--red); }
.plan .chips { margin-bottom: 14px; }
.plan-price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.plan-price strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.plan-price span { font-size: .8rem; color: var(--ink-3); }
.plan-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
.plan-actions form { margin: 0; }
.plan.is-out { background: var(--soft); }
.plan.is-out h3 a, .plan.is-out .plan-price strong { color: var(--ink-3); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding: 8px 0 72px; align-items: start; }
.pdp-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.pdp-head img { width: 72px; height: 72px; border-radius: 20px; border: 1px solid var(--line); background: #fff; padding: 8px; object-fit: contain; }
.pdp-head h1 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0; }
.pdp-desc { white-space: pre-line; color: var(--ink-2); max-width: 70ch; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 30px; }
.facts div { background: var(--soft); border-radius: var(--r); padding: 14px 16px; }
.facts dt { font-size: .78rem; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.buybox { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); background: #fff; }
.buybox .price { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.buybox .alt { color: var(--ink-3); font-size: .9rem; margin-bottom: 20px; }
.qty { display: inline-flex; border: 1px solid #dcdee4; border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; border: 0; background: #fff; font: inherit; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--red); }
.qty input { width: 60px; border: 0; border-radius: 0; text-align: center; min-height: 44px; -moz-appearance: textfield; box-shadow: none !important; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-actions { display: grid; gap: 10px; margin-top: 20px; }
.note { font-size: .86rem; color: var(--ink-2); background: var(--soft); border-radius: var(--r); padding: 12px 14px; margin-top: 16px; }
.related { background: var(--soft); padding: 48px 0 64px; }

/* ---------- panels, tables, account ---------- */
.page { padding-top: 40px; padding-bottom: 80px; }
.inline-field { display: flex; gap: 8px; align-items: stretch; }
.inline-field input { flex: 1; min-width: 0; }
.inline-field select, .inline-field .btn { width: auto; flex: none; }
.page-narrow { max-width: 480px; margin: 0 auto; padding: 56px 24px 88px; }
.page-narrow h1 { font-size: 2rem; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; background: #fff; }
.panel + .panel { margin-top: 20px; }
.cart-grid > .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.15rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table img.ico { width: 30px; height: 30px; max-width: none; border-radius: 8px; }
.table a:not(.btn) { color: var(--ink); font-weight: 500; text-decoration: none; }
.table a:not(.btn):hover { color: var(--red); }
.table td:has(> a:not(.btn)) { min-width: 200px; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding-top: 36px; padding-bottom: 80px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; align-self: start; }
.dash-nav a, .dash-nav .linklike { display: block; padding: 10px 16px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; text-align: left; width: 100%; }
.dash-nav a:hover, .dash-nav .linklike:hover { background: var(--soft); color: var(--ink); }
.dash-nav a[aria-current] { background: var(--red-50); color: var(--red); font-weight: 600; }
.dash-main h1 { font-size: 1.8rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; background: #fff; }
.kpi span { display: block; color: var(--ink-3); font-size: .84rem; }
.kpi strong { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-main { position: relative; overflow: hidden; background: linear-gradient(120deg, #f6302f, #d3232a); color: #fff; border-color: transparent; }
.kpi-main::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); right: -30px; top: -40px; }
.kpi-main span { color: rgba(255,255,255,.85); }
.creds { background: var(--soft); border-radius: var(--r); padding: 4px 16px; margin-top: 12px; }
.creds dl { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 0 12px; margin: 0; align-items: center; }
.creds dt, .creds dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.creds dt { color: var(--ink-3); font-size: .84rem; }
.creds dd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; overflow-wrap: anywhere; }
.creds dl > :nth-last-child(-n+3) { border-bottom: 0; }
.copy { font: inherit; font-size: .78rem; font-weight: 600; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; color: var(--ink-2); }
.copy:hover { border-color: var(--red); color: var(--red); }
.item { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: #fff; }
.item + .item { margin-top: 14px; }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.summary { display: grid; gap: 9px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px dashed var(--line); padding-top: 13px; margin-top: 4px; font-weight: 700; font-size: 1.2rem; }
/* ways to pay: Stripe and SadaPay as cards; the picked one gets the red ring */
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
fieldset.field > legend { padding: 0; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.method { display: grid; align-content: start; gap: 12px; margin: 0; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; font-size: .86rem; font-weight: 400; color: var(--ink-2); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.method:hover { border-color: #d5d8df; }
.method:has(input:checked) { border-color: var(--red); background: #fffbfb; box-shadow: 0 0 0 3px var(--red-50); }
.method:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.method > :not(.method-top) { margin-left: 28px; }   /* lines up under the name, past the radio */
.method-top { display: flex; align-items: center; gap: 10px; }
.method-top input { margin: 0; flex: none; }
.method-top strong { color: var(--ink); font-weight: 600; font-size: 1rem; }
.method-top .badge { margin-left: auto; }
.method-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.method-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .8rem; font-weight: 600; }
.method-instant { display: inline-flex; align-items: center; gap: 4px; color: var(--green); }
.method-free { color: var(--green); }
.pay-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-logos img { display: block; width: 38px; height: 24px; }
.footer-pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge-brand { background: var(--red); color: #fff; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.seg label { margin: 0; font-size: .88rem; font-weight: 600; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 7px 16px; border-radius: 999px; color: var(--ink-3); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22,23,27,.12); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.topup { max-width: 640px; }
.topup-total { font-size: .9rem; color: var(--ink-2); min-height: 1.6em; margin: 0 0 14px; }
.co-pick { margin-bottom: 4px; }
.stripe-form { margin-top: 20px; }
.stripe-box { min-height: 120px; margin-bottom: 16px; }
.card-trust { display: grid; gap: 8px; margin-top: 16px; }
.card-trust p { margin: 0; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.cart-line:last-of-type { border-bottom: 0; }
.cart-line img { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); padding: 6px; background: #fff; }
.cart-line .qty-input { width: 76px; min-height: 40px; border-radius: 999px; text-align: center; }
.prow-name { color: var(--ink); text-decoration: none; font-weight: 600; }
.prow-name:hover { color: var(--red); }
.prow-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; min-height: 42px; }

/* ---------- listing pages (/tools, /products) ---------- */
.section-tight { padding-top: 28px; padding-bottom: 72px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filter-bar .groups { margin: 0; flex: 1 1 100%; min-width: 0; }
.filter-controls { display: flex; gap: 8px; flex: 1 1 auto; }
.filter-controls input, .filter-controls select, .tool-search input { min-height: 44px; border-radius: 999px; padding-left: 18px; }
.filter-controls input { flex: 1; min-width: 0; max-width: 420px; }
.filter-controls select { width: auto; padding-right: 36px; }
.show-out { margin: 0 0 18px; font-size: .88rem; color: var(--ink-2); }
.plan-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .8rem; font-weight: 500; color: var(--ink-2); text-decoration: none; align-self: flex-start; }
.plan-brand:hover { color: var(--red); }
.plan-brand img { width: 24px; height: 24px; border-radius: 7px; }
.plan-grid-home { padding-bottom: 0; }

/* ---------- content pages (legal, about, contact) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--soft); padding: 22px 0 34px; }
.page-hero .blob { position: absolute; right: -80px; top: -60px; width: 300px; height: 300px; }
.page-hero h1 { position: relative; margin: 0 0 6px; }
.page-hero p { position: relative; margin: 0; color: var(--ink-2); max-width: 60ch; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 80px; }
.doc-toc { position: sticky; top: 96px; align-self: start; font-size: .88rem; }
.doc-toc p { font-weight: 600; margin-bottom: 8px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.doc-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.doc-toc a:hover { color: var(--red); border-left-color: var(--red-100); }
.doc-toc a.on { color: var(--red); border-left-color: var(--red); font-weight: 500; }
.prose h2 { scroll-margin-top: 96px; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.doc-meta { font-size: .84rem; color: var(--ink-3); margin-bottom: 24px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; padding-top: 36px; padding-bottom: 80px; align-items: start; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; background: #fff; }
.contact-card + .contact-card { margin-top: 12px; }
a.contact-card:hover { color: var(--ink); border-color: var(--red-100); box-shadow: var(--shadow); }
.contact-card .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.contact-card .ic.wa { background: #e8f9ef; color: #1aa851; }
.contact-card strong { display: block; font-weight: 600; }
.contact-card span { color: var(--ink-2); font-size: .9rem; }

/* ---------- help ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 52px 0 26px; font-size: .9rem; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 3fr); gap: 48px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-links > div { display: flex; flex-direction: column; gap: 8px; }
.footer-contact { display: grid; gap: 8px; margin: 4px 0 16px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.footer-contact a svg { color: var(--red); flex: none; }
.footer-contact a:first-child svg { color: #1aa851; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); transition: transform .14s ease-out; }
.footer .socials a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.footer .footer-contact a { color: var(--ink); }
.footer .footer-contact a:hover { color: var(--red); }
.socials a:active { transform: scale(.94); }
.footer h2 { font-size: .92rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }

.footer-in a { color: var(--ink-2); text-decoration: none; }
.footer-in a:hover { color: var(--red); }
.footer-in span { color: var(--ink-2); }
.footer-brand p { color: var(--ink-2); max-width: 34ch; margin-top: 14px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--ink-3); font-size: .8rem; }

/* ---------- type: size-specific tracking ---------- */
.chip, .badge, .table th, .brand-card .plans, .brand-card .from span, .plan-price span, .stars, .hint, .crumbs, .doc-meta, .footer-base, .cur { letter-spacing: .01em; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; max-width: 440px; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .buybox { position: static; }
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-brand p { max-width: 60ch; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .topbar-in { gap: 10px; height: 64px; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
  .nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-10px); transform-origin: top center; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 18px 16px; box-shadow: 0 16px 30px -18px rgba(22,23,27,.35);
    transition: opacity .18s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--red); }
  .filter-controls { width: 100%; }
  .filter-controls input { width: auto; flex: 1; min-width: 0; }
  .tool-search { max-width: none; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
  .nav-wallet { background: none; padding: 13px 0; border-radius: 0; }
  .acct, .cur-top { display: none; }
  .nav .nav-only-m { display: flex !important; }
  .nav .cur { align-self: flex-start; margin-top: 12px; }
  .nav .cur a { padding: 7px 14px; border-bottom: 0; }
  .cart-link { padding: 0 12px; height: 40px; }
  .cart-link .cart-word { display: none; }
  .hero { padding: 28px 0 48px; }
  .searchbar input { padding-right: 18px; min-height: 54px; }
  .searchbar svg { top: 27px; }
  .searchbar .btn { position: static; width: 100%; margin-top: 10px; min-height: 50px; }
  .hero-art { max-width: 360px; margin-top: 8px; }
  .deal { max-width: 250px; padding: 10px 14px 10px 10px; }
  .section { padding: 44px 0; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .brand-card { padding: 16px; }
  .brand-card img { width: 44px; height: 44px; margin-bottom: 12px; }
  .brand-card .flag { top: 14px; right: 14px; }
  .help-band { padding: 32px 26px; border-radius: 22px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-hero-in img { width: 68px; height: 68px; border-radius: 20px; }
  .page-hero .blob { width: 140px; height: 140px; right: -64px; top: -56px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .doc-toc { position: static; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .brand-hero .blob { width: 140px; height: 140px; right: -64px; top: -56px; }
  .hero-art { max-width: 320px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 20px; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .dash-nav a, .dash-nav .linklike { white-space: nowrap; width: auto; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .cart-line { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .cart-line .line-total { grid-column: 2 / -1; }
  .creds dl { grid-template-columns: minmax(0, 1fr) auto; }
  .creds dt { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer { padding-bottom: 96px; } /* room for the floating WhatsApp button */
  .panel { padding: 20px; }
}
@media (max-width: 400px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .cur a { padding: 5px 9px; }
  .topbar-actions { gap: 8px; }
}
@media (pointer: coarse) {
  .groups a, .groups button { min-height: 44px; padding: 0 18px; }
  .cur a { padding: 9px 14px; }
  .copy { padding: 10px 14px; }
  .btn-sm { min-height: 44px; }
  .footer-in a { padding: 4px 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: #fff; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #c3c7d0; --line-2: #d5d8de; --ink-2: #3d414b; --ink-3: #5a5f6b; }
  .chip, .badge, .groups a, .groups button { box-shadow: inset 0 0 0 1px currentColor; }
}
/* payment received: the tick pops in and draws itself; app.js adds the party paper */
.done-head { display: flex; align-items: center; gap: 14px; }
.done-tick { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 0 0 6px var(--green-50); }
.done-tick path { stroke-dasharray: 20; }
.done-tick { animation: tick-pop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.done-tick path { animation: tick-draw .4s .3s ease-out both; }
@keyframes tick-pop { from { transform: scale(.3); opacity: 0; box-shadow: 0 0 0 0 var(--green-50); } }
@keyframes tick-draw { from { stroke-dashoffset: 20; } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

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

/* instant payment screen */
.creds dd.pay-amount { font-family: inherit; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pay-wait { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; font-weight: 600; }
.pay-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
@media (prefers-reduced-motion: no-preference) {
  .pay-dot { animation: pay-pulse 1.6s ease-in-out infinite; }
  @keyframes pay-pulse { 50% { box-shadow: 0 0 0 7px var(--green-50); } }
}
/* paid but not confirmed: proof for an admin to check */
.pay-claim { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-claim > summary { cursor: pointer; font-weight: 600; color: var(--red); width: fit-content; }
.pay-claim[open] > summary { margin-bottom: 8px; }
.pay-claim-form { max-width: 460px; margin-top: 14px; }
/* admin: payment proofs, one card each */
.proofs { list-style: none; margin: 0; padding: 0; }
.proof { display: grid; grid-template-columns: 96px minmax(0, 1fr) 270px; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.proof:first-child { padding-top: 2px; }
.proof:last-child { border-bottom: 0; padding-bottom: 2px; }
.proof-shot img, .proof-none { display: block; width: 96px; height: 150px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.proof-shot img { object-fit: cover; object-position: top; background: var(--soft); }
.proof-shot:hover img { border-color: var(--ink-3); }
.proof-none { display: grid; place-items: center; background: var(--soft); color: var(--ink-3); font-size: .78rem; text-align: center; padding: 8px; }
.proof-amt { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.proof-meta { margin: 2px 0 14px; color: var(--ink-2); font-size: .86rem; }
.proof dl { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: .88rem; }
.proof dt { color: var(--ink-3); }
.proof dd { margin: 0; overflow-wrap: anywhere; }
.proof-hint { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--amber-50); color: var(--amber); font-size: .84rem; }
.proof-act { display: grid; gap: 10px; }
.proof-act form { display: flex; gap: 8px; }
.proof-act input { flex: 1; min-width: 0; }
.proof-act p { margin: 0; }
@media (max-width: 900px) {
  .proof { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .proof-shot img, .proof-none { width: 76px; height: 118px; }
  .proof-act { grid-column: 1 / -1; }
  .proof dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .proof dd { margin-bottom: 8px; }
}

/* live pages: shown when there is news but someone is typing (assets/js/app.js) */
.live-pill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; border: 0; border-radius: 999px; padding: 12px 20px; min-height: 44px; background: var(--ink, #16171b); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45); cursor: pointer; }
.live-pill:active { transform: translateX(-50%) scale(.97); }

/* reviews: star ratings (product pages, order pages, admin) */
.rating { display: inline-block; line-height: 1; letter-spacing: 1px; white-space: nowrap; vertical-align: -.08em; }
.rating .on { color: #e8a317; }
.rating .off { color: #d4d6dc; }
.rating-link { display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.rating-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 1.0625rem; }
.reviews { list-style: none; margin: 8px 0 0; padding: 0; }
.reviews li { padding: 14px 0; border-top: 1px solid var(--line); }
.reviews p { margin: 6px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.rv-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-box summary { cursor: pointer; }
.review-form { display: grid; gap: 10px; margin-top: 10px; max-width: 520px; }
.review-form textarea { min-height: 64px; }
.review-form .btn { justify-self: start; }
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 1.75rem; line-height: 1; color: #d4d6dc; cursor: pointer; padding: 4px; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #e8a317; }
.stars-input input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* share card: the page's own banner (also what Google Images picks up) */
.share-card { margin-top: 32px; max-width: 560px; }
.share-card h2 { margin-bottom: 12px; }
.share-card img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* brand pages: the plain-words answers people search for, and neighbouring brands */
.brand-seo { margin-top: 40px; max-width: 760px; }
.brand-seo > p { color: var(--ink-2); }
.similar { margin-top: 32px; }
.similar-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.similar-list a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.similar-list a:hover { background: var(--soft); }
.similar-list img { border-radius: 8px; flex: none; }
.similar-list span span { display: block; font-weight: 400; font-size: .86rem; }


/* reseller API page */
.api-new { background: var(--green-50); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.api-new p { margin: 0 0 8px; color: #0c5b30; }
.api-keys { list-style: none; margin: 0 0 8px; padding: 0; }
.api-keys li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.api-keys li:first-child { border-top: 0; padding-top: 4px; }
.api-keys li > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.api-keys li > span { grid-column: 1; }
.api-keys li form { grid-column: 2; grid-row: 1 / span 2; }
.mono, .api-docs code, .api-quick code, .api-code pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-create { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 16px; }
.api-create .field { flex: 1 1 240px; margin: 0; }
.api-docs h3 { margin-top: 26px; font-size: 1.05rem; }
.api-docs ol, .api-docs ul { padding-left: 20px; }
.api-docs li { margin: 6px 0; }
.api-docs code, .api-quick code { font-size: .85em; background: var(--soft); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.api-code { position: relative; margin: 10px 0; }
.api-code pre { margin: 0; background: var(--ink); color: #f3f4f7; border-radius: var(--r); padding: 50px 18px 16px;   /* top bar holds the Copy button */ font-size: .82rem; line-height: 1.6; overflow-x: auto; white-space: pre; }
.api-code pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.api-code .copy { position: absolute; top: 9px; right: 10px; background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.api-table td { vertical-align: top; }
.api-table td:first-child { white-space: nowrap; }
.api-page.prose { max-width: 880px; }   /* room for code and tables; paragraphs stay readable at 72ch */
.api-page.prose > p, .api-page.prose > ul { max-width: 72ch; }
.api-docs > h2:first-child { margin-top: 0; }

.steps-note { margin: 18px 0 0; color: var(--ink-2); font-size: .93rem; }

/* reseller program page: light hero like the homepage, the margin card on the red blob */
.rx-hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.rx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rx-hero h1 { margin: 0 0 18px; font-size: clamp(2.1rem, 4vw, 3.15rem); line-height: 1.07; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.rx-lead { margin: 0 0 28px; font-size: 1.08rem; color: var(--ink-2); max-width: 44ch; }
.rx-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.rx-art { position: relative; display: grid; place-items: center; min-height: 500px; }
.rx-art .blob { position: absolute; inset: 2% -2% 4% 16%; width: 86%; height: 94%; }   /* off to the right, so it frames the card */
.rx-art .dot { position: absolute; border-radius: 50%; background: linear-gradient(135deg, #ff3b3b, #d8262c); }
.rx-art .dot-1 { width: 26px; height: 26px; bottom: 12%; left: 0; }
.rx-art .dot-2 { width: 16px; height: 16px; bottom: 8%; right: 4%; }
.rx-card { position: relative; width: min(100%, 400px); margin-right: 14%; background: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 2px 4px rgba(22,23,27,.05), 0 34px 70px -34px rgba(22,23,27,.5); }
.rx-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 14px; background: var(--soft); }
.rx-pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 8px 4px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: .74rem; font-weight: 600; color: var(--ink-2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-pick button img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.rx-pick button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22,23,27,.1); }
.rx-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rx-line b { display: block; font-size: 1.05rem; }
.rx-line small { display: block; color: var(--ink-3); font-size: .78rem; }
.rx-line .r { text-align: right; }
.rx-line .r b { font-variant-numeric: tabular-nums; }
.rx-price { display: block; padding: 16px 0 6px; }
.rx-price > span:first-child { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.rx-input { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; transition: border-color .15s; }
.rx-input:focus-within { border-color: var(--red); }
.rx-input i { font-style: normal; font-weight: 600; color: var(--ink-3); }
.rx-input input { flex: 1; min-width: 0; border: 0; padding: 12px 0; min-height: 0; background: none; font: inherit; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; box-shadow: none; outline: none; }
.rx-keep { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--green-50); color: #0c5b30; }
.rx-keep span { font-size: .85rem; font-weight: 600; }
.rx-keep strong { margin-left: auto; font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rx-keep small { font-size: .78rem; }
.rx-keep.is-loss { background: var(--red-50); color: var(--red-2); }
.rx-days, .rx-month { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rx-days > span, .rx-month > span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.rx-days div { display: flex; gap: 4px; }
.rx-days button { min-width: 40px; padding: 6px 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.rx-days button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.rx-month { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rx-month strong { font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rx-note { margin: 10px 0 0; font-size: .74rem; color: var(--ink-3); }
.rx-pick button:focus-visible, .rx-days button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.rx-section { padding: 72px 0; }
.rx-soft { background: var(--soft); }
.rx-title { margin: 0 0 28px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.035em; }
.rx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

.rx-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: f; }
.rx-flow li { position: relative; counter-increment: f; padding: 0 26px 0 0; }
.rx-flow li::before { content: counter(f); position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); font-weight: 700; }
.rx-flow li::after { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--red-100) 0 8px, transparent 8px 14px); }
.rx-flow li:last-child::after { display: none; }
.rx-flow li.is-done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.rx-flow b { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.rx-flow span { display: block; color: var(--ink-2); font-size: .92rem; max-width: 24ch; }

.rx-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.rx-wall a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.rx-wall a:hover { border-color: var(--red-100); transform: translateY(-2px); color: var(--ink); }
.rx-wall img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; flex: none; }
.rx-wall b { display: block; font-weight: 600; line-height: 1.25; }
.rx-wall small { color: var(--ink-3); font-size: .82rem; }

.rx-dev { background: var(--ink); color: #fff; }
.rx-dev-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.rx-dev .rx-title { margin-bottom: 14px; }
.rx-dev p { color: #c9ccd4; max-width: 46ch; margin: 0 0 22px; }
.rx-dev p a { color: #fff; }
.rx-dev .api-code pre { background: #24262c; }

.rx-faq { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.rx-faq .rx-title { margin: 0; }
.rx-faq .faq details:first-child { padding-top: 0; }
.rx-end { padding-top: 24px; }
.rx-end .help-band p a { color: #fff; }

@media (max-width: 980px) {
  .rx-hero-grid, .rx-dev-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rx-art { min-height: 0; padding: 40px 0; }
  .rx-card { margin-right: 0; }
  .rx-art .blob { inset: 0 0 0 10%; width: 90%; height: 100%; }
  .rx-flow { grid-template-columns: minmax(0, 1fr); }
  .rx-flow li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 0 0 22px; }
  .rx-flow li::before { grid-row: span 2; margin: 0; }
  .rx-flow li::after { left: 21px; right: auto; top: 44px; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--red-100) 0 8px, transparent 8px 14px); }
  .rx-flow span { max-width: none; }
  .rx-faq { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 560px) { .rx-hero { padding: 36px 0 48px; } .rx-section { padding: 56px 0; } .rx-card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .rx-wall a, .rx-input { transition: none; } }

/* account: reseller API */
.api-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.api-top h1 { margin: 0 0 4px; }
.api-top p { margin: 0; }
.api-kpis { margin-bottom: 20px; }
.api-kpis .kpi strong { font-size: 1.35rem; }
.api-kpis .kpi a { display: inline-block; margin-top: 6px; font-size: .84rem; font-weight: 600; }
.api-quick h2 { margin-bottom: 10px; }
.api-quick ol { margin: 0 0 6px; padding-left: 20px; color: var(--ink-2); font-size: .93rem; }
.api-quick li { margin: 6px 0; }
.api-links { display: flex; align-items: center; gap: 18px; margin: 14px 0 0; }
