:root {
  --navy: #0a1f44;
  --navy-2: #12305f;
  --navy-3: #1d3f78;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --green: #12b76a;
  --green-ink: #067647;
  --green-bg: #ecfdf3;
  --green-line: #abefc6;
  --amber-ink: #b54708;
  --amber-bg: #fffaeb;
  --amber-line: #fedf89;
  --red-ink: #b42318;
  --gray-chip: #f2f4f7;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, 0.12), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --font: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: light;
}
[dir="rtl"] { --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #84adff; outline-offset: 2px; }
.muted { color: var(--muted); font-size: 13px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; display: block; }
.brand-text { display: grid; gap: 3px; line-height: 1.15; justify-items: start; }
.wordmark { display: block; height: 22px; width: auto; }
.brand-text small { font-size: 11.5px; color: #a9b8d6; white-space: nowrap; }
.hdr-login { border: 0; background: var(--green); color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hdr-login:hover { background: #039855; }
.monitor { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 6px 10px 6px 12px; }
.mon-text { display: grid; line-height: 1.2; }
.mon-text b { font-size: 13px; font-weight: 600; }
.mon-text small { font-size: 11px; color: #a9b8d6; }
.radar { position: relative; width: 12px; height: 12px; flex: none; }
.radar i, .radar::after { position: absolute; inset: 0; border-radius: 50%; background: var(--green); content: ""; }
.radar::after { animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
.monitor.stale .radar i, .monitor.stale .radar::after { background: #fdb022; }
.monitor.off .radar i { background: #98a2b3; }
.monitor.off .radar::after { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.ring { width: 28px; height: 28px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 3.5; }
.ring-bg { stroke: rgba(255, 255, 255, 0.15); }
.ring-fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 94.25; transition: stroke-dashoffset 0.9s linear; }
.lang { text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; font-weight: 500; }
.lang:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; border: 0; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1); }
.btn.primary:hover { background: #039855; }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.input { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; width: 100%; min-width: 0; }
.input:focus { border-color: #84adff; outline: 3px solid #d1e0ff; }
.chip-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip-btn:hover { background: var(--bg); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; justify-self: start; }
.error { color: var(--red-ink); font-size: 13px; margin: 0; }
.error:empty { display: none; }

/* ---------- Paywall ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(18, 183, 106, 0.14); color: #6ce9a6; border: 1px solid rgba(18, 183, 106, 0.35); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); } }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 18px 0 16px; max-width: 15ch; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.35; font-weight: 700; max-width: 13em; }
[dir="rtl"] body { font-size: 16px; line-height: 1.7; }
[dir="rtl"] .hero p { line-height: 1.85; }
[dir="rtl"] .checklist { font-size: 15px; }
[dir="rtl"] .input::placeholder { text-align: right; }
.hero p { color: #c7d3ea; font-size: 18px; margin: 0 0 32px; max-width: 48ch; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 640px; }
.hstat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 12px 14px; }
.hstat b { display: block; font-size: 28px; font-weight: 700; color: #6ce9a6; line-height: 1.1; }
.hstat b small { font-size: 13px; color: #a9b8d6; font-weight: 500; }
.hstat span { font-size: 12px; color: #c7d3ea; display: block; margin-top: 4px; }

.pricecard { background: #fff; color: var(--ink); border-radius: 18px; padding: 26px; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35); }
.price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.price-tag { font-size: 18px; font-weight: 600; color: var(--muted); }
.price-tag b { font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price-term { font-size: 13px; color: var(--green-ink); background: var(--green-bg); border: 1px solid var(--green-line); padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; font-size: 14px; color: var(--ink-2); }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.checklist li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23067647' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pay { display: grid; gap: 10px; }
.keyentry { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.keyentry { grid-template-columns: 1fr auto; align-items: center; }
.keyentry .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.agree { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.agree a { color: var(--ink-2); text-underline-offset: 2px; }

.preview { padding-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-size: 18px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.count { background: var(--green); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.locked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.locked { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.locked .blur { filter: blur(6px); user-select: none; pointer-events: none; display: grid; gap: 14px; }
.lock-over { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; background: rgba(255, 255, 255, 0.5); text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 12px; }
.lock-n { font-size: 16px; color: var(--ink); }
.lock-over .lk { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.how-wrap { padding-top: 48px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.how .step { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; }
.how h3 { margin: 0 0 6px; font-size: 16px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }

.faq { padding-top: 48px; padding-bottom: 56px; display: grid; gap: 10px; }
.faq .section-head { margin-bottom: 4px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); font-size: 14px; }
[dir="rtl"] .faq details p { font-size: 15px; }

/* Mobile pay bar */
.mcta { display: none; }

/* ---------- Dashboard ---------- */
.dash-head { background: var(--navy); padding: 4px 0 20px; }
.feeds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.feed-tab { text-align: start; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.feed-tab:hover { background: rgba(255, 255, 255, 0.1); }
.feed-tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: var(--shadow-lg); }
.feed-tab .city { font-weight: 700; font-size: 15px; }
.feed-tab .visa { font-size: 12px; color: #a9b8d6; grid-column: 1; }
.feed-tab[aria-selected="true"] .visa { color: var(--muted); }
.feed-tab .n { grid-row: 1 / span 2; grid-column: 2; text-align: center; background: var(--green); color: #fff; border-radius: 10px; padding: 4px 10px; font-weight: 700; font-size: 18px; line-height: 1.1; min-width: 48px; }
.feed-tab .n small { display: block; font-size: 10px; font-weight: 500; opacity: 0.9; }
.feed-tab .n.zero { background: rgba(255, 255, 255, 0.12); }
.feed-tab[aria-selected="true"] .n.zero { background: var(--gray-chip); color: var(--muted); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding-top: 24px; padding-bottom: 56px; align-items: start; }
.dash-main { display: grid; gap: 32px; min-width: 0; }

/* Slot card */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.slot { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; align-content: start; }
.slot.is-new { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18), var(--shadow); }
.slot.dim { opacity: 0.35; }
.slot-top { display: flex; align-items: center; gap: 10px; }
.flag { width: 32px; height: 24px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.12); flex: none; background: var(--gray-chip); }
.slot-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.slot-sub { font-size: 12px; color: var(--muted); }
.badge { margin-inline-start: auto; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.badge.open { background: var(--green-bg); color: var(--green-ink); border: 1px solid var(--green-line); }
.badge.open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.badge.new { background: var(--green); color: #fff; }
.badge.wait { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); }
.badge.none { background: var(--gray-chip); color: var(--muted); border: 1px solid var(--line); }
.slot-when { display: flex; gap: 14px; align-items: center; }
.datetile { width: 68px; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); text-align: center; background: #fff; }
.datetile .m { background: var(--red-ink); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 0; }
[dir="rtl"] .datetile .m { letter-spacing: 0; }
.datetile .d { font-size: 28px; font-weight: 800; line-height: 1; padding: 6px 0 2px; }
.datetile .w { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.when-text { display: grid; gap: 2px; min-width: 0; }
.when-text .lbl { font-size: 12px; color: var(--muted); }
.when-text b { font-size: 16px; }
.when-text .rel { font-size: 13px; color: var(--green-ink); font-weight: 600; }
.more-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.dchip { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 4px 8px; background: var(--green-bg); color: var(--green-ink); border: 1px solid var(--green-line); }
.dchip small { font-weight: 500; opacity: 0.8; }
.dchip.hl { background: var(--green); color: #fff; border-color: var(--green); }
.slot-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.slot-foot .muted { font-size: 12px; }
.slot-foot .btn { height: 38px; padding: 0 14px; font-size: 14px; }
.empty-card { background: #fff; border: 1px dashed var(--line-2); border-radius: 16px; padding: 28px 20px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty-card b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* Calendar */
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend .lg-open { background: var(--green); }
.legend .lg-today { box-shadow: inset 0 0 0 2px var(--navy); margin-inline-start: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.month { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.month h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; text-align: center; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.days .wd { font-size: 11px; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.day { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: var(--ink-2); border: 0; background: none; padding: 0; position: relative; }
.day.past { color: #c0c5cf; }
.day.today { box-shadow: inset 0 0 0 2px var(--navy); font-weight: 700; }
.day.open { background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.day.open:hover { background: #039855; }
.day.open.sel { background: var(--navy); }
.day .cnt { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: #fff; color: var(--green-ink); font-size: 10px; line-height: 16px; box-shadow: 0 0 0 1px var(--green-line); padding: 0 3px; }

/* Closed list */
.closed-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr); }
.crow { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.crow:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.crow .name { display: grid; min-width: 0; line-height: 1.3; }
.crow .name b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .name small { font-size: 11px; color: var(--muted); }
.crow .flag { width: 24px; height: 18px; }
.closed-note { grid-column: 1 / -1; padding: 10px 16px; font-size: 12px; color: var(--muted); background: var(--bg); }

/* Side */
.dash-side { display: grid; gap: 16px; position: sticky; top: 84px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.alerts-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.alerts-row b { display: block; font-size: 15px; }
.alerts-row small { color: var(--muted); font-size: 12px; }
.bell { width: 40px; height: 40px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-ink); display: grid; place-items: center; }
.alerts-card.on .bell { background: var(--green-bg); color: var(--green-ink); }
.switch { width: 46px; height: 26px; border-radius: 13px; border: 0; background: var(--line-2); position: relative; cursor: pointer; padding: 0; }
.switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: inset-inline-start 0.15s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"] i { inset-inline-start: 23px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; max-height: 420px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.feed .opened .ic, .feed .earlier .ic { background: var(--green-bg); color: var(--green-ink); }
.feed .closed .ic { background: var(--gray-chip); color: var(--muted); }
.feed .what { color: var(--ink); font-weight: 500; }
.feed .where { color: var(--muted); font-size: 12px; }
.feed li.empty { display: block; color: var(--muted); padding: 0; }
.account { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.account .card-title { margin-bottom: 0; }
.account small { color: var(--muted); font-size: 12px; }
.acc-status { display: flex; align-items: center; gap: 10px; background: var(--green-bg); border: 1px solid var(--green-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 4px; }
.acc-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.18); flex: none; }
.acc-status div { display: grid; line-height: 1.3; }
.acc-status b { font-size: 14px; color: var(--green-ink); }
.acc-status small { color: var(--green-ink) !important; opacity: 0.8; }
.btn.block { width: 100%; }
.account .btn.block { height: 42px; margin-top: 6px; }
.renew-note { line-height: 1.45; }
.account .linkbtn { margin-top: 4px; }

/* Email alerts card */
.mail-card { display: grid; gap: 14px; }
.mail-card .bell { background: #eff4ff; color: #3538cd; }
.mail-card.on .bell { background: var(--green-bg); color: var(--green-ink); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }
.email-form { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.email-form label { font-size: 12px; color: var(--muted); font-weight: 500; }
.email-form .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.email-form .input { height: 40px; font-size: 14px; }
.email-form .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.feed-checks { border: 0; margin: 0; padding: 0; min-width: 0; }
.feed-checks legend { font-size: 12px; color: var(--muted); font-weight: 500; padding: 0; margin-bottom: 6px; }
#feedBoxes { display: grid; gap: 6px; }
.fcheck { display: flex; align-items: center; gap: 8px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; background: #fff; }
.fcheck:has(input:checked) { border-color: var(--green-line); background: var(--green-bg); color: var(--green-ink); font-weight: 600; }
.fcheck input { accent-color: var(--green); width: 15px; height: 15px; margin: 0; flex: none; }
.keybox { display: flex; gap: 6px; align-items: center; }
.keybox code { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }

.footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 12px; background: #fff; }
.footer .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

/* ---------- Dialogs ---------- */
.modal { border: 0; padding: 32px 28px 26px; border-radius: 20px; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: #fff; color: var(--ink); box-shadow: 0 32px 64px -16px rgba(10, 31, 68, 0.45); text-align: center; overflow: auto; }
.modal::backdrop { background: rgba(10, 31, 68, 0.62); backdrop-filter: blur(3px); }
.modal[open] { animation: pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.modal h2 { margin: 12px 0 6px; font-size: 21px; line-height: 1.3; }
.modal .muted { font-size: 14px; margin: 0 0 18px; line-height: 1.55; }
.modal form { display: grid; gap: 10px; margin-bottom: 14px; }
.modal .linkbtn { justify-self: center; }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--line); color: var(--ink); }
.modal-mark { display: block; margin: 0 auto; border-radius: 12px; }
.code-input { text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 18px !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.code-input::placeholder { letter-spacing: 0.08em; color: #b3b9c4; }
.ok-note { margin: 0; font-size: 13px; color: var(--green-ink); background: var(--green-bg); border: 1px solid var(--green-line); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.check-badge { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 8px var(--green-bg); }
.bigcode { display: flex; align-items: center; gap: 8px; background: var(--navy); border-radius: 14px; padding: 12px 12px 12px 18px; margin: 0 0 12px; }
.bigcode code { flex: 1; color: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; direction: ltr; text-align: center; }
.bigcode .chip-btn { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.welcome-mail { font-size: 13px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.5; }

/* Alert summary in the side card */
.alert-sum { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.sum-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.schip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; line-height: 1.3; }
.schip .flag { width: 18px; height: 13px; border-radius: 2px; }
.alert-sum .btn { height: 40px; font-size: 14px; margin-top: 2px; }

/* Alert settings dialog */
.alert-dlg { width: min(560px, calc(100vw - 24px)); padding: 0; text-align: start; }
.alert-dlg form { display: grid; gap: 0; margin: 0; }
.ad-head { padding: 28px 26px 6px; }
.ad-head h2 { margin: 0 0 6px; outline: none; }
.ad-head .muted { margin: 0; }
.ad-sec { padding: 16px 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ad-sec:first-of-type { border-top: 0; }
.ad-sec h3 { margin: 0; font-size: 14px; font-weight: 700; }
.ad-hint { margin: -4px 0 0 !important; font-size: 13px !important; }
.ad-feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-feeds .fcheck { font-size: 13px; font-weight: 500; }
.ad-feeds .fcheck b { font-weight: 700; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid #84adff; }
.ad-countries { display: grid; gap: 10px; }
.ad-ctools { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.ad-ctools .input { height: 40px; }
.ad-ctools .linkbtn { justify-self: auto; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 260px; overflow: auto; padding: 2px; }
.cchip { position: relative; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; font-size: 13px; cursor: pointer; min-width: 0; background: #fff; }
.cchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cchip input { position: absolute; opacity: 0; pointer-events: none; }
.cchip .flag { width: 22px; height: 16px; border-radius: 3px; }
.cchip:has(input:checked) { border-color: var(--green); background: var(--green-bg); color: var(--green-ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--green); }
.cchip:has(input:focus-visible) { outline: 3px solid #84adff; }
.ad-dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.ad-dates label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.ad-dates .input { height: 40px; }
.ad-dates .chip-btn { height: 40px; }
.ad-foot { position: sticky; bottom: 0; background: #fff; padding: 14px 26px 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

/* Report verification */
.verify-card { max-width: 520px; }
.v-badge { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 28px; font-weight: 800; box-shadow: 0 0 0 8px var(--green-bg); }
.v-badge.bad { background: #d92d20; box-shadow: 0 0 0 8px #fef3f2; }
.notice-card .mono { font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: var(--ink-2); margin: -6px 0 16px; }
.v-table { width: 100%; border-collapse: collapse; text-align: start; font-size: 14px; margin-bottom: 14px; }
.v-table th { color: var(--muted); font-weight: 500; padding: 8px 0; width: 45%; text-align: start; border-bottom: 1px solid var(--line); }
.v-table td { padding: 8px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.v-note { font-size: 12.5px !important; margin: 0 !important; }
.report-link { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; margin-top: 2px; }
.report-link:hover { background: var(--bg); }

/* ---------- Legal and simple pages ---------- */
.doc-page { padding: 40px 0 64px; }
.doc { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 44px; box-shadow: var(--shadow); }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 760px; margin: 0 auto 16px; }
.doc-tabs a { text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.doc-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.doc h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.02em; }
[dir="rtl"] .doc h1 { letter-spacing: 0; line-height: 1.4; }
.doc-updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.doc h2 { font-size: 18px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.doc ul { padding-inline-start: 22px; }
.doc a { color: var(--green-ink); }
.notice-card { max-width: 480px; margin: 64px auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 28px; text-align: center; box-shadow: var(--shadow); }
.notice-card h1 { font-size: 22px; margin: 14px 0 8px; }
.notice-card p { color: var(--muted); margin: 0 0 20px; }
.toast { position: fixed; inset-inline: 16px; bottom: 16px; margin: 0 auto; max-width: 440px; background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 18px; font-size: 14px; z-index: 30; box-shadow: var(--shadow-lg); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .feeds { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .monitor .mon-text { display: none; }
  .monitor { padding: 9px; border-radius: 50%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .input { font-size: 16px; } /* below 16px iOS zooms in on focus */
  [dir="rtl"] .hero h1 { font-size: 30px; }
  .eyebrow { font-size: 12px; }
  .hstat { padding: 10px 12px; }
  .hstat b { font-size: 24px; }
  .hstat span { font-size: 11.5px; line-height: 1.4; }
  .price-tag b { font-size: 38px; }
  .preview { padding-top: 32px; }
  .locked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .locked { height: 150px; border-radius: 14px; }
  .lock-over { gap: 4px; font-size: 12px; padding: 10px; background: rgba(255, 255, 255, 0.86); }
  .lock-over .lk { width: 32px; height: 32px; }
  .lock-over .muted { display: none; }
  .lock-n { font-size: 14px; line-height: 1.35; }
  .how-wrap, .faq { padding-top: 36px; }
  .how > div { padding: 16px; }
  .faq summary { padding: 14px 16px; }
  .mcta { display: flex; align-items: center; gap: 12px; position: fixed; inset-inline: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -8px rgba(16, 24, 40, 0.18); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform 0.25s ease; }
  .mcta.show { transform: none; }
  .mcta-text { display: grid; line-height: 1.25; margin-inline-end: auto; }
  .mcta-text b { font-size: 18px; }
  .mcta-text small { font-size: 12px; color: var(--muted); }
  .mcta .btn { height: 44px; padding: 0 22px; }
  #paywall:not([hidden]) ~ .footer { padding-bottom: 96px; }
  .bar { gap: 10px; }
  .brand-text small, .mon-text small, .ring { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .wordmark { height: 19px; }
  .hdr-login { padding: 6px 12px; }
  .lang { padding: 6px 10px; }
  .doc { padding: 26px 20px; border-radius: 16px; }
  .doc h1 { font-size: 24px; }
  .doc-page { padding: 20px 0 40px; }
  .bigcode code { font-size: 18px; }
  .modal { padding: 28px 20px 22px; }
  .foot-meta { display: grid; }
  .ad-head { padding: 26px 18px 4px; }
  .ad-sec { padding: 14px 18px; }
  .ad-foot { padding: 12px 18px 18px; }
  .ad-feeds { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 230px; }
  .ad-dates { grid-template-columns: 1fr 1fr; }
  .ad-dates .chip-btn { grid-column: 1 / -1; }
  .monitor { padding: 6px 10px; }
  .hero { padding: 32px 0 40px; }
  .hero p { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .pricecard { padding: 20px; }
  .feed-tab { padding: 10px 12px; }
  .feed-tab .city { font-size: 14px; }
  .slot-grid { grid-template-columns: 1fr; }
  .closed-list { grid-template-columns: 1fr; }
  .crow:nth-child(odd) { border-inline-end: 0; }
}
