﻿@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/noto-sans-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF;
}
:root {
  font: 16px/1.5 "DM Sans","Noto Sans Arabic",Tahoma,sans-serif;
  color-scheme: light;
  color: var(--ink);
  background: var(--canvas);
  --canvas: #fafbf7;
  --surface: #fff;
  --on-accent: white;
  --ink: #142a24;
  --green: #144d3b;
  --sub: #53685e;
  --line: #d9e1d8;
  --pale: #eef3e7;
  --lime: #dffb9a;
  --accent-hover: #0b3b2b;
  --error: #9a332c;
  --cover: #e6efd4;
  --cover-sub: #3d5745;
  --divider: #e6ebe4;
  --success-ink: #2c6042;
  --success-bg: #edf4e9;
  --amber-ink: #795414;
  --amber-bg: #faf0d9;
  --neutral-ink: #4b5b61;
  --neutral-bg: #ecf0ef;
  --reject-ink: #883e39;
  --reject-bg: #f9ebe7;
  --field-line: #bac9bf;
  --tool-hover: #dfead9;
  --debit-ink: #8c332c;
  --debit-line: #d7b7ae;
  --notice-bg: #fbf4dd;
  --notice-ink: #503b12;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #101915;
  --surface: #18231f;
  --ink: #edf4ed;
  --sub: #b5c6bb;
  --green: #91d8ad;
  --on-accent: #10291c;
  --line: #394a40;
  --pale: #26372d;
  --accent-hover: #ace9be;
  --error: #ffa99b;
  --cover: #253d30;
  --cover-sub: #c4dbca;
  --divider: #34463c;
  --success-ink: #b9edc7;
  --success-bg: #263e30;
  --amber-ink: #f5d48a;
  --amber-bg: #453921;
  --neutral-ink: #c4d1d2;
  --neutral-bg: #303d40;
  --reject-ink: #ffc1b5;
  --reject-bg: #4b2e2c;
  --field-line: #62766a;
  --tool-hover: #334a3d;
  --debit-ink: #ffb6a9;
  --debit-line: #79534c;
  --notice-bg: #3d341e;
  --notice-ink: #f4da99;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1,h2,h3,p,dl,dd { margin: 0; }
button,input,textarea,select { font: inherit; color: inherit; }
button,a,input,label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button,a { touch-action: manipulation; }
button:disabled { opacity: .48; cursor: default; }
a { color: var(--green); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #548b32; outline-offset: 3px; }
.ui-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.masthead { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top, 0px); background: var(--surface); border-bottom: 1px solid var(--line); }
html { scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
.signin-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.signin-code-row input#issuedCode { flex: 1 1 12ch; min-width: 15ch; text-align: center; font: 600 1.05rem/1.5 monospace; letter-spacing: .06em; }
#codeTimer { font-variant-numeric: tabular-nums; }
.mast-inner,main { max-width: 1260px; margin-inline: auto; padding-inline: clamp(16px,4vw,56px); }
.mast-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; direction: ltr; text-decoration: none; color: var(--ink); font-size: 25px; font-weight: 780; letter-spacing: -.065em; }
#side,.header-actions,#bottom,.actions,.choices,.filters,.section,.heading,.ptop,.pfoot,.guide-heading,.facts { display: flex; align-items: center; gap: 10px; }
#side { align-self: stretch; gap: 3px; }
button,.link,.bank-link { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 1px solid transparent; padding: .56em .9em; border-radius: 8px; font-weight: 630; background: transparent; text-decoration: none; }
.navbtn { color: var(--sub); font-size: .91rem; padding-inline: 10px; border-radius: 0; position: relative; }
.navbtn.active { color: var(--green); }
.navbtn.active::after { content: ""; background: var(--green); height: 3px; position: absolute; right: 10px; left: 10px; bottom: 0; }
#identity { background: var(--pale); border-radius: 30px; max-width: 12rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { min-width: 0; }
#bottom { display: none; }
main { padding-block: clamp(20px,3vw,42px) 70px; }
.heading { margin-bottom: 22px; }
h1 { font-size: clamp(2.1rem,4vw,3.5rem); font-weight: 650; line-height: 1.08; letter-spacing: -.058em; }
h2 { font-size: clamp(1.4rem,2.3vw,1.9rem); font-weight: 650; line-height: 1.22; letter-spacing: -.042em; }
h3 { font-size: 1.05rem; line-height: 1.4; }
:lang(ar) :is(h1,h2,h3,.amount-field strong) { letter-spacing: normal; line-height: 1.45; }
small,.muted { color: var(--sub); }
small { font-size: .85rem; }
.primary,.link.primary { color: var(--on-accent); background: var(--green); }
.purchase-action { width: 100%; min-height: 52px; padding: 12px 18px; font-size: 1.125rem; font-weight: 700; }
.primary:hover:enabled,.link.primary:hover { background: var(--accent-hover); }
.soft,.chip,.close { border-color: var(--line); background: var(--surface); }
.soft:hover,.chip:hover,.payment-method:hover,.navbtn:hover { background: var(--pale); }
.soft.danger,.error { color: var(--error); }
.textbtn { color: var(--green); padding-inline: .5em; }
.textbtn:hover,.bank-link:hover { text-decoration: underline; }
.store-cover { display: grid; grid-template-columns: 1fr 1fr; min-height: 260px; overflow: hidden; border-radius: 18px; background: var(--cover); }
.cover-copy { align-self: center; padding: clamp(24px,4vw,60px); }
.cover-copy h1 { max-width: 10em; font-size: clamp(2.5rem,5vw,4.7rem); }
.cover-copy p { color: var(--cover-sub); margin: .6rem 0 1.2rem; }
.store-cover img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
.wallet { padding: clamp(20px,4vw,40px); background: #183f35; color: white; border-radius: 14px; display: grid; grid-template-columns: 1fr; align-items: center; gap: 4px; }
.wallet strong { grid-column: 1; font-size: clamp(2rem,5vw,4rem); letter-spacing: -.04em; line-height: 1.25; }
.wallet span { grid-column: 1; color: #d5e8d8; }
.wallet :is(button,a) { justify-self: start; margin-block-start: 8px; background: var(--lime); color: #142a24; border: none; }
.store-cover + .wallet { margin-top: 15px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 16px 22px; }
.store-cover + .wallet strong { font-size: 1.5rem; }
.store-cover + .wallet span { color: var(--sub); }
.section { justify-content: space-between; margin: 30px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(230px,100%),1fr)); gap: 12px; }
.catalogue-heading { justify-content: space-between; flex-wrap: wrap; }
.home-catalogue-heading { flex-wrap: wrap; }
.home-catalogue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.layout-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.layout-switch button { min-height: 38px; padding: 5px 14px; border-radius: 7px; color: var(--sub); }
.layout-switch button[aria-pressed="true"] { color: var(--on-accent); background: var(--green); }
.grid.product-list { grid-template-columns: minmax(0,1fr); gap: 8px; }
.product-list .product { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "logo name price" "logo category stock"; align-items: center; min-height: 72px; padding: 10px 14px; gap: 2px 12px; }
.product-list :is(.ptop,.pfoot) { display: contents; }
.product-list .tile { grid-area: logo; }
.product-list h3 { grid-area: name; align-self: end; overflow-wrap: anywhere; }
.product-list .pfoot small { grid-area: category; align-self: start; }
.product-list .pfoot b { grid-area: price; justify-self: end; white-space: nowrap; }
.product-list .badge { grid-area: stock; justify-self: end; }
.product { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; text-align: start; background: var(--surface); min-height: 164px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 12px; gap: 12px; }
.product:hover { border-color: #769383; box-shadow: 0 3px 12px #1d3a2710; }
.variant-plans { display: grid; gap: 8px; margin-block-start: 16px; }
.variant-plan { display: grid; grid-template-columns: minmax(0,1fr) auto; justify-content: stretch; text-align: start; gap: 3px 10px; padding: 12px; border-color: var(--line); }
.variant-plan:hover { background: var(--pale); }
.variant-plan strong { overflow-wrap: anywhere; }
.variant-plan b { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.ptop,.pfoot,.guide-heading { justify-content: space-between; }
.tile { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; color: var(--green); background: #f4f6ef; font-size: 1.3rem; }
.tile { color: #144d3b; }
.tile img { width: 28px; height: 28px; object-fit: contain; }
.product h3 { flex: 1; font-size: 1.02rem; font-weight: 680; }
.pfoot { border-top: 1px solid var(--divider); padding-top: 9px; gap: 6px; flex-wrap: wrap; }
.pfoot small { font-size: .8rem; font-weight: 500; }
.badge { width: fit-content; display: inline-block; font-size: .82rem; font-weight: 550; color: var(--success-ink); background: var(--success-bg); padding: 3px 8px; border-radius: 5px; }
.badge:is([data-status="review"],[data-status="processing"],[data-status="submitting"]) { color: var(--amber-ink); background: var(--amber-bg); }
.badge:is([data-status="awaiting_receipt"],[data-status="queued"]) { color: var(--neutral-ink); background: var(--neutral-bg); }
.badge[data-status="rejected"] { color: var(--reject-ink); background: var(--reject-bg); }
.profile-stack { display: grid; gap: 14px; }
.profile-card,.profile-standalone { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.profile-card { padding: 4px clamp(16px,3vw,28px); min-width: 0; }
.profile-card > h2 { font-size: 1.15rem; letter-spacing: normal; padding-block: 15px 12px; border-bottom: 1px solid var(--line); }
.account-heading { display: flex; align-items: center; gap: 14px; padding-block: 17px; }
.account-heading > div { min-width: 0; overflow-wrap: anywhere; }
.account-heading h2 { font-size: 1.45rem; }
.profile-handle { display: inline-block; color: var(--sub); font-size: .94rem; }
.initial { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--pale); color: var(--green); font-size: 1.5rem; font-weight: 650; }
.profile-facts > div,.profile-setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.profile-facts > div,.profile-code { border-top: 1px solid var(--line); }
.profile-facts dt,.profile-code p { color: var(--sub); }
.profile-facts dd,.profile-action bdi { font-variant-numeric: tabular-nums; }
.profile-facts dd { font-weight: 600; }
.profile-action,.profile-standalone { width: 100%; justify-content: flex-start; min-height: 50px; text-align: start; gap: 10px; }
.profile-action { padding-inline: 2px; border: 0; border-radius: 0; }
.profile-action + .profile-action { border-block-start: 1px solid var(--line); }
.profile-action:hover,.profile-standalone:hover { background: var(--pale); }
.profile-action bdi { margin-inline-start: auto; color: var(--green); }
.profile-setting > span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.profile-card .ui-icon { color: var(--green); }
.profile-code { padding-block: 14px; }
.profile-code p { margin-block: 4px 12px; }
.profile-code button,.profile-login { min-height: 44px; }
.profile-login { margin-block: 12px 0; width: 100%; }
.profile-standalone { padding-inline: clamp(16px,3vw,28px); }
.profile-standalone.danger { color: var(--error); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); margin-block: 18px; gap: 14px; }
.metrics div { border-inline-start: 2px solid #afca99; padding-inline-start: 12px; }
.metrics dt { color: var(--sub); font-size: .9rem; }
.metrics dd { font-size: 1.35rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="file"]),textarea,select { width: 100%; font: inherit; color: var(--ink); border: 1px solid var(--field-line); border-radius: 7px; padding: 10px 12px; background: var(--surface); }
input.search { max-width: 38rem; }
.filters { flex-wrap: nowrap; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #9aada1 transparent; padding: 4px; margin: 10px 0 18px; }
.filters .chip { flex: 0 0 auto; white-space: nowrap; }
.chip { border-radius: 24px; font-size: .89rem; }
.chip.active,.filters .chip[aria-pressed="true"] { color: var(--on-accent); background: var(--green); border-color: var(--green); }
.panel,.empty { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px,3vw,28px); margin-block: 12px; }
.empty { color: var(--sub); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 16px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.row > div:first-child { flex: 1; min-width: 0; }
.row small,.row b { display: block; }
.row small { margin-block: 2px; }
.row .badge { flex-shrink: 0; }
.row button { font-size: .89rem; }
.actions,.choices,.facts { flex-wrap: wrap; margin-block: 16px 6px; }
.facts { gap: 16px; padding-block: 12px; border-block: 1px solid var(--line); }
[data-view="wallet"],[data-view="orders"],[data-view="history"],[data-view="profile"],[data-view="admin"] { max-width: 860px; margin: auto; }
[data-view="profile"] { max-width: 690px; }
[data-view="admin"] { max-width: 1060px; }
.desk-metrics { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.desk-metrics > div { padding: clamp(15px,2.5vw,28px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.desk-metrics > div:first-child { background: #163f34; color: white; border-color: #163f34; }
.desk-metrics dt { font-size: .9375rem; }
.desk-metrics dd { font-variant-numeric: tabular-nums; margin-block-start: 10px; font-size: clamp(1.35rem,2.9vw,2.55rem); line-height: 1.2; font-weight: 650; overflow-wrap: anywhere; }
.desk-metrics > div:first-child dd { color: var(--lime); }
.desk-columns { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(210px,1fr); align-items: start; gap: 16px; margin-block-start: 20px; }
.desk-queue,.desk-tools { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.desk-queue header { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.desk-columns h2 { font-size: 1.25rem; }
.desk-queue .row { padding-inline: 0; }
.desk-queue .row:last-child { border-bottom: 0; }
.desk-queue .empty { margin: 0; padding: 22px 0 4px; border: none; }
.desk-tool { width: 100%; justify-content: flex-start; margin-top: 12px; background: var(--pale); min-height: 48px; }
.desk-tool:hover { background: var(--tool-hover); }
.customer-wallet { background: var(--success-bg); padding: 16px; border-radius: 12px; }
.customer-wallet > strong { display: block; font-size: 2rem; font-variant-numeric: tabular-nums; }
.wallet-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wallet-tools button { flex: 1; min-height: 46px; }
.credit-btn { background: var(--green); color: var(--on-accent); }
.debit-btn { background: var(--surface); color: var(--debit-ink); border-color: var(--debit-line); }
.confirm-debit { color: white; background: #893c33; }
.adjust-current { display: flex; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 8px; background: var(--pale); }
.adjust-success { color: var(--green); border-inline-start: 3px solid var(--green); padding-inline-start: 10px; }
@media (max-width: 720px) {
  .desk-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .desk-metrics > div:first-child { grid-column: 1/-1; }
  .desk-metrics > div:first-child dd { font-size: 2rem; }
  .desk-columns { display: flex; flex-direction: column; }
  .desk-tools,.desk-queue { width: 100%; padding: 14px; }
  .desk-tools { order: -1; }
}
dialog { width: min(470px,calc(100% - 24px)); border: 1px solid var(--line); border-radius: 15px; max-height: 88dvh; color: var(--ink); background: var(--surface); padding: clamp(18px,3vw,30px); box-shadow: 0 18px 80px #152d2730; }
dialog::backdrop { background: #0b221bd1; }
dialog h2 { padding-inline-end: 35px; margin-bottom: 15px; }
dialog p { margin-block: 10px; }
dialog details { border-block-end: 1px solid var(--line); }
dialog summary { padding-block: 11px; cursor: pointer; font-weight: 620; }
.close { float: inline-end; width: 32px; height: 32px; font-size: 21px; padding: 0; }
label { display: block; font-weight: 600; margin: 12px 0 5px; }
.product-facts,.activation-guide { margin-block: 14px; }
.product-facts > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-block: 9px; }
.product-facts dt { color: var(--sub); }
.product-facts dd { font-weight: 650; }
.order-facts dd { min-width: 0; overflow-wrap: anywhere; text-align: end; }
.order-facts dt { flex-shrink: 0; }
.guide-heading { margin: 20px 0 10px; }
.guide-text,.details { font: inherit; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.details { padding: 12px; background: var(--pale); }
.receipt { max-height: 290px; max-width: 100%; object-fit: contain; }
.error:empty { display: none; }
#toast { display: none; position: fixed; z-index: 8; bottom: 20px; inset-inline: 12px; margin: auto; width: fit-content; max-width: 92vw; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--canvas); }
.funding h2 { margin-bottom: 18px; }
.funding label,.funding h3,.transfer-total small,#destination > small { font-size: .9rem; }
.amount-field { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--green); }
.amount-field input#amount { padding: 0 0 5px; border: none; border-radius: 0; font-weight: 650; font-size: 2.7rem; background: transparent; }
.amount-field span { font-weight: 650; color: var(--sub); }
.presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 12px 0 22px; }
.presets .chip { border-radius: 7px; padding: 7px 2px; }
.presets [aria-pressed="true"] { background: var(--pale); border-color: var(--green); color: var(--green); }
.payment-methods { margin-top: 7px; display: grid; gap: 7px; }
.payment-method { border-color: var(--line); justify-content: flex-start; padding: 13px 15px; }
.payment-method::before { content: ""; width: 7px; height: 21px; background: #753e8d; border-radius: 4px; }
.payment-method.vodafone::before { background: #c83438; }
.payment-method .ui-icon { display: none; }
.transfer-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; background: var(--pale); border-radius: 9px; }
.transfer-total small,.transfer-total strong,.upload-slot small { display: block; }
.transfer-total strong { font-size: clamp(1.5rem,4vw,2rem); font-weight: 680; }
.deadline { text-align: end; }
.deadline b { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
#destination,#latePayment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.receiver { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.receiver b { font-size: 1.25rem; letter-spacing: .025em; }
.transfer-actions { display: grid; gap: 8px; margin-top: 14px; }
.transfer-actions > * { width: 100%; min-height: 46px; }
.transfer-actions .bank-link { min-height: 52px; font-size: 1.125rem; }
.purchase-notice { padding: 12px 14px; margin-block: 14px; border-inline-start: 4px solid #987326; background: var(--notice-bg); border-radius: 6px; color: var(--notice-ink); }
.checkout-details { margin-block-end: 16px; }
.sent-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-block: 10px 5px; cursor: pointer; }
.sent-check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; flex: none; }
.upload-slot { position: relative; display: flex; align-items: center; gap: 10px; border: 1px dashed #95a99a; border-radius: 8px; padding: 9px 12px; margin: 0; cursor: pointer; }
.upload-slot:focus-within { outline: 2px solid var(--green); }
.upload-slot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-slot b { overflow-wrap: anywhere; }
#receiptPreview { object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
#receiptPreview:not([hidden]) + .attach-mark { display: none; }
.attach-mark { color: var(--green); }
.send-proof { margin-top: 14px; width: 100%; }
.receipt-progress { margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: var(--pale); }
.receipt-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.receipt-progress b { font-variant-numeric: tabular-nums; color: var(--green); }
.receipt-progress progress { display: block; width: 100%; height: 9px; margin-top: 8px; accent-color: var(--green); }
.funding:has(.send-proof[aria-busy="true"]) #latePayment { display: none; }
@media (max-width: 900px) {
  #side .ui-icon { display: none; }
  .mast-inner { gap: 8px; }
}
@media (max-width: 720px) {
  .mast-inner { min-height: 58px; }
  .brand { font-size: 22px; }
  #side { display: none; }
  #identity { max-width: 9rem; }
  .header-actions { gap: 3px; }
  #bottom { display: flex; justify-content: space-around; position: fixed; z-index: 4; inset: auto 0 0; padding: 4px 3px max(4px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  #bottom .navbtn { flex: 1; flex-direction: column; gap: 3px; font-size: .8rem; padding: 7px 1px; }
  #bottom .active::after { top: -5px; bottom: auto; }
  main { padding-bottom: 100px; }
  #toast { bottom: 82px; }
  .store-cover { min-height: 175px; grid-template-columns: 1.1fr .9fr; border-radius: 12px; }
  .store-cover img { max-height: none; min-height: 100%; }
  .cover-copy { padding: 16px; }
  .cover-copy h1 { font-size: clamp(1.75rem,6.3vw,2.7rem); }
  .cover-copy p { font-size: .88rem; margin: .5rem 0 .8rem; }
  .cover-copy .primary { font-size: .88rem; }
  .cover-copy .ui-icon { display: none; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .product { min-height: 148px; padding: 12px 10px 9px; gap: 10px; }
  .ptop { gap: 4px; flex-wrap: wrap; }
  .product h3 { font-size: .95rem; }
  .badge { font-size: .8rem; padding: 2px 5px; }
  .wallet { padding: 18px; gap: 5px 7px; }
  .row { padding: 12px 8px; gap: 8px; flex-wrap: wrap; }
  .section { margin: 23px 0 12px; }
  dialog { max-height: 90dvh; }
}
@media (max-width: 370px) {
  .mast-inner { padding-inline: 10px; gap: 5px; }
  .brand { gap: 5px; font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  #identity { padding-inline: 6px; font-size: .875rem; }
}

.language-switch { display: inline-flex; vertical-align: middle; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.language-switch button { min-width: 34px; min-height: 34px; padding: 3px 7px; border-radius: 999px; color: var(--sub); font-size: .875rem; line-height: 1; }
.language-switch [aria-pressed="true"] { background: var(--green); color: var(--on-accent); }
#theme { width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
#theme:hover { background: var(--pale); }
#theme .moon, [data-theme="dark"] #theme .sun { display: none; }
[data-theme="dark"] #theme .moon { display: block; }
#language { flex: none; }
.header-actions #identity { min-width: 0; }
@media (min-width: 721px) and (max-width: 1050px) {
  #side .ui-icon { display: none; }
  #side .navbtn { padding-inline: 5px; }
  .mast-inner { padding-inline: 12px; gap: 6px; }
  .header-actions { gap: 4px; }
}
