/* SendTo Wallet dashboard and control panel. Afaq Digital brand (D:\TFS\_shared\brand\BRAND.md): colours and Readex Pro. */
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/ReadexPro.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --ink: #0B0E13;
  --charcoal: #2C2C2C;
  --red: #E3120B;
  --grey: #8C8C8C;
  --fog: #E6E8EB;
  --slate: #6B7280;
  --slate-dark: #4B5361;
  --mist: #A9AFB8;
  --link: #B00E08;
  --link-hover: #7A0A05;
  --border: #E5E7EB;
  --page: #F5F6F8;
  --card: #FFFFFF;
  --ok-bg: #EEF6F0;
  --ok-text: #1F5130;
  --warn-bg: #FFF7E6;
  --warn-text: #6B4A00;
  --error-bg: #FDECEB;
  --error-text: #8A0B06;
  --radius: 10px;
  --side: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--page);
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.3; font-weight: 600; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; direction: ltr; unicode-bidi: embed; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.muted { color: var(--slate); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- shell: dark side bar, light top bar ---- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: var(--side);
  flex: none;
  background: var(--ink);
  color: var(--fog);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-brand { display: block; padding: 4px 8px 18px; border-bottom: 1px solid #1E232B; margin-bottom: 14px; }
.side-brand img { width: 150px; height: auto; display: block; }
.side-brand span { display: block; margin-top: 10px; font-size: .8rem; color: var(--mist); letter-spacing: .02em; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--fog); padding: 9px 12px; border-radius: 8px; font-size: .95rem;
}
.side nav a:hover { background: #161B22; text-decoration: none; color: #fff; }
.side nav a.active { background: #1B2129; color: #fff; box-shadow: inset 3px 0 0 var(--red); }
[dir="rtl"] .side nav a.active { box-shadow: inset -3px 0 0 var(--red); }
.side .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--grey); flex: none; }
.side nav a.active .dot { background: var(--red); }
.side-foot { margin-top: auto; font-size: .78rem; color: var(--mist); padding: 12px 8px 0; border-top: 1px solid #1E232B; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  height: 60px; background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 5;
}
.top-title { font-weight: 600; font-size: 1.02rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border);
  border-radius: 999px; color: var(--charcoal); font-size: .86rem; background: var(--card);
}
.chip:hover { border-color: var(--mist); text-decoration: none; color: var(--charcoal); }
.who { font-size: .86rem; color: var(--slate-dark); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle { display: none; }
.menu-button { display: none; }
.content { padding: 24px; max-width: 1180px; width: 100%; }
.page-foot { margin-top: auto; padding: 18px 24px; font-size: .8rem; color: var(--slate); border-top: 1px solid var(--border); background: var(--card); }

/* ---- cards, stats, tables ---- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 4px; height: 100%; background: var(--fog); }
.stat.accent::before { background: var(--red); }
.stat .label { font-size: .82rem; color: var(--slate); }
.stat .value { font-size: 1.7rem; font-weight: 600; line-height: 1.2; margin-top: 4px; direction: ltr; unicode-bidi: embed; display: inline-block; }
.stat .hint { font-size: .78rem; color: var(--slate); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .card { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: start; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-weight: 600; font-size: .8rem; color: var(--slate); background: #FAFAFB; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; text-align: end; }
td.actions form { display: inline; }
.empty { padding: 26px 10px; text-align: center; color: var(--slate); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.facts dt { color: var(--slate); font-size: .88rem; }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--fog); color: var(--charcoal); white-space: nowrap; }
.badge.on { background: var(--ok-bg); color: var(--ok-text); }
.badge.off { background: var(--error-bg); color: var(--error-text); }
.badge.wait { background: var(--warn-bg); color: var(--warn-text); }

/* ---- forms and buttons ---- */
form.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .9rem; }
.field .help { font-size: .8rem; color: var(--slate); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=search], select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #D5D9DF; border-radius: 8px; background: #fff; color: var(--charcoal);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(227, 18, 11, .25); border-color: var(--red); }
input.code { letter-spacing: .4em; font-size: 1.35rem; text-align: center; direction: ltr; }
input[type=email], input[type=tel], input[type=url], input.ltr-input { direction: ltr; }
[dir="rtl"] input[type=email], [dir="rtl"] input[type=tel], [dir="rtl"] input[type=url], [dir="rtl"] input.ltr-input { text-align: right; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { flex: 1; min-width: 180px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; font-size: .9rem;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--charcoal); background: var(--charcoal); color: #fff; cursor: pointer;
}
.btn:hover { background: #111; color: #fff; text-decoration: none; }
.btn.light { background: #fff; color: var(--charcoal); border-color: #D5D9DF; }
.btn.light:hover { border-color: var(--charcoal); }
.btn.danger { background: #fff; color: var(--error-text); border-color: #F2B8B5; }
.btn.danger:hover { background: var(--error-bg); }
.btn.small { padding: 5px 11px; font-size: .82rem; }
.btn.block { width: 100%; }
.btn.link { background: none; border: 0; color: var(--link); padding: 0; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.alert.ok { background: var(--ok-bg); color: var(--ok-text); border-color: #CFE6D6; }
.alert.error { background: var(--error-bg); color: var(--error-text); border-color: #F6C9C6; }
.alert.info { background: #F1F3F6; color: var(--slate-dark); border-color: var(--border); }
.alert.warn { background: var(--warn-bg); color: var(--warn-text); border-color: #F3E0B5; }

.secret {
  display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--fog); border-radius: 8px; padding: 12px 14px; margin: 10px 0;
}
.secret code { flex: 1; overflow-wrap: anywhere; color: #fff; font-size: .9rem; }
.secret .btn { background: var(--fog); color: var(--ink); border-color: var(--fog); }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: .88rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; }
.danger-zone { border-color: #F2C4C1; }
.danger-zone h2 { color: var(--error-text); }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pack { border: 1px dashed #D5D9DF; border-radius: 8px; padding: 12px; text-align: center; }
.pack strong { display: block; font-size: 1.15rem; }
.pack-name { font-weight: 600; margin-bottom: 4px; }
.pack .btn { display: inline-block; }
.pack strong.pack-custom { font-size: 1rem; margin-top: 4px; }
.pack-price { display: block; font-size: 1.05rem; font-weight: 600; margin-top: 6px; }
.pack-notice { margin: 6px 0 10px; text-align: start; overflow-wrap: anywhere; }
/* P5.2 §9: the local figure big, the USD charge beside it, small; a narrow card wraps it under, still small. */
.pack-price-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 8px; margin-top: 6px; }
.pack-price-line .pack-price { margin-top: 0; }
.pack-charge { font-size: .8rem; color: var(--slate-dark); font-weight: 500; }
.buy-charge { display: block; font-size: .75rem; font-weight: 400; opacity: .9; }
.revenue { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

/* ---- sign-in pages ---- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: var(--page); border-top: 4px solid var(--red); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px 28px 24px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 8px; }
.auth-logo img { width: 128px; height: auto; }
.auth-product { text-align: center; color: var(--slate); font-size: .86rem; margin-bottom: 18px; }
.auth h1 { text-align: center; font-size: 1.25rem; }
.auth .lead { text-align: center; color: var(--slate); font-size: .9rem; margin-bottom: 18px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; margin-top: 16px; }
.auth-foot { margin-top: 18px; display: flex; gap: 14px; align-items: center; font-size: .8rem; color: var(--slate); }

/* ---- phones ---- */
@media (max-width: 860px) {
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; }
  [dir="rtl"] .side { transform: translateX(100%); }
  .menu-toggle:checked ~ .shell .side { transform: none; }
  .menu-toggle:checked ~ .shell .scrim { display: block; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(11, 14, 19, .45); z-index: 15; }
  .menu-button { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; flex: none; }
  .menu-button span, .menu-button span::before, .menu-button span::after { display: block; width: 16px; height: 2px; background: var(--charcoal); position: relative; content: ""; }
  .menu-button span::before { position: absolute; top: -5px; }
  .menu-button span::after { position: absolute; top: 5px; }
  .top { padding: 0 14px; }
  .who { display: none; }
  .content { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat .value { font-size: 1.35rem; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 8px; }
  .auth-card { padding: 22px 18px; }
  table.collapse thead { display: none; }
  table.collapse tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  table.collapse td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; }
  table.collapse td::before { content: attr(data-label); color: var(--slate); font-size: .8rem; }
  table.collapse td.actions { justify-content: flex-end; }
  table.collapse td.actions::before { content: none; }
}
.mt { margin-top: 12px; }

/* ---- template studio ---- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--charcoal); font-size: .86rem; background: var(--card); }
.tabs a:hover { text-decoration: none; border-color: var(--mist); }
.tabs a.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.lib-langs select { width: auto; min-width: 210px; }
.lib-family { margin: 22px 0 12px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 8px; }
.lib-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lib-text h3 { margin-bottom: 2px; }
.lib-text p { margin-bottom: 8px; }
.lib-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.steps { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; counter-reset: step; }
.steps a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; color: var(--slate-dark); font-size: .9rem; border: 1px solid transparent; }
.steps a b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--fog); color: var(--charcoal); font-size: .78rem; font-weight: 600; }
.steps a:hover { text-decoration: none; background: var(--card); border-color: var(--border); }
.steps a.active { background: var(--card); border-color: var(--border); color: var(--charcoal); font-weight: 600; }
.steps a.active b { background: var(--red); color: #fff; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 375px; gap: 20px; align-items: start; }
.studio-preview { position: sticky; top: 76px; }
.studio-form .card h2 { margin-bottom: .25rem; }
.step-nav { display: flex; gap: 10px; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; }
.step-nav .btn:only-child { margin-inline-start: auto; }
fieldset.region { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; }
fieldset.region legend { font-weight: 600; padding: 0 6px; }
.slot { border: 1px dashed #D5D9DF; border-radius: 8px; padding: 12px; display: grid; gap: 10px; background: #FCFCFD; }
.slot .grid-2 { gap: 10px; }
.slot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
details.advanced summary { cursor: pointer; font-size: .85rem; color: var(--slate-dark); }
details.advanced[open] summary { margin-bottom: 10px; }
.color-pair { display: flex; gap: 10px; align-items: center; }
.color-pair input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #D5D9DF; border-radius: 8px; background: #fff; }
.img-role { border-top: 1px solid var(--border); padding: 14px 0; display: grid; gap: 10px; }
.img-role:first-of-type { border-top: 0; }
.img-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.img-head h3 { margin-bottom: 2px; }
.img-now { max-width: 180px; max-height: 70px; border-radius: 6px; border: 1px solid var(--border); background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.img-now.icon { width: 48px; height: 48px; }
.img-now.strip, .img-now.background { max-width: 220px; }
.img-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crop { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg a { padding: 5px 12px; font-size: .84rem; color: var(--charcoal); }
.seg a:hover { text-decoration: none; background: var(--page); }
.seg a.on { background: var(--charcoal); color: #fff; }
ul.issues { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
ul.issues li { font-size: .85rem; padding: 8px 10px; border-radius: 8px; }
ul.issues li.block { background: var(--error-bg); color: var(--error-text); }
ul.issues li.note { background: var(--warn-bg); color: var(--warn-text); }

/* ---- the pass preview: drawn from the pass.json we would ship ---- */
.pp { width: 100%; max-width: 343px; margin: 0 auto; }
.pp-card {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--pp-bg); color: var(--pp-fg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18); padding-bottom: 12px; font-size: 15px; line-height: 1.25;
}
.pp-card.voided .pp-code { opacity: .3; }
.pp-bgimg { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: blur(10px); z-index: 0; }
.pp-card > *:not(.pp-bgimg) { position: relative; z-index: 1; }
.pp-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; min-height: 58px; }
.pp-logo { max-width: 120px; max-height: 34px; object-fit: contain; flex: none; }
.pp-logotext { text-align: left; font-weight: 600; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-header { display: flex; gap: 12px; margin-inline-start: auto; flex: none; max-width: 60%; }
.pp-field { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.pp-field.start { text-align: left; }
.pp-field.middle { text-align: center; }
.pp-field.end { text-align: right; }
.pp-l { color: var(--pp-label); font-size: 10px; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-v { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-header .pp-v { font-size: 15px; font-weight: 600; }
.pp-v.big { font-size: 26px; font-weight: 600; }
.pp-strip { position: relative; aspect-ratio: 375 / 144; }
.pp-strip.short { aspect-ratio: 375 / 98; }
.pp-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-over { position: absolute; inset-inline: 14px; bottom: 8px; display: flex; flex-direction: column-reverse; text-align: left; }
.pp-over.rtl { text-align: right; }
.pp-over .pp-v.big { font-size: 30px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pp-primary { display: flex; gap: 12px; padding: 8px 14px; align-items: center; min-height: 86px; }
.pp-primary-fields { display: flex; gap: 6px; flex: 1; min-width: 0; }
.pp-primary .pp-field { flex-direction: column; }
.pp-thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; flex: none; margin-inline-start: auto; }
.pp-row { display: flex; gap: 6px; padding: 6px 14px; }
.pp-barcode { margin: 12px auto 0; background: #fff; border-radius: 8px; padding: 8px; width: fit-content; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pp-code { display: block; }
.pp-code.square { width: 140px; height: 140px; }
.pp-code.wide { width: 240px; height: 70px; }
.pp-alt { color: #222; font-size: 11px; }
.pp-note { text-align: center; color: var(--slate); font-size: .78rem; margin: 10px 0 0; }
.pp-hints { margin: 10px 0 0; padding-inline-start: 18px; font-size: .82rem; color: var(--slate-dark); display: grid; gap: 4px; }
.pp-back { margin-top: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: .86rem; }
.pp-back summary { cursor: pointer; font-weight: 500; }
.pp-back dl { margin: 8px 0 0; display: grid; gap: 2px; }
.pp-back dt { color: var(--slate); font-size: .78rem; margin-top: 6px; }
.pp-back dd { margin: 0; white-space: pre-line; }
.pp.compact .pp-card { font-size: 13px; }
.pp.compact .pp-note { display: none; }
.pp.compact .pp-v.big { font-size: 21px; }
.pp.compact .pp-code.square { width: 96px; height: 96px; }
.pp.compact .pp-code.wide { width: 180px; height: 52px; }

@media (max-width: 1100px) {
  .studio { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .studio-preview { position: static; order: -1; }
  .steps { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .steps a { white-space: nowrap; }
  .img-head { flex-direction: column; }
  .lib-grid { grid-template-columns: 1fr; }
}

/* ---- the legal footer of every layout (P5 §1, BRAND §5) ---- */
.legal-foot { display: grid; gap: 6px; font-size: .8rem; color: var(--slate); }
.legal-foot p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legal-links a { color: var(--slate-dark); }
.legal-company .legal-en { display: block; overflow-wrap: anywhere; }
.legal-contact a { color: var(--slate-dark); }
.auth-foot { flex-direction: column; text-align: center; max-width: 560px; }
.auth-foot .legal-links { justify-content: center; }
/* The credit line v2 (credit-line-2026-11-06 §2): the snippet's inline style moved here, so the CSP needs no exception. */
.afaq-credit { margin: 8px 0 0; font-size: 12px; opacity: .75; }
.afaq-credit a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.afaq-credit a:hover { text-decoration: none; opacity: 1; }
.afaq-credit svg { flex: none; }
/* WhatsApp and YouTube (Afaq's site rule; legal.css .afaq-social). Our footer is light, so the resting colours are dark. */
.afaq-social { display: flex; gap: 12px; list-style: none; margin: 4px 0 0; padding: 0; }
.auth-foot .afaq-social { justify-content: center; }
.afaq-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(11,14,19,.06); color: var(--slate-dark); transition: background .15s, color .15s; }
.afaq-social a:hover { color: #fff; }
.afaq-social a.wa:hover { background: #25D366; }
.afaq-social a.yt:hover { background: #FF0000; }
.afaq-social a:focus-visible, .afaq-chat-btn:focus-visible { outline: 2px solid #FF6B5F; outline-offset: 3px; }
.afaq-social svg { width: 20px; height: 20px; fill: currentColor; }
/* The live chat button (chat.js, public pages only), from legal.css as it is. */
.afaq-chat-btn { position: fixed; right: 20px; bottom: 20px; z-index: 2147483000; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #E3120B; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 4px 14px rgba(0,0,0,.28); transition: transform .15s; }
.afaq-chat-btn:hover { transform: scale(1.06); }
.afaq-chat-btn svg { width: 28px; height: 28px; fill: currentColor; }
.afaq-chat-btn.is-loading { opacity: .6; cursor: progress; }

/* ---- public site: header, sections, home, pricing, developers ---- */
body.site { background: var(--card); }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.site-wrap.narrow { max-width: 820px; }
.site-top { border-bottom: 1px solid var(--border); background: var(--card); position: sticky; top: 0; z-index: 5; }
.site-bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--charcoal); font-weight: 600; }
.site-brand:hover { text-decoration: none; color: var(--charcoal); }
.site-brand img { display: block; width: 132px; height: auto; }
.site-brand span { padding-inline-start: 12px; border-inline-start: 1px solid var(--border); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 6px 16px; margin-inline-start: auto; flex-wrap: wrap; }
.site-nav > a:not(.btn):not(.chip) { color: var(--charcoal); padding: 6px 2px; }
.site-nav > a.active { box-shadow: inset 0 -2px 0 var(--red); }
.site-menu-button { display: none; }
.site-main { min-height: 60vh; }
.site-section { padding: 56px 0; }
.site-section.alt { background: var(--page); }
.site-section h1 { font-size: 2rem; }
.site-section h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.site-section .lead { font-size: 1.05rem; color: var(--slate-dark); max-width: 720px; }
/* Bottom 100px: the chat button is fixed in the corner, and the footer ends clear of it (it never covers the icons in RTL). */
.site-foot { border-top: 1px solid var(--border); background: var(--page); padding: 28px 0 100px; }
.hero { padding: 72px 0 56px; border-top: 4px solid var(--red); background: var(--page); }
.hero h1 { font-size: 2.4rem; max-width: 820px; line-height: 1.25; }
.hero-lead { font-size: 1.15rem; color: var(--slate-dark); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.hero-actions .btn { padding: 11px 22px; font-size: 1rem; }
.site-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.site-preview { margin: 0; }
.site-preview figcaption { text-align: center; font-size: .88rem; color: var(--slate); margin-top: 8px; }
.site-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.site-steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--red); }
.site-steps strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.site-steps span { color: var(--slate-dark); }
.site-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
pre.code { margin: 0; background: var(--ink); color: var(--fog); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: .84rem; line-height: 1.55; text-align: left; }
.site-section.cta { text-align: center; background: var(--ink); color: #fff; }
.site-section.cta h2 { font-size: 1.6rem; }
.site-section.cta .btn { background: var(--red); border-color: var(--red); padding: 11px 26px; font-size: 1rem; }
.site-packs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.site-packs .pack { border-style: solid; background: var(--card); padding: 22px 16px; }
.site-packs .pack-price { font-size: 1.5rem; }
.rules { padding-inline-start: 20px; margin: 0 0 1rem; }
.rules li { margin-bottom: 6px; }
table.dev-ops td:first-child { white-space: nowrap; }
.guide { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--page); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; font-family: inherit; font-size: .9rem; line-height: 1.7; }

/* ---- legal pages ---- */
.legal h2 { margin-top: 1.8rem; display: flex; gap: 10px; align-items: baseline; }
.legal h2 span { color: var(--red); font-size: .9rem; font-weight: 600; }
.legal ul { padding-inline-start: 20px; }
.legal li { margin-bottom: 8px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.legal-tabs a { padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--charcoal); font-size: .86rem; }
.legal-tabs a.active { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
.legal-tabs a:hover { text-decoration: none; border-color: var(--charcoal); }
.legal-table { margin: 12px 0 20px; }
.legal-table td { vertical-align: top; }

/* ---- the statistics switch (website-afaq legal.css, in our colours) ---- */
.vt-box { border: 1px solid var(--border); border-inline-start: 3px solid var(--red); border-radius: 6px; padding: 16px 18px; margin: 18px 0 8px; background: var(--page); }
.vt-box .vt-msg { display: none; margin: 0 0 12px; }
.vt-box button .vt-on, .vt-box button .vt-off { display: none; }
.vt-box[data-state="on"] .vt-on, .vt-box[data-state="off"] .vt-off, .vt-box[data-state="dnt"] p.vt-dnt { display: block; }
.vt-box[data-state="on"] button .vt-on, .vt-box[data-state="off"] button .vt-off { display: inline; }
.vt-box[data-state="dnt"] .vt-btn { display: none; }
.vt-btn { background: var(--card); border: 1px solid #D5D9DF; color: var(--charcoal); padding: 7px 16px; border-radius: 8px; font: 500 .9rem inherit; font-family: inherit; cursor: pointer; }
.vt-btn:hover { border-color: var(--red); }

/* ---- the consent box on the sign-up form ---- */
.check.consent { align-items: flex-start; line-height: 1.5; }
.check.consent input { margin-top: 4px; flex: none; }

@media (max-width: 960px) {
  .site-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-wrap { padding: 0 16px; }
  .site-bar { flex-wrap: wrap; min-height: 56px; }
  .site-brand img { width: 108px; }
  .site-menu-button { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; margin-inline-start: auto; }
  .site-menu-button span, .site-menu-button span::before, .site-menu-button span::after { display: block; width: 16px; height: 2px; background: var(--charcoal); position: relative; content: ""; }
  .site-menu-button span::before { position: absolute; top: -5px; }
  .site-menu-button span::after { position: absolute; top: 5px; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 0 0 14px; margin: 0; }
  .site-nav > a { padding: 8px 4px; }
  .site-nav > a.btn, .site-nav > a.chip { text-align: center; justify-content: center; }
  .menu-toggle:checked ~ .site-nav { display: flex; }
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-lead { font-size: 1rem; }
  .site-section { padding: 36px 0; }
  .site-section h1 { font-size: 1.55rem; }
  .site-steps { grid-template-columns: minmax(0, 1fr); }
  .site-previews { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
  .site-packs { grid-template-columns: minmax(0, 1fr); }
  table.dev-ops td:first-child { white-space: normal; overflow-wrap: anywhere; }
}
