/* Hnaya design system tokens (tokens.json, 2026-11-16): light by default, dark on html[data-theme="dark"]. */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/plex-arabic-300.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/plex-latin-ext-300.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/plex-latin-300.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-latin-ext-500.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/plex-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/plex-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/plex-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #EEF3F9;
  --bg-sky: #DDEFFF;
  --bg-deep: #EEF2F7;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --line: #E6EBF1;
  --line-strong: #C4CDD8;
  --ink: #0C1118;
  --ink-2: #4D5868;
  --muted: #5F6B7B;
  --primary: #1A72DD;
  --primary-hi: #1E74E0;
  --primary-lo: #1562CA;
  --on-primary: #FFFFFF;
  --primary-ink: #1A72DD;
  --primary-soft: #E3F0FF;
  --on-primary-soft: #1562CA;
  --on-blue-muted: #DCEBFF;
  --cyan: #2EA8FF;
  --on-cyan: #021523;
  --navy: #0B4F8A;
  --navy-deep: #082F5C;
  --ice: #CFE5FF;
  --gold: #F4B740;
  --on-gold: #261800;
  --price: #0F7A43;
  --whatsapp: #2FD27B;
  --on-whatsapp: #04200F;
  --danger: #B91C1C;
  --danger-soft: #FEE2E2;
  --count: #C0392B;
  --beta: #FBBF24;
  --on-beta: #0C1118;
  --st-new-bg: #E3F2FF;
  --st-new: #0E6BB3;
  --st-noanswer-bg: #FFF0DB;
  --st-noanswer: #A34A06;
  --st-confirmed-bg: #EEE9FF;
  --st-confirmed: #5B3FD1;
  --st-shipped-bg: #DCF5F6;
  --st-shipped: #0B7177;
  --st-delivered-bg: #DCFCE7;
  --st-delivered: #15803D;
  --st-cancelled-bg: #FEE2E2;
  --st-cancelled: #B91C1C;
  --cat-blue: #1A72DD;
  --cat-blue-soft: #8CC4FF;
  --cat-blue-tile: #E6F1FF;
  --cat-sky: #1497E0;
  --cat-sky-soft: #9ADBFF;
  --cat-sky-tile: #E2F5FF;
  --cat-teal: #0E9C98;
  --cat-teal-soft: #8FE3DC;
  --cat-teal-tile: #DFF7F4;
  --cat-violet: #6A4FDB;
  --cat-violet-soft: #C4B7FF;
  --cat-violet-tile: #EFEBFF;
  --cat-orange: #EC7417;
  --cat-orange-soft: #FFC48F;
  --cat-orange-tile: #FFF0E2;
  --cat-pink: #DE4380;
  --cat-pink-soft: #FFB2CE;
  --cat-pink-tile: #FFEBF2;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(12,17,24,.04), 0 10px 30px rgba(12,17,24,.05);
  --shadow-float: 0 12px 30px rgba(12,17,24,.12);
  --shadow-primary: 0 6px 16px rgba(26,114,221,.28);
  --font-sans: "IBM Plex Sans Arabic", Tahoma, system-ui, sans-serif;
  --grad: linear-gradient(225deg, var(--primary-hi), var(--primary-lo));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A0E14;
  --bg-sky: #0F2440;
  --bg-deep: #0A0E14;
  --surface: #12171F;
  --surface-2: #1A212B;
  --line: #222A35;
  --line-strong: #2F3946;
  --ink: #E8EEF5;
  --ink-2: #A3AFC0;
  --muted: #93A0B2;
  --primary-ink: #5AA6FF;
  --primary-soft: #132E4D;
  --on-primary-soft: #5AA6FF;
  --price: #4ADE80;
  --danger: #F87171;
  --danger-soft: #3A1619;
  --st-new-bg: #132E4D;
  --st-new: #6CB8FF;
  --st-noanswer-bg: #3A2812;
  --st-noanswer: #F7A75C;
  --st-confirmed-bg: #262046;
  --st-confirmed: #B3A3FF;
  --st-shipped-bg: #0F3335;
  --st-shipped: #5FD3D9;
  --st-delivered-bg: #0F2E1C;
  --st-delivered: #4ADE80;
  --st-cancelled-bg: #3A1619;
  --st-cancelled: #F87171;
  --cat-blue-tile: #14304F;
  --cat-sky-tile: #0F3346;
  --cat-teal-tile: #0E3634;
  --cat-violet-tile: #28224A;
  --cat-orange-tile: #43280F;
  --cat-pink-tile: #46182B;
  --shadow-card: 0 0 0 1px rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.35);
  --shadow-float: 0 12px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* The Hnaya design system's components (bundle.css), copied by tools/sync_canvas_css.py; font import left out. */
/* Hnaya components. Every colour comes from tokens.css. RTL first. */
.hn{font-family:var(--font-sans);color:var(--ink);font-weight:400;-webkit-font-smoothing:antialiased}
.hn *,.hn *::before,.hn *::after{box-sizing:border-box}
.hn-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.hn-col{display:flex;flex-direction:column;gap:var(--space-3)}
.hn-ico{width:20px;height:20px;flex:none}
.hn-mu{color:var(--muted)}
/* Button */
.hn-btn{height:46px;padding:0 20px;border-radius:var(--radius-pill);border:0;font:inherit;font-weight:700;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;white-space:nowrap;text-decoration:none}
.hn-btn:focus-visible,.hn-seg button:focus-visible,.hn-chip:focus-visible,.hn-nav a:focus-visible{outline:2px solid var(--primary-ink);outline-offset:2px}
.hn-btn--primary{background:linear-gradient(225deg,var(--primary-hi),var(--primary-lo));color:var(--on-primary)}
.hn-btn--primary:hover{filter:brightness(1.06)}
.hn-btn--secondary{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.hn-btn--quiet{background:var(--surface-2);color:var(--ink)}
.hn-btn--soft{background:var(--primary-soft);color:var(--on-primary-soft)}
.hn-btn--gold{background:var(--gold);color:var(--on-gold)}
.hn-btn--whatsapp{background:var(--whatsapp);color:var(--on-whatsapp)}
.hn-btn--danger{background:var(--danger-soft);color:var(--danger)}
.hn-btn--lg{height:60px;font-size:18px;font-weight:800;padding:0 28px}
.hn-btn--sm{height:36px;font-size:13px;padding:0 14px}
.hn-btn--icon{width:46px;padding:0}
.hn-btn[disabled]{opacity:.4;cursor:not-allowed;filter:none}
/* Badge / status */
.hn-badge{display:inline-flex;align-items:center;gap:5px;border-radius:var(--radius-pill);padding:2px 10px;font-size:12px;font-weight:700;line-height:18px}
.hn-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.hn-badge--new{background:var(--st-new-bg);color:var(--st-new)}
.hn-badge--noanswer{background:var(--st-noanswer-bg);color:var(--st-noanswer)}
.hn-badge--confirmed{background:var(--st-confirmed-bg);color:var(--st-confirmed)}
.hn-badge--shipped{background:var(--st-shipped-bg);color:var(--st-shipped)}
.hn-badge--delivered{background:var(--st-delivered-bg);color:var(--st-delivered)}
.hn-badge--cancelled{background:var(--st-cancelled-bg);color:var(--st-cancelled)}
.hn-count{min-width:22px;height:22px;border-radius:var(--radius-pill);background:var(--count);color:#fff;font-size:12px;font-weight:800;display:inline-grid;place-items:center;padding:0 6px}
/* Segmented */
.hn-seg{display:inline-flex;background:var(--surface-2);border-radius:var(--radius-pill);padding:4px}
.hn-seg button{border:0;background:none;font:inherit;font-size:13px;font-weight:700;color:var(--muted);padding:8px 16px;border-radius:var(--radius-pill);cursor:pointer}
.hn-seg button[aria-pressed=true]{background:var(--surface);color:var(--primary-ink);box-shadow:0 1px 3px rgba(12,17,24,.1)}
.hn-seg--solid button[aria-pressed=true]{background:var(--primary-soft);color:var(--on-primary-soft);box-shadow:none}
/* Chips / tabs */
.hn-chip{height:40px;border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);border:0;font:inherit;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:6px;padding:0 16px;cursor:pointer}
.hn-chip small{font-size:12px;color:var(--muted);font-weight:700}
.hn-chip[aria-pressed=true]{background:var(--primary-soft);color:var(--on-primary-soft);box-shadow:inset 0 0 0 1.5px var(--on-primary-soft)}
.hn-chip[aria-pressed=true] small{color:var(--on-primary-soft)}
/* Inputs */
.hn-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.hn-input{height:46px;border-radius:var(--radius-pill);background:var(--surface);border:1.5px solid var(--line);padding:0 16px;font:inherit;font-size:15px;color:var(--ink);display:flex;align-items:center;gap:8px}
.hn-input:focus-within{border-color:var(--primary-ink)}
.hn-input input{border:0;outline:0;background:none;font:inherit;color:inherit;flex:1;min-width:0}
.hn-input--error{border-color:var(--danger)}
.hn-help{font-size:12px;font-weight:400;color:var(--muted)}
.hn-help--error{color:var(--danger)}
/* Search box (hnaya.me) */
.hn-search{background:var(--surface);border-radius:var(--radius-xl);padding:12px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow-card)}
.hn-drop{border-radius:26px;background:var(--surface-2);border:1.5px dashed var(--line-strong);padding:26px;display:flex;align-items:center;justify-content:center;gap:16px}
.hn-cam{width:56px;height:56px;border-radius:50%;background:linear-gradient(225deg,var(--primary-hi),var(--primary-lo));color:var(--on-primary);display:grid;place-items:center;flex:none;box-shadow:var(--shadow-primary)}
/* Toggle */
.hn-toggle{width:40px;height:24px;border-radius:var(--radius-pill);background:var(--line-strong);position:relative;border:0;cursor:pointer;flex:none}
.hn-toggle::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:inset-inline-start .15s}
.hn-toggle[aria-checked=true]{background:linear-gradient(225deg,var(--primary-hi),var(--primary-lo))}
.hn-toggle[aria-checked=true]::after{inset-inline-start:19px}
/* Card */
.hn-card{background:var(--surface);border-radius:var(--radius-lg);padding:var(--space-5);box-shadow:var(--shadow-card)}
.hn-stat .k{font-size:13px;color:var(--muted)}.hn-stat .v{font-size:34px;line-height:40px;font-weight:800}.hn-stat .d{font-size:12px;font-weight:700;color:var(--price)}
/* Nav */
.hn-nav{display:flex;flex-direction:column;gap:2px}
.hn-nav a{display:flex;align-items:center;gap:12px;height:42px;padding:0 14px;border-radius:var(--radius-pill);color:var(--ink-2);font-size:15px;font-weight:700;text-decoration:none}
.hn-nav a[aria-current=page]{background:linear-gradient(225deg,var(--primary-hi),var(--primary-lo));color:var(--on-primary);box-shadow:var(--shadow-primary)}
.hn-nav a .hn-count{margin-inline-start:auto}
.hn-upgrade{background:linear-gradient(225deg,var(--navy),var(--navy-deep));color:var(--on-primary);border-radius:22px;padding:14px;display:flex;flex-direction:column;gap:7px}
.hn-upgrade small{font-size:12px;color:var(--on-blue-muted)}
.hn-crown{width:30px;height:30px;border-radius:50%;background:var(--gold);color:var(--on-gold);display:grid;place-items:center;flex:none}
.hn-bar{height:6px;border-radius:var(--radius-pill);background:rgba(255,255,255,.22);overflow:hidden}.hn-bar i{display:block;height:100%;border-radius:inherit;background:var(--gold)}
.hn-bottom{display:flex;background:var(--surface);border-radius:var(--radius-pill);padding:6px;box-shadow:var(--shadow-float)}
.hn-bottom a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--ink-2);padding:8px 0;border-radius:var(--radius-pill);text-decoration:none}
.hn-bottom a[aria-current=page]{background:linear-gradient(225deg,var(--primary-hi),var(--primary-lo));color:var(--on-primary)}
/* Rows */
.hn-orow{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--line)}
.hn-av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:var(--surface-2);flex:none}
.hn-call{width:40px;height:40px;border-radius:50%;background:var(--primary-soft);color:var(--on-primary-soft);display:grid;place-items:center;flex:none;border:0}
.hn-selected{background:var(--primary-soft);color:var(--ink);border-radius:22px;padding:14px 18px;box-shadow:inset 0 0 0 2px var(--primary-ink)}
.hn-selected .hn-call{background:var(--surface)}
.hn-ocard{background:var(--surface);border-radius:var(--radius-lg);padding:16px;display:flex;flex-direction:column;gap:12px}
/* Offer card (hnaya.me) */
.hn-offer{background:var(--surface);border-radius:var(--radius-lg);padding:8px;display:flex;flex-direction:column;gap:6px;box-shadow:var(--shadow-card);width:220px}
.hn-offer .ph{aspect-ratio:1;border-radius:var(--radius-md);background:var(--surface-2) center/cover;position:relative}
.hn-offer .tag{position:absolute;top:10px;right:10px;border-radius:var(--radius-pill);padding:3px 10px;font-size:11px;font-weight:700}
.hn-offer .tag--found{background:var(--st-delivered-bg);color:var(--st-delivered)}
.hn-offer .tag--similar{background:var(--surface);color:var(--ink-2)}
.hn-offer .nm{font-size:14px;font-weight:700;padding:4px 6px 0;line-height:1.45}
.hn-offer .pr{font-size:18px;font-weight:800;color:var(--price);padding:0 6px}
.hn-offer .mt{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);padding:0 6px}
.hn-lock{height:40px;border-radius:var(--radius-pill);background:var(--surface-2);display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:700;color:var(--ink);margin-top:4px}
/* POS tile */
.hn-tile{background:var(--surface);border-radius:22px;padding:8px;display:flex;flex-direction:column;gap:6px;position:relative;width:180px}
.hn-tile .ph{height:118px;border-radius:16px;background:var(--surface-2) center/cover}
.hn-tile .nm{font-size:14px;font-weight:700;padding:0 6px}.hn-tile .pr{font-size:16px;font-weight:800;padding:0 6px 4px}
.hn-tile .st{position:absolute;top:14px;right:14px;background:var(--surface);border-radius:var(--radius-pill);padding:1px 9px;font-size:11.5px;font-weight:700}
.hn-tile .q{position:absolute;top:14px;left:14px;width:26px;height:26px;border-radius:50%;background:var(--primary);color:var(--on-primary);font-size:12px;font-weight:800;display:grid;place-items:center}
.hn-tile.in{box-shadow:0 0 0 2px var(--primary)}
.hn-tile.out .ph{filter:grayscale(1);opacity:.5}
/* Numpad */
.hn-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:300px}
.hn-pad span{height:62px;border-radius:var(--radius-md);background:var(--surface-2);display:grid;place-items:center;font-size:24px;font-weight:800}
.hn-pad .clr{font-size:16px;color:var(--danger)}
.hn-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:300px}
.hn-quick span{height:44px;border-radius:var(--radius-pill);background:var(--primary-soft);color:var(--on-primary-soft);display:grid;place-items:center;font-size:14px;font-weight:700}
/* Banners */
.hn-beta{background:var(--beta);color:var(--on-beta);font-size:13px;font-weight:700;text-align:center;padding:7px 12px}
.hn-plan{display:flex;align-items:center;gap:14px;background:var(--surface);border-radius:var(--radius-lg);padding:14px 18px}
.hn-plan .track{height:8px;border-radius:var(--radius-pill);background:var(--surface-2);overflow:hidden}.hn-plan .track i{display:block;height:100%;background:var(--gold);border-radius:inherit}
.hn-pro{display:flex;align-items:center;gap:16px;background:linear-gradient(225deg,var(--navy),var(--navy-deep));color:#fff;border-radius:var(--radius-lg);padding:16px 22px}
.hn-pro small{color:var(--on-blue-muted);font-size:13px}
/* Sheet */
.hn-sheet{background:var(--surface);border-radius:30px;box-shadow:0 30px 80px rgba(12,17,24,.25);width:420px;overflow:hidden}
.hn-sheet header{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}
.hn-sheet .body{padding:18px 22px;display:flex;flex-direction:column;gap:12px}
.hn-x{width:38px;height:38px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;border:0;color:var(--ink);font:inherit}

/* Category tiles: one hue per category (assets/Categories) */
.hn-cat{--cat:var(--cat-blue);--cat-tile:var(--cat-blue-tile);width:56px;height:56px;border-radius:var(--radius-md);background:var(--cat-tile);display:grid;place-items:center;flex:none}
.hn-cat svg,.hn-cat img{width:58%;height:58%}
.hn-cat--sm{width:40px;height:40px;border-radius:12px}
.hn-cat--lg{width:76px;height:76px;border-radius:24px}
.hn-cat--blue,.hn-catcard--blue,.hn-catchip--blue{--cat:var(--cat-blue);--cat-tile:var(--cat-blue-tile)}
.hn-cat--sky,.hn-catcard--sky,.hn-catchip--sky{--cat:var(--cat-sky);--cat-tile:var(--cat-sky-tile)}
.hn-cat--teal,.hn-catcard--teal,.hn-catchip--teal{--cat:var(--cat-teal);--cat-tile:var(--cat-teal-tile)}
.hn-cat--violet,.hn-catcard--violet,.hn-catchip--violet{--cat:var(--cat-violet);--cat-tile:var(--cat-violet-tile)}
.hn-cat--orange,.hn-catcard--orange,.hn-catchip--orange{--cat:var(--cat-orange);--cat-tile:var(--cat-orange-tile)}
.hn-cat--pink,.hn-catcard--pink,.hn-catchip--pink{--cat:var(--cat-pink);--cat-tile:var(--cat-pink-tile)}
.hn-catcard{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px 14px;border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-card);color:var(--ink);text-align:center;text-decoration:none}
.hn-catcard b{font-weight:700;font-size:14px;line-height:1.35}
.hn-catcard .n{font-size:12px;color:var(--muted)}
.hn-catcard .new{font-size:11.5px;font-weight:800;color:var(--cat);background:var(--cat-tile);border-radius:var(--radius-pill);padding:2px 9px}
.hn-catchip{display:inline-flex;align-items:center;gap:8px;height:44px;padding-inline:6px 16px;border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font:inherit;font-weight:700;font-size:14px;border:0;box-shadow:var(--shadow-card);white-space:nowrap}
.hn-catchip .hn-cat{width:32px;height:32px;border-radius:50%}
.hn-catchip[aria-pressed=true]{background:var(--cat-tile);color:var(--cat);box-shadow:inset 0 0 0 1.5px var(--cat)}

/* Dark grounds: one ground, hero as a glow, no light bands */
.hn[data-theme=dark] .hn-hero,.hn[data-theme=dark].hn-hero{background:radial-gradient(120% 75% at 50% -12%,var(--bg-sky),transparent 70%),var(--bg)}
.hn[data-theme=dark] .hn-band{background:transparent!important;border-color:var(--line)!important}

/* The design canvas's own classes (hn.css of the Hnaya Source canvas), copied by tools/sync_canvas_css.py.
   Do not edit by hand: change the canvas, then run the tool again. Frame-only rules and classes the site
   already defines are left out (see FRAME / SITE_OWN in the tool). */
.hn-field,.hn-input{min-width:0}
.hn-hero{background:linear-gradient(170deg,var(--bg-sky) 0%,var(--surface-2) 50%,var(--bg-deep) 100%)}
.hn-top{display:flex;align-items:center;gap:14px}
.hn-pillnav{display:flex;gap:4px;background:var(--surface);border-radius:var(--radius-pill);padding:5px;box-shadow:var(--shadow-card)}
.hn-pillnav a{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border-radius:var(--radius-pill);font-size:15px;font-weight:700;color:var(--ink-2)}
.hn-pillnav a[aria-current=page]{background:linear-gradient(225deg,var(--primary-hi),var(--primary-lo));color:var(--on-primary);box-shadow:var(--shadow-primary)}
.hn-round{width:44px;height:44px;border-radius:50%;background:var(--surface);display:grid;place-items:center;color:var(--ink);flex:none;border:0}
.hn-th{border-radius:var(--radius-sm);background:var(--surface-2) center/cover;flex:none}
.hn-ph{background:var(--surface-2) center/cover}
.hn-strip{display:flex;gap:12px;overflow:hidden}
.hn-sec{display:flex;justify-content:space-between;align-items:baseline}
.hn-sec b{font-weight:800;font-size:17px}
.hn-sec a{font-size:13px;font-weight:700}
.hn-mini{background:var(--surface);border-radius:22px;padding:8px;display:flex;flex-direction:column;gap:6px;box-shadow:var(--shadow-card)}
.hn-mini .ph{aspect-ratio:1;border-radius:16px;background:var(--surface-2) center/cover;position:relative}
.hn-mini .nm{font-size:13px;font-weight:700;padding:0 4px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.8em}
.hn-mini .pr{font-size:15px;font-weight:800;color:var(--price);padding:0 4px 4px}
.hn-blur{filter:blur(12px);transform:scale(1.1)}
.hn-dim{position:absolute;inset:0;background:rgba(8,13,20,.45)}
.hn-tbl{width:100%;border-collapse:collapse;font-size:14px}
.hn-tbl th{font-size:12px;font-weight:700;color:var(--muted);text-align:right;padding:8px 10px;border-bottom:1px solid var(--line)}
.hn-tbl td{padding:12px 10px;border-bottom:1px solid var(--line)}
.hn-kv{display:flex;justify-content:space-between;font-size:14px;padding:6px 0}
.hn-skel{background:linear-gradient(90deg,var(--surface-2),var(--line),var(--surface-2));border-radius:10px}
.hn-big{font-size:40px;line-height:44px;font-weight:800}
.hn-copy{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface-2);border-radius:var(--radius-md);padding:12px 14px}
.hn-step{display:flex;align-items:center;gap:12px;padding:12px;border-radius:var(--radius-md);background:var(--surface-2)}
.hn-step .n{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}

/* Hnaya Source screens (new front end, 2026-11-16). Built on tokens.css + components.css (the design system).
   Layouts come from the canvas boards; every colour is a token. Web: 1200px column; phone: 16px gutters. */

/* ---------- ground ---------- */
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
body.at-home { background: linear-gradient(170deg, var(--bg-sky) 0, var(--surface-2) 520px, var(--bg-deep) 900px, var(--bg) 1100px) top / 100% 1100px no-repeat, var(--bg); }
:root[data-theme="dark"] body.at-home { background: radial-gradient(120% 700px at 50% -140px, var(--bg-sky), transparent 70%) top / 100% 900px no-repeat, var(--bg); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-ink); text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
bdi { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; }
.ssr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* ---------- top bar: logo · the sections in the true centre · actions ---------- */
/* the design: 1200 px of content, 32 px each side, logo · tabs in the true centre · actions (design system README, Layout) */
.topbar { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 14px; max-width: 1200px; box-sizing: content-box; margin: 0 auto; padding: 16px 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); justify-self: start; }
.brand img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.brand .logo-d { display: none; }
:root[data-theme="dark"] .brand .logo-l { display: none; }
:root[data-theme="dark"] .brand .logo-d { display: inline; }
.brand span { font-size: 18px; font-weight: 300; color: var(--ink-2); white-space: nowrap; }
.brand b { font-weight: 700; color: var(--ink); }
.navpill { justify-self: center; display: flex; gap: 4px; background: var(--surface); border-radius: var(--radius-pill); padding: 5px; box-shadow: var(--shadow-card); }
.navpill button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; background: none; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.navpill button svg { width: 18px; height: 18px; }
.navpill button[aria-current="page"] { background: var(--grad); color: var(--on-primary); box-shadow: var(--shadow-primary); }
.acts { display: flex; align-items: center; gap: 10px; justify-self: end; }
.acts .up { height: 44px; }
.acts .up .crown { width: 18px; height: 18px; }
.addch { height: 44px; background: var(--surface); color: var(--primary-ink); border: 1.5px solid var(--primary-ink); }
.addch svg { width: 18px; height: 18px; }
.addch .long { display: none; }
.roundb { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink); border: 0; display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-card); font-weight: 700; font-size: 16px; position: relative; padding: 0; }
.roundb svg { width: 20px; height: 20px; }
#account-btn.in { background: var(--grad); color: var(--on-primary); box-shadow: var(--shadow-primary); }
.plan-pill { position: absolute; inset-block-end: -6px; inset-inline-start: 50%; transform: translateX(50%); background: var(--gold); color: var(--on-gold);
  font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 999px; font-weight: 700; }
[dir="ltr"] .plan-pill { transform: translateX(-50%); }
.langw { position: relative; }
.langmenu { position: absolute; inset-block-start: 52px; inset-inline-end: 0; z-index: 40; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-float);
  padding: 6px; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.langmenu button { border: 0; background: none; text-align: start; padding: 10px 12px; border-radius: 12px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; }
.langmenu button:hover { background: var(--surface-2); }
.langmenu button[aria-checked="true"]::after { content: "✓"; color: var(--primary-ink); }
/* Tabs show their labels where they fit with the tabs in the true centre; otherwise icons only, the label kept for
   screen readers. French never fits in the design's 1200 px bar (tabs 548 px + buttons 414 px a side, measured), so
   French tabs are icons only. */
@media (max-width: 1239px) { .navpill button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .navpill button { padding: 0 14px; } }
[dir="ltr"] .navpill button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="ltr"] .navpill button { padding: 0 14px; }
@media (max-width: 859px) {
  .topbar { grid-template-columns: 1fr auto; padding: 12px 16px; gap: 8px; }
  .navpill, #lang-btn, .langw, #admin-link { display: none; }
  .brand span { font-size: 15px; }
  .brand img { width: 34px; height: 34px; }
  .acts { gap: 8px; }
  .acts .up { width: 44px; padding: 0; }
  .acts .up span { display: none; }
  .addch { height: 40px; padding: 0 12px; font-size: 13px; }
  .roundb { width: 40px; height: 40px; }
}

/* ---------- page ---------- */
.page { max-width: 1264px; margin: 0 auto; padding: 8px 32px 64px; min-height: calc(100vh - 40px); }
.view { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 859px) { .page { padding: 4px 16px 110px; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 12px; }
.page-head h1 { font-size: 28px; line-height: 36px; }
.page-head .hn-mu { font-size: 13px; margin-top: 2px; }
.ph-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 859px) { .page-head h1 { font-size: 22px; line-height: 30px; } }

/* ---------- the first screen: headline + the search box ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: clamp(16px, 6vh, 56px); text-align: center; }
.hero h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.32; font-weight: 300; }
.hero h1 span { display: block; }
.hero h1 .big { font-weight: 700; }
.today-pill { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--surface); color: var(--primary-ink); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow-card); margin-bottom: -6px; }
.today-pill .live, i.live { width: 8px; height: 8px; border-radius: 50%; background: var(--price); display: inline-block; flex: none; }
.hn-search { width: 100%; max-width: 720px; text-align: start; }
.search-form { display: flex; flex-direction: column; gap: 10px; }
.hn-drop { cursor: pointer; }
.hn-drop .txt { display: flex; flex-direction: column; gap: 2px; text-align: start; }
.hn-drop strong { font-size: 17px; font-weight: 700; }
.hn-drop .hn-mu { font-size: 13px; }
.hn-drop:hover, .hn-search.over .hn-drop { border-color: var(--primary-ink); }
.hn-cam svg { width: 26px; height: 26px; }
.askrow { display: flex; align-items: center; gap: 10px; padding: 2px 8px 2px 2px; }
[dir="rtl"] .askrow { padding: 2px 8px 2px 2px; }
.askrow .mag { width: 18px; height: 18px; color: var(--muted); flex: none; }
.askrow .ask { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 15px; padding: 10px 0; color: var(--ink); }
.askrow .ask::placeholder { color: var(--muted); }
.askrow .send { height: 46px; padding: 0 24px; }
.askrow .send svg, .askrow .other-photo svg { width: 18px; height: 18px; }
.askrow .other-photo { display: none; }
.thumb { position: relative; flex: none; display: block; }
.thumb img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; background: var(--surface-2); }
.thumb .x { position: absolute; inset-block-start: -5px; inset-inline-end: -5px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface);
  background: var(--ink); color: var(--surface); display: grid; place-items: center; padding: 0; }
.thumb .x svg { width: 10px; height: 10px; }
.left-note { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin: -8px 0 0; }
.left-note b { color: var(--ink); font-weight: 700; }
.left-note svg { width: 14px; height: 14px; flex: none; }
.left-note .up { border: 0; background: none; color: var(--primary-ink); font-weight: 700; padding: 0; }
.left-note.out { color: var(--danger); }
@media (max-width: 859px) {
  .hero { gap: 18px; padding-top: 12px; }
  .hn-drop { padding: 22px 14px; }
  .askrow .send { padding: 0 18px; }
}
/* after a search: one slim bar on top (photo thumbnail, words, «صورة أخرى», «بحث») */
#step1.compact { padding-top: 4px; gap: 8px; }
#step1.compact h1, #step1.compact .hn-drop, #step1.compact .today-pill { display: none; }
#step1.compact .hn-search { max-width: none; border-radius: var(--radius-pill); padding: 6px; }
#step1.compact .askrow { padding: 0 6px; }
#step1.compact .other-photo { display: inline-flex; }
#step1.compact .left-note { margin: 0; align-self: flex-start; }
@media (max-width: 859px) { #step1.compact .other-photo span { display: none; } #step1.compact .other-photo { width: 46px; padding: 0; } }

/* ---------- footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding: 18px max(32px, calc((100% - 1200px) / 2)); font-size: 13px; color: var(--muted); }
:root[data-theme="dark"] .foot { background: transparent; }
.foot-links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.foot-links a { color: var(--primary-ink); }
.foot-theme { display: inline-flex; align-items: center; gap: 10px; }
.theme-row { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.theme-row button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.theme-row button[aria-pressed="true"] { background: var(--surface); color: var(--primary-ink); box-shadow: 0 1px 3px rgba(12,17,24,.1); }
@media (max-width: 859px) { .foot { padding: 18px 16px 110px; flex-direction: column; align-items: flex-start; } }

/* ---------- phone bottom bar ---------- */
.phonebar { position: fixed; inset-inline: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 25; }
.phonebar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink-2); padding: 8px 0;
  border-radius: var(--radius-pill); border: 0; background: none; }
.phonebar button svg { width: 21px; height: 21px; }
.phonebar button[aria-current="page"] { background: var(--grad); color: var(--on-primary); }
@media (min-width: 860px) { .phonebar { display: none; } }

/* ---------- toast, scrim ---------- */
.toast { position: fixed; inset-inline: 0; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; width: max-content; max-width: calc(100% - 32px); z-index: 60;
  background: var(--ink); color: var(--surface); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-float); }
@media (min-width: 860px) { .toast { bottom: 32px; } }
.toast.pace { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }      /* above a toast, when both show */
@media (min-width: 860px) { .toast.pace { bottom: 86px; } }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(8,13,20,.42); }
:root[data-theme="dark"] .scrim { background: rgba(0,0,0,.66); }
body.no-scroll { overflow: hidden; }

/* ---------- offer grid and card (OfferCard) ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1260px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 859px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hn-offer.card { width: auto; cursor: pointer; text-align: start; min-width: 0; }
.hn-offer.card:hover { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--line-strong); }
.hn-offer .ph { overflow: hidden; display: grid; place-items: center; }
.hn-offer .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hn-offer .ph .nopic { color: var(--muted); }
.hn-offer .ph .nopic svg { width: 36px; height: 36px; }
.hn-offer .tag { z-index: 1; inset-inline-start: 10px; right: auto; }
[dir="rtl"] .hn-offer .tag { right: 10px; left: auto; }
[dir="ltr"] .hn-offer .tag { left: 10px; right: auto; }
.hn-offer .ob { position: absolute; z-index: 1; inset-inline-end: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink);
  display: grid; place-items: center; padding: 0; box-shadow: 0 2px 8px rgba(12,17,24,.14); }
.hn-offer .ob svg { width: 16px; height: 16px; }
.hn-offer .ob.star { top: 8px; }
.hn-offer .ob.look { top: 48px; }
.hn-offer .ob.star[aria-pressed="true"] { color: var(--gold); }
.hn-offer .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.hn-offer .pr .u { font-size: 12px; font-weight: 400; color: var(--muted); }
.hn-offer .pr.ask { font-size: 14px; font-weight: 400; color: var(--muted); }
.hn-offer .alf { font-size: 12px; color: var(--muted); padding: 0 6px; margin-top: -4px; }
.hn-offer .flags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px; }
.flag { border-radius: 999px; padding: 1px 10px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--muted); }
.flag.new { border-color: var(--primary-ink); color: var(--primary-ink); }
.hn-offer .note { display: flex; align-items: center; gap: 6px; margin: 2px 4px 0; padding: 6px 10px; border-radius: 14px; background: var(--cat-orange-tile); color: var(--cat-orange);
  font-size: 12.5px; font-weight: 700; }
.hn-offer .note svg { width: 14px; height: 14px; flex: none; }
.hn-offer .note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-offer .mt { padding-bottom: 4px; }
.hn-offer.past { opacity: .85; }
@media (max-width: 600px) { .hn-offer .nm { font-size: 13px; } .hn-offer .pr { font-size: 16px; } }

/* skeleton */
.grid.skel { min-height: 260px; }
.sk { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 8px; }
.sk .p { aspect-ratio: 1; border-radius: var(--radius-md); }
.sk .p, .sk i { display: block; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; }
.sk i { height: 12px; border-radius: 6px; margin: 10px 6px 0; }
.sk i.s { width: 50%; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk .p, .sk i { animation: none; } }
.sk i.p { height: auto; aspect-ratio: 1; margin: 0; border-radius: var(--radius-md); }
.sk i.l2 { width: 60%; } .sk i.l3 { width: 40%; margin-bottom: 6px; }

/* ---------- sections (home, Discover, Saved) ---------- */
.home-feed { display: flex; flex-direction: column; gap: 36px; margin-top: 36px; }
.sec { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.sec-t h2 { font-size: 22px; line-height: 30px; }
.sec-t .hn-mu { font-size: 13px; }
.sec-links { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.sec-links .link, .link { border: 0; background: none; padding: 0; color: var(--primary-ink); font-weight: 700; font-size: 13.5px; }
/* a white band across the page in light; in dark the ground stays and the band is two lines */
.sec.band { position: relative; padding-block: 28px; isolation: isolate; }
/* full width without 100vw: 100vw counts the scrollbar and made the home page 5 px too wide on Windows (3 Dec).
   A shadow never widens the page; the clip keeps it to the band's own height. */
.sec.band::before { content: ""; position: absolute; inset: 0; background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); z-index: -1; }
:root[data-theme="dark"] .sec.band::before { background: transparent; border-block: 1px solid var(--line); }
/* category chips */
.catchips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.catchips::-webkit-scrollbar { display: none; }
.hn-catchip { flex: none; cursor: pointer; }
.hn-catchip.all { padding-inline: 18px; }
.hn-catchip small { font-size: 12px; color: var(--muted); font-weight: 700; }
.hn-catchip.all[aria-pressed="true"] { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: inset 0 0 0 1.5px var(--on-primary-soft); }
.hn-catchip.all[aria-pressed="true"] small { color: var(--on-primary-soft); }
.hn-cat--chip { width: 32px !important; height: 32px !important; border-radius: 50% !important; }
.hn-cat--xs { width: 24px; height: 24px; border-radius: 50%; }
.hn-cat svg { display: block; }
/* one row of six on a computer, a sideways strip on a phone */
.grid.row6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid.row6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .grid.row6 { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .grid.row6 > * { scroll-snap-align: start; }
}

/* add a channel */
.join { display: flex; align-items: center; gap: 32px; padding: 28px 32px; }
.join-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.join .kicker { color: var(--primary-ink); font-size: 13px; font-weight: 700; }
.join h2 { font-size: 26px; line-height: 36px; }
.join ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--ink-2); }
.join li { display: flex; align-items: center; gap: 6px; }
.join li svg { width: 15px; height: 15px; color: var(--primary-ink); }
.join .hn-btn { margin-top: 6px; }
.join .hn-btn svg { width: 18px; height: 18px; }
.join-art { flex: 0 0 340px; background: var(--cat-sky-tile); border-radius: var(--radius-lg); padding: 26px 30px; }
.join-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-card); padding: 14px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-2deg); }
.jc-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.jc-top b { flex: 1; }
.jc-plane { color: var(--cat-sky); }
.jc-plane svg { width: 20px; height: 20px; }
.jc-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jc-pics img, .jc-pics i { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--surface-2); display: block; }
.jc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
@media (max-width: 859px) { .join { flex-direction: column; align-items: stretch; padding: 20px; gap: 20px; } .join-art { flex: none; padding: 18px; } .join h2 { font-size: 20px; line-height: 28px; } }

/* the categories grid (CategoryTile cards) */
.catgrid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1260px) { .catgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 859px) { .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.hn-catcard { border: 0; cursor: pointer; min-width: 0; }
.hn-catcard:hover { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--line-strong); }
.hn-catcard b { font-size: 14px; }
.hn-catcard .hn-cat--lg { width: 64px; height: 64px; border-radius: 22px; }
@media (max-width: 600px) { .hn-catcard b { font-size: 13px; } .hn-catcard .hn-cat--lg { width: 52px; height: 52px; border-radius: 18px; } }

/* new on the market */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1080px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pcards { grid-template-columns: 1fr; } }
.pcard { display: flex; align-items: center; gap: 14px; padding: 10px; border: 0; cursor: pointer; text-align: start; color: var(--ink); min-width: 0; }
.pcard img { width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: cover; background: var(--surface-2); flex: none; margin-inline-start: auto; }
.pc-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-b b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-b .pr { font-size: 16px; font-weight: 700; color: var(--price); }
.pc-b .pr.ask { font-size: 13px; font-weight: 400; color: var(--muted); }
.pc-b .hn-mu { font-size: 12px; }
.pc-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }

/* trending */
.hot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 859px) { .hot { grid-template-columns: minmax(0, 1fr); } .hot-top { order: -1; } }
.hot-list { list-style: none; margin: 0; padding: 6px 16px; min-width: 0; }   /* a long name ends in … instead of widening the page */
.hot-list li + li { border-top: 1px solid var(--line); }
.hot-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; background: none; border: 0; color: var(--ink); text-align: start; }
.hot-list .rk { width: 22px; font-weight: 700; font-size: 18px; color: var(--muted); text-align: center; flex: none; }
.hot-list img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--surface-2); flex: none; }
.hot-list .hb { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hot-list .hb b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list .hb .hn-mu { font-size: 12px; }
.hot-top { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: start; border: 0; padding: 12px; color: var(--ink); cursor: pointer; }
.hot-top img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--surface-2); }
.hot-top b { font-size: 18px; }
.hot-top .hn-mu { font-size: 13px; }
.hot-k { font-size: 13px; font-weight: 700; color: var(--primary-ink); }

/* a visitor: how it works, the numbers */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 859px) { .how { grid-template-columns: 1fr; } }
.how-step { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.how-n { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; font-weight: 700; }
.how-step b { font-size: 16px; }
.how-step .hn-mu { font-size: 13.5px; }
.nums { justify-content: space-around; flex-wrap: wrap; padding: 26px; gap: 20px; }
.nums div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nums b { font-size: 32px; font-weight: 700; }
.nums .hn-btn--secondary { background: #fff; color: #1562CA; border: 0; }

/* ---------- buttons the logic writes as .btn (kept as names; drawn as the design system's buttons) ---------- */
.btn { height: 46px; padding: 0 20px; border-radius: var(--radius-pill); border: 0; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap; background: var(--grad); color: var(--on-primary); text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.small { height: 36px; font-size: 13px; padding: 0 14px; }
.btn.wa { background: var(--whatsapp); color: var(--on-whatsapp); }
.btn svg, .hn-btn svg { width: 18px; height: 18px; flex: none; }
.hn-btn[disabled], .btn[disabled] { opacity: .4; cursor: not-allowed; filter: none; }
.gjoin svg, .gbtn-own svg { width: 20px; height: 20px; }

/* ---------- "this needs a plan / an account": the card over faded offers ---------- */
.teaser { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.teaser .ghosts { grid-area: 1 / 1; opacity: .9; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 92%); mask-image: linear-gradient(180deg, #000 0, transparent 92%); pointer-events: none; }
.hn-offer.ghost .ph { background-size: cover; background-position: center; filter: blur(10px); transform: scale(1.02); }
.hn-offer.ghost i { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); margin: 6px; }
.hn-offer.ghost i.s { width: 50%; }
.teaser > .cta { grid-area: 1 / 1; align-self: center; justify-self: center; z-index: 1; padding: 16px; width: 100%; max-width: 492px; }
.teaser.bare > .cta { padding: 0; }
.ctacard { width: 100%; max-width: 460px; margin-inline: auto; border-radius: var(--radius-lg); padding: 26px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: linear-gradient(225deg, var(--navy), var(--navy-deep)); color: #fff; box-shadow: 0 24px 60px rgba(8,47,92,.35); }
.ctacard .cta-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); margin-bottom: 4px; }
.ctacard .cta-ic svg { width: 26px; height: 26px; }
.ctacard strong { font-size: 19px; line-height: 1.45; }
.ctacard .cta-sub { font-size: 13.5px; color: var(--on-blue-muted); line-height: 1.6; }
.ctacard .hn-btn, .ctacard .btn { margin-top: 10px; background: #fff; color: #1562CA; height: 48px; padding: 0 26px; }
.ctacard.user { background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(12,17,24,.16); }
.ctacard.user .cta-ic { background: var(--primary-soft); color: var(--on-primary-soft); }
.ctacard.user .cta-sub { color: var(--muted); }
.ctacard.user .hn-btn, .ctacard.user .btn { background: var(--grad); color: var(--on-primary); }
.ctacard.user .gjoin { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.ctacard.clock .cta-ic { background: var(--primary-soft); color: var(--on-primary-soft); }
#limit-wall .ctacard { margin: 8px auto; }

.grid > .hn-offer, .hn-offer.ghost { width: auto; min-width: 0; }

/* ---------- results: one row (count · sort · colour · with a price only) ---------- */
#step2 { margin-top: 18px; }
#results { display: flex; flex-direction: column; gap: 14px; }
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.res-count { display: flex; align-items: baseline; gap: 8px; }
.res-count b { font-size: 22px; font-weight: 700; }
.res-count .hn-mu { font-size: 13px; }
.res-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.searching-line { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.more-row { display: flex; justify-content: center; padding: 6px 0 4px; }
@media (max-width: 859px) {
  .res-head { gap: 8px; }
  .res-filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .res-filters::-webkit-scrollbar { display: none; }
  .res-filters > * { flex: none; }
}

/* a dropdown chip (the picker's button) */
.pk-src { display: none !important; }
.pk-btn { height: 40px; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); border: 0; box-shadow: var(--shadow-card); padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; max-width: 100%; }
.pk-btn .pk-v { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-width: 0; }
.pk-btn .pk-v span { overflow: hidden; text-overflow: ellipsis; }
.pk-btn .pk-pre { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.pk-btn .dd-chev svg { width: 14px; height: 14px; transform: rotate(-90deg); color: var(--muted); display: block; }
.pk-btn[disabled] { opacity: .4; cursor: not-allowed; }
.sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sw-stack { display: inline-flex; }
.sw-stack .sw { width: 12px; height: 12px; box-shadow: 0 0 0 1.5px var(--surface); }
.sw-stack .sw + .sw { margin-inline-start: -5px; }
select.field { height: 40px; border-radius: var(--radius-pill); background: var(--surface); border: 0; box-shadow: var(--shadow-card); padding: 0 14px; font-weight: 700; color: var(--ink); }

/* the switch «بالسعر فقط» (Toggle) */
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: var(--radius-pill); background: var(--line-strong); position: relative; margin: 0; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch input:checked { background: var(--grad); }
.switch input:checked::after { inset-inline-start: 19px; }

/* ---------- the picker: a bottom sheet on a phone, a centred window on a computer (Sheet) ---------- */
html.pk-on, html.pk-on body { overflow: hidden; }
.pk-back { position: fixed; inset: 0; z-index: 70; background: rgba(8,13,20,.42); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .16s; }
.pk-back.in { opacity: 1; }
:root[data-theme="dark"] .pk-back { background: rgba(0,0,0,.66); }
.pk-box { background: var(--surface); color: var(--ink); width: 100%; max-height: 78vh; border-radius: 30px 30px 0 0; display: flex; flex-direction: column; overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(24px); transition: transform .18s; }
.pk-back.in .pk-box { transform: none; }
.pk-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pk-head b { flex: 1; font-size: 17px; }
.pk-x { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 0; display: grid; place-items: center; color: var(--ink); padding: 0; }
.pk-x svg { width: 16px; height: 16px; }
.pk-findrow { padding: 12px 18px 0; }
.pk-findrow:has(.pk-find[hidden]) { display: none; }
.pk-find { width: 100%; height: 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); padding: 0 16px; }
.pk-list { overflow-y: auto; padding: 8px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.pk-list.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 0; background: none; text-align: start; color: var(--ink); font-weight: 700; font-size: 15px; }
.dd-opt:hover { background: var(--surface-2); }
.dd-opt[aria-selected="true"] { background: var(--primary-soft); color: var(--on-primary-soft); }
.dd-opt .pk-l { flex: 1; min-width: 0; margin-inline-end: auto; }
.dd-opt .n { color: var(--muted); font-size: 13px; font-weight: 700; }
.dd-opt .tick svg { width: 16px; height: 16px; display: block; }
@media (min-width: 860px) {
  .pk-back { align-items: center; }
  .pk-box { width: 420px; max-height: min(640px, 80vh); border-radius: 30px; box-shadow: 0 30px 80px rgba(12,17,24,.25); transform: scale(.98); }
}

/* ---------- the offer window ---------- */
.sheet { position: fixed; z-index: 31; background: var(--surface); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  inset: auto 0 0 0; max-height: calc(100% - 36px); border-radius: 28px 28px 0 0; padding: 10px 16px 0; }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line-strong); margin: 0 auto 10px; }
.ow { display: flex; flex-direction: column; gap: 16px; }
.ow-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ow-head { display: flex; align-items: flex-start; gap: 8px; }
.ow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ow-t h2 { font-size: 20px; line-height: 1.4; }
.hn-badge.sim { background: var(--surface-2); color: var(--ink-2); }
.ow-acts { display: flex; gap: 8px; flex: none; }
.ow-ib { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; padding: 0; }
.ow-ib svg { width: 17px; height: 17px; }
.ow-ib[aria-pressed="true"] { background: var(--grad); color: var(--on-primary); }
.ow-meta { font-size: 13px; color: var(--muted); }
.ow-sec { font-size: 15px; font-weight: 700; }
.ow-sec.small { font-size: 12.5px; display: block; color: var(--ink); }
.ow-warn { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ow-warn svg { width: 14px; height: 14px; flex: none; }
.plist { display: flex; flex-direction: column; }
.pline { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pline b { font-size: 17px; font-weight: 700; color: var(--price); }
.plist .pline:first-of-type b { font-size: 24px; }
.pline .alf { font-size: 12px; color: var(--muted); }
.pline .pl-u { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pline b.ask-price { font-size: 15px !important; font-weight: 400; color: var(--muted); }
.ow-plans { align-self: center; border: 0; background: none; color: var(--primary-ink); font-weight: 700; font-size: 13.5px; padding: 0; }
.ow-hint { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--cat-sky-tile); border: 0; color: var(--ink); text-align: start; font-size: 13px; line-height: 1.5; }
.ow-hint .hn-cat { width: 36px; height: 36px; border-radius: 11px; color: var(--cat-sky); flex: none; }
.ow-hint .hn-cat svg { width: 18px; height: 18px; }
.ow-hint > span:nth-child(2) { flex: 1; }
.ow-hint .chev { width: 18px; height: 18px; color: var(--cat-sky); flex: none; }
.sell-it { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--ink); }
.sell-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.sell-ic svg { width: 20px; height: 20px; }
.sell-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sell-txt b { font-size: 15px; }
.sell-txt span { font-size: 12.5px; color: var(--muted); }
.sell-it .beta { font-size: 10.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; }
.sell-go { color: var(--primary-ink); }
.sell-go svg { width: 18px; height: 18px; display: block; }
.cap-box { background: var(--surface-2); border-radius: var(--radius-md); padding: 12px 14px; }
.cap { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; margin-top: 2px; }
.note-box { display: flex; flex-direction: column; gap: 6px; }
.note-box textarea { border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); padding: 10px 14px; resize: vertical; }
.rep-zone .report { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.rep-zone .report svg { width: 15px; height: 15px; }
.newer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--primary-soft);
  color: var(--on-primary-soft); font-size: 13px; font-weight: 700; flex-wrap: wrap; }

/* the gallery */
.pgal { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); min-width: 0; }
.pgal.empty { aspect-ratio: 1; display: grid; place-items: center; color: var(--muted); }
.pgal.empty svg { width: 48px; height: 48px; }
.pgal-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; max-height: 62vh; }
.pgal-main::-webkit-scrollbar { display: none; }
.pgal-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; cursor: zoom-in; background: var(--surface-2); }
.pgal-n { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(12,17,24,.6); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; direction: ltr; }
.pgal-dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pgal-dots i { width: 6px; height: 6px; border-radius: 9px; background: #fff; opacity: .6; transition: width .15s; }
.pgal-dots i.on { width: 18px; opacity: 1; }
.pgal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-card); display: none; place-items: center; padding: 0; }
.pgal-arrow svg { width: 18px; height: 18px; }
.pgal-arrow.prev { inset-inline-start: 10px; } .pgal-arrow.next { inset-inline-end: 10px; }
[dir="rtl"] .pgal-arrow svg { transform: scaleX(-1); }
.pgal-thumbs { display: none; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pgal-thumbs button { flex: 0 0 76px; height: 76px; border-radius: 18px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); }
.pgal-thumbs button[aria-current="true"] { border-color: var(--primary-ink); box-shadow: 0 0 0 2px var(--surface) inset; }
.pgal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the contact bar: on a phone pinned to the bottom of the sheet */
.cbar { display: flex; flex-direction: column; gap: 8px; }
.cbar-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cbar-btns.one { grid-template-columns: 1fr; }
.cbar-btns .hn-btn { height: 52px; font-size: 15px; }
.cbar-btns .hn-btn svg { width: 20px; height: 20px; }
.cbar-lock { display: flex; align-items: center; gap: 12px; }
.cbar-lock .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cbar-lock .who b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cbar-lock .who b svg { width: 15px; height: 15px; }
.cbar-lock .who span { font-size: 12px; color: var(--muted); }
.cbar-note { font-size: 13px; color: var(--ink-2); text-align: center; }
.cbar-note.out { color: var(--danger); }
.cbar-note .link { margin-inline-start: 6px; }
.cbar.off .cbar-btns .hn-btn { opacity: .45; pointer-events: none; }
@media (max-width: 859px) {
  .ow-gal { margin: 0 -2px; }
  .ow-info .cbar { order: 99; position: sticky; bottom: 0; z-index: 3; margin: 4px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px rgba(0,0,0,.07); }
  .ow-info .rep-zone { padding-bottom: 4px; }
}
@media (min-width: 860px) {
  .sheet { inset: 0; margin: auto; width: min(920px, calc(100vw - 48px)); height: fit-content; max-height: min(880px, calc(100vh - 48px)); border-radius: 30px;
    padding: 24px; box-shadow: 0 30px 80px rgba(12,17,24,.25); }
  .sheet::before { display: none; }
  .ow { flex-direction: row-reverse; align-items: flex-start; gap: 24px; }
  .ow-info { flex: 1; }
  .ow-gal { flex: 0 0 46%; max-width: 46%; min-width: 0; position: sticky; top: 0; }
  .ow-info { min-width: 0; }
  .pgal-main { aspect-ratio: auto; height: min(520px, 58vh); }
  .pgal-arrow { display: grid; }
  .pgal-thumbs { display: flex; }
  .pgal-dots { display: none; }
  .ow-info .cbar { order: 0; }
}

/* ---------- Categories ---------- */
#cat-home { display: flex; flex-direction: column; gap: 18px; }
#cat-home .page-head { align-items: baseline; }
.catgrid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .catgrid.six { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .catgrid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.catgrid.six .hn-catcard { padding: 18px 8px 16px; }
.hn-catcard.sk { height: 168px; box-shadow: var(--shadow-card); background: var(--surface); }
.all-ic { background: var(--primary-soft); color: var(--on-primary-soft); }
.all-ic svg { width: 46%; height: 46%; }
.cat-head { align-items: center; justify-content: flex-start; gap: 16px; }
#cat-art .hn-cat--lg { width: 64px; height: 64px; border-radius: 22px; }
.crumb { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.crumb .link { font-size: 13px; font-weight: 400; color: var(--muted); }
#cat-title { font-size: 28px; line-height: 1.25; }
#cat-sub { font-size: 13px; color: var(--muted); }
.today-n { color: var(--primary-ink); }
.cat-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#dd-cat { display: none; }
.cat-filters { display: contents; }
.bar-end { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 12px; }
.cat-count { font-size: 13px; }
.range { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-card); font-weight: 700; font-size: 14px; }
.range .rl { color: var(--ink-2); font-weight: 400; }
.range input { width: 64px; border: 0; background: none; outline: 0; font-weight: 700; text-align: center; padding: 0; }
.range input::placeholder { color: var(--muted); font-weight: 400; }
.range:focus-within { box-shadow: var(--shadow-card), 0 0 0 2px var(--primary-ink); }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip.act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--radius-pill); border: 0; background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 700; font-size: 13px; }
.chip.act .x svg { width: 12px; height: 12px; display: block; }
.clear-all { font-size: 13px; }
.filter-btn { display: none; }
#cat-filter-n { min-width: 20px; height: 20px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
#cat-list { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 859px) {
  .cat-head { gap: 12px; }
  #cat-art .hn-cat--lg { width: 52px; height: 52px; border-radius: 18px; }
  #cat-title { font-size: 22px; }
  .filter-btn { display: inline-flex; height: 40px; }
  .cat-filters { display: none; }
  .cat-filters.open { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; padding: 12px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
  .cat-count-m { display: none; }
}
@media (min-width: 860px) { .cat-count-m { display: none; } }

/* ---------- Discover ---------- */
#disc-list { display: flex; flex-direction: column; gap: 16px; }
.disc-head { align-items: center; min-height: 64px; }
.disc-head .ph-acts { flex-wrap: nowrap; }
#disc-sub { display: flex; align-items: center; gap: 5px; height: 20px; line-height: 20px; white-space: nowrap; }
.disc-head .ph-t h1 { height: 36px; }
#disc-sub svg { width: 14px; height: 14px; color: var(--price); }
.hn-seg button { white-space: nowrap; }
.hn-offer .rank { position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; background: rgba(12,17,24,.72); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; direction: ltr; }
.hn-offer.prod .mt { justify-content: flex-start; }
.vend-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 12px 14px; }
.vend-head img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--surface-2); }
.vend-head .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vend-head .who strong { font-size: 17px; }
.vend-head .who .hn-mu { font-size: 13px; }
#disc-vendors { display: flex; flex-direction: column; gap: 16px; }
.today-note { font-size: 13px; color: var(--ink-2); }
@media (max-width: 859px) { .disc-head .ph-acts { width: 100%; justify-content: flex-start; } .disc-head #disc-seg { order: -1; } .disc-head #disc-days { margin-inline-start: auto; } }

/* ---------- Saved ---------- */
#view-saved .catchips .hn-chip { box-shadow: var(--shadow-card); flex: none; }
#view-saved .catchips .hn-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--on-primary-soft); }

/* ---------- empty states ---------- */
#find-empty, #saved-empty, #cat-empty, #dt-empty, #dp-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; text-align: center; color: var(--ink-2); }
.blank-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-card); display: grid; place-items: center; color: var(--muted); }
.blank-ic svg { width: 30px; height: 30px; }

/* ---------- account («حسابي»), one column ---------- */
.acc { width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.acc .hn-card { display: flex; flex-direction: column; gap: 12px; }
.acc-who { flex-direction: row !important; align-items: center; }
.acc-who .av { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
.acc-who .who { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* a long Latin name or email in an Arabic page ran over the avatar (2026-11-25): each line keeps to its column and
   ends with "..." on the side where it is cut, the plan chip sits under them */
.acc-who .who b, .acc-who .who .mail { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-who .who b { font-size: 18px; line-height: 1.3; }
.acc-who .who .mail { font-size: 13px; }
.acc-who .plan-chip { margin-top: 4px; }
.acc-free { background: var(--primary-soft); color: var(--on-primary-soft); }
.acc-free svg { flex: none; }
.plan-chip { border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.plan-chip.pro, .plan-chip.vip { background: var(--gold); color: var(--on-gold); }
.plan-chip.starter { background: var(--primary-soft); color: var(--on-primary-soft); }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-head b { font-size: 16px; }
.small { font-size: 12.5px; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.m-row { display: flex; justify-content: space-between; font-size: 14px; }
.m-row b { font-weight: 700; }
.m-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.m-bar.low i { background: var(--danger); }
.acc-line { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); font-size: 14px; }
.acc-line svg { width: 16px; height: 16px; }
.acc-line b { flex: 1; font-weight: 700; }
.acc-line span { font-weight: 700; }
.acc-up { gap: 14px; flex-wrap: wrap; }
.acc-up div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-up b { font-size: 15px; }
.acc-up .hn-crown svg { width: 16px; height: 16px; }
.acc-up .hn-btn--secondary { background: #fff; color: #1562CA; border: 0; }
.my-sug { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.my-sug li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.my-sug li:last-child { border-bottom: 0; }
.my-sug .h { display: flex; flex-direction: column; }
.my-sug .h bdi { font-weight: 700; }
.sug-st { border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--st-noanswer-bg); color: var(--st-noanswer); white-space: nowrap; }
.sug-st.added, .sug-st.approved { background: var(--st-delivered-bg); color: var(--st-delivered); }
.sug-st.rejected { background: var(--danger-soft); color: var(--danger); }
.sug-st.followed { background: var(--surface-2); color: var(--ink-2); }
.acc-set .set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.set-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.set-acts .del { color: var(--danger); font-weight: 700; font-size: 14px; margin-inline-start: 8px; }
.acc .sell-it { box-shadow: var(--shadow-card); }

/* the local sign-in forms (the PC; online the seller signs in on accounts.hnaya.me) */
.acc h1 { font-size: 26px; }
.auth { display: flex; flex-direction: column; gap: 12px; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.auth .field, .auth input { height: 46px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 15px; }
.auth-err { color: var(--danger); font-size: 13px; }
.auth-links { display: flex; gap: 16px; }

/* ---------- pricing ---------- */
#view-pricing { gap: 18px; padding-top: 8px; }
.pricing-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pricing-head h1 { font-size: 34px; line-height: 1.3; margin-top: 10px; }
.pricing-head > .hn-mu { font-size: 15px; }
.sale-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 7px 16px; box-shadow: var(--shadow-card); font-size: 14px; }
.sale-pill svg { width: 16px; height: 16px; color: var(--primary-ink); }
.pricing-switches { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pricing-switches .hn-seg { background: var(--surface); box-shadow: var(--shadow-card); }
.pricing-switches .hn-seg button { display: inline-flex; align-items: center; gap: 6px; }
.pricing-switches .hn-seg button[aria-pressed="true"] { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: none; }
.hn-sale { background: var(--gold); color: var(--on-gold); border-radius: var(--radius-pill); padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plans3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 8px; }
@media (max-width: 959px) { .plans3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; width: 100%; } }
.hn-plancard { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card); }
.hn-plancard.pro { background: linear-gradient(225deg, var(--navy), var(--navy-deep)); color: #fff; }
.pc-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-name b { font-size: 20px; font-weight: 700; }
.pc-name .rec { background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.pc-price { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 108px; }
.pc-price .was { color: var(--muted); font-size: 14px; }
.hn-plancard.pro .pc-price .was, .hn-plancard.pro .per { color: var(--on-blue-muted); }
.pc-price .big { font-size: 34px; line-height: 1.15; font-weight: 700; }
.pc-price .per { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.pc-price .save { font-size: 13px; font-weight: 700; color: var(--gold); }
.hn-plancard:not(.pro) .pc-price .save { color: var(--price); }
.hn-lockblk { background: var(--surface-2); }
.hn-lockblk svg { width: 16px; height: 16px; flex: none; }
.hn-plancard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.hn-plancard li { display: flex; align-items: flex-start; gap: 8px; }
.hn-plancard li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--price); }
.hn-plancard.pro li svg { color: #fff; }
.hn-plancard li .q-month { display: block; font-size: 12px; color: var(--muted); }
.hn-plancard.pro li .q-month { color: var(--on-blue-muted); }
.pc-acts { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.plan-go { width: 100%; height: 50px; }
.hn-plancard.pro .plan-go { background: #fff; color: #1562CA; border: 0; }
.plan-now { font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-align: center; }
.hn-plancard.pro .plan-now { color: var(--on-blue-muted); }
.best-tab { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%); display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--on-gold);
  border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(244,183,64,.35); }
[dir="ltr"] .best-tab { transform: translateX(-50%); }
.best-tab svg { width: 14px; height: 14px; }
.pricing-notes { display: flex; justify-content: center; gap: 8px 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.pricing-notes span { display: inline-flex; align-items: center; gap: 6px; }
.pricing-notes svg { width: 15px; height: 15px; }
.faq { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.faq h2 { font-size: 22px; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 959px) { .faq-grid { grid-template-columns: 1fr; } }
.faq .hn-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.faq .hn-card b { font-size: 15px; }
.faq .hn-card p { font-size: 13.5px; line-height: 1.7; }
#coupon-box:empty { display: none; }
.coupon-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
@media (max-width: 859px) { .pricing-head h1 { font-size: 26px; } .plans3 .hn-plancard.free { order: 3; } }
/* the plan-order test (2026-11-18): Starter's card first for half the phones (Pro first otherwise) */
@media (max-width: 859px) { .plans3.starter-first .hn-plancard.starter { order: -1; } }

/* ---------- the pay page (the plan, the amount, WhatsApp) ---------- */
#pay-box { max-width: 560px; }
#pay-box .page-card, #pay-box > div { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px; }

.hn-lockblk { border-radius: var(--radius-md); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }

/* ---------- «أضف قناة» window (board «Add a Telegram channel»): a centred window, a bottom sheet on a phone ---------- */
.sg-box { position: relative; padding: 26px 22px 22px; gap: 14px; overflow-y: auto; }
.sg-x { position: absolute; top: 14px; inset-inline-end: 14px; }
.sg-body { display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.sg-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--cat-sky-tile); color: var(--cat-sky); display: grid; place-items: center; margin: 0 auto 2px; }
.sg-ic svg { width: 26px; height: 26px; }
.sg-ic.ok { background: var(--st-delivered-bg); color: var(--st-delivered); }
.sg-body h2 { font-size: 21px; }
.sg-lead { font-size: 14px; color: var(--muted); }
.sg-form { display: flex; flex-direction: column; gap: 12px; text-align: start; }
.sg-who { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--surface-2); }
.sg-who label { cursor: pointer; }
.sg-who input { position: absolute; opacity: 0; pointer-events: none; }
.sg-who span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 8px; border-radius: 16px; text-align: center; color: var(--muted); }
.sg-who b { font-size: 14px; }
.sg-who small { font-size: 11.5px; }
.sg-who input:checked + span { background: var(--surface); color: var(--primary-ink); box-shadow: 0 1px 3px rgba(12,17,24,.1); }
.sg-who input:focus-visible + span { outline: 2px solid var(--primary-ink); outline-offset: 2px; }
.sg-field { display: flex; align-items: center; gap: 8px; height: 52px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); padding: 0 6px 0 16px; }
.sg-field:focus-within { border-color: var(--primary-ink); }
.sg-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.sg-paste { height: 38px; padding: 0 14px; border-radius: var(--radius-pill); border: 0; background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 700; font-size: 13px; }
.sg-err { color: var(--danger); font-size: 13px; }
.sg-go { height: 50px; width: 100%; }
.sg-gift { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--found, var(--st-delivered)); font-weight: 700; }
.sg-gift svg { width: 15px; height: 15px; }
.sg-acts { display: flex; flex-direction: column; gap: 8px; }
.sg-box #my-suggest .my-sug { text-align: start; border-top: 1px solid var(--line); margin-top: 6px; }

/* ---------- a photo full screen ---------- */
.viewer { position: fixed; inset: 0; z-index: 80; background: #000; }
.vw-strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vw-strip::-webkit-scrollbar { display: none; }
.vw-cell { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; }
.vw-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vw-n { top: calc(16px + env(safe-area-inset-top, 0px)); }
.vw-x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-start: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.vw-x svg { width: 18px; height: 18px; }
.viewer .pgal-arrow { display: grid; background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
@media (pointer: coarse) { .viewer .pgal-arrow { display: none; } }

/* ---------- the in-app-browser screen (Facebook / Instagram) ---------- */
.inapp .pk-box { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.inapp-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 6px; }
.inapp-body p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.inapp-body .btn, .inapp-body .hn-btn { width: 100%; height: 50px; }
.linkish { border: 0; background: none; color: var(--primary-ink); font-weight: 700; padding: 8px; }

/* ---------- the pay page ---------- */
.pay { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px; }
#pay-box h1 { font-size: 26px; margin-bottom: 4px; }
.pay-amount { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pay-amount span { font-weight: 700; }
.pay-amount b { font-size: 26px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.pay-amount .was { font-size: 14px; color: var(--muted); font-weight: 400; }
.pay-chat { height: 52px; width: 100%; background: var(--whatsapp); color: var(--on-whatsapp); }
.pay-way { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--surface-2); border-radius: var(--radius-md); padding: 12px 14px; }
.pay-way b { font-weight: 700; }
.pay-ref { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
#pay-box > .link { align-self: center; margin-top: 4px; }
@media (max-width: 420px) { .brand .src { display: none; } .addch { padding: 0 10px; font-size: 12.5px; } }

/* ---------- nothing jumps while the page fills in ---------- */
/* the headline is two lines from the start (the counts arrive a moment later); the today pill keeps its place */
.hero h1 { min-height: 2.64em; display: flex; flex-direction: column; justify-content: flex-start; }
#step1:not(.compact) .today-pill[hidden] { display: inline-flex !important; visibility: hidden; }
.hn-offer.card { height: 100%; }
.hn-offer .mt { margin-top: auto; }
/* text links and the logo: a comfortable place to tap on a phone */
.brand { min-height: 40px; }
.sec-links .link, .link, .crumb .link, .ow-plans { min-height: 36px; display: inline-flex; align-items: center; padding-inline: 4px; }
.pgal-main .nopic { flex: 0 0 100%; display: grid; place-items: center; color: var(--muted); scroll-snap-align: center; }
.pgal-main .nopic svg, .hn-offer .ph .nopic svg { width: 40px; height: 40px; }
/* one quiet hover for every pressable surface (a pointer only; phones keep no sticky hover) */
@media (hover: hover) {
  .pk-btn:hover, .roundb:not(.in):hover, .hn-catchip:not([aria-pressed="true"]):hover, .hn-chip:not([aria-pressed="true"]):hover,
  .navpill button:not([aria-current]):hover, .ow-ib:not([aria-pressed="true"]):hover, .langmenu button:hover { background-color: var(--surface-2); color: var(--ink); }
  .hn-seg button:not([aria-pressed="true"]):hover, .theme-row button:not([aria-pressed="true"]):hover { color: var(--ink); }
  .hn-offer .ob:hover { background: var(--surface-2); }
  .link:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.hn-btn, .btn, .pk-btn, .roundb, .hn-chip, .hn-catchip, .navpill button, .hn-seg button, .ow-ib, .hn-offer.card { transition: background-color .15s, color .15s, box-shadow .15s, filter .15s; }
/* pages that depend on the account and the prices wait for them (no sign-in form flashing before «حسابي») */
body:not([data-ready]) #view-pricing > *, body:not([data-ready]) #view-account > *, body:not([data-ready]) #view-pay > * { visibility: hidden; }
.today-pill { height: 32px; box-sizing: border-box; }
.hero h1 span { line-height: inherit; }
#cat-title { min-height: 35px; } #cat-sub { min-height: 21px; }
.cat-head { min-height: 84px; }
.pricing-switches { min-height: 46px; }
/* the offer window arrives like the dropdowns: slides up on a phone, settles in on a computer */
@media (prefers-reduced-motion: no-preference) {
  .scrim:not([hidden]) { animation: fade-in .18s ease-out; }
  .sheet:not([hidden]) { animation: sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
  @media (min-width: 860px) { .sheet:not([hidden]) { animation: sheet-in .18s ease-out; } }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
@keyframes sheet-in { from { transform: scale(.98); opacity: 0; } }
.set-acts .del { min-height: 40px; display: inline-flex; align-items: center; }
.sg-field input { align-self: stretch; height: auto; }
@media (max-width: 859px) {
  .disc-head .ph-acts { flex-wrap: wrap; row-gap: 8px; }
  .disc-head #disc-days { margin-inline-start: 0; }
}
/* French needs three lines for the headline on a phone: they are kept from the start */
@media (max-width: 600px) { html[lang="fr"] .hero h1 { min-height: 3.96em; } }
#disc-days-m { display: none; }
@media (max-width: 859px) { .disc-head #disc-days { display: none; } #disc-days-m { display: inline-flex; } }

/* Few results: the add-channel card in the grid's next free cell (board «Add channel · few results», 2026-11-17) */
.grid > .few-card { min-width: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.few-top { display: flex; align-items: flex-start; gap: 12px; }
.few-top strong { font-size: 16px; line-height: 1.45; text-wrap: balance; }
.few-sub { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2, var(--muted)); }
.few-card.one .few-top { flex-direction: column; gap: 8px; }
.few-reward::before { display: none; }
.few-btn { margin-top: 4px; }
.few-btn svg { width: 18px; height: 18px; }
@media (max-width: 859px) {
  .grid > .few-card { padding: 14px 12px; gap: 8px; justify-content: space-between; }
  .few-top { flex-direction: column; gap: 8px; }
  .few-top strong { font-size: 14px; }
  .few-sub { font-size: 12px; }
  .few-btn { width: 100%; height: 44px; justify-content: center; }
}

/* One plan at launch (board «One plan · pricing», 2026-11-19): what the plan opens in one line, two duration cards
   (3 months first on phones), what it costs after the launch price, the seller's current plan. */
.one-feats { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.one-feats li { display: inline-flex; align-items: center; gap: 7px; }
.one-feats svg { width: 16px; height: 16px; flex: none; color: var(--price); }
.plans3.one { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; width: 100%; }
@media (max-width: 859px) { .plans3.one { grid-template-columns: 1fr; max-width: 520px; } }   /* 1 month first on phones too */
.pc-was { display: inline-flex; align-items: center; gap: 8px; }
.plans3.one .pc-feats { margin: 2px 0 4px; }
.plans3.one .pc-price { min-height: 0; }
.best-tag { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--on-gold); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 800; }
.best-tag svg { width: 14px; height: 14px; flex: none; }
.one-under { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 600px) { .one-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: 13px; text-align: start; } }
.pricing-head:has(.one-feats) .sale-pill svg { color: var(--gold); }

/* ---------- app 1.1 launch pieces (2026-11-20, boards «Launch day»; 16b-app.js) ---------- */
.app-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-badges a { display: inline-flex; line-height: 0; border-radius: 8px; }
.app-badges .b-apple { height: 44px; width: auto; }
.app-badges .b-play { height: 64px; width: auto; margin: -10px -9px; }      /* Google's file carries its own margin */
.app-qr { display: none; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.app-qr img { width: 72px; height: 72px; padding: 6px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
@media (min-width: 860px) { .app-qr { display: inline-flex; } }
.app-ic { border-radius: 22%; flex: none; box-shadow: 0 2px 8px rgba(12,17,24,.12); }

/* the home banner: the image (a hand holding the phone) on the left third, the words on the right */
.app-banner { position: relative; overflow: hidden; border-radius: 28px; min-height: 400px; display: flex; align-items: center;
  background: #EAF3FE url(/launch/banner-light.webp) left center / cover no-repeat; margin-block: 8px 4px; direction: rtl; }
:root[data-theme="dark"] .app-banner { background-color: #0D1A2E; background-image: url(/launch/banner-dark.webp); }
.app-banner .ab-t { width: min(520px, 56%); margin-inline-start: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
html[dir="ltr"] .app-banner .ab-t { direction: ltr; }
.app-banner .ab-new { background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.app-banner h2 { margin: 0; font-size: 38px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.app-banner p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
:root[data-theme="dark"] .app-banner h2 { color: #EAF0F7; }
:root[data-theme="dark"] .app-banner p { color: #B4C0D0; }
.app-banner .ab-short { display: none; }
.app-banner .ab-acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.app-banner .ab-art { display: none; }
@media (max-width: 859px) {
  /* phone: words on top, then the left part of the image (the hand), 240 px high */
  .app-banner { flex-direction: column; align-items: stretch; min-height: 0; border-radius: 24px; background: #EAF3FE; direction: inherit; }
  :root[data-theme="dark"] .app-banner { background: #0D1A2E; }
  .app-banner .ab-t { width: auto; margin: 0; padding: 22px 20px 6px; gap: 10px; }
  html[dir="ltr"] .app-banner .ab-t { direction: inherit; }
  .app-banner h2 { font-size: 23px; }
  .app-banner .ab-long { display: none; }
  .app-banner .ab-short { display: block; font-size: 15px; }
  .app-banner .ab-art { display: block; height: 240px; background: url(/launch/banner-light.webp) left center / auto 100% no-repeat; }
  :root[data-theme="dark"] .app-banner .ab-art { background-image: url(/launch/banner-dark.webp); }
}

/* under the searches-left strip: one small card (phone: «حمّل»; computer: the two badges, 560 px, centred) */
.app-line { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; margin: 2px auto 0; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.app-line[hidden] { display: none; }
.app-line .al-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.app-line .al-t b { font-size: 14px; color: var(--ink); }
.app-line .al-t small { font-size: 12.5px; color: var(--muted); }
.app-line .app-badges { display: none; }
.app-line .app-badges .b-apple { height: 36px; }
.app-line .app-badges .b-play { height: 52px; margin: -8px -7px; }
@media (min-width: 860px) { .app-line .al-get { display: none; } .app-line .app-badges { display: flex; } }

/* the account page, between the plan card and «قنواتك» */
.acc .hn-card.app-acc, .hn-card.app-acc { display: flex; flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-acc .aa-t { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px; }
.app-acc .aa-t b { font-size: 16px; }
.app-acc .app-badges { margin-top: 4px; }

/* the day's search limit: the app is where an account goes on */
.app-limit { width: 100%; max-width: 520px; margin: 8px auto; padding: 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.app-limit strong { font-size: 20px; line-height: 1.45; color: var(--ink); }
.app-limit .al-sub { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.app-limit .al-row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.app-limit .app-badges { justify-content: center; }
.app-limit .al-later { font-size: 13px; }
.app-acc .app-badges { gap: 8px; }
.app-acc .app-badges .b-apple { height: 38px; }
.app-acc .app-badges .b-play { height: 55px; margin: -8px -8px; }

/* ---------- a paid partner's card (16c-partner.js, 2026-11-21) ---------- */
.pn { display: flex; align-items: center; gap: 16px; }
.pn-k { display: inline-block; background: var(--gold); color: var(--on-gold); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.pn .hn-btn--whatsapp svg { width: 18px; height: 18px; }
.pn--big { padding: 28px 32px; gap: 32px; overflow: hidden; }
.pn--big .pn-t { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pn--big h2 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.pn--big p { margin: 0; font-size: 16px; line-height: 1.6; }
.pn-facts { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pn-facts li { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.pn-facts svg { width: 18px; height: 18px; color: var(--price); flex: none; }
.pn-fine { font-size: 12px; }
.pn-art { flex: 0 1 400px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 16px;
  background: var(--primary-soft); border-radius: 20px; padding: 20px; }
.pn-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pn-pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--surface); }
.pn-what { margin: 0; font-weight: 700; color: var(--primary-ink); }
.pn--big .pn-what { font-size: 17px; }
.pn-mini { display: flex; gap: 4px; flex: none; }
.pn-mini img { width: 40px; height: 52px; object-fit: cover; border-radius: 8px; }
.pn-mini img:nth-child(n+3) { display: none; }
@media (min-width: 761px) { .pn-mini img:nth-child(n+3) { display: block; } }
.pn--slim .pn-what { font-size: 14px; }
.pn-route { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--primary); font-weight: 700; font-size: 15px; }
.pn-route span { background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; flex: none; box-shadow: 0 1px 2px rgb(12 17 24 / .08); }
.pn-route i { flex: 1 1 0; min-width: 12px; border-top: 2px dashed currentColor; opacity: .55; }
.pn-route .pn-plane { width: 34px; height: 34px; flex: none; }
.pn-plane { transform: none; }
html[dir="rtl"] .pn-plane { transform: scaleX(-1); }
.pn--slim { padding: 12px 16px; margin-block-end: 16px; }
.pn-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.pn-ic .pn-plane { width: 24px; height: 24px; }
.pn--slim .pn-t { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pn-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pn-line b { font-size: 16px; font-weight: 700; }
.pn--slim .hn-mu { font-size: 14px; }
.pn--slim .pn-btn { flex: none; }
#results:has(#find-grid:empty) .pn-host, #dt:has(#dt-grid:empty) .pn-host, #cat-list:has(#cat-grid:empty) .pn-host { display: none; }
.pn-fact { font-weight: 800; color: var(--ink); }
.pn--big .pn-facts li { font-size: 17px; }
.pn--big .pn-fact bdi { font-size: 19px; }
@media (max-width: 760px) {
  .pn--big { flex-direction: column; align-items: stretch; padding: 20px; gap: 18px; }
  .pn--big h2 { font-size: 22px; }
  .pn--big .pn-btn { width: 100%; justify-content: center; }
  .pn-art { flex: none; padding: 18px; }
  .pn--slim { flex-wrap: wrap; gap: 12px; }
  .pn--slim .pn-btn { width: 100%; justify-content: center; }
}

.app-banner .ab-paid { font-size: 14px; color: var(--muted); margin-top: -4px; }
@media (max-width: 760px) { .app-banner .ab-paid { font-size: 13px; } }

/* The partner's own banner (2026-11-26): the whole picture is the button. Full width on the first screen; above
   results, categories and today it stays smaller on computers so the offers are not pushed far down. */
.pn-banner { margin-block-end: 16px; }
.pn-banner-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 2px rgb(12 17 24 / .08), 0 8px 24px rgb(12 17 24 / .08);
  transition: transform .15s ease, box-shadow .15s ease; }
.pn-banner-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgb(12 17 24 / .1), 0 12px 32px rgb(12 17 24 / .12); }
.pn-banner-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.pn-banner-btn img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
@media (min-width: 761px) {
  .pn-banner-btn img { aspect-ratio: 1600 / 533; }
  .pn-banner:not(.pn-banner--big) { max-width: 720px; }
}
@media (max-width: 760px) { .pn-banner-btn { border-radius: var(--radius-md); } }

/* ---------- the partner's hybrid banner (2026-11-27, design chat «PartnerHybridWeb / Phone») ----------
   Our light sky, the picture (podium, rack, plane) at the inline end, our live words at the inline start.
   Its own world: the same colours in both themes. Sizes follow the banner's width (container units). */
.pn-hy-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  container-type: inline-size; aspect-ratio: 2 / 1; border-radius: 18px; text-align: start; font: inherit;
  background: radial-gradient(60% 70% at 88% 8%, rgb(255 255 255 / .75), transparent 70%),
              radial-gradient(55% 60% at 8% 100%, rgb(255 255 255 / .6), transparent 70%),
              linear-gradient(180deg, #d9ecff, #b7dcff);
  box-shadow: 0 1px 2px rgb(12 17 24 / .08), 0 8px 24px rgb(12 17 24 / .08); transition: transform .15s ease, box-shadow .15s ease; }
.pn-hy-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgb(12 17 24 / .1), 0 12px 32px rgb(12 17 24 / .12); }
.pn-hy-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.pn-hy-art { position: absolute; inset-block-end: 0; inset-inline-end: 1.5%; height: 76%; width: auto; max-width: 46%;
  object-fit: contain; object-position: bottom; pointer-events: none; }
.pn-hy-words { position: absolute; inset-block: 0; inset-inline-start: 0; width: 55%; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 1.6cqw; padding-inline: 4.5cqw 1cqw; color: #0B3B8C; line-height: 1.25; }
.pn-hy-ad { background: #fff; color: #1E6FD9; font-weight: 700; font-size: max(9px, 2.8cqw); padding: .15em .7em; border-radius: 99px; }
.pn-hy-t1 { font-weight: 800; font-size: 4.7cqw; }
.pn-hy-hero { display: inline-block; color: #fff; font-weight: 800; font-size: 6.7cqw; line-height: 1.2; padding: .22em .55em;
  background: linear-gradient(225deg, #2EA8FF, #1E6FD9); border-radius: 3.4cqw; transform: rotate(-2.5deg);
  box-shadow: 0 6px 18px rgb(30 111 217 / .35); margin-block: .6cqw; white-space: nowrap; }
.pn-hy-t2 { font-size: max(11px, 3.6cqw); }
.pn-hy-t2 b { font-weight: 800; }
.pn-hy-what { display: none; }
.pn-hy-wa { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-width: 36.7cqw; height: 8.3cqw; padding-inline: 1.1em;
  border-radius: 99px; background: #25D366; color: #fff; font-weight: 700; font-size: max(10px, 3.1cqw); white-space: nowrap; }
.pn-hy-wa svg { width: 1.2em; height: 1.2em; flex: none; }
.pn-hy--fr .pn-hy-t1 { font-size: 3.7cqw; white-space: nowrap; }
.pn-hy--fr .pn-hy-hero { font-size: 4.6cqw; }
@media (min-width: 761px) {
  .pn-hy-btn { aspect-ratio: 3 / 1; border-radius: 24px; }
  .pn-hy-art { height: 94%; max-width: 54%; }
  .pn-hy-words { width: 44%; gap: 1cqw; padding-inline: 3.5cqw 1cqw; }
  .pn-hy-ad { font-size: max(10px, 1.1cqw); }
  .pn-hy-t1 { font-size: 2.8cqw; }
  .pn-hy-hero { font-size: 4.9cqw; border-radius: 1.6cqw; margin-block: .4cqw; }
  .pn-hy-t2 { font-size: max(12px, 1.7cqw); }
  .pn-hy-what { display: inline; }
  .pn-hy-wa { min-width: 20.2cqw; height: 4.6cqw; font-size: max(12px, 1.45cqw); }
  .pn-hy--fr .pn-hy-t1 { font-size: 2.3cqw; }
  .pn-hy--fr .pn-hy-hero { font-size: 3.5cqw; }
}

/* the partner's button when it opens his Telegram channel (2026-12-01): Telegram's own blue */
.pn .pn-btn--tg { background: #229ED9; color: #fff; }
.pn .pn-btn--tg:hover { background: #1c8cc2; }
.pn .pn-btn--tg svg { width: 18px; height: 18px; }

/* The top bar's shop button (2026-12-03): the primary pill beside «أضف قناة»; on phones the icon and the short word. */
.shoptop { height: 44px; padding: 0 16px; gap: 8px; }
.shoptop svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .shoptop { height: 40px; padding: 0 12px; font-size: 13px; } }
/* The board (SHomePhone): «أضف منتجاتك» keeps its words on a phone, 118 x 40 px with the store icon; on the narrowest
   phones the site's name beside the logo makes room, never the button's words (owner, 4 Dec). */
@media (max-width: 859px) { .shoptop { min-width: 118px; justify-content: center; gap: 6px; } }
@media (max-width: 359px) { .brand > span { display: none; } }
/* Inside his shop pages on a phone the site's top bar steps aside: the page's own header (back · «محلّي» · «أضف منتجًا»)
   is the only one (board WSMyShopPhone). The computer keeps the top bar without the shop button. */
@media (max-width: 859px) { body.in-myshop .topbar { display: none; } body.in-myshop .page { padding-top: 14px; } }
/* the souk price («35 ألف») is Arabic text, but it lines up under the price on a French page too (3 Dec) */
:root[dir="ltr"] .hn-offer .alf, :root[dir="ltr"] .pline .alf { text-align: left; }

/* ---------- «محلّي»: a wholesaler's shop, stage 1 (2026-11-28, canvas «★ Wholesaler shops» rows A, C, E) ---------- */
.acc.ws { max-width: 600px; }
.ws-head { display: flex; align-items: center; gap: 10px; }
.ws-head b { font-size: 18px; font-weight: 800; flex: 1; }
.ws-head .hn-round { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; padding: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); cursor: pointer; }
.ws-head .hn-round svg { width: 20px; height: 20px; }
:root[dir="ltr"] .ws-head .hn-round svg { transform: scaleX(-1); }
.ws-steps { display: flex; align-items: flex-start; padding: 4px 2px; }
.ws-steps > i { flex: .6; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--line-strong); }
.ws-st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ws-st > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.ws-st > span svg { width: 14px; height: 14px; }
.ws-st small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ws-st.on > span, .ws-st.done > span { background: var(--primary-ink); color: var(--on-primary); }
.ws-st.on small { color: var(--ink); font-weight: 800; }
.ws-h1 { font-weight: 800; font-size: 23px; line-height: 1.35; margin: 0; }
.ws-form { display: flex; flex-direction: column; gap: 16px; }
.ws-field { display: flex; flex-direction: column; gap: 6px; }
.ws-field > span { font-size: 13.5px; font-weight: 800; }
.ws-field .hn-input { min-height: 50px; padding: 0 14px; }
.ws-field .hn-input input { font-size: 15px; font-weight: 700; min-width: 0; flex: 1; }
.ws-field .hn-input > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.ws-field .pk-btn { min-height: 50px; }
.ws-field.bad .hn-input, .ws-field.bad .pk-btn { box-shadow: inset 0 0 0 2px var(--danger); }
.ws-count { font-size: 12.5px; flex: none; }
.ws-area, .ws-field .ws-area { display: block; height: auto; min-height: 104px; padding: 14px 18px; unicode-bidi: plaintext; text-align: start; border-radius: 18px; font: inherit; font-size: 15px; line-height: 1.6; resize: none; width: 100%; box-sizing: border-box; }
.ws-area:focus { outline: none; border-color: var(--primary-ink); }
.ws-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ws-chips .hn-chip { height: 42px; justify-content: center; font-size: 14px; }
.ws-err { color: var(--danger); font-size: 13px; font-weight: 700; margin: 0; }
.ws-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-actions.col { flex-direction: column; }
.ws-actions .hn-btn--lg, .ws-actions.col .hn-btn { width: 100%; }
.ws-sub { font-size: 15px; font-weight: 800; }
.ws-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ws-note p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.ws-badges { display: flex; flex-wrap: wrap; gap: 8px; }
/* one colour per type (DECISIONS 25 Nov): seal + word in the colour; a pill = the same on a 13 % tint */
.ws-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 12.5px; white-space: nowrap; color: var(--b, var(--primary-ink)); }
.ws-badge.pill { padding: 4px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--b, var(--primary-ink)) 13%, transparent); }
.ws-b-factory { --b: #B3243F; }
.ws-b-workshop { --b: #B7791F; }
.ws-b-importer { --b: #7C4DDB; }
.ws-b-wholesaler { --b: var(--primary-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ws-b-factory { --b: #F0738A; }
  :root:not([data-theme="light"]) .ws-b-workshop { --b: #E9B25A; }
  :root:not([data-theme="light"]) .ws-b-importer { --b: #B29BF5; }
}
:root[data-theme="dark"] .ws-b-factory { --b: #F0738A; }
:root[data-theme="dark"] .ws-b-workshop { --b: #E9B25A; }
:root[data-theme="dark"] .ws-b-importer { --b: #B29BF5; }
.ws-slot { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.ws-slot.bad { box-shadow: inset 0 0 0 2px var(--danger); }
.ws-slot-t { display: flex; align-items: center; gap: 8px; }
.ws-slot-t b { flex: 1; font-size: 14.5px; }
.ws-req { font-size: 11.5px; font-weight: 800; color: var(--primary-ink); background: var(--primary-soft); padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.ws-slot > small { font-size: 12.5px; line-height: 1.55; }
.ws-drop { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: var(--radius-md); border: 1.5px dashed var(--line-strong); cursor: pointer; font-weight: 800; font-size: 14px; color: var(--primary-ink); }
.ws-drop > svg { flex: none; }
.ws-drop img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.ws-slot.have .ws-drop { border-style: solid; border-color: var(--line); }
.ws-ok { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.ws-ok svg { width: 16px; height: 16px; }
.ws-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--ink-2); cursor: pointer; }
.ws-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--primary-ink); }
.ws-consent.bad { color: var(--danger); }
.ws-dialog { position: fixed; inset: 0; z-index: 80; background: rgba(8,13,20,.42); display: grid; place-items: center; padding: 16px; }
:root[data-theme="dark"] .ws-dialog { background: rgba(0,0,0,.66); }
.ws-dbox { background: var(--surface); color: var(--ink); width: 100%; max-width: 400px; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-float); }
.ws-dbox h2 { margin: 0; font-size: 18px; font-weight: 800; }
.ws-dbox p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.ws-time { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ws-time li { position: relative; padding-inline-start: 30px; padding-block: 2px 16px; display: flex; flex-direction: column; gap: 2px; }
.ws-time li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }
.ws-time li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 11px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.ws-time li.done::before { background: var(--primary-ink); }
.ws-time li.now::before { background: var(--surface); box-shadow: inset 0 0 0 3px var(--primary-ink); }
.ws-time b { font-size: 14.5px; }
.ws-id { flex-direction: row !important; align-items: center; }
.ws-id .av { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.ws-id .who { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ws-id .who > b { font-size: 17px; font-weight: 800; max-width: 100%; overflow-wrap: anywhere; }
.ws-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-pending { font-size: 12px; font-weight: 800; color: var(--st-noanswer); background: var(--st-noanswer-bg); padding: 4px 10px; border-radius: var(--radius-pill); }
.ws-state b { font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; }
.ws-state p { margin: 0; font-size: 14px; line-height: 1.6; }
.ws-state.ok { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary-ink) 40%, transparent), var(--shadow-card); }
.ws-state.ok b { color: var(--primary-ink); }
.ws-state.warn { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--st-noanswer) 45%, transparent), var(--shadow-card); }
.ws-state.bad b { color: var(--danger); }
.ws-teaser p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.ws-link { align-self: flex-start; font-weight: 800; font-size: 14px; background: var(--surface-2); border-radius: var(--radius-pill); padding: 6px 12px; color: var(--muted); }
.ws-products p { margin: 0; }
.ws-products .hn-btn svg { width: 16px; height: 16px; }
.ws-loading { display: flex; flex-direction: column; gap: 12px; }
.ws-loading i { display: block; height: 84px; border-radius: var(--radius-lg); background: var(--surface-2); }
/* the account page's card «هل تبيع بالجملة؟» */
.acc-shop .m-row { display: flex; align-items: center; gap: 12px; }
.acc-shop .m-row > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.acc-shop .m-row b { font-size: 16px; font-weight: 800; }
.acc-shop .ws-ic { width: 46px; height: 46px; background: var(--primary-soft); color: var(--on-primary-soft); flex: none; }
.acc-shop > p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.ws-need { display: flex; gap: 8px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.ws-need svg { color: var(--primary-ink); flex: none; margin-top: 2px; }

/* A quiet button standing on the page itself (not inside a white card): white with a thin edge, like the cards
   around it. The design system's grey quiet fill is meant for use inside white cards (the owner, 2026-12-03). */
.hn-btn--quiet[data-ws-later] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* The welcome window before creating a shop (boards WSWelcomePhone, WSWebWelcome, 3 Dec): a sheet on phones,
   a centred 480 px window on a computer. */
.ws-welcome { z-index: 95; }
.ws-welcome .ws-dbox { gap: 16px; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
.ws-wel-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line-strong); align-self: center; }
.ws-wel-top { display: flex; align-items: flex-start; justify-content: space-between; }
.ws-wel-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; flex: none; }
.ws-wel-ic svg { width: 26px; height: 26px; }
.ws-welcome .hn-x svg { width: 18px; height: 18px; }
.ws-wel-text { display: flex; flex-direction: column; gap: 6px; }
.ws-wel-text h2 { font-size: 21px; line-height: 1.4; }
.ws-wel-text p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.ws-wel-steps { list-style: none; margin: 0; padding: 16px; border-radius: var(--radius-md); background: var(--surface-2); display: flex; flex-direction: column; gap: 14px; }
.ws-wel-steps li { display: flex; align-items: center; gap: 12px; }
.ws-wel-steps li > span { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.ws-wel-steps li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-wel-steps b { font-size: 15px; font-weight: 800; }
.ws-wel-steps small { font-size: 13px; line-height: 1.5; }
.ws-wel-free { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ws-wel-free svg { width: 16px; height: 16px; color: var(--st-delivered); flex: none; }
.ws-welcome .ws-actions .hn-btn { width: 100%; }
@media (max-width: 859px) {
  .ws-welcome { place-items: end stretch; padding: 0; }
  .ws-welcome .ws-dbox { max-width: none; border-radius: 28px 28px 0 0; transform: translateY(24px); opacity: 0; transition: transform .22s ease, opacity .18s ease; }
  .ws-welcome.in .ws-dbox { transform: none; opacity: 1; }
}
@media (min-width: 860px) {
  .ws-welcome .ws-dbox { max-width: 480px; padding: 22px 24px 24px; }
  .ws-wel-grip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ws-welcome .ws-dbox { transition: none; } }
/* the channel window's way into a shop (board WSEntryTGPhone): a full-width grey button under the form */
.sg-shop { width: 100%; margin-top: 10px; background: var(--surface-2); color: var(--ink); gap: 8px; }
.sg-shop svg { width: 18px; height: 18px; flex: none; }

/* ---------- «أضف منتجًا»: adding a product (stage 2, 2026-11-28; canvas row B) ---------- */
.acc.ws.ws-adding { max-width: 600px; }
.ap { display: flex; flex-direction: column; gap: 16px; }
.ap .ws-head small { font-size: 13px; flex: none; }
.ap-phone { padding-bottom: 96px; }
.ap-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.ap-row::-webkit-scrollbar { display: none; }
.ap-th { width: 96px; height: 96px; border-radius: 14px; flex: none; position: relative; border: 0; padding: 0; cursor: pointer;
  background: var(--surface-2) center/cover no-repeat; color: var(--ink-2); display: grid; place-items: center; font: inherit; }
.ap-th.big { width: 96px; height: 96px; border-radius: 16px; }
.ap-th.ap-plus { background: var(--surface); border: 1.5px dashed var(--line-strong); color: var(--primary-ink); box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ap-th.ap-plus small { font-size: 12px; font-weight: 800; }
.ap-th.failed { box-shadow: inset 0 0 0 2px var(--danger); }
.ap-main { position: absolute; bottom: 6px; inset-inline-start: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px;
  font-weight: 800; border-radius: var(--radius-pill); padding: 2px 7px; }
.ap-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.55); border-top-color: var(--primary-ink);
  animation: ap-spin .8s linear infinite; background: rgba(0,0,0,.18); }
@keyframes ap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ap-spin { animation-duration: 2.4s; } }
.ap-bad { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--danger);
  color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ap-price { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
.ap-price .hn-input { min-height: 50px; padding: 0 14px; min-width: 0; }
.ap-price .hn-input input { font-size: 17px; font-weight: 800; min-width: 0; flex: 1; text-align: start; }
.ap-price .hn-input span { font-size: 13px; font-weight: 700; flex: none; }
.ap-unit { height: 50px; justify-content: center; font-size: 13.5px; padding: 0 8px; gap: 4px; min-width: 0; }
.ap .ws-field .hn-input { min-height: 50px; padding: 0 14px; }
.ap .ws-field .hn-input input { font-size: 15px; font-weight: 700; min-width: 0; flex: 1; }
.ap .ws-field > span small { font-weight: 400; font-size: 12px; }
.ap-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ap-chips .hn-chip { height: 36px; font-size: 13px; gap: 6px; }
.ap-chips .hn-chip svg { width: 14px; height: 14px; }
.ap-minbox { min-height: 36px !important; height: 36px; width: 84px; padding: 0 10px !important; flex: none; }
.ap-minbox input { font-size: 14px !important; }
.ap-sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(12,17,24,.18); flex: none; display: inline-block; }
.ap-opt { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; }
.ap-opt-t { display: flex; align-items: center; gap: 8px; }
.ap-opt-t > b { flex: 1; font-size: 14.5px; font-weight: 800; }
.ap-optname { flex: 1; min-height: 40px !important; }
.ap-x { width: 32px; height: 32px; box-shadow: none; background: var(--surface-2); border: 0; display: grid; place-items: center; color: var(--ink); cursor: pointer; flex: none; }
.ap-x svg { width: 16px; height: 16px; }
.ap-mode { display: flex; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ap-mode button { flex: 1; }
.ap-adder { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.ap-adder .ap-chips .hn-chip { height: 32px; font-size: 12.5px; }
.ap-valform { display: flex; gap: 8px; }
.ap-valform .hn-input { flex: 1; min-height: 42px; padding: 0 12px; }
.ap-valform .hn-input input { font-size: 14px; flex: 1; min-width: 0; }
.ap-addopt { width: auto; min-width: 180px; height: 44px; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink); gap: 6px; }
.ap-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); box-shadow: 0 -1px 0 var(--line); display: grid; gap: 8px; }
.ap-bar.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }   /* never wider than half the bar (French ran off a phone, 3 Dec) */
.ap-bar .hn-btn { width: 100%; }
.ap-strip { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.ap-strip > b { flex: 1; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ap-strip .hn-btn { flex: none; gap: 4px; }
.ap-faces { display: flex; flex: none; }
.ap-face { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2) center/cover; box-shadow: 0 0 0 2px var(--surface); flex: none; }
.ap-faces .ap-face + .ap-face { margin-inline-start: -10px; }
.ap-face.sq { width: 44px; height: 44px; border-radius: 10px; box-shadow: none; }
.ap-pr { font-size: 12.5px; font-weight: 800; color: var(--price); }
.ap-noprice { font-size: 12.5px; font-weight: 800; color: var(--st-noanswer); }
.ap-danger, .ap-optrow.ap-danger b { color: var(--danger) !important; }
/* the windows: the added one, the limit, leaving without saving */
.ap-added { align-items: center; text-align: center; gap: 12px; }
.ap-added h2 { font-size: 19px; }
.ap-added p { margin: 0; }
.ap-added .ws-actions { width: 100%; margin-top: 4px; }
.ap-added .ws-actions .hn-btn { width: 100%; gap: 6px; }
.ap-added-ph { position: relative; width: 96px; height: 96px; border-radius: 22px; background: var(--surface-2) center/cover; }
.ap-added-ph i { position: absolute; bottom: -6px; inset-inline-start: -6px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--st-delivered); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); }
.ap-hidden { font-size: 13px; color: var(--st-noanswer); font-weight: 700; }
.ap-undo { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--danger); cursor: pointer; padding: 6px; }
/* bottom sheets on a phone, a centred window on a computer */
.ap-sheetwrap { place-items: end stretch; padding: 0; }
.ap-sheet { background: var(--surface); color: var(--ink); width: 100%; border-radius: 28px 28px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-float); max-height: 86vh; overflow-y: auto; box-sizing: border-box; }
.ap-grab { align-self: center; width: 44px; height: 5px; border-radius: 9px; background: var(--line-strong); }
.ap-sheet-t { display: flex; align-items: center; gap: 12px; }
.ap-sheet-t > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-sheet-t b { font-size: 18px; font-weight: 800; }
.ap-sheet-t small { font-size: 13px; }
.ap-utiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-utile { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius-md); border: 0; font: inherit;
  text-align: start; background: var(--surface-2); color: var(--ink); cursor: pointer; min-height: 48px; }
.ap-utile b { flex: 1; font-size: 15px; font-weight: 800; }
.ap-utile small { font-size: 12.5px; font-weight: 700; }
.ap-utile[aria-pressed="true"] { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: inset 0 0 0 2px var(--primary-ink); }
.ap-utile.other { justify-content: center; background: none; border: 1.5px dashed var(--line-strong); color: var(--ink-2); }
.ap-utile.other b { flex: none; }
.ap-utile.other[aria-pressed="true"] { border-style: solid; }
.ap-sheet .hn-input { min-height: 46px; padding: 0 14px; }
.ap-sheet .hn-input input { font-size: 15px; flex: 1; min-width: 0; }
.ap-counts { display: flex; gap: 8px; }
.ap-counts .hn-chip { height: 40px; flex: 1; justify-content: center; }
.ap-counts .hn-input { min-height: 40px; height: 40px; width: 84px; padding: 0 10px; flex: none; }
.ap-calc { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; }
.ap-optrows { display: flex; flex-direction: column; }
.ap-optrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; color: var(--ink); text-align: start; cursor: pointer; }
.ap-optrow:last-child { border-bottom: 0; }
.ap-optrow b { flex: 1; font-size: 15px; font-weight: 800; }
.ap-optrow > span { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
/* «محلّي»: the newest products */
.ws-plist { display: flex; flex-direction: column; }
.ws-prow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ws-prow:last-child { border-bottom: 0; }
.ws-prow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ws-prow b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-products .m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ws-products label.hn-btn, .ws-products .hn-btn { gap: 6px; cursor: pointer; flex: none; }
.ws-products .hn-btn svg { width: 16px; height: 16px; }

/* a computer: one card, the live preview and what was added beside it */
@media (min-width: 860px) {
  .acc.ws.ws-adding { max-width: 1080px; }
  .ap-sheetwrap { place-items: center; padding: 16px; }
  .ap-sheet { width: 100%; max-width: 440px; border-radius: 24px; padding: 18px 22px 22px; }
  .ap-grab { display: none; }
  .ap-top { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; }
  .ap-top h1 { font-weight: 800; font-size: 28px; margin: 0; flex: 1; }
  .ap-donebtn { background: var(--surface); color: var(--primary-ink); box-shadow: var(--shadow-card); gap: 4px; }
  .ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
  .ap-main-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
  .ap-n { font-size: 18px; font-weight: 800; }
  .ap-drop { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-2); padding: 18px;
    display: flex; align-items: center; gap: 14px; transition: box-shadow .15s, border-color .15s; }
  .ap-drop.over { border-color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary-soft); }
  .ap-drop > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ap-drop b { font-size: 15px; font-weight: 800; }
  .ap-drop small { font-size: 13px; }
  .ap-choose { width: auto; min-width: 150px; background: var(--surface); gap: 6px; cursor: pointer; justify-content: center; }
  .ap-wide .ap-th { width: 110px; height: 110px; }
  .ap-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .ap-actions { display: flex; gap: 10px; justify-content: flex-end; }
  .ap-actions .hn-btn { min-width: 180px; gap: 6px; }
  .ap-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
  .ap-prevbox { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
  .ap-prevbox > b, .ap-list > b { font-size: 14px; font-weight: 800; }
  .ap-prev { width: 230px; align-self: center; }
  .ap-prev .ph { background-size: cover; background-position: center; }
  .ap-prev .nm { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.9em; }
  .ap-prev .pr small { font-size: 12px; font-weight: 400; color: var(--muted); }
  .ap-prev-shop { display: flex; align-items: center; gap: 5px; padding: 0 6px; font-size: 12px; min-width: 0; }
  .ap-prev-shop b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ap-prev-shop .ws-badge { font-size: 12px; flex: none; }
  .ap-prev-shop .ws-seal { width: 14px; height: 14px; }
  .ap-list { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
  .ap-li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .ap-li:last-child { border-bottom: 0; }
  .ap-li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .ap-li b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* the add page has its own bar at the bottom: the site's phone bar and footer step aside */
body.ap-on .phonebar, body.ap-on footer { display: none; }
.ap-x, .ap .ws-head .hn-round { border-radius: 50%; }
.ap-valform .hn-input { flex: 1 1 auto; width: auto; min-width: 0; }
.ap-valform .hn-btn { flex: none; }
.ap-opt, .ap-opt .ap-chips { min-width: 0; }
.ap input { min-width: 0; }
@media (max-width: 859px) {
  body.ap-on .topbar { display: none; }
  body.ap-on main, body.ap-on .views { padding-top: 0; }
}
.ap-top .hn-round { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; padding: 0; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); cursor: pointer; }
.ap-top .hn-round svg { width: 20px; height: 20px; }
:root[dir="ltr"] .ap-top .hn-round svg { transform: scaleX(-1); }

/* The computer's photo area: one drop frame (WSWebAddEmpty / WSWebAdd, 3 Dec) */
.ap-drop2 { border: 2px dashed color-mix(in srgb, var(--primary) 45%, var(--line-strong)); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--primary) 4%, var(--surface)); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: background .15s, border-color .15s; }
.ap-drop2.empty { min-height: 230px; align-items: center; justify-content: center; gap: 10px; padding: 28px; text-align: center; }
.ap-drop2.over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.ap-drop-ic { width: 68px; height: 68px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; }
.ap-drop-ic svg { width: 28px; height: 28px; }
.ap-drop2.empty > b { font-size: 18px; font-weight: 800; }
.ap-drop2.empty > small { font-size: 13.5px; }
.ap-drop2 .ap-choose { width: auto; min-width: 160px; margin-top: 6px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ap-row-web { flex-wrap: wrap; gap: 10px; overflow: visible; }
.ap-row-web .ap-th { width: 118px; height: 118px; border-radius: 14px; }
.ap-drop-more { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ap-drop-more svg { width: 16px; height: 16px; color: var(--primary-ink); flex: none; }

/* ---------- «محلّي», stage 3: his products, quick prices, a product's page, settings (2026-12-01, canvas row D) ---------- */
.ws-head > .hn-btn { flex: none; }
.ws-head > .hn-btn svg, .mg-products .hn-btn svg { width: 16px; height: 16px; }
.mg-tabs .hn-seg { display: flex; width: 100%; box-sizing: border-box; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.mg-tabs .hn-seg button { flex: 1; font-size: 14px; padding: 10px 12px; }

/* the free limit: «المنتجات التي أضفتها 14 من 20 مجانًا» */
.mg-free > b { font-size: 15px; font-weight: 800; }
.mg-free p { margin: 0; font-size: 12.5px; line-height: 1.6; }
.mg-num { display: flex; align-items: baseline; gap: 6px; }
.mg-num > b { font-size: 22px; font-weight: 800; }
.mg-bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.mg-bar i { display: block; height: 100%; border-radius: 6px; background: var(--primary-ink); }
.mg-free.full { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold) 55%, transparent), var(--shadow-card); }
.mg-free.full p { font-size: 13.5px; color: var(--ink-2); }

/* «41 منتجًا بلا سعر» → the quick price list */
.mg-link { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; width: 100%; text-align: start; border: 0; font: inherit; color: inherit; cursor: pointer; }
.mg-link > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mg-link b { font-size: 14.5px; font-weight: 800; }
.mg-link small { font-size: 12.5px; }
.mg-tag { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--st-noanswer-bg); color: var(--st-noanswer); }
.mg-chev { flex: none; color: var(--muted); }
:root[dir="ltr"] .mg-chev { transform: scaleX(-1); }

/* «منتجاتي»: chips, then rows (phone) or the table (computer) */
.mg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.mg-chips::-webkit-scrollbar { display: none; }
.mg-chips .hn-chip { flex: none; white-space: nowrap; }
.mg-list { display: flex; flex-direction: column; }
.mg-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; width: 100%; }
.mg-row:last-child { border-bottom: 0; }
.mg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mg-txt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mg-pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.mg-pill.out { background: var(--st-noanswer-bg); color: var(--st-noanswer); }
.mg-row.out .ap-face, .mg-table tr.out .ap-face, .mg-row.off .ap-face, .mg-table tr.off .ap-face { opacity: .5; }
.mg-more { align-self: center; }
.mg-hint { margin: 0; font-size: 12.5px; line-height: 1.6; }
.mg-ok { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--price); white-space: nowrap; }
.mg-ok svg { width: 13px; height: 13px; }
.mg-danger { color: var(--danger) !important; }

/* the computer's table */
.acc.ws.mg-wide { max-width: 1080px; }
.mg-tablewrap { overflow-x: auto; }
.mg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mg-table th { text-align: start; font-size: 12px; font-weight: 800; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.mg-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mg-table tr:last-child td { border-bottom: 0; }
.mg-table th:first-child, .mg-table td:first-child { width: 28px; padding-inline-end: 0; }
.mg-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-ink); margin: 0; cursor: pointer; }
.mg-table th:nth-child(4), .mg-table th:nth-child(5), .mg-table td:nth-child(4), .mg-table td:nth-child(5) { width: 64px; text-align: center; }
.mg-name { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; min-width: 0; max-width: 420px; }
.mg-name > span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.mg-name b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.mg-name:hover b { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.mg-name small { font-size: 11.5px; }
.mg-pin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-pin .hn-input { min-height: 40px; padding: 0 12px; width: 140px; box-sizing: border-box; }
.mg-pin .hn-input input { font-size: 14.5px; font-weight: 800; min-width: 0; flex: 1; width: 100%; }
.mg-pin small { font-size: 12px; white-space: nowrap; }
.mg-table .hn-toggle { margin: 0 auto; display: block; }
.mg-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--on-primary-soft); }
.mg-bulk > b { font-size: 13.5px; font-weight: 800; margin-inline-end: 4px; }
.mg-bulk .hn-btn { background: var(--surface); }
.mg-bulk .mg-x { margin-inline-start: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }

/* settings */
.mg-set .m-head .hn-btn { flex: none; }
.mg-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mg-kv:last-child { border-bottom: 0; }
.mg-kv > span { flex: none; }
.mg-kv > b { font-weight: 800; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.mg-set p { margin: 0; font-size: 13px; line-height: 1.6; }
.mg-soon { font-size: 11.5px; font-weight: 800; color: var(--muted); background: var(--surface-2); padding: 3px 9px; border-radius: var(--radius-pill); }
.mg-ch { display: flex; align-items: center; gap: 12px; }
.mg-tg { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #229ED9; color: #fff; }

/* the quick price list */
.mg-qsub { margin: 0; font-size: 13px; line-height: 1.6; }
.mg-qlist { gap: 0 !important; padding-block: 4px !important; }
.mg-qrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mg-qrow:last-child { border-bottom: 0; }
.mg-qrow .ap-face.sq { width: 56px; height: 56px; border-radius: 12px; }
.mg-qmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mg-qname { display: flex; align-items: center; gap: 8px; }
.mg-qname b { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-qrow .mg-pin { flex-wrap: nowrap; }
.mg-qrow .mg-pin .hn-input { flex: 1; width: auto; min-height: 44px; }
.mg-qrow .mg-pin .hn-chip { flex: none; height: 44px; }
.mg-qrow.done .hn-input { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--price) 50%, transparent); }

/* a product's page */
.mg-state > b { font-size: 15px; font-weight: 800; }
.mg-sw { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.mg-sw > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mg-sw b { font-size: 14px; font-weight: 800; }
.mg-sw small { font-size: 12.5px; line-height: 1.55; }
.mg-del { align-self: center; }
.mg-edit .ap-side { display: flex; flex-direction: column; gap: 14px; }
.mg-edit .mg-top-act { margin-inline-start: auto; }
.mg-edit .mg-top-act .hn-btn { min-width: 160px; }

/* the undo line (a switch, several at once) */
.mg-undo { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 10px 12px 10px 16px;
  border-radius: var(--radius-pill); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-float); }
:root[dir="rtl"] .mg-undo { padding: 10px 16px 10px 12px; }
.mg-undo button { border: 0; background: none; color: var(--primary-hi, #7cc4ff); font: inherit; font-weight: 800; cursor: pointer; padding: 4px 6px; }
@media (min-width: 860px) { .mg-undo { bottom: 28px; } }

/* design review 2026-12-01 */
/* the switch's knob follows the reading direction: "on" is at the end of the line in French too */
.hn-toggle:disabled { opacity: .4; cursor: progress; }
.mg-chips { padding-inline-end: 16px; }
.mg-phint { font-size: 12.5px; line-height: 1.55; margin-top: -4px; }
.mg-name b { color: var(--primary-ink); }
@media (min-width: 860px) {
  .mg-tabs .hn-seg { display: inline-flex; width: 320px; }
  .mg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
  .mg-main, .mg-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .mg-setcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .mg-setside { display: flex; flex-direction: column; gap: 16px; }
  .acc.ws.mg-wide .ws-teaser { max-width: 640px; }
  /* «التالي» under the price list keeps the list's width */
  .acc.ws:not(.ws-adding) .ap-bar { position: sticky; bottom: 16px; left: auto; right: auto; padding: 0; background: none; box-shadow: none; border: 0; }
  /* chips and the unit menu on a white card get the field edge */
  .ap-wide .hn-chip[aria-pressed="false"], .ap-wide .ap-unit { box-shadow: inset 0 0 0 1px var(--line-strong); }
}
@media (max-width: 859px) { .mg-setcols, .mg-setside { display: contents; } }
.mg-page > b { font-size: 15px; font-weight: 800; }
.mg-page p { margin: 0; font-size: 12.5px; line-height: 1.6; }
.mg-linkrow { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--radius-md); background: var(--surface-2); }
:root[dir="rtl"] .mg-linkrow { padding: 6px 12px 6px 6px; }
.mg-linkrow > span { flex: 1; min-width: 0; font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-page > a { align-self: flex-start; }
.mg-page > a svg { width: 16px; height: 16px; }

/* «قناتي»: the Telegram bot link (stage 5, 16h-channel.js) */
.ch-card { display: flex; flex-direction: column; gap: 12px; }
.ch-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-name b { font-size: 14.5px; font-weight: 800; overflow-wrap: anywhere; }
.ch-go { align-self: stretch; justify-content: center; gap: 8px; text-decoration: none; }
.ch-go svg { width: 18px; height: 18px; }
.ch-card .mg-sw { padding-top: 12px; border-top: 1px solid var(--line); }
.ap-tch { margin-top: 4px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); }
.ch-ok { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 800; color: var(--st-delivered); background: var(--st-delivered-bg); vertical-align: middle; }
.ch-ok svg { width: 12px; height: 12px; }
.ch-note { padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--primary);
  font-size: 13px; line-height: 1.6; }
.ch-relink { align-self: flex-start; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ap-tch { background: var(--surface); border: 1px solid var(--line-strong); }
@media (min-width: 860px) { .ch-go { align-self: flex-start; min-width: 240px; } }

/* After adding (design 3 Dec): the new product first, white with a 2 px blue edge, «جديد», «أضف الاسم»;
   the bar «محلّي» + «أضف منتجًا» stays in view while he scrolls his shop. */
#myshop-box > .ws-head { position: sticky; top: 0; z-index: 20; background: var(--bg); margin-inline: -4px; padding: 10px 4px; }
.mg-tline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mg-tline > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-new { flex: none; background: var(--primary); color: var(--on-primary, #fff); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 800; }
.mg-addname { font-size: 12.5px; font-weight: 800; color: var(--primary-ink); }
.mg-pline .mg-addname::before { content: " · "; color: var(--muted); font-weight: 400; }
.mg-row.new { background: var(--surface); box-shadow: inset 0 0 0 2px var(--primary); border-radius: 14px; padding: 10px; margin: 6px -6px 2px; width: calc(100% + 12px); border-bottom: 0; }
.mg-table tr.new { position: relative; }
.mg-table tr.new td { background: var(--surface); }
/* round corners, inset 6 px so the columns stay aligned: a table row cannot round its own edge, so one cell draws it */
.mg-table tr.new td:first-child::after { content: ""; position: absolute; inset: 2px 6px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--primary); pointer-events: none; }
/* on phones the line spans the screen like the board (WSPickAddedPhone): one line, never a narrow two-line pill */
@media (max-width: 859px) { .mg-undo { left: 16px; right: 16px; transform: none; max-width: none; width: auto; } .mg-undo span { flex: 1; } }

/* From the 3 Dec sweep review */
/* a name in the other script lines up with the others: the page's side, not the name's own (French lists had
   Arabic names pushed right among left-aligned ones) */
:root[dir="ltr"] :not(input, textarea)[dir="auto"] { text-align: left; }
:root[dir="rtl"] :not(input, textarea)[dir="auto"] { text-align: right; }
/* the price cell keeps its unit beside the field in French too (rows were taller and the switches off-centre) */
.mg-table .mg-pin { flex-wrap: nowrap; }
.mg-table .mg-pin .hn-input { width: 120px; }
.mg-table input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }
/* a placeholder is an example, never looks typed */
.ap ::placeholder, .ws-form ::placeholder { font-weight: 400; color: var(--muted); opacity: 1; }

/* «محلّي» on the computer (WSWebMyShopPlan / WSWebMyShopPending, 3 Dec) */
.mg-hero { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px; }
.mg-hero .av { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; font-weight: 800; font-size: 26px; flex: none; }
.mg-hero .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mg-hero .nm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.mg-hero h1 { margin: 0; font-size: 28px; font-weight: 800; overflow-wrap: anywhere; }
.mg-hero .who > small { font-size: 14px; }
.mg-hero .acts { display: flex; align-items: center; gap: 10px; flex: none; }
.mg-hero .mg-addbig { min-width: 170px; }
.mg-hbtn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); gap: 8px; }
.mg-hbtn svg { width: 17px; height: 17px; flex: none; }
.ws-state.wait { box-shadow: inset 0 0 0 1.5px var(--st-noanswer), var(--shadow-card); }
.ws-state.wait b { align-items: center; gap: 10px; }
.ws-clock { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--st-noanswer) 14%, var(--surface)); color: var(--st-noanswer); display: grid; place-items: center; flex: none; }
.mg-later > b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.mg-later > b svg { width: 18px; height: 18px; color: var(--primary-ink); flex: none; }
.mg-linkrow.is-off { opacity: .4; pointer-events: none; }

/* ===== «محلّي» on the computer, to the board's numbers (WSWebAdded, WSWebMyShopPending, WSWebMyShopPlan; 3 Dec) ===== */
@media (min-width: 860px) {
  body.sp-on { background: linear-gradient(170deg, var(--bg-sky) 0%, var(--surface-2) 50%, var(--bg-deep) 100%) no-repeat, var(--bg); }
  :root[data-theme="dark"] body.sp-on { background: radial-gradient(120% 75% at 50% -12%, var(--bg-sky), transparent 70%) no-repeat, var(--bg); }
  .acc.ws.mg-wide { max-width: 1200px; gap: 0; }
  .mg-hero { margin: 22px 0 18px; gap: 16px; }
  .mg-hero .av { width: 64px; height: 64px; font-size: 26px; }
  .mg-hero h1 { font-size: 28px; }
  .mg-hero .nm { gap: 10px; }
  .mg-hero .who > small { font-size: 14px; }
  .mg-hero .ws-badge.pill { padding: 3px 10px 3px 8px; font-size: 12.5px; background: color-mix(in srgb, var(--b, var(--primary-ink)) 13%, var(--surface)); }
  .mg-hero .mg-addbig { width: 170px; min-width: 0; flex: none; justify-content: center; }
  .mg-tabs { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
  .mg-tabs .hn-seg { width: 320px; height: 46px; box-sizing: border-box; flex: none; }
  .mg-tabs .hn-seg button { height: 38px; padding: 0 12px; }
  .mg-tabs-end { margin-inline-start: auto; display: flex; gap: 10px; }
  .mg-hbtn { height: 44px; justify-content: center; background: var(--surface); box-shadow: var(--shadow-card); }
  .mg-hbtn.w170 { width: 170px; } .mg-hbtn.w150 { width: 150px; }
  .mg-cols { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
  .mg-side { gap: 16px; }
  /* the products card */
  .mg-products { padding: 16px 0 0; gap: 0; }
  .mg-products > .m-head { justify-content: flex-start; padding: 0 18px 14px; gap: 10px; }
  .mg-products > .m-head > b { font-size: 18px; font-weight: 800; flex: none; }
  .mg-search { margin-inline-start: auto; height: 42px; padding: 0 12px; width: 260px; flex: none; box-sizing: border-box; gap: 8px; color: var(--muted); }
  .mg-search input { font-size: 14px; min-width: 0; flex: 1; }
  .mg-products > .mg-chips { padding: 0 18px 14px; margin: 0; gap: 8px; }
  .mg-products .mg-chips .hn-chip { height: 38px; width: 128px; justify-content: center; padding: 0 6px; }
  .mg-products .mg-chips .hn-chip[aria-pressed="false"] { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
  .mg-products .mg-chips .hn-chip.warn[aria-pressed="false"] { box-shadow: inset 0 0 0 1.5px var(--st-noanswer); color: var(--st-noanswer); }
  .mg-products > .mg-bulk { margin: 0 18px 14px; }
  .mg-gh, .mg-gr { display: grid; grid-template-columns: 24px minmax(0, 1fr) 196px 60px 60px 36px; gap: 10px; align-items: center; }
  .mg-gh { padding: 10px 18px; border-bottom: 1px solid var(--line); }
  .mg-gh > span { font-size: 12.5px; font-weight: 800; color: var(--muted); }
  .mg-gr { padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .mg-gr:last-child { border-bottom: 0; }
  .mg-gr.new { padding: 12px 12px; margin: 4px 6px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--primary); border-bottom: 0; background: var(--surface); }
  .mg-gr.sel { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
  .mg-gc { display: grid; place-items: center; }
  .mg-cbx { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
  .mg-cbx:checked { box-shadow: none; background: var(--primary) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>") center / 14px no-repeat; }
  .mg-name { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); background: none; border: 0; padding: 0; font: inherit; text-align: start; cursor: pointer; }
  .mg-th { width: 52px; height: 52px; border-radius: 12px; flex: none; background: var(--surface-2) center / cover no-repeat; }
  .mg-gr.out .mg-th, .mg-gr.off .mg-th { opacity: .55; }
  .mg-nm { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mg-nm .mg-tline { gap: 6px; }
  .mg-nm .mg-tline > b { font-size: 14px; font-weight: 800; }
  .mg-b { font-size: 10.5px; flex: none; }
  .mg-b.out { background: var(--st-noanswer-bg); color: var(--st-noanswer); }
  .mg-b.off { background: var(--surface-2); color: var(--ink-2); }
  .mg-src { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
  .mg-src .mg-addname { font-size: inherit; }
  .mg-gr .mg-pin { position: relative; display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
  .mg-gr .mg-pv { height: 40px; min-height: 0; padding: 0 10px; flex: 1; min-width: 0; width: auto; }
  .mg-gr .mg-pv input { font-size: 15px; font-weight: 800; text-align: right; }
  .mg-gr .mg-pv > span { font-size: 12px; font-weight: 700; }
  .mg-gr .mg-pv.np { background: var(--st-noanswer-bg); }
  .mg-unitbtn { height: 40px; width: 84px; justify-content: center; font-size: 12.5px; padding: 0 6px; flex: none; gap: 2px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
  .mg-gr .mg-ok { position: absolute; top: calc(100% + 2px); inset-inline-start: 4px; font-size: 11.5px; }
  .mg-more { width: 36px; height: 36px; box-shadow: none; background: none; }
  .mg-none { padding: 14px 18px; margin: 0; }
  .mg-hint { display: flex; gap: 8px; align-items: center; padding: 12px 18px; margin: 0; font-size: 12.5px; color: var(--ink-2); }
  .mg-hint svg { flex: none; }
  /* the side cards */
  .sp-miniw, .mg-freew, .mg-pagew { display: flex; flex-direction: column; gap: 8px; padding: 14px; box-shadow: var(--shadow-card); }
  .mg-pagew { padding: 16px; gap: 10px; }
  .sp-miniw-l { display: flex; align-items: center; gap: 10px; }
  .sp-miniw-l > span:last-child { flex: 1; font-size: 14px; line-height: 1.5; }
  .sp-eye { color: var(--primary-ink); display: inline-flex; }
  .sp-eye svg { width: 18px; height: 18px; }
  .mg-h15 { font-size: 15px; font-weight: 800; }
  .mg-freew .mg-num > b { font-size: 20px; }
  .mg-freew .mg-num > span { font-size: 13px; }
  .mg-freew .mg-bar { height: 8px; border-radius: 8px; }
  .mg-freew .mg-bar i { border-radius: 8px; }
  .mg-freew p, .mg-pagew p { margin: 0; font-size: 12.5px; line-height: 1.55; }
  .mg-lnk { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--primary-ink); cursor: pointer; }
  .mg-lnk.sm { font-size: 13px; }
  .mg-urlrow { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 8px; }
  .mg-urlrow .hn-input { height: 44px; min-height: 0; padding: 0 10px; min-width: 0; }
  .mg-urlrow .hn-input span { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mg-urlrow .hn-btn { height: 44px; gap: 6px; padding: 0 8px; }
  /* the undo line: 420 px, radius 16, a green tick (board) */
  .mg-undo { width: 420px; max-width: calc(100vw - 32px); border-radius: 16px; padding: 13px 18px; gap: 10px; background: #111827; color: #fff; }
  :root[dir="rtl"] .mg-undo { padding: 13px 18px; }
  .mg-undo span { flex: 1; font-size: 14px; font-weight: 700; }
  .mg-undo button { color: #7CC4FF; width: 56px; font-size: 14px; }
}
.mg-undo-ok { display: inline-flex; color: #4ADE80; font-style: normal; flex: none; }
.mg-undo-ok svg { width: 18px; height: 18px; }
@media (max-width: 859px) { .mg-undo { border-radius: 16px; padding: 13px 16px; background: #111827; color: #fff; } :root[dir="rtl"] .mg-undo { padding: 13px 16px; } }
@media (min-width: 860px) {
  /* the boards are drawn on the browser's default text (16 px, normal line spacing), not the site's 15 px / 1.6 */
  .acc.ws.mg-wide { font-size: 16px; line-height: normal; }
  .mg-tabs .hn-seg button { font-size: 13px; }
  .mg-gr .mg-name b, .mg-gr .mg-name { color: var(--ink); }
  .sp-miniw b { font-weight: 800; }
  .mg-hero .who > small { width: fit-content; }
}
@media (min-width: 860px) {
  .acc.ws.mg-wide .hn-card.mg-products { gap: 0; }
  /* the board's hero sits 22 px under its header; the site's top bar is 10 px taller and the page starts 8 px lower:
     the shop page takes those 18 px back so everything lands where it is drawn (the bar itself: a site-wide question) */
  .acc.ws.mg-wide .mg-hero { margin-top: 4px; }
}
@media (min-width: 860px) {
  .acc.ws.mg-wide .hn-card.sp-miniw, .acc.ws.mg-wide .hn-card.mg-freew { gap: 8px; padding: 14px; }
  .acc.ws.mg-wide .hn-card.mg-pagew { gap: 10px; padding: 16px; }
  .mg-search { color: var(--muted); }
  .mg-search input { color: var(--ink); }
  .mg-hint { line-height: normal; }
  .mg-undo { line-height: normal; bottom: 28px; }
  .mg-undo button { line-height: normal; padding: 0; }
}
@media (min-width: 860px) {
  .mg-unitbtn { gap: 6px; }
  .mg-unitbtn svg { margin-inline-start: 2px; flex: none; }
}
/* the new product's edge fades away with the undo line (3 Dec); its place and size stay */
.mg-gr.new, .mg-row.new { transition: box-shadow .4s ease; }
.mg-gr.new.fading, .mg-row.new.fading { box-shadow: inset 0 0 0 2px transparent; }
.mg-new, .mg-addname { transition: opacity .4s ease; }
.fading .mg-new, .fading .mg-addname { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .mg-gr.new, .mg-row.new, .mg-new, .mg-addname { transition: none; } }

/* The window before Telegram (boards WSBotWindowPhone / WSWebBotWindow, design 3 Dec): the welcome window's sheet on a
   phone, a 500 px window on a computer; the two switches in one bordered box. */
.ch-win .ws-dbox { gap: 14px; }
.ch-win .ws-wel-text h2 { font-size: 20px; }
.bw-rights { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.bw-rights svg { color: var(--st-delivered); flex: none; }
.bw-sws { padding: 2px 16px; border-radius: var(--radius-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.bw-sws .mg-sw { padding: 12px 0; border: 0; }
.bw-sws .mg-sw + .mg-sw { border-top: 1px solid var(--line); }
.bw-sws .mg-sw b { font-size: 14.5px; font-weight: 800; }
.bw-sws .mg-sw small { font-size: 12.5px; line-height: 1.5; }
.bw-note { margin: 0; font-size: 12.5px; line-height: 1.6; }
.bw-acts { gap: 8px; }
.bw-acts .hn-btn svg { width: 17px; height: 17px; flex: none; }
@media (min-width: 860px) {
  .ch-win .ws-dbox { max-width: 500px; padding: 26px; gap: 16px; }
  .ch-win .ws-actions.bw-acts { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
  .ch-win .bw-acts [data-bw-go] { flex: 1 1 auto; width: auto; min-width: 0; }
  .ch-win .bw-acts [data-bw-close] { width: 160px; flex: none; }
}

/* The check before buyers see a product (boards WSReviewPhone, WSRefusedPhone, WSWebReview, WSWebRefused,
   WSRefusedEditPhone, design 3 Dec): pills, the reason under the price, one white note with a thin edge. */
.rv-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px 2px 8px; font-size: 11px; font-weight: 800;
  white-space: nowrap; flex: none; background: var(--primary-soft); color: var(--on-primary-soft); }
.rv-pill.bad { background: var(--danger-soft); color: var(--danger); }
.rv-pill svg { flex: none; }
.rv-why { font-size: 12px; font-weight: 700; color: var(--danger); }
.mg-txt .rv-why { display: block; }
.rv-note { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 35%, var(--line)), var(--shadow-card); }
.rv-note.bad { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 45%, var(--line)), var(--shadow-card); }
.rv-nic { display: inline-flex; color: var(--primary-ink); margin-top: 2px; flex: none; }
.rv-note.bad .rv-nic { color: var(--danger); }
.rv-nic svg { width: 18px; height: 18px; }
.rv-note > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rv-note b { font-weight: 800; font-size: 14px; }
.rv-note .hn-mu { font-size: 12.5px; line-height: 1.6; }
.mg-products .rv-note { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 35%, var(--line)); }
.mg-products .rv-note.bad { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 45%, var(--line)); }
.mg-products .rv-note + .rv-note { margin-top: 10px; }
.mg-edit .rv-banner { margin-bottom: 2px; }
.mg-edit.rf-price .ap-price .hn-input { box-shadow: inset 0 0 0 2px var(--danger); }
.mg-edit.rf-photo .ap-row .ap-th:not(.ap-plus) { box-shadow: 0 0 0 2px var(--danger); }

/* A picture taken from a video post (owner, 4 Dec): a play mark on the photo, one line on the product's page. */
.vid { position: relative; }
.vid-mark { position: absolute; inset-block-end: 4px; inset-inline-start: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(12, 17, 24, .62); color: #fff; display: grid; place-items: center; font-style: normal; }
.vid-note { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
  background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.vid-note svg { width: 14px; height: 14px; margin-top: 3px; flex: none; color: var(--primary-ink); }
.vid-note b { font-weight: 800; color: var(--ink); }

/* ---------- wholesaler shops as buyers see them (stage 4, 2026-12-01) ---------- */
/* «Cocinaia ✓ مصنع +1» on a card and in the offer window: the shop's name is always shown with its badge */
.shopline { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; }
.shopline > b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.shopline .ws-badge { font-size: 11.5px; flex: none; }
.shopline .ws-badge svg { width: 14px; height: 14px; }
.shopline .plus1 { font-size: 11px; font-weight: 800; color: var(--muted); flex: none; }
.ow-shop { font-size: 14px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-2); }
.ow-shop .ws-badge { font-size: 12.5px; }
.ow-out { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--st-noanswer-bg); color: var(--st-noanswer); font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.ow-out svg { width: 18px; height: 18px; flex: none; }
.ow-opts { display: flex; flex-direction: column; gap: 10px; }
.ow-opt { display: flex; flex-direction: column; gap: 6px; }
.ow-opt > b { font-size: 13.5px; font-weight: 800; }
.ow-opt > span { display: flex; flex-wrap: wrap; gap: 6px; }
.ow-opt .hn-chip { cursor: default; font-size: 13px; }
.ow-min { margin: 0; font-size: 13.5px; }
a.shopline.go { text-decoration: none; color: inherit; cursor: pointer; }
a.shopline.go .chev { width: 16px; height: 16px; margin-inline-start: auto; color: var(--muted); flex: none; }
:root[dir="ltr"] a.shopline.go .chev { transform: scaleX(-1); }

/* hnaya.me/s/<name> */
.sp { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding-block: 8px 40px; }
/* boards WSShopPagePhone / WSShopPage2Phone (phone) and WSShopPage (computer), 4 Dec */
.shp-av { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; font-weight: 800; font-size: 25px; flex: none; }
.shp-top { display: flex; flex-direction: column; gap: 14px; }
.shp-id { display: flex; align-items: center; gap: 14px; }
.shp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.shp-name { font-weight: 800; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.shp-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.shp-city { font-size: 13px; color: var(--ink-2); }
.shp-desc { margin: 0; font-size: 14px; line-height: 1.6; }
.shp-acts { display: flex; gap: 8px; }
.shp-acts .hn-btn { flex: 1 1 0; min-width: 0; }
.shp-acts .hn-btn svg { width: 18px; height: 18px; flex: none; }
.shp-ch { background: var(--surface); }
.shp-share { width: 48px; height: 48px; flex: none; margin-inline-start: auto; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); cursor: pointer; }
.shp-share svg { width: 19px; height: 19px; }
.shp-list { display: flex; flex-direction: column; gap: 12px; padding-block: 14px 40px; }
.shp-n { font-weight: 800; font-size: 16px; }
.shp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline-end: -16px; padding-inline-end: 16px; }
.shp-chips::-webkit-scrollbar { display: none; }
.shp-chips .hn-chip { height: 36px; font-size: 13px; flex: none; }
.shp-chips .hn-chip[aria-pressed="false"] { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.shp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shp-grid .alf { display: none; }                  /* the board's cards: name and price with his unit, nothing more */
.shp-outh { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.shp-outh b { font-weight: 800; font-size: 14.5px; }
.shp-outh span { flex: 1; height: 1px; background: var(--line); }
.hn-offer.oos .ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--surface) 50%, transparent); pointer-events: none; }
.hn-offer.oos .pr { color: var(--muted); }
.oos-tag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11px; font-weight: 800; background: var(--st-noanswer-bg); color: var(--st-noanswer); }
@media (min-width: 860px) {
  .shp-card { padding: 0; overflow: hidden; margin: 22px 0 20px; }
  .shp-row { display: flex; align-items: center; gap: 18px; padding: 22px 26px; }
  .shp-row .shp-av { width: 88px; height: 88px; font-size: 32px; }
  .shp-row .shp-who { gap: 6px; padding-bottom: 2px; }
  .shp-nl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .shp-nl h1 { margin: 0; font-weight: 800; font-size: 30px; }
  .shp-line { font-size: 14px; color: var(--ink-2); }
  .shp-row .shp-acts { flex: none; gap: 18px; }
  .shp-row .shp-wa { flex: none; width: 150px; }
  .shp-row .shp-ch { flex: none; width: 130px; background: var(--surface-2); }
  .shp-row .shp-share { margin: 0; background: var(--surface-2); box-shadow: none; }
  .shp-cols { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
  .shp-side { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
  .shp-side > b { font-weight: 800; font-size: 15px; }
  .shp-cats { display: flex; flex-direction: column; }
  .shp-cats button { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 12px; border: 0; background: none;
    font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: start; }
  .shp-cats button[aria-current="true"] { background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 800; }
  .shp-cats small { font-size: 12.5px; opacity: .75; }
  .shp-rule { display: block; height: 1px; background: var(--line); }
  .shp-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .shp-range .hn-input { height: 44px; padding: 0 14px; }
  .shp-range input { font-size: 15px; font-weight: 700; }
  .shp-sw { display: flex; align-items: center; gap: 10px; }
  .shp-sw span { flex: 1; font-size: 14px; font-weight: 700; }
  .shp-mhead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .shp-mhead b { font-weight: 800; font-size: 18px; flex: 1; }
  .shp-sort .pk-btn { height: 40px; }
  .shp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .shp-outh { margin-top: 10px; }
  .shp-outh b { font-size: 16px; }
}

/* DECISIONS 2 Dec: same card, only the fill differs - a verified shop's product white, a Telegram post faint blue.
   Light theme only; the dark card stays as it is until design draws the pair. */
:root:not([data-theme="dark"]) .hn-offer.card.from-shop { background: #FFFFFF; }
:root:not([data-theme="dark"]) .hn-offer.card.from-post { background: #F6F9FD; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hn-offer.card.from-post,
  :root:not([data-theme="light"]) .hn-offer.card.from-shop { background: var(--surface); } }

/* ---------- «محلّي»: the wholesaler's subscription (2026-12-02, canvas rows «WHOLESALER SUBSCRIPTION») ---------- */
.sp-head > div:not(.hn-seg) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-head > div:not(.hn-seg) > b { font-size: 18px; font-weight: 800; }
.sp-head > div:not(.hn-seg) > small { font-size: 13px; line-height: 1.6; }
@media (min-width: 860px) { .sp-head > div:not(.hn-seg) > b { font-size: 26px; } .sp-head > div:not(.hn-seg) > small { font-size: 14px; } }
.sp-h { font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.sp-h2 { font-size: 20px; font-weight: 800; }
.sp-sec { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.sp-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary-ink); }
.sp-ic svg { width: 19px; height: 19px; }
.sp-ic.warn { background: var(--st-noanswer-bg); color: var(--st-noanswer); }
.sp-ic.grey { background: var(--surface-2); color: var(--ink-2); }
.sp-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--st-confirmed-bg); color: var(--st-confirmed); font-weight: 800; font-size: 11.5px; white-space: nowrap; flex: none; }
.sp-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--primary-ink); cursor: pointer; text-align: start; }
.sp-btn { width: 170px; height: 44px; padding: 0; justify-content: center; flex: none; }
.sp-btn240 { width: 240px; height: 48px; padding: 0; justify-content: center; flex: none; }
.sp-full { width: 100%; justify-content: center; }
.sp-center { text-align: center; line-height: 1.5; font-size: 12px; }
.sp-small { font-size: 12.5px; }
.sp-grow { flex: 1; }
.sp-tick { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--st-delivered) 14%, var(--surface)); color: var(--st-delivered); }
.sp-tick svg { width: 13px; height: 13px; }
.hn-strike { text-decoration: line-through; color: var(--muted); font-size: 12.5px; }
.hn-strike * { text-decoration: line-through; }     /* the whole old price struck, «دج» too (3 Dec) */

/* the state card under the shop's name (one of five) */
.sp-state { display: flex; flex-direction: column; gap: 10px; padding: 14px; box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-card); }
.sp-state.warn { box-shadow: inset 0 0 0 1.5px var(--st-noanswer), var(--shadow-card); }
.sp-st-top { display: flex; align-items: center; gap: 10px; }
.sp-st-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-st-top b { font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.sp-st-top small { font-size: 12.5px; line-height: 1.5; }
.sp-state p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.sp-state p.hn-mu { font-size: 12.5px; color: var(--muted); }
.sp-state .mg-bar { height: 8px; border-radius: 8px; }
.sp-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* beside his products: the week in short / a free shop's one line */
.sp-mini { display: flex; flex-direction: column; gap: 8px; }
.sp-mini .m-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-mini .m-head > b { font-size: 15px; font-weight: 800; }
.sp-mini.free { flex-direction: row; align-items: center; gap: 12px; }
.sp-mini.free > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-mini.free b { font-size: 14px; font-weight: 800; line-height: 1.5; }
.sp-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sp-kv:last-of-type { border-bottom: 0; }
.sp-kv b { font-size: 18px; font-weight: 800; }
.sp-kvl { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.sp-kvl svg { width: 16px; height: 16px; color: var(--primary-ink); flex: none; }
.sp-mini2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sp-mini2 .sp-kv { border-bottom: 0; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 0; }

/* bars: sellers who contacted him, one bar a day; today in full blue */
.sp-bars { display: flex; align-items: flex-end; gap: 10px; height: 230px; padding-bottom: 36px; position: relative; border-bottom: 1px solid var(--line); }
.sp-bars.mini { height: 44px; padding-bottom: 0; gap: 6px; border-bottom: 0; }
.sp-bars.many { gap: 3px; }
.sp-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.sp-bar i { display: block; width: 100%; max-width: 58px; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--primary-ink) 30%, var(--surface)); }
.sp-bar.now i { background: var(--primary-ink); }
.sp-bar em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.sp-bar.now em { color: var(--primary-ink); }
.sp-bars.many .sp-bar em { display: none; }
.sp-bar small { position: absolute; top: 100%; margin-top: 6px; display: flex; flex-direction: column; align-items: center; font-size: 11.5px; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.sp-bar small b { font-weight: 600; color: var(--ink-2); }
.sp-bar.now small b { color: var(--ink); font-weight: 800; }
@media (max-width: 859px) { .sp-bars { height: 170px; gap: 6px; } .sp-bar small span { display: none; } }

/* the plan page */
.sp-adds, .sp-free, .sp-pick, .sp-sum, .sp-wa-card, .sp-incl, .sp-steps, .sp-tip, .sp-ch, .sp-top, .sp-chart { display: flex; flex-direction: column; gap: 12px; }
.sp-adds > small { font-size: 13px; }
.sp-add { display: flex; gap: 12px; align-items: flex-start; }
.sp-add .sp-ic { width: 36px; height: 36px; }
.sp-add .sp-ic svg { width: 17px; height: 17px; }
.sp-add > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-add b { font-size: 14.5px; font-weight: 800; line-height: 1.45; }
.sp-add small { font-size: 12.5px; line-height: 1.6; }
.sp-incl .sp-add { align-items: center; }
.sp-adds.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.sp-adds.wide > b, .sp-adds.wide > small { grid-column: 1 / -1; }
.sp-free .m-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.sp-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-ticks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sp-len { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; border: 0; border-radius: var(--radius-md); font: inherit; color: inherit; text-align: start; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.sp-len.on { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary-ink); }
.sp-radio { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-strong); }
.sp-len.on .sp-radio { background: var(--primary-ink); color: #fff; box-shadow: none; }
.sp-radio svg { width: 13px; height: 13px; }
.sp-len-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-len-n { display: flex; align-items: center; gap: 6px; }
.sp-len-n b { font-size: 15px; font-weight: 800; }
.sp-len-m small { font-size: 12px; }
.sp-len-p { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.sp-len-p b { font-size: 16px; font-weight: 800; white-space: nowrap; }
.sp-found { background: var(--surface); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1.5px var(--st-confirmed); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sp-found-t { display: flex; align-items: center; gap: 8px; }
.sp-found-t b:first-child { flex: 1; font-size: 14.5px; font-weight: 800; }
.sp-left { font-size: 13px; font-weight: 800; color: var(--st-confirmed); white-space: nowrap; }
.sp-found small { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.sp-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.sp-dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--st-confirmed); }
.sp-dots i.on { background: var(--st-confirmed); }
.sp-info { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary-ink) 55%, transparent); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.sp-info svg { width: 17px; height: 17px; flex: none; color: var(--primary-ink); margin-top: 2px; }

/* computer: his shop now, the two price cards, the comparison, the questions */
.sp-now { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.sp-now-a { display: flex; flex-direction: column; gap: 10px; }
.sp-now-b { display: flex; flex-direction: column; gap: 12px; border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.sp-now .mg-bar { height: 8px; border-radius: 8px; }
.sp-now .mg-bar.full i { background: var(--st-noanswer); }
.sp-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary-ink); font-weight: 800; }
.sp-who b { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.sp-vis { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.sp-vis b { font-size: 22px; font-weight: 800; }
.sp-locked { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-lk { width: 56px; height: 56px; border-radius: 12px; background: var(--surface-2) center / cover no-repeat; display: grid; place-items: center; position: relative; overflow: hidden; color: var(--ink-2); }
.sp-lk::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.sp-lk svg { width: 16px; height: 16px; position: relative; }
.sp-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.sp-price { display: flex; flex-direction: column; gap: 10px; }
.sp-price.on { box-shadow: inset 0 0 0 2px var(--primary-ink), var(--shadow-card); }
.sp-price hr, .sp-sum hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.sp-pr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-pr-top b { font-size: 17px; font-weight: 800; }
.sp-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sp-big b { font-size: 34px; font-weight: 800; }
.sp-pr-act { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 16px; }
.sp-pr-act small { font-size: 12.5px; }
.sp-cmp { padding: 8px 16px; overflow-x: auto; }
.sp-cmp table { width: 100%; border-collapse: collapse; }
.sp-cmp th, .sp-cmp td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: start; font-size: 14px; }
.sp-cmp tr:last-child td { border-bottom: 0; }
.sp-cmp th { font-weight: 800; }
.sp-cmp th.pri { color: var(--primary-ink); }
.sp-cmp td:not(:first-child), .sp-cmp th:not(:first-child) { width: 26%; }
.sp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-faq section { display: flex; flex-direction: column; gap: 6px; }
.sp-faq b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.sp-faq b svg { width: 17px; height: 17px; color: var(--primary-ink); flex: none; }
.sp-faq p { margin: 0; font-size: 13px; line-height: 1.7; }

/* the subscribe page */
.sp-seg { display: flex; width: 100%; box-sizing: border-box; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sp-seg button { flex: 1; font-size: 14px; padding: 11px 12px; }
.sp-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.sp-sum-row > span { display: inline-flex; align-items: center; gap: 6px; }
.sp-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sp-total span { font-size: 16px; font-weight: 800; }
.sp-total b { font-size: 28px; font-weight: 800; }
.sp-sum > small { font-size: 12.5px; line-height: 1.6; }
.sp-chat { border-radius: var(--radius-md); background: var(--surface-2); overflow: hidden; }
.sp-chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sp-bubble { margin: 12px; padding: 10px 12px 6px; border-radius: 12px; background: #DCF8C6; color: #111B21; font-size: 14px; line-height: 1.6; max-width: 85%; display: flex; flex-direction: column; gap: 2px; }
.sp-bubble small { align-self: flex-end; font-size: 11px; color: #667781; }
:root[data-theme="dark"] .sp-bubble { background: #005C4B; color: #E9EDEF; }
:root[data-theme="dark"] .sp-bubble small { color: #8696A0; }
.sp-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; width: 100%; background: #25D366; color: #0B3D1F; font-weight: 800; border-radius: var(--radius-pill); text-decoration: none; }
.sp-wa svg { width: 20px; height: 20px; }
.sp-paycols { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.sp-paycols aside { display: flex; flex-direction: column; gap: 16px; }
.sp-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sp-steps li { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.sp-steps li:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 17px; top: 40px; bottom: 6px; width: 2px; background: var(--line-strong); }
.sp-steps li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-steps li > div > b { font-size: 17px; font-weight: 800; line-height: 36px; }
.sp-steps .sp-chat { margin-top: 6px; }
.sp-steps .sp-wa { width: 280px; }
.sp-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary-ink); background: var(--surface); }
.sp-steps li:first-child .sp-n { background: var(--primary-ink); color: #fff; }

/* the report */
.sp-rhead .hn-seg { width: 360px; flex: none; }
.sp-range { font-size: 13px; }
.sp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sp-kpi { display: flex; flex-direction: column; gap: 8px; }
.sp-kpi-l { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.sp-kpi-l .sp-ic { width: 34px; height: 34px; }
.sp-kpi-l .sp-ic svg { width: 16px; height: 16px; }
.sp-kpi-n { display: flex; align-items: baseline; gap: 6px; }
.sp-kpi-n b { font-size: 34px; font-weight: 800; line-height: 1.1; }
.sp-kpi > small { font-size: 12px; }
.sp-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.sp-trend.up { color: var(--st-delivered); }
.sp-trend.down { color: var(--st-noanswer); }
.sp-trend svg { flex: none; }
.sp-chart .m-head, .sp-top .m-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sp-rcols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.sp-rmain, .sp-rside { display: flex; flex-direction: column; gap: 20px; }
.sp-top table { width: 100%; border-collapse: collapse; }
.sp-top th { font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: start; padding: 0 8px 10px; border-bottom: 1px solid var(--line); }
.sp-top td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.sp-top tr:last-child td { border-bottom: 0; }
.sp-top td:nth-child(2) b { font-weight: 800; overflow-wrap: anywhere; }
.sp-ob { display: flex; flex-direction: column; gap: 4px; min-width: 70px; }
.sp-ob i { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.sp-ob em { display: block; height: 100%; background: var(--primary-ink); border-radius: 4px; }
.sp-ch .sp-st-top b { font-size: 16px; }
.sp-ch .sp-ic svg { width: 18px; height: 18px; }
.sp-tip { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary-ink) 55%, transparent), var(--shadow-card); }
.sp-tip .sp-h svg { width: 18px; height: 18px; color: var(--primary-ink); }
.sp-tip p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.sp-note { font-size: 12.5px; }

@media (max-width: 859px) {
  .sp-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sp-kpi { padding: 14px; }
  .sp-kpi-n b { font-size: 26px; }
  .sp-kpi-l { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sp-top th:first-child, .sp-top td:first-child { display: none; }
  .sp-top td, .sp-top th { padding-inline: 4px; font-size: 13px; }
  .sp-ob { min-width: 40px; }
}
.sp-free .hn-badge { white-space: nowrap; flex: none; }
.sp-now:not(:has(.sp-now-b)) { display: block; }
.sp-now:not(:has(.sp-now-b)) .sp-now-a { max-width: 560px; }
.sp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sp-tiles .sp-add { flex-direction: column; gap: 10px; }
body.sp-on #upgrade { display: none; }
.sp-ident { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
