/* FB Internet website: the app's colors (lilac + green), IRANYekan (the owner's webfonts) */
@font-face { font-family: IRANYekan; src: url(fonts/iranyekan-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: IRANYekan; src: url(fonts/iranyekan-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: IRANYekan; src: url(fonts/iranyekan-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: IRANYekan; src: url(fonts/iranyekan-extrabold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #F8F6FD;
  --surface: #FFFFFF;
  --surface-2: #F1EDFB;
  --text: #1C1A22;
  --muted: #5E5A6B;
  --line: #E6E1F2;
  --green: #1EA95A;
  --green-ink: #0B6B35;
  --green-soft: #E3F6EA;
  --lilac: #6C55B8;
  --lilac-soft: #EEE9FB;
  --danger: #C2410C;
  --danger-soft: #FDEEE6;
  --shadow: 0 1px 2px rgba(40, 24, 90, .04), 0 12px 32px rgba(60, 40, 120, .08);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131217;
    --surface: #1C1B22;
    --surface-2: #23212B;
    --text: #EDEAF5;
    --muted: #A9A4B8;
    --line: #2F2C39;
    --green: #2DBF6B;
    --green-ink: #7FE0A6;
    --green-soft: #183323;
    --lilac: #CDBDFF;
    --lilac-soft: #2A2440;
    --danger: #FDBA8C;
    --danger-soft: #3A2218;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.85 IRANYekan, Tahoma, sans-serif; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-ink); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: #fff; font: 700 15px/1 IRANYekan, Tahoma, sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 18px rgba(30, 169, 90, .28);
}
.btn:active { transform: none; }
.btn:focus-visible, .icon-btn:focus-visible, .link:focus-visible, summary:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--lilac); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; font-size: 20px; }

/* ---------------------------------------------------------------- header */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.2px; }
.brand span { direction: ltr; }
.links { display: flex; gap: 22px; margin-inline-start: 12px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-actions { margin-inline-start: auto; display: flex; gap: 10px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-weight: 700; font-size: 13.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.5px; margin: 18px 0 16px; line-height: 1.35; }
.hl { color: var(--green); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 0; margin: 36px 0 0; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 19px; font-weight: 800; }
.stats span { color: var(--muted); font-size: 14px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
.glow { position: absolute; inset: 6% 2%; border-radius: 50%; filter: blur(48px); opacity: .9;
  background: radial-gradient(closest-side at 35% 40%, color-mix(in srgb, var(--lilac) 45%, transparent), transparent),
              radial-gradient(closest-side at 65% 62%, color-mix(in srgb, var(--green) 40%, transparent), transparent); }
.hero-art .phone { width: min(290px, 74%); transform: rotate(-3deg); }

.phone { position: relative; border-radius: 38px; padding: 9px; background: linear-gradient(160deg, #2b2836, #0e0d12); box-shadow: 0 30px 60px rgba(30, 20, 70, .28), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { width: 100%; height: auto; aspect-ratio: 360 / 780; object-fit: cover; border-radius: 30px; background: var(--surface-2); }

/* ---------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section.alt { background: var(--surface-2); }
.head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.3px; }
.head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature h3 { font-size: 18px; font-weight: 700; margin: 16px 0 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; }
.ico.green { background: var(--green-soft); color: var(--green-ink); }
.ico.lilac { background: var(--lilac-soft); color: var(--lilac); }
.ico.big { width: 60px; height: 60px; font-size: 30px; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shots figure, .desk figure { margin: 0; }
.shots figcaption, .desk figcaption { text-align: center; margin-top: 14px; font-weight: 700; }
/* the owner's shots are phones on a light lilac/mint card; plain screenshots get the same card from CSS */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.shot.framed { display: grid; place-items: center; background: linear-gradient(150deg, #E7E0FA, #F5F2FD 50%, #DCF2E5); }
.shot.framed .phone { width: 52%; padding: 7px; border-radius: 30px; }
.shot.framed .phone img { aspect-ratio: auto; border-radius: 24px; }
.sub-head { text-align: center; font-size: 22px; font-weight: 800; margin: 56px 0 22px; }
.desk { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.desk img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Android install guide (#install, under the downloads) */
.install { max-width: 820px; margin: 0 auto; }
.install .intro { text-align: center; color: var(--muted); max-width: 660px; margin: -8px auto 24px; }
.guide { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: g; }
.guide li { counter-increment: g; position: relative; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px 18px; padding-inline-start: 66px; }
.guide li::before { content: counter(g, persian); position: absolute; inset-inline-start: 16px; top: 15px; width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); font-weight: 800; }
.guide h3 { font-size: 17px; font-weight: 800; margin: 3px 0 4px; }
.guide p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.tip { background: var(--lilac-soft); border-radius: 16px; padding: 14px 16px; }
.tip b { color: var(--lilac); }
.tip p { margin-top: 6px; font-size: 14px; line-height: 1.85; }
.dl .more { display: block; text-align: center; margin-top: 12px; color: var(--green-ink); font-weight: 700; font-size: 14.5px; }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dl h3 { font-size: 21px; font-weight: 800; margin-top: 16px; }
.dl .ver { color: var(--green-ink); font-weight: 700; font-size: 14px; margin-top: 2px; }
.dl .note { color: var(--muted); font-size: 14.5px; margin: 12px 0 22px; flex: 1; }

.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto 26px; }
.kind { font: inherit; color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease; }
.kind b { display: block; font-size: 17px; font-weight: 800; }
.kind span { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.kind[aria-checked="true"] { border-color: var(--green); background: var(--green-soft); }
.kind[aria-checked="true"] b { color: var(--green-ink); }
.kind:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; } /* 3 or 4 plans fill the row */
.plan { background: var(--surface); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; text-align: center; border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease; }
.plan .gb { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .gb b { display: block; font-size: 46px; line-height: 1.25; font-weight: 800; color: var(--text); }
.plan .days { display: inline-block; margin: 8px auto 0; padding: 2px 12px; border-radius: 999px; background: var(--lilac-soft); color: var(--lilac); font-size: 13px; font-weight: 700; }
.plan .price { margin: 18px 0 4px; font-size: 15px; color: var(--muted); }
.plan .price b { font-size: 24px; font-weight: 800; color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; color: var(--muted); font-size: 14px; flex: 1; }
.plan li { padding: 3px 0; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; margin-inline-end: 6px; }
.pay-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 28px; color: var(--muted); font-size: 14.5px; text-align: center; }
.pay-note svg { font-size: 18px; color: var(--green); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 18px; }
.steps h3 { font-size: 18px; margin: 14px 0 6px; }
.steps p { color: var(--muted); font-size: 15px; }

details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 22px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-inline-start: auto; font-size: 22px; line-height: 1; color: var(--lilac); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 18px; font-size: 15.5px; }

.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: 14.5px; }
.foot .tiny { margin-inline-start: auto; }
.tiny { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- purchase sheet */
.sheet { width: min(520px, 100% - 24px); max-height: min(92vh, 860px); max-height: min(92svh, 860px); border: 0; padding: 0; border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(20, 10, 60, .35); }
.sheet::backdrop { background: rgba(18, 12, 40, .62); }
.sheet[open] { display: flex; flex-direction: column; animation: up .22s ease; }
@keyframes up { from { transform: translateY(14px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 10px; }
.sheet-head h2 { font-size: 19px; font-weight: 800; }
.sheet-body { padding: 6px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.sum b { font-size: 17px; }
.sum span { color: var(--muted); font-size: 14px; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); padding: 0 14px; font: 500 16px IRANYekan, Tahoma, sans-serif; }
.field input:focus { outline: none; border-color: var(--lilac); }
.ltr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
.copy { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 14px; margin-top: 6px; }
.copy .val { flex: 1; min-width: 0; font-weight: 800; font-size: 20px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy .val.small { font-size: 14px; font-weight: 500; }
.copy .btn { min-height: 38px; padding: 0 14px; font-size: 13.5px; box-shadow: none; flex: none; }
.kv { color: var(--muted); font-size: 14px; margin-top: 16px; }
.card-no { letter-spacing: 1px; white-space: nowrap; }
#pay-body:focus { outline: none; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 10px 14px; border-radius: 14px; background: var(--lilac-soft); color: var(--lilac); font-weight: 700; font-size: 14px; }
.timer b { font-variant-numeric: tabular-nums; direction: ltr; }
.msg { border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: 14.5px; background: var(--green-soft); color: var(--green-ink); }
.msg.warn { background: var(--lilac-soft); color: var(--lilac); }
.msg.err { background: var(--danger-soft); color: var(--danger); }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.row .btn { flex: 1 1 140px; }
.waiting { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--green); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { text-align: center; padding: 6px 0 4px; }
.done .ok { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 34px; }
.done h3 { font-size: 21px; font-weight: 800; }
.steps-mini { margin: 16px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; }
ol.steps-mini { list-style-type: persian; }
.svc { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 12px; }
.svc-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.svc-top span { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }
.svc-top span.off { background: var(--surface-2); color: var(--muted); }
.svc-top .kind-tag { margin-inline: auto 8px; background: var(--lilac-soft); color: var(--lilac); } /* name first, tags at the end */
.svc-top .kind-tag.plus { background: var(--green-soft); color: var(--green-ink); }
.svc-top .kind-tag.emergency { background: var(--danger-soft); color: var(--danger); }
.svc-top span.warn { background: var(--danger-soft); color: var(--danger); }
.svc.soon { border-color: var(--danger); }
.svc .msg, .svc .copy { margin-top: 10px; }
.svc .row { margin-top: 12px; }
.svc-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13.5px; }

/* sign-in, the buyer's account and the admin view (in the same dialog; wide for the panels) */
.sheet.wide { width: min(880px, 100% - 24px); }
#account svg { font-size: 18px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.tab { flex: 1; padding: 10px; border: 0; border-radius: 11px; background: none; color: var(--muted); font: 700 15px IRANYekan, Tahoma, sans-serif; cursor: pointer; }
.tab.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.acct-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 17px; }
.acct-actions { display: flex; gap: 8px; }
.panel-title { font-size: 16.5px; font-weight: 800; margin: 22px 0 2px; }
details.box { margin: 14px 0 0; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: none; }
details.box summary { cursor: pointer; font-weight: 700; padding: 13px 0; }
details.box[open] { padding-bottom: 14px; }
details.box p { padding-bottom: 0; }
details.box summary + * { margin-top: 0; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 10px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--text); font: 500 15px IRANYekan, Tahoma, sans-serif; cursor: pointer; }
.pick-row span { color: var(--green-ink); font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.stat span, .stat small { color: var(--muted); font-size: 12.5px; }
.stat b { font-size: 19px; font-weight: 800; }
.find { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.find input { flex: 1 1 200px; min-width: 0; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: 500 15px IRANYekan, Tahoma, sans-serif; }
.tbl { overflow-x: auto; margin-top: 8px; border: 1.5px solid var(--line); border-radius: 14px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; }
.tbl th { background: var(--surface-2); color: var(--muted); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.ok { color: var(--green-ink); font-weight: 700; }
.tbl td.bad { color: var(--danger); font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .links { display: none; }
  .features, .downloads, .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(4, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { scroll-snap-align: center; }
}
@media (max-width: 760px) {
  .hero { padding: 36px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { min-height: 0; padding: 12px 0; }
  .hero-art .phone { width: min(230px, 62%); }
  .section { padding: 64px 0; }
  .features, .downloads, .steps, .desk, .tips { grid-template-columns: 1fr; }
  .head { margin-bottom: 32px; }
}
@media (max-width: 520px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .nav-in { gap: 10px; height: 62px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  #account span { display: none; }
  #account { padding: 0 12px; }
  .lead { font-size: 16.5px; }
  .cta .btn { flex: 1 1 100%; }
  .stats { gap: 10px 22px; }
  .plans { gap: 12px; }
  .plan { padding: 20px 12px; }
  .plan .gb b { font-size: 36px; }
  .plan .price b { font-size: 19px; }
  .shots { grid-template-columns: repeat(4, 68%); }
  .sheet, .sheet.wide { width: 100%; max-width: 100%; max-height: 94vh; max-height: 94svh; margin: auto 0 0; border-radius: 24px 24px 0 0; } /* the browser's dialog max-width would leave a gap */
  .sheet-body { padding-inline: 16px; }
  .copy .val { font-size: 18px; }
  .copy .val.card-no { font-size: 16.5px; letter-spacing: .3px; }
  .foot .tiny { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* support button, permanent delete, referral form, the owner's switches and receipts (2026-11-02) */
.foot .btn svg, .faq-more .btn svg { font-size: 17px; }
.faq-more { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 20px; color: var(--muted); }
.btn.danger { background: var(--danger); }
.link.danger { color: var(--danger); font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 14.5px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--green); }
.seg { border: 0; padding: 0; margin: 14px 0 0; }
.seg legend { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.rc-img img { display: block; max-width: 100%; max-height: 460px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); }
.badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
  background: var(--danger); color: #fff; font-size: 13px; vertical-align: middle; margin-inline-start: 6px; }

/* mouse only (see above) */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30, 169, 90, .34); }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--lilac); }
  .btn.danger:hover { box-shadow: 0 10px 24px rgba(194, 65, 12, .3); }
  .btn[disabled]:hover { transform: none; box-shadow: none; }
  .kind:hover, .pick-row:hover { border-color: var(--green); }
  .plan:hover { border-color: var(--green); transform: translateY(-2px); }
  .links a:hover { color: var(--text); }
}
html:has(dialog[open]) { overflow: hidden; } /* the page behind an open sheet stays put */

/* admin view (2026-11-02): renewal switch, card limits, live search, panels; badges; the web app card */
.panel-title.first { margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.grid2 .field { margin: 12px 0 0; }
.field select { width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); padding: 0 12px; font: 500 15px IRANYekan, Tahoma, sans-serif; }
.field input[type=number] { direction: ltr; text-align: left; }
.svc .kv { margin-top: 6px; }
.svc .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.svc .acts .btn { flex: 0 1 auto; }
.svc .find { margin-top: 12px; }
.svc .find .btn { flex: 1 0 auto; }
.svc.on { border-color: var(--green); }
.svc details.box { margin-top: 12px; }
.svc-list { margin: 8px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: 14px; }
.svc-list li { margin-top: 4px; }
.test-out { display: flex; align-items: center; gap: 8px; }
.test-out.ok { color: var(--green-ink); }
.test-out.err { color: var(--danger); }
.spin.sm { width: 14px; height: 14px; border-width: 2px; }
#account { position: relative; }
.dot-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.btn .badge { margin-inline-start: 2px; }
.dl.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 22px; }
.dl.wide h3 { margin-top: 0; }
.dl.wide .note { margin: 4px 0 0; }
.dl.wide .btn { min-width: 220px; }
.dl.wide .pwa-help { grid-column: 1 / -1; margin-top: 10px; }
@media (max-width: 760px) {
  .dl.wide { grid-template-columns: 1fr; }
  .dl.wide h3 { margin-top: 10px; }
  .dl.wide .btn { margin-top: 14px; min-width: 0; }
}

/* admin: plans switched on / off (2026-11-01) */
.plan-kind { margin-top: 10px; }
.plan-checks { display: flex; flex-wrap: wrap; gap: 0 18px; }
.plan-checks .check { margin: 6px 0; }
.msg.special { padding-inline-start: 30px; } /* the emergency notes in the purchase box */
.msg.special li { margin: 2px 0; }
.plan-kind.check { margin-top: 14px; }
.plan ul.notes { text-align: start; }
.plan ul.notes li::before { content: "•"; color: var(--danger); } /* warnings, not ticks */
