:root {
  --ink: #0f1d2b; --ink-2: #445566; --line: #dde3ea; --bg: #f7f9fb; --card: #ffffff;
  --brand: #0f5fa8; --brand-2: #1570c4; --brand-soft: #e6f0fa; --warn: #b4540a; --warn-soft: #fff3e6;
  --ok: #1d7a3a; --radius: 14px; --shadow: 0 1px 2px rgba(15,29,43,.06), 0 6px 24px rgba(15,29,43,.06);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
img, canvas { max-width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.2px; }
.logo img { width: 30px; height: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; background: var(--brand); color: #fff; min-height: 46px; }
.btn:hover { background: var(--brand-2); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.big { padding: 15px 26px; font-size: 17px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.4px; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5.4vw, 50px); }
h2 { font-size: clamp(23px, 3.4vw, 32px); }
.muted { color: var(--ink-2); }
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.badges span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.hero-art { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
section { padding: 40px 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .flag { font-size: 26px; }
.card .size { font-size: 13px; color: var(--ink-2); }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 750; margin-bottom: 10px; }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; font-size: 15px; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare .us { background: var(--brand-soft); font-weight: 650; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); background: var(--card); margin-top: 30px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal { max-width: 760px; padding: 36px 16px 20px; margin: 0 auto; }
.legal h2 { font-size: 21px; margin-top: 1.6em; }

/* ---- editor ---- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding: 24px 0 40px; align-items: start; }
.stage { background: #2a3440; border-radius: 18px; padding: 18px; display: grid; place-items: center; min-height: 420px; position: relative; touch-action: none; }
.stage canvas { background: #fff; border-radius: 4px; box-shadow: 0 8px 30px rgba(0,0,0,.35); cursor: grab; touch-action: none; max-height: 70vh; width: auto; }
.stage canvas.dragging { cursor: grabbing; }
.stage { gap: 10px; }
.stage .hint { text-align: center; color: #c9d3dd; font-size: 13px; }
.panel { display: flex; flex-direction: column; gap: 14px; }
.panel .card h3 { font-size: 16px; margin-bottom: 10px; }
label.row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; }
label.row output { text-align: end; color: var(--ink-2); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--brand); }
select { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.dropzone { border: 2px dashed #9fb3c4; border-radius: 16px; padding: 40px 18px; text-align: center; background: #fff; color: var(--ink-2); }
.dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.checks { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.checks li { padding-block: 5px; padding-inline-start: 26px; position: relative; }
.checks li::before { position: absolute; inset-inline-start: 0; top: 4px; font-weight: 700; }
.checks li.ok::before { content: "✓"; color: var(--ok); }
.checks li.warn::before { content: "!"; color: var(--warn); inset-inline-start: 6px; }
.checks li.todo::before { content: "○"; color: var(--ink-2); }
.notice { background: var(--warn-soft); color: #6b3305; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.demo-banner { background: #fde68a; color: #5b4300; text-align: center; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.hidden { display: none !important; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 6px 0; }
.downloads { display: grid; gap: 10px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .steps { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .stage { min-height: 320px; padding: 12px; }
}

/* ---- nav, promo, visa checker ---- */
.topnav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; }
.topnav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.topnav a:not(.btn):hover { color: var(--brand); }
.topnav .btn { min-height: 40px; padding: 8px 14px; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 8px; border-color: var(--brand); background: linear-gradient(135deg, var(--brand-soft), #fff); }
.promo h2 { margin-bottom: 4px; }
.visa { padding-top: 28px; padding-bottom: 20px; }
.visa .lead { font-size: 18px; max-width: 40em; }
.visa-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin: 18px 0; }
.visa-form label, .fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.fields input { padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; background: #fff; width: 100%; }
#result > .card, #result > form, .visa-grid { margin-bottom: 14px; }
.visa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-card h2 { margin: 10px 0 6px; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 650; }
.badge.ok { background: #e3f5e8; color: #1d6b35; } .badge.mid { background: #fff3d6; color: #7a5200; } .badge.bad { background: #fde5e5; color: #9b1c1c; }
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin-bottom: 22px; }
.country-list a { color: var(--ink); text-decoration: none; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.country-list a:hover { color: var(--brand); }
#restartBtn { width: 100%; }
[dir="rtl"] body, [dir="rtl"] { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
@media (max-width: 860px) {
  .visa-form, .visa-grid { grid-template-columns: 1fr; }
  .topnav { font-size: 14px; gap: 4px 12px; }
  header.top .wrap { height: auto; min-height: 60px; padding-block: 8px; gap: 10px; }
}

/* ---- apply / track / admin ---- */
.price-line { font-size: 18px; margin: 12px 0 4px; }
.notice.ok { background: #e3f5e8; color: #1d6b35; }
.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: tl; }
.timeline li { counter-increment: tl; text-align: center; font-size: 13px; color: var(--ink-2); padding-top: 34px; position: relative; }
.timeline li::before { content: counter(tl); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e6ebf0; font-weight: 700; color: var(--ink-2); }
.timeline li.done::before { content: "✓"; background: var(--brand); color: #fff; }
.timeline li.now { color: var(--ink); font-weight: 650; }
.timeline li.now::before { background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 3px var(--brand); }
.timeline li.warn::before { background: var(--warn-soft); color: var(--warn); box-shadow: 0 0 0 3px var(--warn); }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px; margin-bottom: 12px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; background: #f1f5f8; font-size: 15px; }
.bubble .who { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.bubble .txt { white-space: pre-wrap; }
.bubble.me, .bubble.cust { align-self: flex-end; background: var(--brand-soft); }
.bubble.ai { background: #f3efff; }
.chat-form textarea, .inline-form textarea, .inline-form input, #notice, #note { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; }
.chat-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: flex-end; }
.reason { border-inline-start: 4px solid var(--warn); padding: 4px 14px; margin: 10px 0; }
.reason h4 { margin: 0 0 6px; }
.reason p { margin: 4px 0; font-size: 15px; }
.admin-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-grid > section > .card { margin-bottom: 14px; }
.case-list { display: grid; gap: 8px; margin-top: 8px; }
.case { display: grid; gap: 4px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.case.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.case .badge { justify-self: start; font-size: 12px; padding: 2px 8px; }
.case .todo { font-size: 13px; color: var(--warn); font-weight: 650; }
.case .todo.urgent { color: #9b1c1c; }
.small { font-size: 12px; }
.guide li { margin: 6px 0; }
.copy-table td { padding: 6px 10px; font-size: 14px; }
.copy { font: inherit; background: #f5f7f9; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; text-align: start; }
.copy:hover { border-color: var(--brand); }
.copy.copied { background: var(--brand-soft); border-color: var(--brand); }
.copy.copied::after { content: "  ✓ copied"; color: var(--brand); font-weight: 650; }
.docs { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.reasons-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 12px; margin: 10px 0; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } .timeline li { font-size: 11px; } }

/* ---- where can I go ---- */
#explore { margin-top: 8px; }
.search { width: 100%; max-width: 420px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; margin: 4px 0 14px; background: #fff; }
.ex-group { margin-bottom: 22px; }
.ex-group h3 { display: flex; align-items: center; gap: 8px; }
.ex-item { font: inherit; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 2px; cursor: pointer; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ex-item:hover { color: var(--brand); }
.ex-item.no { color: var(--ink-2); text-decoration: line-through; }
.tag { font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 8px; }
.linkbtn { font: inherit; background: none; border: 0; color: var(--brand); font-weight: 650; cursor: pointer; padding: 6px 0; }

.options { display: grid; gap: 8px; margin: 8px 0; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option.disabled { opacity: .55; cursor: not-allowed; }
.option input { margin-top: 4px; accent-color: var(--brand); }
.table-scroll { overflow-x: auto; }
.table-scroll table th { font-size: 13px; background: #f5f7f9; }

.scan-card { border-color: var(--brand); }
.scan-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.scan-preview { max-width: 320px; width: 100%; border-radius: 10px; margin-top: 10px; border: 1px solid var(--line); }
.autofilled { background: #f0faf7 !important; border-color: var(--brand) !important; }

/* ---- account ---- */
.auth-card { max-width: 460px; margin: 10px auto; }
.social-btns { display: grid; gap: 10px; margin: 16px 0; }
.btn.social { width: 100%; }
.btn.social.apple { background: #000; color: #fff; }
.btn.social.apple:hover { background: #222; }
.btn.social.google { background: #fff; color: #1f1f1f; border: 1.5px solid #747775; }
.btn.social.google:hover { background: #f5f5f5; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; margin: 6px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-form input { padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; }
.auth-links { font-size: 14px; margin: 0; }
.linkbtn.danger { color: #9b1c1c; }

/* ---- price always visible before paying ---- */
.price-bar { position: sticky; bottom: 0; z-index: 5; margin: 14px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; font-size: 16px; box-shadow: 0 -4px 20px rgba(15,29,43,.18); }
.price-bar strong { font-size: 20px; }
.price-bar .small { opacity: .8; margin-top: 2px; }
.opt-total { font-weight: 650; color: var(--ink); }
.total-cell { font-weight: 700; color: var(--brand); white-space: nowrap; }
@media (min-width: 861px) { .price-bar { border-radius: 14px; margin: 14px 0 0; } }

/* ---- AI chat ---- */
.chat-fab { position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 6px 24px rgba(11,110,99,.35); cursor: pointer; }
.chat-fab span:first-child { font-size: 20px; }
.has-pricebar .chat-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
.chat-panel { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 41; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 12px 48px rgba(15,29,43,.28); overflow: hidden; }
.chat-panel.embedded { position: static; width: 100%; height: 560px; box-shadow: var(--shadow); border: 1px solid var(--line); margin: 16px 0 28px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--brand); color: #fff; }
.chat-head > div { flex: 1; }
.chat-head .small { opacity: .85; }
.chat-x { background: rgba(255,255,255,.15); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f7f9fb; }
.cmsg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmsg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.cmsg.me { background: var(--brand); color: #fff; align-self: flex-end; }
.cmsg.me a { color: #fff; }
.cmsg.note { align-self: center; background: var(--brand-soft); color: var(--brand); font-size: 13px; text-align: center; }
.cmsg.typing { color: var(--ink-2); font-style: italic; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: #f7f9fb; }
.chip { font: inherit; font-size: 13px; border: 1.5px solid var(--brand); color: var(--brand); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; resize: none; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); max-height: 120px; }
.chat-input .btn { min-height: 44px; padding: 8px 14px; }
.chat-offline { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-offline input, .chat-offline textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); }
@media (max-width: 480px) { .chat-panel:not(.embedded) { inset: 0; width: 100%; height: 100%; border-radius: 0; } .fab-label { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app > h1.sr-only { grid-column: 1 / -1; }

/* visa options: cards on phones */
@media (max-width: 600px) {
  #rOptTable, #rOptTable tbody { display: block; border: 0; background: none; }
  #rOptTable tr:first-child { display: none; }
  #rOptTable tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 12px; background: #fff; }
  #rOptTable td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 0; font-size: 14px; }
  #rOptTable td::before { content: attr(data-label); color: var(--ink-2); font-weight: 500; }
  #rOptTable td.name-cell { display: block; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
  #rOptTable td.name-cell::before { content: none; }
}

/* ===== Tajdeed ===== */
:root { --bad: #b42318; --bad-soft: #fde5e5; --orange: #c2410c; --orange-soft: #ffedd5; }
.hero-art.stack { display: grid; gap: 10px; }
.mini { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.mini .ic { font-size: 22px; }
.mini .main { flex: 1; min-width: 0; }
.pain { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.pain .card { border-inline-start: 4px solid var(--bad); }
.feat .card h3 { font-size: 17px; }
.feat .card .ic { font-size: 26px; display: block; margin-bottom: 6px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.plan { text-align: center; }
.plan.hi { border: 2px solid var(--brand); }
.plan .price { margin: 6px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; text-align: start; }
.plan li { padding: 4px 0; } .plan li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.final { text-align: center; background: linear-gradient(135deg, var(--brand-soft), #fff); border-color: var(--brand); }
.badge.warn { background: var(--orange-soft); color: var(--orange); }
.small { font-size: 13px; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0 4px; text-decoration: underline; }
.linkbtn.danger { color: var(--bad); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.notice.ok { background: #e3f5e8; color: #1d6b35; } .notice.bad { background: var(--bad-soft); color: #7d1a1a; }
.auth-card { max-width: 440px; margin: 30px auto; }
.auth-form { display: grid; gap: 12px; }
.auth-form label, .form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea { padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; background: #fff; width: 100%; color: var(--ink); }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.social-btns { display: grid; gap: 10px; }
.btn.social.apple { background: #000; } .btn.social.google { background: #fff; color: #222; border: 1.5px solid var(--line); }
.or { text-align: center; color: var(--ink-2); margin: 14px 0; font-size: 14px; }
/* dashboard */
.dash { padding-block: 20px 40px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; margin-bottom: 14px; }
.dash-head h1 { font-size: 26px; margin: 0; }
.dash-head .acts, .row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; text-align: start; cursor: pointer; font: inherit; color: var(--ink); }
.tile .n { font-size: 28px; font-weight: 800; display: block; line-height: 1.1; }
.tile.on { border-color: var(--ink); box-shadow: var(--shadow); }
.tile.t-expired .n { color: var(--bad); } .tile.t-soon .n { color: var(--orange); } .tile.t-later .n { color: #a16207; } .tile.t-ok .n { color: var(--ok); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 14px; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 650; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input { max-width: 340px; }
.item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.item.s-expired { border-inline-start-color: var(--bad); } .item.s-soon { border-inline-start-color: var(--orange); } .item.s-later { border-inline-start-color: #eab308; } .item.s-ok { border-inline-start-color: var(--ok); }
.item .ic { font-size: 24px; line-height: 1.2; }
.item .meta { font-size: 14px; margin-top: 2px; }
.item .side { display: grid; gap: 8px; justify-items: end; }
.item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.item .links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); text-decoration: none; }
.empty { text-align: center; padding: 36px 16px; background: var(--card); border: 1.5px dashed var(--line); border-radius: 14px; }
.empty .row-btns { justify-content: center; }
.emps { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.emp { display: flex; gap: 12px; align-items: center; text-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; color: var(--ink); }
.emp:hover { border-color: var(--brand); }
.emp .main { flex: 1; min-width: 0; display: grid; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
table.list th, table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
table.list th { font-size: 13px; color: var(--ink-2); background: var(--bg); }
.neg { color: var(--bad); }
.table-wrap { overflow-x: auto; }
dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); }
dialog::backdrop { background: rgba(15, 29, 43, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.dlg-head h2 { font-size: 20px; margin: 0; }
.dlg-body { padding: 16px 18px; }
.close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px 8px; }
.form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form-acts { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; grid-column: 1 / -1; margin-top: 4px; }
.aibox { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.aibox h3 { font-size: 16px; margin-bottom: 4px; }
.aibox .row-btns { margin-top: 10px; }
.sub { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.sub h3 { font-size: 17px; }
.leave-rows { padding-inline-start: 18px; font-size: 14px; }
.daypicks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 400 !important; }
.daypicks label { display: flex !important; align-items: center; gap: 6px; font-weight: 500; }
.daypicks input { width: auto; }
.team { list-style: none; padding: 0; } .team li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.toast { position: fixed; inset-inline: 0; bottom: 22px; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: none; } .toast.bad { background: var(--bad); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bad-soft); color: #7d1a1a; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .stat .n { font-size: 24px; font-weight: 800; }
@media (max-width: 860px) {
  .pain { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); } .tile.t-all { display: none; }
  .tile .n { font-size: 22px; } .tile { padding: 10px; font-size: 13px; }
  .item { grid-template-columns: 32px minmax(0, 1fr); } .item .side { grid-column: 1 / -1; justify-items: start; grid-template-columns: auto 1fr; align-items: center; } .item .acts { justify-content: flex-end; }
  .form { grid-template-columns: 1fr; }
}
