/* OG Accounts — storefront, auth and shared components. Dark bento, RTL-first (logical properties). */
:root {
  --bg: #09090a;
  --bg-2: #0e0e10;
  --panel: #121214;
  --panel-2: #17171a;
  --panel-3: #1e1e22;
  --line: #232327;
  --line-2: #2e2e33;
  --text: #f4f4f5;
  --text-2: #c9c9cf;
  --muted: #85858f;
  --accent: #d4ff00;
  --accent-ink: #101300;
  --accent-soft: rgb(var(--accent-rgb) / .1);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .12);
  --warn: #f5c542;
  --warn-soft: rgba(245, 197, 66, .12);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, .12);
  --info: #a1a1aa;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgb(var(--ink-rgb) / .04) inset, 0 20px 50px -30px rgb(var(--shade-rgb) / .8);
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* channels for translucent colors; theme.css swaps them for the light theme */
  --accent-rgb: 212 255 0;
  --ink-rgb: 255 255 255;
  --shade-rgb: 0 0 0;
  --bg-rgb: 9 9 10;
  --panel-rgb: 18 18 20;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
html:lang(ar) body { font-family: var(--font-ar); }
html:lang(ru) body { font-family: "Manrope", var(--font); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.08rem; font-weight: 700; }
h3 { font-size: .98rem; font-weight: 700; }
p { margin: 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; color: var(--text-2); }
::selection { background: rgb(var(--accent-rgb) / .3); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { flex: none; }
[hidden] { display: none !important; }
.sr-only, .hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.block { display: block; }
.mt { margin-top: 16px; }
.link { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { color: var(--text); text-decoration-color: var(--accent); }
.pos { color: var(--ok); }
.neg { color: var(--danger); }

.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--bg-2) 1px, transparent 1px), linear-gradient(90deg, var(--bg-2) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }

/* Buttons */
.btn-primary, .btn-ghost, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 13px; border: 1px solid transparent; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / .35), 0 10px 30px -12px rgb(var(--accent-rgb) / .45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / .6), 0 14px 34px -12px rgb(var(--accent-rgb) / .6); }
.btn-ghost { background: var(--panel-2); color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 0 rgb(var(--ink-rgb) / .05) inset; }
.btn-ghost:hover { background: var(--panel-3); border-color: #3a3a40; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 107, 107, .3); }
.btn-danger:hover { background: rgba(255, 107, 107, .2); }
.btn-primary:active, .btn-ghost:active, .btn-danger:active { transform: scale(.98); }
.btn-primary[disabled], .btn-ghost[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); cursor: pointer; color: var(--text-2); }
.btn-icon:hover { color: var(--text); background: var(--panel-3); }
.btn-icon.danger:hover { color: var(--danger); border-color: rgba(255, 107, 107, .4); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Top bar (guests; signed-in pages use the sidebar shell) */
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px) saturate(140%); background: rgb(var(--bg-rgb) / .72); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.topbar .brand { flex: none; white-space: nowrap; }
.brand img { border-radius: 10px; }
.nav-pills { display: flex; gap: 4px; padding: 4px; margin-inline: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.nav-pills a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; transition: color .2s, background .2s; }
.nav-pills a:hover { color: var(--text); }
.nav-pills a.is-active { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgb(var(--ink-rgb) / .06) inset, 0 0 0 1px var(--line-2); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg, #2a2a30, #18181b); border: 1px solid var(--line-2); font-weight: 800; color: var(--text); }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: .85rem; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.tabbar { display: none; }
.page { max-width: 1200px; margin: 0 auto; padding: 28px 20px 80px; }

/* Flash */
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; font-size: .93rem; animation: pop .25s var(--ease); }
.flash span { flex: 1; }
.flash-success { border-color: rgba(74, 222, 128, .3); color: var(--ok); background: var(--ok-soft); }
.flash-error { border-color: rgba(255, 107, 107, .3); color: var(--danger); background: var(--danger-soft); }
.flash-warning { border-color: rgba(245, 197, 66, .3); color: var(--warn); background: var(--warn-soft); }
/* Floating toasts from app.js (copy confirmations, passkey errors): pinned over the page, tint over an opaque panel */
.toast-stack { position: fixed; z-index: 90; top: calc(14px + env(safe-area-inset-top, 0px)); inset-inline: 16px; max-width: 440px; margin: 0 auto; pointer-events: none; }
.toast-stack .flash { pointer-events: auto; box-shadow: 0 18px 40px -16px rgb(var(--shade-rgb)); }
.toast-stack .flash-success { background: linear-gradient(var(--ok-soft), var(--ok-soft)), var(--panel); }
.toast-stack .flash-error { background: linear-gradient(var(--danger-soft), var(--danger-soft)), var(--panel); }
.flash-x { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 4px; }

/* Hero */
.hero { position: relative; padding: 48px 0 36px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.hero::before { content: ""; position: absolute; inset: -40px 10% auto; height: 300px; z-index: -1; background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .08), transparent); filter: blur(10px); }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); max-width: 16ch; letter-spacing: -.03em; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.kicker, .auth-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text-2); font-size: .82rem; font-weight: 600; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(var(--accent-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0); } }

/* Sections */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-inline { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); min-width: 220px; }
.search-inline input { border: 0; background: none; outline: 0; width: 100%; color: var(--text); }

/* Category logos */
.cat-logo { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--tint-bg, #1d1d21); border: 1px solid rgb(var(--ink-rgb) / .06); flex: none; overflow: hidden; }
.cat-logo img { width: 56%; height: 56%; object-fit: contain; }
.cat-logo img:not(.brand-mono) { width: 100%; height: 100%; object-fit: cover; }
.brand-mono { filter: invert(1) brightness(1.1); }
.cat-logo.is-light { background: #f4f4f5; border-color: transparent; } /* local brand marks keep their colours on a light tile */
.cat-logo img.brand-color { width: 56%; height: 56%; object-fit: contain; }
.logo-mono { font-weight: 800; font-size: .9rem; color: var(--tint-fg, var(--text)); }
.tint-slate { --tint-bg: #1f1f24; --tint-fg: #e4e4e7; }
.tint-lime { --tint-bg: #1d2208; --tint-fg: #d4ff00; }
.tint-emerald { --tint-bg: #0d2219; --tint-fg: #4ade80; }
.tint-sky { --tint-bg: #0c1d2a; --tint-fg: #7dd3fc; }
.tint-violet { --tint-bg: #1c1530; --tint-fg: #c4b5fd; }
.tint-rose { --tint-bg: #2a1218; --tint-fg: #fda4af; }
.tint-orange { --tint-bg: #2a1708; --tint-fg: #fdba74; }
.tint-amber { --tint-bg: #2a2008; --tint-fg: #fcd34d; }
.tint-teal { --tint-bg: #0b2222; --tint-fg: #5eead4; }
.tint-fuchsia { --tint-bg: #2a1029; --tint-fg: #f0abfc; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .2s; }
.svc-card:hover { transform: translateY(-3px); border-color: #34343a; }
.svc-top { display: flex; align-items: center; justify-content: space-between; }
.svc-card h3 { font-size: 1.02rem; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .82rem; }
.svc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.svc-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.price strong { font-size: 1.2rem; font-weight: 800; }
.price s, .price-lg s { display: block; color: var(--muted); font-size: .82rem; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: .75rem; font-weight: 700; color: var(--text-2); }
.chip-accent { background: var(--accent-soft); color: var(--accent); border-color: rgb(var(--accent-rgb) / .3); }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(245, 197, 66, .3); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bento-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.bento-card p { color: var(--muted); font-size: .92rem; }
.bento-card > .ic { color: var(--accent); }
.bento-wide { grid-column: span 2; }
.bento-accent { background: radial-gradient(120% 140% at 100% 0%, rgb(var(--accent-rgb) / .09), transparent 55%), var(--panel); }
.step { position: absolute; inset-inline-end: 18px; top: 14px; font-weight: 800; font-size: 2.4rem; color: rgb(var(--ink-rgb) / .05); }

/* Page scaffolding */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head.with-logo { justify-content: flex-start; }
.panel { padding: 22px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 34px 16px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); }
.empty .ic { color: var(--muted); opacity: .7; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); font-size: .9rem; }
.notice .ic { margin-top: 3px; color: var(--muted); }
.notice-warn { background: var(--warn-soft); border-color: rgba(245, 197, 66, .25); color: var(--warn); }
.notice-warn .ic { color: var(--warn); }
.prose { color: var(--text-2); line-height: 1.8; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }

/* Service detail */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts li { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.facts li .ic { color: var(--accent); }
.facts span { color: var(--muted); font-size: .8rem; }
.buy-box { position: sticky; top: 84px; }
.price-lg strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }

/* Forms */
.form { display: grid; gap: 14px; }
.form.narrow { max-width: 460px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span, .field > legend { font-size: .86rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea, .input-wrap, .inline-form select, .adm-filters select, .inline-reject input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); outline: 0; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .input-wrap:focus-within { border-color: rgb(var(--accent-rgb) / .55); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .08); }
.field input:disabled { opacity: .6; }
.input-wrap { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); }
.input-wrap input { border: 0 !important; box-shadow: none !important; background: none; padding: 10px 0; min-height: 42px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.pw-toggle { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; display: grid; }
.pw-toggle:hover { color: var(--text); }
.hint { color: var(--muted); font-size: .8rem; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--danger); }
.caps-hint { color: var(--warn); font-size: .8rem; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.strength { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.strength i[data-level="1"] { width: 25%; }
.strength i[data-level="2"] { width: 50%; background: var(--warn); }
.strength i[data-level="3"] { width: 75%; background: var(--ok); }
.strength i[data-level="4"] { width: 100%; background: var(--ok); }
.file-field input[type="file"] { padding: 9px; cursor: pointer; }
.summary { display: grid; gap: 6px; margin: 0; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.summary div, .kv { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.summary dt, .kv > span { color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; font-weight: 700; }
.kv { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv:last-of-type { border-bottom: 0; }
.kv b { text-align: end; overflow-wrap: anywhere; }
.kv-strong b { font-size: 1.15rem; color: var(--accent); }
.copy-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line-2); }
.copy-field code { font-size: 1rem; color: var(--text); overflow-wrap: anywhere; }
.steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--text-2); }

/* Auth helpers shared with Settings (the auth layout itself is auth.css) */
.auth-link, .link-btn { color: var(--accent); font-weight: 700; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.auth-link:hover, .link-btn:hover { text-decoration: underline; }
.otp-input { font-size: 1.35rem !important; font-weight: 700; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }

/* Lists & tables */
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list > li > a, .list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.list > li:last-child > a, .list > li:last-child .list-row { border-bottom: 0; }
.list > li > a:hover { background: linear-gradient(90deg, transparent, rgb(var(--ink-rgb) / .02), transparent); }
.list-main { display: grid; gap: 2px; min-width: 0; }
.list-main strong { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.list-main small { color: var(--muted); font-size: .8rem; }
.list-side { display: flex; align-items: center; gap: 10px; flex: none; }
.list.compact .list-row, .list.compact > li > a { padding: 9px 2px; }
.table-wrap { overflow-x: auto; margin: -4px; padding: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: start; color: var(--muted); font-weight: 600; font-size: .8rem; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgb(var(--ink-rgb) / .015); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--panel-3); color: var(--text-2); border: 1px solid var(--line-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending, .badge-awaiting { color: var(--warn); background: var(--warn-soft); border-color: rgba(245, 197, 66, .25); }
.badge-processing, .badge-review { color: #7dd3fc; background: rgba(125, 211, 252, .1); border-color: rgba(125, 211, 252, .25); }
.badge-completed, .badge-paid { color: var(--ok); background: var(--ok-soft); border-color: rgba(74, 222, 128, .25); }
.badge-cancelled, .badge-rejected, .badge-expired { color: var(--danger); background: var(--danger-soft); border-color: rgba(255, 107, 107, .25); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); cursor: pointer; font-weight: 600; font-size: .86rem; }
.pill:hover { color: var(--text); }
.pill.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; }
.pager-info { padding: 0 6px; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.pager-num { min-width: 36px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.pager-num.is-active { background: var(--accent-soft); border-color: rgb(var(--accent-rgb) / .4); color: var(--accent); }
.pager-gap { padding: 0 2px; color: var(--muted); }
.pager button[disabled] { opacity: .4; cursor: default; }

/* Order detail */
.timeline { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.timeline li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.timeline li.done { color: var(--text); }
.timeline li.done .tl-dot { background: var(--accent); border-color: var(--accent); }
.timeline li.current { border-color: rgb(var(--accent-rgb) / .35); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .05); }
.secret-box { margin: 0; padding: 14px; border-radius: 14px; background: #050506; border: 1px solid var(--line-2); color: var(--accent); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.7; }
.waiting { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; text-align: center; color: var(--muted); border-radius: 16px; border: 1px dashed var(--line-2); }
.waiting .ic { color: var(--warn); }
.waiting.ok .ic { color: var(--ok); }

/* Wallet (the dashboard has its own dashboard.css) */
.label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.big-num { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.big-num.sm { font-size: 1.3rem; }
.wallet-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.balance-hero { background: radial-gradient(130% 120% at 100% 0%, rgb(var(--accent-rgb) / .1), transparent 55%), var(--panel); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.pm-grid legend { font-size: .86rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.pm-option input { position: absolute; opacity: 0; pointer-events: none; }
.pm-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pm-card small { display: block; color: var(--muted); font-size: .78rem; }
.pm-option input:checked + .pm-card { border-color: rgb(var(--accent-rgb) / .6); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .08); }
.pm-option input:focus-visible + .pm-card { outline: 2px solid var(--accent); }
.pm-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--panel-3); color: var(--text); flex: none; }
.pm-vodafone { background: #3a0d0d; color: #ff6b6b; }
.pm-instapay { background: #1c1530; color: #c4b5fd; }
.pm-etisalat, .pm-we { background: #0d2219; color: #4ade80; }
.pm-orange { background: #2a1708; color: #fdba74; }
.pm-usdt, .pm-crypto { background: #0b2222; color: #5eead4; }
.pm-card.pm-card { min-height: 64px; }
.guest-checkout h3, .pay-direct h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.guest-checkout h3 + p, .pay-direct h3 + p { margin: -6px 0 0; }
.pay-direct { display: grid; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.buy-alt { margin: 12px 0 0; text-align: center; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 6px; }

/* Errors */
.error-card { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 70px 16px; }
.error-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 26px 20px 100px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand p { color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; gap: 8px; }
.footer-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.footer-links a:hover { color: var(--accent); border-color: rgb(var(--accent-rgb) / .3); }
.footer-copy { width: 100%; color: var(--muted); font-size: .8rem; }

/* Support chat widget */
.chat-fab { position: fixed; z-index: 60; inset-inline-end: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 18px; border: 1px solid rgb(var(--accent-rgb) / .4); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 16px 40px -14px rgb(var(--accent-rgb) / .6); transition: transform .2s var(--ease); }
.chat-fab:hover { transform: translateY(-2px) scale(1.03); }
.chat-badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.chat-panel { position: fixed; z-index: 61; inset-inline-end: 20px; bottom: 88px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: grid; grid-template-rows: auto 1fr auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 40px 90px -30px rgb(var(--shade-rgb)); overflow: hidden; animation: pop .22s var(--ease); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.chat-head strong { display: block; }
.chat-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chat-status.online i { background: var(--accent); }
.chat-close { margin-inline-start: auto; }
.chat-msgs { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chat-msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: .93rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg small { display: block; margin-top: 3px; font-size: .7rem; opacity: .6; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-end-end-radius: 6px; }
.chat-msg.them { align-self: flex-start; background: var(--panel-3); border: 1px solid var(--line-2); border-end-start-radius: 6px; }
.chat-note { text-align: center; color: var(--muted); font-size: .82rem; padding: 6px 10px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; height: 44px; max-height: 120px; padding: 11px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); outline: 0; }
.chat-form textarea:focus { border-color: rgb(var(--accent-rgb) / .5); }
.chat-form button { width: 44px; min-height: 44px; padding: 0; }
.chat-tools { display: flex; align-items: flex-end; gap: 4px; }
.chat-tool { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); font-size: .72rem; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: color .15s, border-color .15s; }
.chat-form .chat-tool, .composer .chat-tool { width: 38px; padding: 0; }
.chat-tool:hover, .chat-tool[aria-expanded="true"] { color: var(--text); border-color: rgb(var(--accent-rgb) / .5); }
.chat-pop { position: absolute; z-index: 3; inset-inline: 12px; bottom: 76px; max-height: min(320px, 62%); overflow-y: auto; padding: 10px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -24px rgb(var(--shade-rgb)); animation: pop .16s var(--ease); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid button { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: var(--panel-3); }
.gif-search { width: 100%; height: 38px; padding: 0 12px; margin-bottom: 8px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); }
.gif-grid { columns: 2; column-gap: 6px; }
.gif-item { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--panel-3); cursor: pointer; break-inside: avoid; }
.gif-item img { display: block; width: 100%; height: auto; }
.gif-credit { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; text-align: center; }
.chat-media { display: block; min-width: 120px; min-height: 90px; max-width: 100%; max-height: 220px; border-radius: 12px; object-fit: contain; background: var(--panel-3); }
.chat-msg.is-media { padding: 4px; background: transparent; border: 0; }
.chat-media + .chat-text { display: block; margin-top: 6px; }
.chat-receipt { align-self: flex-end; margin-top: -4px; font-size: .7rem; color: var(--muted); }
.chat-receipt.is-seen { color: var(--accent); }
.chat-jump { position: absolute; z-index: 2; inset-inline: 0; bottom: 80px; width: max-content; margin-inline: auto; padding: 6px 14px; border-radius: 999px; border: 1px solid rgb(var(--accent-rgb) / .4);
  background: var(--panel-2); color: var(--accent); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px -12px rgb(var(--shade-rgb)); animation: pop .18s var(--ease); }
.chat-jump:hover { background: var(--panel-3); }
.composer { position: relative; }
.composer .chat-pop { bottom: calc(100% + 6px); }

/* Responsive */
/* Store top bar: the full bar (brand | pills | actions) needs about 920px in English and 1075px in German, so below
   1100px the pills move to the bottom tab bar instead of pushing the sign-in actions off-screen. */
@media (max-width: 1099px) {
  .nav-pills { display: none; }
  .topbar-inner { justify-content: space-between; }
  .tabbar { position: fixed; z-index: 50; inset-inline: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 560px; margin-inline: auto; padding: 6px; border-radius: 20px; background: rgb(var(--panel-rgb) / .9); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px rgb(var(--shade-rgb)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 7px 4px; border-radius: 14px; color: var(--muted); font-size: .72rem; font-weight: 600; }
  .tabbar a.is-active { color: var(--accent); background: var(--panel-3); }
  .tabbar ~ .page { padding-bottom: 110px; }
  .tabbar ~ .footer .footer-inner { padding-bottom: 160px; }
  .tabbar ~ #chat-root .chat-fab { bottom: 86px; }
  .tabbar ~ #chat-root .chat-panel { bottom: 150px; height: min(520px, calc(100vh - 180px)); }
}
@media (max-width: 960px) {
  .svc-layout, .wallet-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 10px 16px; }
  .topbar-login { display: none; } /* "Log in" stays one tap away in the tab bar */
  .page { padding: 20px 16px 110px; }
  .chat-fab { bottom: 86px; inset-inline-end: 14px; }
  .chat-panel { bottom: 150px; inset-inline-end: 12px; height: min(520px, calc(100vh - 180px)); }
  .two-col, .facts { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 2; }
  .hero { padding-top: 26px; }
  .timeline { grid-template-columns: 1fr; }
  .table td, .table th { padding: 10px 8px; }
  .search-inline { min-width: 0; width: 100%; }
}
@media (max-width: 520px) {
  .topbar .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* logo only; the name stays for screen readers */
  .topbar-actions { gap: 6px; }
  .topbar-actions .dd-btn { padding: 0 8px; }
  .topbar-actions .dd-chev { display: none; }
  .topbar .dd { position: static; } /* menus open full-width under the bar instead of past the screen edge */
  .topbar .dd-menu { inset-inline: 12px; top: calc(100% + 6px); min-width: 0; }
}
@media (max-width: 420px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
}
@media (max-width: 380px) {
  .topbar-inner { padding-inline: 12px; gap: 10px; }
  .topbar-actions .dd-currency .dd-btn > .ic:first-child { display: none; } /* the currency symbol alone */
}
/* Paste / copy chips and the one-time token box (direct-token pages and Settings → Sign-in methods) */
.auth-paste-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid rgb(var(--ink-rgb) / .12); background: rgb(var(--ink-rgb) / .05); color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 1; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease); }
.auth-paste-btn:hover { color: var(--text); background: rgb(var(--ink-rgb) / .1); border-color: rgb(var(--ink-rgb) / .24); transform: translateY(-1px); }
.auth-paste-btn.copied, .auth-paste-btn.is-pasted { color: var(--ok); border-color: rgb(74 222 128 / .35); }
.token-box { display: grid; gap: 10px; justify-items: center; margin: 14px 0; padding: 18px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); text-align: center; }
.token-box-label { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.token-box code { font: 700 1.05rem/1.4 ui-monospace, "Cascadia Code", Consolas, Menlo, monospace; color: var(--text); letter-spacing: .04em; word-break: break-all; }
.token-box-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.conn-sub { display: flex; align-items: center; gap: 8px; margin: 22px 0 4px; font-size: 1rem; }

/* Motion: page sections rise in, grids cascade, buttons give under the finger. Transform / opacity only;
   fill-mode "backwards" leaves no transform behind, so sticky and fixed descendants are unaffected afterwards. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.page > :not(.flash-stack):not(.toast-stack), .adm-content > * { animation: rise .45s var(--ease) backwards; }
.page > :nth-child(2), .adm-content > :nth-child(2) { animation-delay: .04s; }
.page > :nth-child(3), .adm-content > :nth-child(3) { animation-delay: .08s; }
.page > :nth-child(n+4), .adm-content > :nth-child(n+4) { animation-delay: .12s; }
.svc-grid > * { animation: rise .4s var(--ease) backwards; }
.svc-grid > :nth-child(2) { animation-delay: .1s; }
.svc-grid > :nth-child(3) { animation-delay: .13s; }
.svc-grid > :nth-child(4) { animation-delay: .16s; }
.svc-grid > :nth-child(5) { animation-delay: .19s; }
.svc-grid > :nth-child(6) { animation-delay: .22s; }
.svc-grid > :nth-child(7) { animation-delay: .25s; }
.svc-grid > :nth-child(8) { animation-delay: .28s; }
.svc-grid > :nth-child(n+9) { animation-delay: .31s; }
.btn-primary:active, .btn-ghost:active, .btn-icon:active, .pill:active, .chat-tool:active { transform: translateY(1px) scale(.985); }
.chat-msg { animation: rise .25s var(--ease) backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Settings → sign-in methods */
.conn-list .list-main.conn-main { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.conn-main > span:last-child { display: grid; gap: 2px; min-width: 0; }
.conn-brand { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); flex: none; color: var(--text-2); }
.conn-discord svg { color: #5865f2; }
.conn-telegram svg { color: #229ed9; }
.conn-passkey svg { color: var(--accent); }
.conn-list .conn-sub { padding-inline-start: 56px; } /* passkey rows sit under the Passkeys title (40px icon + 12px gap + 4px) */

/* Information pages: terms, privacy, refund policy, FAQ (modules/pages.php) + their links */
.info-page { max-width: 820px; }
.info-page-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgb(var(--accent-rgb) / .3); flex: none; }
.prose { gap: 0; color: var(--text-2); line-height: 1.85; }
.prose h2 { margin: 24px 0 8px; font-size: 1.08rem; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul { display: grid; gap: 6px; margin: 0 0 12px; padding-inline-start: 22px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--text); }
.prose.faq { gap: 10px; }
.prose.faq > p { margin: 0 0 4px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--text); font-weight: 700; cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.2rem; line-height: 1; transition: transform .2s ease; }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.faq-a { padding: 0 16px 4px; }
.info-page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.info-page-links a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .84rem; }
.info-page-links a:hover { color: var(--text); border-color: var(--text-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; font-size: .84rem; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }
.terms-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: -4px; font-size: .8rem; }
.terms-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.terms-links a:hover { color: var(--text); }
@media (max-width: 760px) {
  .footer-inner { padding-bottom: 160px; } /* nothing sits under the floating chat button at the end of the page */
}
.info-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.info-help p { margin-top: 2px; font-size: .9rem; }
