/* Idquik — mobile app. Designed at 390 px wide and scaled to fit the device.
   Colours sampled from the Figma frames (light + dark). */

:root {
  --bg: #f8f5f0;
  --card: #ffffff;
  --text: #17140f;
  --muted: #7d766c;
  --line: #ece7df;
  --field: #ffffff;
  --neutral-soft: #f2ede7;
  --orange: #e75500;
  --orange-soft: #fff0e5;
  --gold: #a47a14;
  --gold-soft: #fbf2de;
  --green: #1f9d5b;
  --green-soft: #e3f8ec;
  --switch-off: #e6e1d8;
  --knob: #ffffff;
  --ink-btn: #17140f;
  --ink-btn-text: #ffffff;
  --tile: #f8f5f0;
  --shadow: 0 8px 28px rgba(60, 40, 20, .06);
  --page: #e9e4dc;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #100c09;
  --card: #1c1914;
  --text: #f8f5f0;
  --muted: #9d958b;
  --line: #312c25;
  --field: #100c09;
  --neutral-soft: #292621;
  --orange-soft: #372012;
  --gold: #c2921d;
  --gold-soft: #332508;
  --green: #35b774;
  --green-soft: #113221;
  --switch-off: #3b332d;
  --knob: #1c1914;
  --ink-btn: #17120d;
  --ink-btn-text: #ffffff;
  --tile: #100c09;
  --shadow: none;
  --page: #050403;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  position: fixed;
  inset: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;
}
input { -webkit-user-select: text; user-select: text; }
img, a { -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a, button, label, .chip { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.mono { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: isolate; }
.brand { font-family: Syne, "Arial Black", sans-serif; font-weight: 800; direction: ltr; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.orange { color: var(--orange); }

/* ---------- App shell ---------- */
.app {
  --sat: calc(env(safe-area-inset-top, 0px) / var(--k, 1));
  --sab: calc(env(safe-area-inset-bottom, 0px) / var(--k, 1));
  position: fixed;
  top: 0;
  left: 50%;
  width: var(--w, 100%);
  height: var(--h, 100%);
  transform: translateX(-50%) scale(var(--k, 1));
  transform-origin: top center;
  overflow: hidden;
  background: var(--bg);
}
.page { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 20px calc(20px + var(--sab));
  display: flex;
  flex-direction: column;
}
.screen::-webkit-scrollbar { display: none; }
.screen > * { flex: none; }
.screen > .push { margin-top: auto; }
.has-tabs .screen { padding-bottom: 20px; }
.page:not(.public) .screen:not(:has(> .header)) { padding-top: calc(var(--sat) + 12px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: calc(var(--sat) + 14px) 20px 8px;
  margin: 0 -20px 8px;
  text-align: center;
}
.header.start { grid-template-columns: 1fr 44px; text-align: right; }
.app.all-read .icon-btn.has-dot::after { display: none; }
.header h1 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.header p { font-size: 11px; color: var(--muted); }

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  flex: none;
}
.icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; }
.i.lg { width: 38px; height: 38px; stroke-width: 1.7; }

/* ---------- Building blocks ---------- */
.card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 14px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 12px; }
.section-head h2 { font-size: 17px; font-weight: 700; }
.section-head :is(a, button) { font-size: 12px; color: var(--orange); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--line);
}
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }

.badge-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--orange-soft);
  color: var(--orange);
}
.badge-ico.round { border-radius: 50%; }
.badge-ico.neutral { background: var(--neutral-soft); color: var(--text); }
.badge-ico.gold { background: var(--gold-soft); color: var(--gold); }
.badge-ico.solid { background: var(--orange); color: #fff; }
.badge-ico.ink { background: var(--ink-btn); color: #fff; }
.badge-ico.amber { background: #a97d17; color: #fff; }
.badge-ico b { font-size: 13px; direction: ltr; }

.rows > * { display: flex; align-items: center; gap: 12px; min-height: 60px; width: 100%; text-align: right; }
.rows > * + * { border-top: 1px solid transparent; }
.grow { flex: 1; min-width: 0; }
.title { font-size: 13px; font-weight: 700; }
.sub { font-size: 11px; color: var(--muted); }

/* ---------- Switch ---------- */
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--switch-off); flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--knob); transition: right .2s; }
.switch[aria-checked="true"] { background: var(--orange); }
.switch[aria-checked="true"]::after { right: 21px; }

/* ---------- Tab bar ---------- */
.tabbar {
  flex: none;
  display: flex;
  align-items: center;
  height: calc(72px + var(--sab));
  padding: 0 14px var(--sab);
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow);
}
.tabbar a { flex: 1; display: grid; justify-items: center; gap: 3px; font-size: 10px; color: var(--muted); }
.tabbar .ti { width: 46px; height: 30px; display: grid; place-items: center; border-radius: 99px; }
.tabbar a.active { color: var(--orange); font-weight: 700; }
.tabbar a.active .ti { background: var(--orange-soft); }

/* ---------- 01 Onboarding ---------- */
.screen > .hero { position: relative; flex: 1 0 290px; max-height: 430px; margin: 4px 4px 16px; border-radius: 28px; background: var(--orange); overflow: hidden; }
.screen > .intro { margin-bottom: 0; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero::before { width: 190px; height: 190px; left: -60px; top: -50px; }
.hero::after { width: 150px; height: 150px; right: -50px; bottom: -35px; }
.hero > .brand { position: absolute; top: 22px; left: 24px; font-size: 21px; color: #fff; z-index: 1; }
.mini-card { position: absolute; z-index: 1; top: 56%; left: 50%; translate: -50% -50%; width: 240px; padding: 18px 16px; border-radius: 20px; background: var(--card); rotate: 5deg; box-shadow: 0 18px 30px rgba(80, 25, 0, .28); }
.mini-card .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mini-card .url { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--neutral-soft); font-size: 11px; direction: ltr; justify-content: flex-end; }
.mini-card .quick { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero-pill { position: absolute; z-index: 1; bottom: 24px; left: 62%; translate: -50% 0; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 99px; background: #17140f; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hero-pill .i { color: var(--orange); }

.intro { padding: 8px 6px 0; }
.screen > .intro { margin-bottom: 0; }
.intro h1 { font-size: 26px; line-height: 1.65; margin-bottom: 10px; }
.intro p { font-size: 12px; line-height: 2.1; color: var(--muted); }
.dots { display: flex; direction: ltr; justify-content: flex-end; gap: 6px; margin-top: 18px; }
.dots i { width: 8px; height: 8px; border-radius: 9px; background: var(--switch-off); }
.dots i:last-child { width: 22px; background: var(--orange); }
.stack { display: grid; gap: 12px; }
.screen > .stack.push { padding: 16px 4px 0; }

/* ---------- Avatars ---------- */
.avatar { display: grid; place-items: center; border-radius: 50%; flex: none; font-weight: 800; }
.avatar.md { width: 44px; height: 44px; font-size: 14px; background: var(--neutral-soft); }
.avatar.gold { background: var(--gold-soft); color: var(--gold); }
.avatar.ring { border: 2px solid var(--gold); }

/* ---------- Item cards (activity, leads, links) ---------- */
.items { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: right; }
.item .title, .item .sub { display: block; }

/* ---------- 02 Home ---------- */
.header.greet { grid-template-columns: 44px 1fr 44px; text-align: right; gap: 10px; }
.id-card { padding: 18px 18px 16px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(231, 85, 0, .95) 0, rgba(150, 55, 0, .45) 26%, transparent 54%), #17140f; }
:root[data-theme="dark"] .id-card { background-color: #1c1914; }
.id-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(255, 255, 255, .75); }
.online { display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; background: rgba(31, 157, 91, .22); color: #4fd08e; font-size: 10px; font-weight: 700; }
.online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.id-who { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.id-who strong { display: block; font-size: 20px; line-height: 1.6; }
.id-who small { display: block; font-size: 11px; color: rgba(255, 255, 255, .7); }
.avatar.id { width: 54px; height: 54px; font-size: 20px; background: var(--orange); }
.id-link { display: flex; align-items: center; gap: 4px; min-height: 46px; padding: 0 10px 0 6px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.id-link .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; font-size: 11.5px; padding-right: 4px; }
.id-link button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; }
.id-progress { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; margin-top: 14px; font-size: 10.5px; }
.id-progress b { color: var(--orange); }
.id-progress .bar { grid-column: 1 / -1; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.id-progress .bar i { display: block; height: 100%; border-radius: 9px; background: var(--orange); }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0; text-align: center; }
.qa a { display: grid; justify-items: center; gap: 7px; font-size: 10.5px; }
.qa span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.stat-grid + .section-head { margin-top: 20px; }

/* ---------- 03 Public profile ---------- */
.public .screen { padding: 0 0 var(--sab); }
.cover { position: relative; height: calc(150px + var(--sat)); background: var(--orange); }
.cover::before, .cover::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.cover::before { width: 200px; height: 200px; left: -40px; top: -90px; }
.cover::after { width: 130px; height: 130px; left: 90px; bottom: -60px; }
.cover-clip { position: absolute; inset: 0; overflow: hidden; }
.cover-clip::before { content: ""; position: absolute; width: 170px; height: 170px; right: -60px; top: -60px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.cover .icon-btn { position: absolute; top: calc(var(--sat) + 14px); z-index: 2; background: rgba(255, 255, 255, .18); border: 0; color: #fff; }
.cover .share-btn { left: 20px; }
.cover .back-btn { right: 20px; }
.cover .big-avatar { position: absolute; z-index: 2; right: 20px; top: calc(var(--sat) + 96px); width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); border: 4px solid var(--bg); font-size: 40px; font-weight: 800; }
.big-avatar .tick { position: absolute; left: 6px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; border: 3px solid var(--bg); }
.big-avatar .tick .i { width: 13px; height: 13px; stroke-width: 3; }
.public-body { padding: 18px 24px 24px; }
.available { display: inline-flex; float: left; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 10px; font-weight: 700; }
.available::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.public-body h1 { clear: both; font-size: 20px; padding-top: 24px; }
.public-body .job { font-size: 12px; color: var(--muted); }
.meta { display: flex; gap: 14px; margin-top: 2px; font-size: 11px; color: var(--muted); }
.meta span { display: flex; align-items: center; gap: 4px; }
.bio { margin-top: 14px; font-size: 12px; line-height: 2.1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 11px; color: var(--muted); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink-btn); border-color: var(--ink-btn); color: #fff; font-weight: 700; }
.public-body > .chips { margin-top: 14px; }
.actions { display: flex; gap: 8px; margin: 18px 0 24px; }
.actions .btn { flex: 1; min-height: 52px; }
.actions .icon-btn { width: 52px; height: 52px; }
.link-list { display: grid; gap: 10px; margin-top: 12px; }
.link-row { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: right; }
.link-row .mono { display: block; text-align: right; font-size: 10.5px; color: var(--muted); }

/* ---------- 04 Share ---------- */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 99px; background: var(--neutral-soft); border: 1px solid var(--line); margin-bottom: 18px; }
:root[data-theme="dark"] .segmented { background: var(--card); }
.segmented button { min-height: 40px; border-radius: 99px; font-size: 11px; color: var(--muted); }
.segmented button[aria-selected="true"] { background: var(--card); color: var(--text); font-weight: 700; }
:root[data-theme="dark"] .segmented button[aria-selected="true"] { background: var(--bg); }
.qr-card { min-height: 330px; padding: 22px; display: flex; flex-direction: column; align-items: center; border-radius: 28px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(231, 85, 0, .95) 0, rgba(150, 55, 0, .45) 28%, transparent 55%), #17140f; }
:root[data-theme="dark"] .qr-card { background-color: #1c1914; }
.qr-head { align-self: stretch; display: flex; justify-content: space-between; align-items: center; }
.qr-head .sub { color: rgba(255, 255, 255, .75); }
.qr-head h2 { font-size: 16px; }
.qr-head .brand { color: var(--orange); font-size: 16px; }
.qr-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.qr-box { position: relative; width: 190px; height: 190px; margin-top: 16px; padding: 14px; border-radius: 22px; background: #fff; color: #17140f; display: grid; place-items: center; }
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-logo { position: absolute; width: 34px; height: 34px; border-radius: 9px; background: var(--orange); border: 3px solid #fff; display: grid; place-items: center; color: #fff; font-size: 12px; }
.qr-hint { margin-top: 16px; font-size: 11px; color: rgba(255, 255, 255, .75); text-align: center; }
.copy-row { display: flex; direction: ltr; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; margin-top: 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.copy-row .mono { flex: 1; text-align: right; font-size: 11px; }
.copy-row button { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 99px; background: var(--ink-btn); color: #fff; font-size: 11px; font-weight: 700; direction: rtl; }
.send-via { margin-top: 14px; }
.send-via h2 { font-size: 15px; margin-bottom: 14px; }
.send-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.send-grid button { display: grid; justify-items: center; gap: 6px; font-size: 10px; }
.send-grid span.circle { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); }
.screen > .after-card { margin-top: 16px; }

/* ---------- 05 Login ---------- */
.page.glow { background: radial-gradient(circle at 88% 4%, rgba(231, 85, 0, .17), transparent 42%), var(--bg); }
.logo-iq { align-self: flex-start; width: 64px; height: 64px; margin: 28px 4px 24px 0; border-radius: 18px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 27px; }
.panel { flex: none; padding: 8px 4px 0; }
.panel h1 { font-size: 24px; margin-bottom: 8px; }
.panel .lead { font-size: 12px; color: var(--muted); line-height: 2.1; }
.label { display: block; font-size: 11px; color: var(--muted); margin: 14px 2px 6px; }
.input { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 18px; background: var(--field); border: 1px solid var(--line); color: var(--muted); }
.input input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: 0; color: var(--text); font-size: 12.5px; text-align: right; direction: ltr; }
.input:focus-within, .input.accent { border-color: var(--orange); }
.input.accent .i { color: var(--orange); }
.fine { margin-top: 14px; font-size: 10px; color: var(--muted); }
.screen > * .bottom, .screen > .bottom { margin-top: auto; padding: 24px 4px 4px; }
.or { display: flex; align-items: center; gap: 14px; margin: 12px 0; font-size: 11px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two .btn { min-height: 54px; }

/* ---------- 06 OTP ---------- */
.solo-back { display: flex; justify-content: flex-start; margin: 4px 0 18px; }
.step-title { font-size: 20px; line-height: 1.8; }
.step-sub { font-size: 11.5px; color: var(--muted); }
.step-sub a { color: var(--orange); margin-right: 6px; }
.otp { display: grid; grid-template-columns: repeat(5, 56px); justify-content: space-between; direction: ltr; margin: 20px 4px; }
.otp span { height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; font-weight: 700; background: var(--card); border: 1px solid var(--line); }
.otp span.filled { border-color: var(--text); }
.otp span.cursor { border-color: var(--orange); border-width: 2px; }
.otp span.cursor::after { content: ""; width: 2px; height: 22px; background: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.resend { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 24px; }
.keypad { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; padding-bottom: 4px; }
.keypad button { height: 52px; font-size: 18px; font-weight: 700; display: grid; place-items: center; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.keypad button[data-key="del"] { background: none; box-shadow: none; }
.keypad button:active { background: var(--neutral-soft); }

/* ---------- 07 Claim handle ---------- */
.step-label { font-size: 10px; font-weight: 700; color: var(--orange); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 20px; }
.progress i { height: 4px; border-radius: 9px; background: var(--switch-off); }
.progress i.on { background: var(--orange); }
.claim-card { margin-top: 8px; }
.handle { display: flex; direction: ltr; align-items: center; gap: 12px; min-height: 56px; padding: 0 12px; border-radius: 18px; border: 2px solid var(--green); background: var(--field); }
.handle .ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.handle .ok .i { width: 14px; height: 14px; stroke-width: 3; }
.handle label { flex: 1; display: flex; justify-content: flex-end; align-items: center; font-size: 14px; color: var(--muted); }
.handle input { background: none; border: 0; outline: 0; font-weight: 700; width: 4ch; max-width: 18ch; }
.handle.bad { border-color: var(--orange); }
.handle.bad .ok { background: var(--orange); }
.status-line { margin-top: 8px; font-size: 11px; color: var(--green); }
.status-line.bad { color: var(--orange); }
.suggest { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.suggest .chip { font-size: 10.5px; flex: none; }

/* ---------- 08 Published ---------- */
.success { position: relative; margin-top: 4px; padding: 40px 8px 12px; text-align: center; }
.success .burst { width: 140px; height: 140px; margin: 0 auto 36px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; }
.success .burst span { width: 108px; height: 108px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(231, 85, 0, .35); }
.success .burst .i { width: 46px; height: 46px; stroke-width: 1.3; }
.success h1 { font-size: 22px; }
.success p { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 2.1; }
.confetti { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: pop .6s ease-out both; }
@keyframes pop { from { scale: 0; } 70% { scale: 1.5; } to { scale: 1; } }
.public-link { display: flex; direction: ltr; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.public-link div { text-align: right; }
.public-link .mono { display: block; font-size: 12px; font-weight: 600; }

/* ---------- Stat cards (02, 09) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px 10px 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.stat .badge-ico { width: 30px; height: 30px; border-radius: 10px; }
.stat strong { display: block; font-size: 18px; margin-top: 10px; }
.stat small { display: block; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.stat em { font-style: normal; font-size: 8.5px; color: var(--green); }
.stats-sources { margin-top: 22px; }
.delta { font-size: 9px; color: var(--muted); direction: ltr; }

/* ---------- Lists: 10 Notifications / 11 Leads ---------- */
.list { padding: 6px 14px; }
.list .rows > * { min-height: 64px; }
.screen > .list + .section-head { margin-top: 22px; }
.time { font-size: 9.5px; color: var(--muted); align-self: center; }
.unread-cleared .unread { opacity: .6; }
.search { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; margin-bottom: 20px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: 0; font-size: 12px; color: var(--text); }
.lead-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; direction: rtl; }
.tag { padding: 1px 10px; border-radius: 99px; font-size: 9px; font-weight: 700; background: var(--orange-soft); color: var(--orange); }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.tag.green { background: var(--green-soft); color: var(--green); }
.empty { padding: 20px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- 12 Tools ---------- */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool { display: block; min-height: 156px; padding: 16px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); text-align: right; }
.tool-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tool-head .badge-ico { width: 42px; height: 42px; border-radius: 14px; }
.new { padding: 2px 10px; border-radius: 99px; background: #17140f; color: #fff; font-size: 9px; font-weight: 700; }
:root[data-theme="dark"] .new { background: var(--neutral-soft); }
.tool .title { display: block; margin-bottom: 4px; }
.tool .sub { display: block; font-size: 10.5px; line-height: 1.9; }

/* ---------- 13 Edit profile ---------- */
.form { flex: none; }
.form .input { border-radius: 16px; min-height: 52px; }
.form .label { margin-top: 10px; }
.screen .save { flex: none; margin-top: 16px; min-height: 48px; }

/* ---------- 15 Settings ---------- */
.settings-list { padding: 0 2px; }
.screen > .settings-list { margin-bottom: 14px; }
.settings-list .rows > * { min-height: 58px; }
.settings-list .badge-ico { width: 36px; height: 36px; }
.value { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); }
.value .i { color: var(--text); }
.screen > .logout { margin-top: 6px; min-height: 52px; }
button.title-link { display: block; width: 100%; }

/* ---------- 14 Manage links ---------- */
.mlink { position: relative; display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 10px 14px 10px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mlink .grow { display: block; text-align: right; }
.mlink .title { display: block; }
.mlink .line { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.mlink .line .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mlink .line .orange { flex: none; }
.grip { width: 24px; height: 44px; margin-right: -6px; display: grid; place-items: center; color: var(--muted); cursor: grab; touch-action: none; flex: none; }
.mlink.dragging { z-index: 2; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); cursor: grabbing; }
.screen .add-link { flex: none; margin-top: 16px; min-height: 50px; }
.sheet { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(0, 0, 0, .45); }
.sheet form { display: grid; padding: 22px 20px calc(20px + var(--sab)); border-radius: 28px 28px 0 0; background: var(--card); animation: sheet-up .25s ease-out; }
.sheet h2 { font-size: 17px; }
.sheet .btn { margin-top: 12px; min-height: 50px; }
.sheet .btn ~ .btn { margin-top: 8px; }
@keyframes sheet-up { from { translate: 0 100%; } }

/* ---------- Form messages ---------- */
.error { margin-top: 8px; font-size: 11px; color: var(--orange); font-weight: 700; }
.resend button { color: var(--orange); font-weight: 700; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- Press feedback ---------- */
:is(.btn, .icon-btn, .tool, .link-row, .chip, .item, .qa a, .id-who, .id-link button, .tabbar a, .rows > a, .rows > button, .keypad button, .send-grid button, .popular-grid button, .copy-row button) { transition: transform .12s ease, opacity .12s ease; }
:is(.btn:not(:disabled), .icon-btn, .tool, .link-row, .chip, .item, .qa a, .id-who, .id-link button, .tabbar a, .keypad button, .send-grid button, .popular-grid button, .copy-row button):active { transform: scale(.95); }
:is(.rows > a, .rows > button):active { opacity: .55; }

/* ---------- Toast ---------- */
.toast { position: absolute; z-index: 40; bottom: calc(96px + var(--sab)); left: 50%; translate: -50% 8px; max-width: 88%; padding: 10px 18px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; translate: -50% 0; }

/* The tab bar would sit on top of an open phone keyboard. */
.app.typing .tabbar { display: none; }

/* ---------- Launch screen ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #e75500; color: #fff; transition: opacity .35s; }
.splash .brand { font-size: 44px; animation: rise .5s ease both; }
.splash.out { opacity: 0; pointer-events: none; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }

/* ---------- Larger screens: a centred app column ---------- */
@media (min-width: 600px) {
  body { background: var(--page); }
  .app { box-shadow: 0 0 60px rgba(0, 0, 0, .22); }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
