:root {
  --bg: #0c0c12;
  --card: #161620;
  --card2: #1e1e2a;
  --border: #2a2a3a;
  --accent: #7c6dff;
  --accent2: #ff5f7e;
  --gold: #f5c542;
  --green: #2ecc71;
  --red: #e74c3c;
  --text: #eeeef5;
  --muted: #7777aa;
  /* S31: status-text tokens.  --ok/--danger/--warn are theme-aware
     aliases used by `.ad-tag-{ok,err,warn,muted}` and by the admin
     inline-style sweep that replaced raw hex literals.  Dark theme
     uses brighter shades; .theme-light overrides with deeper values
     for WCAG-AA contrast on the lighter card background. */
  --ok: #4ade80;
  --danger: #f87171;
  --warn: #fbbf24;
  --text-muted-strong: rgba(238, 238, 245, .55);
  --text-meta-soft:    rgba(238, 238, 245, .68);
  --r: 18px;
  --tab: 66px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Heebo', sans-serif; background: var(--bg); color: var(--text); }
html[lang="en"], html[lang="en"] body { font-family: 'Inter', 'Heebo', sans-serif; }

/* ── PHONE FRAME ── */
.phone {
  width: 100%; max-width: 420px; height: 100dvh;
  margin: 0 auto; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}

/* ── SCREENS ── */
.scr { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--bg); transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s; }
.scr.show { display: flex; }
.scr.enter { animation: slideIn .28s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── SPLASH ── */
.splash-wrap { position: relative; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(160deg, #0f0c29 0%, #1a1540 40%, #24243e 100%); flex: 1; }
.splash-bg-orbs { position: absolute; inset: 0; overflow: hidden; }
.splash-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; animation: orbFloat 6s ease-in-out infinite; }
.splash-orb-1 { width: 280px; height: 280px; background: var(--accent); top: -60px; right: -40px; animation-delay: 0s; }
.splash-orb-2 { width: 200px; height: 200px; background: var(--accent2, #ff5f7e); bottom: -30px; left: -30px; animation-delay: 2s; }
.splash-orb-3 { width: 150px; height: 150px; background: #6dd5ed; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 4s; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(15px, -20px) scale(1.1); } }
.splash-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; animation: splashFadeIn .8s ease-out; }
@keyframes splashFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.splash-logo-ring { width: 110px; height: 110px; border-radius: 30px; padding: 3px; background: linear-gradient(135deg, #5bc8ff, var(--accent), var(--accent2, #ff5f7e)); box-shadow: 0 16px 60px rgba(124,109,255,.45), 0 0 80px rgba(91,200,255,.18); animation: splashPulse 2s ease-in-out infinite; }
@keyframes splashPulse { 0%, 100% { box-shadow: 0 16px 60px rgba(124,109,255,.45), 0 0 80px rgba(91,200,255,.18); } 50% { box-shadow: 0 16px 80px rgba(255,95,126,.45), 0 0 100px rgba(91,200,255,.32); } }
.splash-logo { width: 100%; height: 100%; border-radius: 27px; background: rgba(15,12,41,.92); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.splash-logo .fixy-mark { width: 64px; height: 64px; }
.splash-title { font-size: 40px; font-weight: 900; letter-spacing: 10px; padding-right: 6px; background: linear-gradient(120deg, #5bc8ff 0%, #b8a8ff 50%, #ff8fa8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 2px 30px rgba(124,109,255,.35); }
.splash-sub { color: rgba(255,255,255,.55); font-size: 14px; letter-spacing: 2px; font-weight: 400; }
.splash-dots { display: flex; gap: 8px; margin-top: 30px; }
.splash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .4; animation: dotBounce 1.4s ease-in-out infinite; }
.splash-dot:nth-child(2) { animation-delay: .2s; }
.splash-dot:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%, 80%, 100% { opacity: .4; transform: scale(1); } 40% { opacity: 1; transform: scale(1.4); } }

/* ── FIXY BRAND ── */
.fixy-mark { display: inline-block; vertical-align: middle; }
.fixy-mark .fixy-spark { transform-origin: 50px 14px; animation: fixySpark 2.4s ease-in-out infinite; }
@keyframes fixySpark { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
.fixy-wordmark { font-weight: 900; letter-spacing: 4px; background: linear-gradient(120deg, #5bc8ff 0%, #b8a8ff 55%, #ff8fa8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.theme-light .fixy-wordmark { background: linear-gradient(120deg, #2d8fe6 0%, #6a5ad8 55%, #d63a73 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── FIXY ABOUT — expandable step cards ── */
.fixy-step-card { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .25s, box-shadow .2s; }
.fixy-step-card:hover { border-color: rgba(124,109,255,.4); }
.fixy-step-card.expanded { border-color: rgba(124,109,255,.55); background: linear-gradient(135deg, rgba(91,200,255,.07), rgba(124,109,255,.04)); box-shadow: 0 6px 20px rgba(124,109,255,.10); }
.fixy-step-head { display: flex; align-items: center; gap: 11px; }
.fixy-step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 12px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(124,109,255,.25); }
.fixy-step-title { font-size: 13.5px; line-height: 1.4; color: var(--text); font-weight: 700; flex: 1; }
.fixy-step-chev { color: var(--muted); transition: transform .3s, color .2s; flex-shrink: 0; }
.fixy-step-card.expanded .fixy-step-chev { transform: rotate(180deg); color: var(--accent); }
.fixy-step-body { max-height: 0; overflow: hidden; transition: max-height .4s ease, margin-top .3s ease, padding-top .3s ease, opacity .25s; opacity: 0; }
.fixy-step-card.expanded .fixy-step-body { max-height: 5000px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(124,109,255,.18); opacity: 1; }
.fixy-step-detail-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 8px; }
.fixy-step-detail-row:last-child { margin-bottom: 0; }
.fixy-step-bullet { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #5bc8ff, var(--accent)); margin-top: 7px; flex-shrink: 0; }
.fixy-step-num-inline { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 11px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(124,109,255,.22); margin-top: 1px; }

/* ── ROLE SELECT ── */
/* ── AUTH PAGE (unified login/register) ── */
.auth-page { align-items: center; justify-content: flex-start; padding: 0; background: linear-gradient(160deg, #1a1830 0%, var(--bg) 40%); overflow-y: auto; }
.auth-header { text-align: center; padding: 48px 24px 24px; width: 100%; }
.auth-logo { font-size: 40px; margin-bottom: 12px; line-height: 0; filter: drop-shadow(0 8px 22px rgba(124,109,255,.45)); }
.auth-logo .fixy-mark { display: inline-block; }
.auth-title { font-size: 40px; font-weight: 900; letter-spacing: 6px; background: linear-gradient(120deg, #5bc8ff 0%, #b8a8ff 55%, #ff8fa8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 0 20px 32px; }

/* ── Language toggle (auth screen) ── */
.auth-topbar { width: 100%; max-width: 420px; margin: 0 auto; padding: 16px 20px 0; display: flex; justify-content: flex-start; }
.auth-lang-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 3px; background: rgba(124,109,255,.08); border: 1px solid rgba(124,109,255,.30); border-radius: 999px; }
.auth-lang-globe { display: flex; align-items: center; color: var(--muted); padding: 0 4px 0 8px; }
.auth-lang-globe svg { width: 15px; height: 15px; }
.auth-lang-toggle button { border: none; background: transparent; color: var(--muted); font-family: 'Heebo', sans-serif; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.auth-lang-toggle button.on { background: linear-gradient(135deg, var(--accent), #a060ff); color: #fff; box-shadow: 0 2px 10px rgba(124,109,255,.35); }
.auth-lang-toggle button:not(.on):active { transform: scale(.95); }
.auth-tabs { display: flex; position: relative; background: var(--card); border-radius: 14px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--border); }
.auth-tab { flex: 1; text-align: center; padding: 11px 0; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 11px; transition: color .2s, background .2s; z-index: 1; position: relative; }
.auth-tab.on { color: #fff; background: var(--accent); box-shadow: 0 2px 10px rgba(124,109,255,.35); }
.auth-tab-indicator { display: none; }
.auth-pane { display: none; }
.auth-pane.on { display: block; animation: authFadeIn .25s ease; }
@keyframes authFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.auth-field input, .auth-field select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-size: 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s; outline: none; box-sizing: border-box; }
.auth-field input:focus, .auth-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,109,255,.15); }
.auth-field input::placeholder { color: var(--muted); opacity: .6; }
.auth-btn { width: 100%; padding: 14px; font-size: 16px; font-weight: 800; border-radius: 12px; margin-top: 4px; }
.auth-role-toggle { display: flex; gap: 10px; }
.auth-role-opt { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 14px; border: 2px solid var(--border); background: var(--card); cursor: pointer; font-size: 15px; font-weight: 700; color: var(--muted); transition: all .2s; }
.auth-role-opt.on { border-color: var(--accent); color: var(--text); background: rgba(124,109,255,.08); box-shadow: 0 0 0 3px rgba(124,109,255,.12); }
.auth-role-opt:active { transform: scale(.97); }
.auth-role-ico { font-size: 20px; }

/* Terms-of-Use + Privacy acceptance card — modern card with two view chips */
.auth-terms-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: linear-gradient(135deg, rgba(124,109,255,.05), rgba(168,125,255,.03)); transition: all .2s; margin-top: 4px; box-sizing: border-box; }
.auth-terms-card.checked { border-color: var(--accent); background: linear-gradient(135deg, rgba(124,109,255,.12), rgba(168,125,255,.06)); box-shadow: 0 0 0 3px rgba(124,109,255,.12); }
.auth-terms-card.error { border-color: #e74c3c; background: rgba(231,76,60,.06); box-shadow: 0 0 0 3px rgba(231,76,60,.18); animation: authTermsShake .35s cubic-bezier(.36,.07,.19,.97); }
@keyframes authTermsShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.auth-terms-head { display: flex; align-items: center; gap: 12px; }
.auth-terms-icon { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #7c6dff, #a87dff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(124,109,255,.25); }
.auth-terms-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.auth-terms-title { font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.3; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.auth-terms-required { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #e74c3c, #c0392b); padding: 2px 7px; border-radius: 8px; letter-spacing: .4px; }
.auth-terms-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.auth-terms-check { position: relative; flex-shrink: 0; cursor: pointer; }
.auth-terms-input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; top: 0; left: 0; }
.auth-terms-checkbox { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--border); background: var(--card); color: transparent; transition: all .15s; box-sizing: border-box; }
.auth-terms-check:hover .auth-terms-checkbox { border-color: var(--accent); }
.auth-terms-card.checked .auth-terms-checkbox { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(124,109,255,.3); }
.auth-terms-checkbox svg { width: 16px; height: 16px; }
.auth-terms-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-terms-chip { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 11px; border: 1.5px solid rgba(124,109,255,.25); background: var(--card); color: var(--accent); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; transition: all .15s; box-sizing: border-box; }
.auth-terms-chip:hover { border-color: var(--accent); background: rgba(124,109,255,.08); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,109,255,.15); }
.auth-terms-chip:active { transform: translateY(0); }
.auth-terms-chip-ico { font-size: 16px; line-height: 1; }
.auth-terms-chip-label { flex: 1; text-align: center; }
.auth-terms-chip-arrow { font-size: 12px; opacity: .7; }

/* keep old classes for other pages that still reference them */
.login-hero { padding: 52px 24px 28px; background: linear-gradient(180deg, #1a1830, var(--bg)); display: flex; flex-direction: column; gap: 8px; }
.login-back { color: var(--muted); font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 5px; margin-bottom: 12px; width: fit-content; }
.login-icon { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 6px; }
.login-hero h2 { font-size: 24px; font-weight: 900; }
.login-hero p { color: var(--muted); font-size: 14px; }
.login-form { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; overflow-y: auto; }

/* ── Auth "About FIXY" pill + brand sheet ── */
.auth-about-link { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 9px 18px; border-radius: 999px; background: linear-gradient(135deg, rgba(91,200,255,.12), rgba(124,109,255,.10)); border: 1px solid rgba(124,109,255,.30); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.auth-about-link svg { width: 18px; height: 18px; }
.auth-about-link:hover { border-color: rgba(124,109,255,.55); box-shadow: 0 4px 18px rgba(124,109,255,.22); }
.auth-about-link:active { transform: scale(.97); }
.auth-about-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 0 16px; }
.auth-about-tagline { color: var(--muted); font-size: 14px; }
.auth-about-steps { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 18px; }
.auth-about-step { display: flex; align-items: center; gap: 12px; background: var(--card2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: var(--text); }
.auth-about-step .num { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.auth-about-cta { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; margin-top: 4px; }
.auth-about-site-hint { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 2px; }

/* ── FIELDS ── */
.field label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; background: var(--card2); border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); font-family: 'Heebo', sans-serif; font-size: 15px; outline: none; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field select { direction: rtl; }
.field textarea { resize: none; height: 80px; }

/* ── PASSWORD SHOW/HIDE TOGGLE ── */
/* The input sits in a relative wrapper so the eye toggle can overlay the
   visual end (left side in RTL Hebrew). padding-inline-end leaves room
   for the icon without overlapping the placeholder/text. */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-inline-end: 44px; }
.pw-toggle { position: absolute; inset-block: 0; inset-inline-end: 4px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: auto; background: transparent; border: 0; padding: 0; color: var(--muted); cursor: pointer; transition: color .15s; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--accent); outline: none; }
.pw-toggle .pw-eye-off { display: none; }
.pw-toggle.on { color: var(--accent); }
.pw-toggle.on .pw-eye { display: none; }
.pw-toggle.on .pw-eye-off { display: inline; }

.cats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-chip { padding: 10px 8px; border-radius: 10px; background: var(--card2); border: 1.5px solid var(--border); color: var(--muted); cursor: pointer; text-align: center; font-size: 12px; font-weight: 600; transition: all .2s; }
.cat-chip.on { background: rgba(124,109,255,.12); border-color: var(--accent); color: var(--text); }

/* ── BUTTONS ── */
.btn { width: 100%; padding: 15px; border-radius: 14px; border: none; font-family: 'Heebo', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s; }
.btn:active { transform: scale(.97); }
.btn-p { background: linear-gradient(135deg, var(--accent), #a060ff); color: #fff; box-shadow: 0 4px 20px rgba(124,109,255,.35); }
.btn-s { background: var(--card2); color: var(--text); border: 1.5px solid var(--border); }
.btn-d { background: rgba(231,76,60,.1); color: var(--red); border: 1.5px solid rgba(231,76,60,.25); }
.btn-warn { background: rgba(245,158,11,.12); color: var(--gold); border: 1.5px solid rgba(245,158,11,.3); }
.btn-warn:active { background: rgba(245,158,11,.22); }
.btn-sm { padding: 9px 14px; font-size: 12.5px; border-radius: 10px; width: auto; }
.btn-xs { padding: 7px 12px; font-size: 12px; border-radius: 8px; width: auto; }

/* ── APP SHELL ── */
.app-wrap { padding-bottom: var(--tab); }
.app-top { padding: 50px 18px 14px; display: flex; align-items: center; justify-content: space-between; background: var(--bg); }
.app-top h1 { font-size: 22px; font-weight: 900; }
.app-top p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; cursor: pointer; flex-shrink: 0; }

/* ── TAB BAR ── */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; height: var(--tab); background: linear-gradient(180deg, rgba(18,18,28,.78) 0%, rgba(14,14,22,.92) 100%); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); border-top: 1px solid rgba(255,255,255,.06); box-shadow: 0 -8px 32px -8px rgba(0,0,0,.45); display: flex; z-index: 100; padding: 6px 6px env(safe-area-inset-bottom); box-sizing: border-box; }
.tab { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .2px; transition: color .35s cubic-bezier(.4,0,.2,1); -webkit-tap-highlight-color: transparent; }
.tab::before { content: ''; position: absolute; top: 2px; left: 50%; width: 22px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: 0; transform: translateX(-50%) scaleX(.3); transform-origin: center; transition: opacity .35s cubic-bezier(.4,0,.2,1), transform .45s cubic-bezier(.5,1.5,.4,1); pointer-events: none; }
.tab.on { color: var(--accent); }
.tab.on::before { opacity: 1; transform: translateX(-50%) scaleX(1); }
.tab-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 32px; border-radius: 14px; transition: background .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), transform .45s cubic-bezier(.5,1.5,.4,1); }
.tab-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .25s ease, transform .35s cubic-bezier(.4,0,.2,1); }
.tab.on .tab-ico { background: linear-gradient(135deg, rgba(124,109,255,.32), rgba(255,95,126,.18)); box-shadow: 0 6px 18px -4px rgba(124,109,255,.45), inset 0 1px 0 rgba(255,255,255,.08); transform: translateY(-1px); }
.tab.on .tab-ico svg { stroke-width: 2.1; transform: scale(1.05); }
.tab:active .tab-ico { transform: scale(.92); }

/* ── TAB CONTENT ── */
.tab-pane { display: none; flex-direction: column; flex: 1; overflow-y: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.tab-pane.on { display: flex; }

/* ── SECTION HEADER ── */
.sec-hd { padding: 14px 16px 8px; display: flex; align-items: center; justify-content: space-between; }
.sec-hd h2 { font-size: 17px; font-weight: 700; }
.sec-hd span { font-size: 13px; color: var(--accent); cursor: pointer; }

/* ── FILTER CHIPS ── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; flex-shrink: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 7px 13px; border-radius: 99px; background: var(--card2); border: 1.5px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: all .2s; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── JOB CARDS ── */
.job-card { margin: 6px 14px; background: var(--card); border-radius: 16px; padding: 16px; border: 1px solid var(--border); cursor: pointer; transition: border-color .2s, transform .1s; position: relative; overflow: hidden; }
.job-card:active { transform: scale(.985); }
.job-card:hover { border-color: var(--accent); }
.job-card::before { content: ''; position: absolute; top: 0; right: 0; width: 3px; height: 100%; }
.job-card.urg::before { background: var(--red); }
.job-card.nrm::before { background: var(--accent); }
.job-card.flx::before { background: var(--green); }
.jc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.jc-title { font-size: 15px; font-weight: 700; flex: 1; line-height: 1.3; }
.jc-price { font-size: 18px; font-weight: 900; color: var(--gold); white-space: nowrap; }
.jc-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.tag-cat { background: rgba(124,109,255,.12); color: var(--accent); }
.tag-area { background: rgba(255,95,126,.1); color: var(--accent2); }
.tag-urg { background: rgba(231,76,60,.1); color: var(--red); }
.tag-flx { background: rgba(46,204,113,.1); color: var(--green); }
.tag-nrm { background: rgba(124,109,255,.08); color: var(--muted); }
.jc-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.jc-meta { font-size: 11px; color: var(--muted); }

/* ── LIMIT BARS ── */
.limit-wrap { padding: 4px 14px 10px; }
.limit-row { margin-bottom: 8px; }
.limit-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.limit-track { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.limit-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .5s; }
.limit-fill.warn { background: linear-gradient(90deg, var(--gold), var(--red)); }

/* ── BOTTOM SHEET ── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(5px); z-index: 200; display: none; align-items: flex-end; }
.overlay.open { display: flex; }
.sheet { background: var(--card); border-radius: 24px 24px 0 0; width: 100%; max-width: 420px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; padding: 18px 20px 32px; animation: sheetUp .3s cubic-bezier(.2,1,.3,1); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.handle { width: 38px; height: 4px; background: var(--border); border-radius: 99px; margin: 0 auto 18px; }
.sheet-title { font-size: 20px; font-weight: 800; margin-bottom: 18px; }

/* ── FORM SECTIONS ── */
.fsec { margin-bottom: 16px; }
.fsec label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.fsec input, .fsec textarea, .fsec select { width: 100%; padding: 12px 14px; background: var(--card2); border: 1.5px solid var(--border); border-radius: 11px; color: var(--text); font-family: 'Heebo', sans-serif; font-size: 14px; outline: none; transition: border-color .2s; }
.fsec input:focus, .fsec textarea:focus, .fsec select:focus { border-color: var(--accent); }
.fsec textarea { resize: none; height: 80px; }
.fsec select { direction: rtl; }

.urgency-row { display: flex; gap: 8px; }
.ub { flex: 1; padding: 10px 6px; border-radius: 10px; background: var(--card2); border: 1.5px solid var(--border); color: var(--muted); font-family: 'Heebo', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; transition: all .2s; }
.ub.on.u { background: rgba(231,76,60,.12); border-color: var(--red); color: var(--red); }
.ub.on.n { background: rgba(124,109,255,.12); border-color: var(--accent); color: var(--accent); }
.ub.on.f { background: rgba(46,204,113,.12); border-color: var(--green); color: var(--green); }
.cats-g { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cat-b { padding: 11px 8px; border-radius: 10px; background: var(--card2); border: 1.5px solid var(--border); color: var(--muted); cursor: pointer; text-align: center; font-size: 12px; font-weight: 600; transition: all .2s; }
.cat-b.on { background: rgba(124,109,255,.12); border-color: var(--accent); color: var(--text); }

/* ── JOB DETAIL ── */
.detail-hd { padding: 52px 18px 20px; background: linear-gradient(180deg, #1c1a30, var(--bg)); }
.detail-back { color: var(--muted); font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 5px; margin-bottom: 14px; width: fit-content; }
.detail-title { font-size: 22px; font-weight: 900; line-height: 1.3; }
.detail-body { padding: 18px; overflow-y: auto; flex: 1; }
.dsec { margin-bottom: 22px; }
.pprow { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); }
.pprow:last-child { border-bottom: none; }
.pplbl { font-size: 12px; color: var(--muted); flex-shrink: 0; margin-left: 12px; }
.dsec h3 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.dsec p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.lock-box { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,197,66,.08); color: var(--gold); border: 1px solid rgba(245,197,66,.2); padding: 8px 13px; border-radius: 11px; font-size: 13px; font-weight: 600; }
.unlock-box { background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.25); border-radius: 11px; padding: 12px 14px; font-size: 13px; color: var(--green); line-height: 1.6; }

/* ── BID CARD (legacy) ── */
.bid-card { background: var(--card2); border-radius: 14px; padding: 15px; border: 1.5px solid var(--border); margin-bottom: 10px; cursor: pointer; transition: border-color .2s; }
.bid-card:hover { border-color: var(--accent); }
.bid-top { display: flex; justify-content: space-between; align-items: center; }
.bid-prov { display: flex; align-items: center; gap: 10px; }
.bid-ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.bid-name { font-weight: 700; font-size: 14px; }
.bid-stars { font-size: 12px; color: var(--gold); margin-top: 1px; }
.bid-price { font-size: 20px; font-weight: 900; color: var(--gold); }
.bid-info { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.bid-btns { display: flex; gap: 8px; margin-top: 10px; }

/* ── BID CARD V2 (modern) ── */
.bid-card-v2 { background: var(--card2); border-radius: 18px; border: 1.5px solid var(--border); margin-bottom: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.bid-card-v2:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(124,109,255,.15); }
.bid-card-v2.bid-accepted { border-color: var(--green); box-shadow: 0 0 0 2px rgba(46,204,113,.2); }

/* Summary row (collapsed view) */
.bv2-summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; gap: 12px; }
.bv2-summary-right { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; min-width: 0; }
.bv2-summary-left { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; gap: 2px; }
.bv2-price-compact { font-size: 22px; font-weight: 900; color: var(--gold); line-height: 1.1; white-space: nowrap; }
.bv2-arrival-compact { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Expand toggle */
.bv2-expand-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; cursor: pointer; border-top: 1px solid var(--border); transition: background .2s; }
.bv2-expand-toggle:hover { background: rgba(124,109,255,.06); }
.bv2-expand-label { font-size: 12px; font-weight: 600; color: var(--accent); }
.bv2-expand-icon { font-size: 10px; color: var(--accent); transition: transform .2s; }
.bv2-expanded .bv2-expand-toggle { border-bottom: 1px solid var(--border); }

/* Provider info inside summary */
.bv2-ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; flex-shrink: 0; }
.bv2-info { flex: 1; min-width: 0; }
.bv2-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.bv2-verified { font-size: 11px; font-weight: 600; color: var(--green); }
.bv2-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.bv2-rating { font-size: 12px; color: var(--gold); font-weight: 600; }
.bv2-norating { color: var(--muted); font-weight: 400; }
.bv2-dot { color: var(--muted); font-size: 12px; }
.bv2-area { font-size: 12px; color: var(--muted); }

/* Price block */
.bv2-price-block { padding: 14px 16px 10px; background: linear-gradient(135deg, rgba(245,197,66,.07), rgba(124,109,255,.05)); border-bottom: 1px solid var(--border); }
.bv2-price-main { display: flex; justify-content: space-between; align-items: flex-end; }
.bv2-price-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.bv2-price-big { font-size: 34px; font-weight: 900; color: var(--gold); line-height: 1; }
.bv2-net-block { text-align: left; }
.bv2-net-label { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.bv2-net-val { font-size: 16px; font-weight: 700; color: var(--green); }
.bv2-commission { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Details grid */
.bv2-details { display: flex; gap: 0; padding: 10px 16px 4px; }
.bv2-detail-item { display: flex; align-items: flex-start; gap: 8px; flex: 1; }
.bv2-detail-ico { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.bv2-detail-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.bv2-detail-val { font-size: 13px; font-weight: 700; margin-top: 2px; }

/* Included / Excluded / Notes sections */
.bv2-section { margin: 6px 16px 0; padding: 8px 10px; background: rgba(255,255,255,.03); border-radius: 10px; border: 1px solid rgba(255,255,255,.06); }
.bv2-section-title { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .3px; }
.bv2-section-body { font-size: 13px; line-height: 1.5; color: var(--text, #eee); }

/* Action buttons */
.bv2-actions { display: flex; gap: 10px; padding: 12px 16px 14px; align-items: stretch; }
.bv2-actions .btn { padding: 12px 16px; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.bv2-actions .btn-p { flex: 2; }
.bv2-chat-btn { flex: 1 !important; }

/* Status badges */
.bv2-accepted-badge { margin: 10px 16px 14px; padding: 10px; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); border-radius: 10px; text-align: center; font-weight: 700; font-size: 14px; color: var(--green); }
.bv2-rejected-badge { margin: 10px 16px 14px; padding: 8px; background: rgba(255,255,255,.04); border-radius: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.type-badge { padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.tb-b { background: rgba(245,197,66,.12); color: var(--gold); }
.tb-c { background: rgba(124,109,255,.12); color: var(--accent); }

/* ── CHAT ── */
.chat-hd { padding: 50px 16px 14px; background: var(--card); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-back { font-size: 20px; color: var(--muted); cursor: pointer; }
.chat-info h3 { font-size: 16px; font-weight: 700; }
.chat-info p { font-size: 12px; color: var(--muted); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.msg { max-width: 78%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--accent), #9d5fff); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #1e2635; border: 1px solid rgba(255,255,255,.08); color: var(--text); border-bottom-left-radius: 4px; }
.msg-t { font-size: 10px; opacity: .5; margin-top: 3px; }
.chat-bottom { padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-end; }
.chat-in { flex: 1; background: var(--card2); border: 1.5px solid var(--border); border-radius: 20px; padding: 9px 14px; color: var(--text); font-family: 'Heebo', sans-serif; font-size: 14px; outline: none; resize: none; max-height: 80px; transition: border-color .2s; }
.chat-in:focus { border-color: var(--accent); }
.send { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; flex-shrink: 0; transition: transform .15s; color: #fff; }
.send:active { transform: scale(.9); }
.unlock-banner { background: linear-gradient(135deg, rgba(124,109,255,.1), rgba(255,95,126,.08)); border: 1px solid rgba(124,109,255,.25); border-radius: 12px; padding: 12px 15px; margin: 10px 14px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.unlock-banner strong { color: var(--text); display: block; margin-bottom: 3px; font-size: 14px; }

/* ── PROFILE ── */
.profile-hero { padding: 52px 18px 22px; background: linear-gradient(180deg, #1c1a30, var(--bg)); text-align: center; }
.profile-big-ava { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 12px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; }
.profile-ava-img { object-fit: cover; border: 3px solid var(--accent); margin: 0; }
.profile-ava-wrap { width: 76px; height: 76px; }
.profile-ava-edit { position: absolute; bottom: -2px; right: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; border: 2px solid var(--bg); }
.ava-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.ava-menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600; transition: background .15s; }
.ava-menu-item:active { background: rgba(124,109,255,.1); }
.ava-menu-ico { font-size: 20px; width: 28px; text-align: center; }
.ava-menu-danger { color: #e74c3c; }
.ava-menu-danger:active { background: rgba(231,76,60,.1); }
.profile-name { font-size: 22px; font-weight: 900; }
.profile-role { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pstats { display: flex; gap: 10px; margin-top: 16px; justify-content: center; }
.pstat { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 16px; text-align: center; flex: 1; max-width: 90px; }
.pstat-val { font-size: 20px; font-weight: 800; }
.pstat-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }
.profile-list { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.profile-sections { padding: 8px 14px 8px; display: flex; flex-direction: column; gap: 4px; }
.psec-hd { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 14px 4px 6px; }
.psec-card { background: var(--card2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.psec-div { height: 1px; background: var(--border); margin: 0 16px; }
.pitem { padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background .15s; }
.pitem:active { background: rgba(255,255,255,.04); }
.pitem-no-cursor { cursor: default; }
.pitem-no-cursor:active { background: none; }
.pitem-danger:active { background: rgba(231,76,60,.06); }
.pitem-left { display: flex; align-items: center; gap: 12px; }
.pitem-ico { font-size: 20px; flex-shrink: 0; }
.pitem-label { font-weight: 600; font-size: 14px; }
.pitem-label-danger { color: var(--red); }
.pitem-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pitem-arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }
.pay-status { font-size: 12px; font-weight: 700; flex-shrink: 0; }

/* ── ACTIVE JOB ── */
.active-card { margin: 8px 14px; background: var(--card); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.active-top { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.status-bar { display: flex; gap: 6px; }
.step { flex: 1; height: 4px; border-radius: 99px; background: var(--border); }
.step.done { background: var(--green); }
.step.active { background: var(--accent); }
.active-actions { padding: 10px 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.active-actions .btn-sm { padding: 8px 10px; font-size: 11.5px; flex: 1 1 auto; min-width: 0; white-space: nowrap; }

/* ── BIDS SUB-TABS ── */
.bids-subtabs { display: flex; gap: 4px; padding: 4px; margin: 8px 14px 4px; background: var(--card2); border: 1px solid var(--border); border-radius: 14px; flex-shrink: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.18); }
.bids-stab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; border-radius: 10px; transition: color .35s cubic-bezier(.4,0,.2,1), background .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1); -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.bids-stab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .25s ease, transform .35s cubic-bezier(.5,1.5,.4,1); flex-shrink: 0; }
.bids-stab.on { color: var(--accent); background: linear-gradient(135deg, rgba(124,109,255,.22), rgba(255,95,126,.12)); box-shadow: 0 4px 14px -4px rgba(124,109,255,.40), inset 0 1px 0 rgba(255,255,255,.08); }
.bids-stab.on svg { stroke-width: 2.1; transform: scale(1.05); }
.bids-stab:active { transform: scale(.97); }
.bids-spane { display: none; overflow-y: auto; padding-bottom: 8px; }
.bids-spane.on { display: block; flex: 1; }
.pay-stab-badge { display: none; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 99px; padding: 0 5px; line-height: 17px; margin-right: 2px; }
.pay-stab-badge:not(:empty) { display: inline-flex; align-items: center; }
.theme-light .bids-subtabs { box-shadow: inset 0 1px 2px rgba(60,60,90,.06); }
.theme-light .bids-stab.on { background: linear-gradient(135deg, rgba(124,109,255,.14), rgba(255,95,126,.08)); box-shadow: 0 4px 14px -4px rgba(124,109,255,.30), inset 0 1px 0 rgba(255,255,255,.6); }

/* ── Radius (max work distance) chip & picker ───────────────────────────── */
.radius-chip {
  display: flex; align-items: center; gap: 12px;
  width: 100%; margin: 6px 0 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(124,109,255,.10), rgba(255,95,126,.06));
  border: 1.5px solid rgba(124,109,255,.30);
  border-radius: 16px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s cubic-bezier(.4,0,.2,1), box-shadow .25s ease, border-color .25s ease, background .25s ease;
  box-shadow: 0 2px 10px -4px rgba(124,109,255,.30);
}
.radius-chip:hover { border-color: rgba(124,109,255,.55); box-shadow: 0 6px 18px -6px rgba(124,109,255,.45); }
.radius-chip:active { transform: scale(.98); }
.radius-chip-ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff5f7e);
  box-shadow: 0 4px 12px -4px rgba(124,109,255,.55);
}
.radius-chip-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.radius-chip-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; min-width: 0; }
.radius-chip-label { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.radius-chip-val { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 2px; }
.radius-chip-val b { font-size: 18px; font-weight: 900; color: var(--accent); margin-inline-end: 2px; }
.radius-chip-edit {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--card2);
  border: 1px solid var(--border);
}
.radius-chip-edit svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-light .radius-chip { background: linear-gradient(135deg, rgba(124,109,255,.07), rgba(255,95,126,.04)); border-color: rgba(124,109,255,.22); box-shadow: 0 2px 10px -4px rgba(124,109,255,.18); }

/* Sheet contents */
.radius-sheet .radius-sub { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.55; margin: -6px 4px 18px; }
.radius-hero { text-align: center; margin: 0 auto 18px; max-width: 360px; }
.radius-hero-num {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #ff5f7e);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.radius-hero-num > span:first-child { font-size: 56px; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.radius-hero-unit { font-size: 18px; font-weight: 700; }
.radius-hero-bar { margin-top: 14px; height: 6px; background: var(--card2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; display: flex; justify-content: flex-start; }
.radius-hero-bar-fill { height: 100%; width: 0%; background: linear-gradient(to left, #ff5f7e, var(--accent)); border-radius: 99px; transition: width .25s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 12px rgba(124,109,255,.5); }

.radius-slider-wrap { margin: 0 6px 16px; }
.radius-range {
  --radius-pct: 25%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: linear-gradient(to left, var(--accent) 0%, #ff5f7e var(--radius-pct), var(--card2) var(--radius-pct), var(--card2) 100%);
  border: 1px solid var(--border);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.radius-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(124,109,255,.45), 0 0 0 6px rgba(124,109,255,.10);
  cursor: grab;
  transition: transform .15s ease, box-shadow .2s ease;
}
.radius-range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; box-shadow: 0 6px 16px rgba(124,109,255,.55), 0 0 0 10px rgba(124,109,255,.14); }
.radius-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(124,109,255,.45), 0 0 0 6px rgba(124,109,255,.10); cursor: grab; }
.radius-marks { display: flex; justify-content: space-between; margin-top: 10px; padding: 0 2px; color: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

.radius-presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.radius-preset {
  flex: 1 1 auto; min-width: 0;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  background: var(--card2);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.radius-preset:hover { border-color: rgba(124,109,255,.45); }
.radius-preset:active { transform: scale(.96); }
.radius-preset.on { color: #fff; background: linear-gradient(135deg, var(--accent), #ff5f7e); border-color: transparent; box-shadow: 0 6px 14px -4px rgba(124,109,255,.50); }

.radius-save { margin-top: 18px; }

/* ── Bio (קצת על עצמי) ──────────────────────────────────────────────────── */
.bio-field label { color: var(--text); }
.bio-textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  resize: vertical;
  min-height: 84px;
  max-height: 200px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bio-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,109,255,.12); }
.bio-counter-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 0 2px; }
.bio-hint { font-size: 11px; color: var(--muted); }
.bio-counter { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bio-counter b { color: var(--accent); font-weight: 800; }

/* Bio card inside personal-details section */
.mp-bio-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(124,109,255,.08), rgba(255,95,126,.04));
  border: 1.5px solid rgba(124,109,255,.22);
  border-radius: 14px;
}
.mp-bio-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; letter-spacing: .2px; }
.mp-bio-head svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mp-bio-text { font-size: 13.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-wrap: break-word; }

.mp-bio-empty {
  margin-top: 12px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  background: var(--card2);
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Public profile bio card */
.pp-bio {
  position: relative;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, rgba(124,109,255,.10), rgba(255,95,126,.05));
  border: 1.5px solid rgba(124,109,255,.25);
  border-radius: 18px;
  overflow: hidden;
}
.pp-bio-quote {
  position: absolute;
  top: -18px; inset-inline-start: -4px;
  font-size: 100px;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #ff5f7e);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  opacity: .35;
  pointer-events: none;
  user-select: none;
}
.pp-bio-head { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 8px; letter-spacing: .3px; }
.pp-bio-head svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-bio-text {
  position: relative;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  font-weight: 500;
}
.theme-light .pp-bio { background: linear-gradient(135deg, rgba(124,109,255,.07), rgba(255,95,126,.03)); border-color: rgba(124,109,255,.18); }

/* ── Report button on job cards ─────────────────────────────────────────── */
.jc-actions { display: flex; align-items: center; gap: 8px; }
.jc-report-btn {
  width: 30px;
  height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 9px;
  color: var(--red);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .15s ease;
  flex-shrink: 0;
}
.jc-report-btn:hover, .jc-report-btn:focus-visible {
  color: #fff;
  border-color: transparent;
  background: var(--red);
  outline: none;
}
.jc-report-btn:active { transform: scale(.92); }
.jc-report-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-light .jc-report-btn { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.22); }

/* ── Report sheet: reason list (purple / white / black palette) ─────────── */
.report-reasons { display: flex; flex-direction: column; gap: 8px; }
.report-reason {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.report-reason:hover { border-color: rgba(124,109,255,.4); }
.report-reason:active { transform: scale(.99); }
.report-reason input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.report-reason-ico {
  font-size: 20px; line-height: 1; flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(124,109,255,.10);
  border-radius: 10px;
  transition: background .2s ease;
}
.report-reason-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.report-reason-label { font-size: 14px; font-weight: 700; color: var(--text); }
.report-reason-desc { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.report-reason.on {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(124,109,255,.12), rgba(124,109,255,.04));
  box-shadow: 0 6px 16px -6px rgba(124,109,255,.45);
}
.report-reason.on .report-reason-label { color: var(--accent); }
.report-reason.on .report-reason-ico { background: rgba(124,109,255,.22); }
.htab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; border: none; background: transparent; border-radius: 10px; font-family: inherit; transition: color .35s cubic-bezier(.4,0,.2,1), background .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1); -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.htab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .25s ease, transform .35s cubic-bezier(.5,1.5,.4,1); flex-shrink: 0; }
.htab[data-dispute] { color: var(--red, #e74c3c); }
.htab.on { color: var(--accent); background: linear-gradient(135deg, rgba(124,109,255,.22), rgba(255,95,126,.12)); box-shadow: 0 4px 14px -4px rgba(124,109,255,.40), inset 0 1px 0 rgba(255,255,255,.08); }
.htab.on[data-dispute] { color: var(--red, #e74c3c); background: linear-gradient(135deg, rgba(231,76,60,.22), rgba(231,76,60,.10)); box-shadow: 0 4px 14px -4px rgba(231,76,60,.40), inset 0 1px 0 rgba(255,255,255,.08); }
.htab.on svg { stroke-width: 2.1; transform: scale(1.05); }
.htab:active { transform: scale(.97); }
.theme-light .htab.on { background: linear-gradient(135deg, rgba(124,109,255,.14), rgba(255,95,126,.08)); box-shadow: 0 4px 14px -4px rgba(124,109,255,.30), inset 0 1px 0 rgba(255,255,255,.6); }
.theme-light .htab.on[data-dispute] { background: linear-gradient(135deg, rgba(231,76,60,.14), rgba(231,76,60,.06)); box-shadow: 0 4px 14px -4px rgba(231,76,60,.28), inset 0 1px 0 rgba(255,255,255,.6); }
.cd-expired { animation: cdPulse 1s ease-in-out infinite; }
@keyframes cdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ── ISSUE REPORT OPTIONS ── */
.issue-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.iopt { background: var(--card2); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.iopt.on { border-color: var(--accent); background: rgba(124,109,255,.1); color: var(--accent); font-weight: 700; }

/* ── WORK ISSUE BADGE (on card) ── */
.work-issue-badge { margin-top: 8px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--gold); font-weight: 600; }

/* ── ON-WAY WARNING BANNER ── */
.on-way-warn { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); border-radius: 8px; padding: 6px 10px; font-size: 11px; color: var(--fg); text-align: center; margin-bottom: 6px; width: 100%; box-sizing: border-box; }

/* ── PHOTO PREVIEW GRID ── */
.photo-preview-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.photo-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.photo-uploading { width: 120px; height: 120px; border-radius: 8px; border: 2px dashed var(--accent); background: rgba(124,109,255,.06); display: flex; align-items: center; justify-content: center; }
.photo-uploading::after { content: ''; width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

/* ── LAZY IMAGE ── */
.lazy-img { opacity: 0; transition: opacity .3s ease; }
.lazy-img.loaded { opacity: 1; }
.img-skeleton { background: linear-gradient(90deg, var(--card2) 25%, rgba(124,109,255,.08) 50%, var(--card2) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: 8px; }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── BEFORE/AFTER GRID ── */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-col > .ba-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-align: center; }
.ba-col .ba-img-wrap { position: relative; width: 100%; padding-bottom: 100%; border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.ba-col .ba-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── AVATAR / FILE UPLOAD BUTTON ── */
.avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(124,109,255,.12);
  border: 2px dashed rgba(124,109,255,.5);
  border-radius: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: background .15s, border-color .15s;
  margin-top: 4px;
}
.avatar-upload-btn:hover { background: rgba(124,109,255,.22); border-color: var(--accent); }

/* ── SUB BANNER ── */
.sub-banner { margin: 8px 14px; background: linear-gradient(135deg, rgba(46,204,113,.08), rgba(124,109,255,.08)); border: 1px solid rgba(46,204,113,.25); border-radius: 14px; padding: 14px; }
.sub-banner h3 { font-size: 14px; font-weight: 700; color: var(--green); margin-bottom: 5px; }
.sub-banner p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── EMPTY ── */
.empty { text-align: center; padding: 52px 24px; color: var(--muted); }
.empty-ico { font-size: 44px; margin-bottom: 10px; }
.empty h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.empty p { font-size: 13px; line-height: 1.6; }

/* ── TOAST ── */
.toast { position: fixed; top: 58px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 18px; font-size: 13px; font-weight: 600; z-index: 999; white-space: nowrap; animation: toastPop .3s ease; pointer-events: none; }
.toast.ok { border-color: var(--green); color: var(--green); }
.toast.err { border-color: var(--red); color: var(--red); }
.toast.inf { border-color: var(--accent); color: var(--accent); }
@keyframes toastPop { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── S27: ADMIN MODAL (reusable; see js/components/modal.js) ──
   openModal/openConfirm/openForm renders this structure.  The overlay
   covers the viewport with a backdrop and centers a box.  RTL by
   default — Hebrew is canonical; the lang toggle inside the box can
   switch the body direction at will. */
.ad-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 12px; overflow: auto;
  animation: adModalFadeIn .12s ease-out;
}
.ad-modal-box {
  background: var(--card); color: var(--text);
  width: 100%; max-width: 560px;
  border-radius: 14px;
  padding: 18px 20px;
  direction: rtl;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .45);
  animation: adModalPop .15s ease-out;
}
.ad-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 12px;
}
.ad-modal-title { margin: 0; font-size: 18px; font-weight: 800; }
.ad-modal-close {
  background: transparent; border: none; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
  padding: 4px 8px; border-radius: 8px;
}
.ad-modal-close:hover { background: var(--card2); color: var(--text); }
.ad-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ad-modal-body { color: var(--text); }
.ad-modal-text { color: var(--text); line-height: 1.55; margin: 0 0 8px; }
.ad-modal-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ad-modal-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ad-modal-input {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px;
  background: var(--card2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.ad-modal-input:focus { border-color: var(--accent); }
.ad-modal-input-error { border-color: var(--red); }
.ad-modal-actions {
  display: flex; gap: 8px; justify-content: flex-start;
  margin-top: 14px; flex-wrap: wrap;
}
.ad-modal-actions .btn { min-width: 80px; }
.ad-btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.ad-btn-danger:hover { filter: brightness(1.1); }
.ad-btn-cancel { background: transparent; color: var(--muted); }
@keyframes adModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes adModalPop {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Mobile shrink */
@media (max-width: 480px) {
  .ad-modal-overlay { padding: 16px 6px; }
  .ad-modal-box { padding: 14px 14px; border-radius: 12px; }
  .ad-modal-title { font-size: 16px; }
}

/* ── S30: ADMIN UTILITIES ──
   Classes that replace the 15-20 most-repeated inline-style strings in
   js/screens/admin/dashboard.js.  Each rule mirrors the original inline
   bytes so the migration is pixel-equivalent — when a future change is
   needed, edit here once instead of N inline-style sites. */

/* Sticky list/section header — was `_SECH` template constant. */
.ad-sech {
  position: sticky; top: 0; z-index: 3;
  background: var(--card);
  font-weight: 700; padding: 8px 14px 4px;
}

/* Finance / form input — was `_finInp` template constant. */
.ad-input {
  padding: 7px 10px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
}
.ad-input-flex  { flex: 1; min-width: 110px; }
.ad-input-full  { width: 100%; box-sizing: border-box; }
.ad-input-stack { margin-bottom: 8px; }

/* Section padding helpers (admin shell is 14-px inset). */
.ad-pad-h   { padding: 0 14px; }
.ad-pad-hb  { padding: 0 14px 8px; }
.ad-pad-hbb { padding: 0 14px 16px; }
.ad-mt-1    { margin-top: 6px; }

/* Common flex rows. */
.ad-chips        { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-chips-row    { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ad-btn-row      { display: flex; gap: 6px; }
.ad-spread       { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ad-spread-wrap  { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-stack        { flex-direction: column; align-items: stretch; }
.ad-gap-2        { gap: 2px; }
.ad-gap-4        { gap: 4px; }
.ad-gap-6        { gap: 6px; }

/* Labels & weights. */
.ad-label    { font-weight: 600; margin: 6px 0 2px; }
.ad-title-sm { font-weight: 700; padding: 6px 14px 2px; }
.ad-bold     { font-weight: 700; }
.ad-semi     { font-weight: 600; }
.ad-thin     { font-weight: 400; }

/* Status text tags — S31 promoted to theme-aware tokens.  Each token
   has a per-theme override in .theme-light so the same class works
   with WCAG-AA contrast in both themes. */
.ad-tag-ok    { color: var(--ok); }
.ad-tag-err   { color: var(--danger); }
.ad-tag-warn  { color: var(--warn); }
.ad-tag-muted { color: var(--muted); }
.ad-tag-meta  { color: var(--text-meta-soft); }

/* Faded row — used on resolved notifications / lint-suppressed audit
   entries.  Was inline `opacity:.55` scattered across dashboard.js. */
.ad-faded { opacity: .55; }

/* Big icon glyph used on stat tiles. */
.ad-icon-lg { font-size: 20px; }

/* S49: a11y — visible :focus-visible outline on every keyboard-
   focusable element inside the admin surface, so tab-navigation is
   never invisible.  Scoped to the admin tab-pane to avoid disturbing
   the rest of the app's existing focus styles. */
.tab-pane :focus-visible,
.ad-modal-box :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* S46: brief outline pulse on the row the user navigated to via j/k. */
.ad-row-pulse {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  transition: outline-color .25s ease;
  animation: adRowPulse .7s ease;
}
@keyframes adRowPulse {
  0%   { outline-color: var(--accent); }
  60%  { outline-color: var(--accent); }
  100% { outline-color: transparent; }
}

/* ── S32: ADMIN MOBILE RESPONSIVE ──
   Wrappers + utilities that keep admin surfaces usable on narrow
   screens.  Admin renders flex rows (no <table>s), so the responsive
   work is mostly: keep sub-tab bars horizontally scrollable, hide
   low-value cells under 600px, give long row clusters a horizontal
   scroll fallback.  Tested at 375×667 + 768×1024 — no page-level
   horizontal scroll. */

/* Sub-tab bar that becomes a horizontally-scrolling chip strip on
   narrow screens.  Apply alongside .ad-chips on #finSecBar,
   #cmSecBar, #qmSecBar, #rskSecBar, #admSecBar.  Buttons use
   scroll-snap-align so taps land on a whole chip. */
.ad-secbar {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ad-secbar > * { scroll-snap-align: start; }

@media (max-width: 900px) {
  .ad-secbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Hide scrollbar so the strip looks like a tab bar.  Edge fade
       via mask-image so users see there is content offscreen. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image:
      linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
            mask-image:
      linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
  }
  .ad-secbar::-webkit-scrollbar { display: none; }
  .ad-secbar > * { flex-shrink: 0; }
}

/* Generic horizontal-scroll wrapper for wide row clusters (future
   tables, long stat grids that don't shrink gracefully).  Not used
   today but ships now so later phases (S38 invoices, S40 billing,
   S48 search-pager) can wrap their long rows in this without
   re-touching CSS. */
.ad-tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Hide low-value column / cell at narrow widths.  Used on secondary
   meta columns (e.g. timestamps with both abs + rel) that aren't
   needed at <600px. */
@media (max-width: 600px) {
  .col-hide-sm { display: none !important; }
}

/* Misc admin-narrow tweaks. */
@media (max-width: 600px) {
  /* Long admin-row clusters should stack on phone.  These were already
     mostly stacking but the spread variants kept side-by-side layout
     and overflowed when the right side had a long button label. */
  .ad-spread,
  .ad-spread-wrap {
    flex-wrap: wrap;
  }
  /* Inputs inside admin forms should fill their parent on phone. */
  .ad-input { width: 100%; box-sizing: border-box; }
  /* Padding helpers shrink a touch so 14px inset doesn't dominate
     phone widths. */
  .ad-pad-h, .ad-pad-hb, .ad-pad-hbb { padding-left: 10px; padding-right: 10px; }
}

/* ── TAB BADGE ── */
.tab-badge { position: absolute; top: 4px; right: calc(50% - 22px); background: var(--red); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; pointer-events: none; }
.tab { position: relative; }
@keyframes badgePop { 0% { transform: scale(0.3); } 55% { transform: scale(1.35); } 80% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes tabBounce { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-5px); } 65% { transform: translateY(-2px); } }
.tab-badge.pop { animation: badgePop 0.45s cubic-bezier(.36,.07,.19,.97) forwards; }
.tab.msg-bounce .tab-ico { display: inline-block; animation: tabBounce 0.5s ease forwards; }

/* ── CONVERSATION LIST ── */
.conv-list { display: flex; flex-direction: column; }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.conv-item:active { background: rgba(255,255,255,.04); }
.conv-item.conv-locked { opacity: .5; cursor: not-allowed; }
.conv-item.conv-locked:active { background: none; }
.conv-ava { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex-shrink: 0; }
.conv-body { flex: 1; min-width: 0; }
.conv-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-job { font-size: 12px; color: var(--accent); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-preview { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.conv-time { font-size: 11px; color: var(--muted); }
.conv-unread { background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.conv-sys { background: linear-gradient(135deg, rgba(124,109,255,.08), rgba(255,95,126,.06)); border-bottom: 1px solid var(--border); }

/* ── DISPUTE SHEET ── */
.dispute-opts { display: flex; flex-direction: column; gap: 8px; }
.dopt { padding: 13px; border-radius: 12px; background: var(--card2); border: 1.5px solid var(--border); cursor: pointer; transition: all .15s; }
.dopt:active { transform: scale(.98); }
.dopt.on { border-color: var(--accent); background: rgba(124,109,255,.08); }
.dopt h4 { font-size: 14px; font-weight: 700; }
.dopt p { font-size: 12px; color: var(--muted); margin-top: 3px; }

.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ── LOADING ── */
.loader { display: flex; justify-content: center; padding: 40px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PROVIDER HEADER ── */
.prov-hdr { display: flex; align-items: center; justify-content: space-between; padding: 48px 14px 10px; flex-shrink: 0; direction: ltr; }
.prov-hdr-title { font-size: 18px; font-weight: 900; letter-spacing: 4px; display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(120deg, #5bc8ff 0%, #b8a8ff 55%, #ff8fa8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.prov-hdr-title .fixy-mark { width: 22px; height: 22px; }
.prov-hdr-btn { width: 38px; height: 38px; border: none; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,.65); border-radius: 10px; padding: 0; }
.prov-hdr-btn:active { background: rgba(255,255,255,.08); }
.prov-hdr-bell { color: var(--gold); }

/* ── BELL BADGE ── */
.bell-badge { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 1.5px solid var(--bg); }

/* ── NOTIFICATIONS SCREEN ── */
.notif-scr { background: var(--bg); }
.notif-hdr { display: flex; align-items: center; justify-content: space-between; padding: 48px 14px 12px; flex-shrink: 0; }
.notif-hdr-title { font-size: 18px; font-weight: 800; flex: 1; text-align: center; }
.notif-back-btn { width: 36px; height: 36px; border: none; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.notif-back-btn:active { background: rgba(255,255,255,.08); }
.notif-settings-btn { width: 36px; height: 36px; border: none; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.notif-settings-btn:active { background: rgba(255,255,255,.08); }
.notif-read-all-btn { background: none; border: none; color: var(--accent); font-size: 12px; font-family: 'Heebo', sans-serif; font-weight: 600; cursor: pointer; padding: 4px 0; }

/* ── NOTIFICATION ROW ── */
.notif-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; position: relative; }
.notif-row:active { background: rgba(255,255,255,.04); }
.notif-row.unread { background: rgba(124,109,255,.05); }
.notif-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 700; }
.notif-text { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.notif-time { font-size: 10px; color: var(--muted); margin-top: 4px; opacity: .7; }
.notif-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

/* ── NOTIFICATION SETTINGS ── */
.notif-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.notif-setting-label { font-size: 14px; font-weight: 600; }
.notif-setting-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 99px; cursor: pointer; transition: background .2s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── ADMIN ── */
.admin-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
/* S52: legacy .admin-stat now matches the modern .ad-grp-stat style —
   compact, card2-bg, neat inner labels, hover lift.  Every tab that
   still renders .admin-stat (Finance / Content / Risk / QMon / Admins)
   gets the upgrade for free. */
.admin-stat { background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; text-align: start; transition: transform .12s ease, border-color .12s ease; }
.admin-stat:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.admin-stat .val { font-size: 22px; font-weight: 900; line-height: 1.1; color: var(--text); }
.admin-stat .lbl { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }
/* S52: .admin-row gets a faint accent rail on the start edge + hover
   lift so list rows feel like the new .ad-grp-card system without a
   per-tab rewrite.  Existing row internals (.admin-row-info etc.) keep
   working since this is additive. */
.admin-row { margin: 6px 14px; padding: 12px 14px 12px 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; display: flex;
  justify-content: space-between; align-items: center; gap: 10px;
  position: relative; transition: transform .12s ease, border-color .12s ease; }
.admin-row::before { content: ''; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px; background: var(--accent); opacity: 0;
  transition: opacity .15s ease; }
.admin-row:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.admin-row:hover::before { opacity: .6; }
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-info .name { font-weight: 700; font-size: 14px; color: var(--text); }
.admin-row-info .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* S52: admin sub-tab strip — replaces the previously plain "ad-secbar"
   chips with a softer, pill-style row that wraps cleanly and has a
   readable focus state.  Targets .ad-chips children inside .ad-secbar
   (Finance/Content/Risk/QMon/Admins sub-tabs). */
.ad-secbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding-block: 2px; }
.ad-secbar .btn,
.ad-secbar button { background: transparent; color: var(--muted); border: 1px solid transparent;
  font-weight: 700; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.ad-secbar .btn:hover,
.ad-secbar button:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.ad-secbar .btn.on,
.ad-secbar button.on { background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* S52: "metric soup" → tile row.  When a tab still has a paragraph of
   "Foo: 0% · Bar: 1 · Baz: ★3.5" type text, wrapping it in
   .ad-metrics auto-arranges to a flex row of compact chips. */
.ad-metrics { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.ad-metrics > .m { display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 3px 8px; background: var(--card2);
  border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.ad-metrics > .m b { color: var(--text); font-weight: 800; }
.ad-metrics > .m.tone-ok b { color: var(--ok, #4ade80); }
.ad-metrics > .m.tone-warn b { color: var(--warn, #fbbf24); }
.ad-metrics > .m.tone-err b { color: var(--danger, #f87171); }

/* S52: collapsible expandable block — used for the QMon stack traces
   that were overflowing horizontally.  The label is always visible;
   the body is hidden until aria-expanded="true". */
.ad-collapse { margin-top: 6px; }
.ad-collapse-head { background: transparent; border: 0; padding: 4px 8px; cursor: pointer;
  color: var(--muted); font-size: 11px; font-weight: 700; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background .12s ease, color .12s ease; }
.ad-collapse-head:hover { background: var(--card2); color: var(--text); }
.ad-collapse-head::before { content: '▸'; display: inline-block; transition: transform .15s ease; }
.ad-collapse-head[aria-expanded="true"]::before { transform: rotate(90deg); }
.ad-collapse-body { display: none; margin-top: 6px; padding: 8px 10px;
  background: var(--card2); border: 1px solid var(--border); border-radius: 8px;
  font-family: monospace; font-size: 11px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word; max-height: 240px; overflow-y: auto;
  direction: ltr; text-align: start; color: var(--danger, #f87171); }
.ad-collapse-head[aria-expanded="true"] + .ad-collapse-body { display: block; }

/* ── ADMIN — dashboard overview (S50) ──
   A structured, modern overview that replaces the legacy "two flat
   admin-stat-grid rows" arrangement.  Stats are grouped by domain
   (people / jobs / money / performance) into "group cards" with a
   colored accent rail on the start edge.  Alerts collapse to compact
   pills so a single open dispute no longer takes 80px of vertical
   space.  Revenue gets a real horizontal bar mini-chart.

   Naming is consistent with the existing `.ad-*` system (see S30
   extraction in style.css) so future work can grep one prefix. */

.ad-overview { padding: 0 14px; display: flex; flex-direction: column; gap: 14px; }
.ad-sec-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin: 4px 2px 2px; }
.ad-sec-h::before { content: ''; width: 4px; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2, var(--accent))); }

/* Card that GROUPS several stats under a domain (people, jobs…). */
.ad-grp-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 14px 12px; position: relative; overflow: hidden; }
.ad-grp-card::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 3px; background: var(--ad-grp-accent, var(--accent)); opacity: .85; }
.ad-grp-card.acc-people  { --ad-grp-accent: #5bc8ff; }
.ad-grp-card.acc-jobs    { --ad-grp-accent: var(--accent); }
.ad-grp-card.acc-money   { --ad-grp-accent: var(--ok, #4ade80); }
.ad-grp-card.acc-perf    { --ad-grp-accent: #ffb86b; }

.ad-grp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px; }
.ad-grp-title { font-weight: 800; font-size: 14px; color: var(--text); display: flex;
  align-items: center; gap: 8px; }
.ad-grp-title svg { width: 16px; height: 16px; stroke: var(--ad-grp-accent, var(--accent));
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ad-grp-meta { font-size: 11px; color: var(--muted); font-weight: 600; }

.ad-grp-stats { display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.ad-grp-stat { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px;
  background: var(--card2); border-radius: 11px; border: 1px solid var(--border); min-width: 0; }
.ad-grp-stat .v { font-size: 22px; font-weight: 900; color: var(--text); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-grp-stat .l { font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.ad-grp-stat .v.tone-ok    { color: var(--ok, #4ade80); }
.ad-grp-stat .v.tone-warn  { color: var(--warn, #fbbf24); }
.ad-grp-stat .v.tone-err   { color: var(--danger, #f87171); }

/* Compact alert pill row — replaces big pink rectangles. */
.ad-alerts { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-alert-pill { display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--danger, #f87171) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger, #f87171) 45%, transparent);
  color: var(--text); border-radius: 999px; padding: 4px 10px 4px 6px;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.ad-alert-pill:hover { transform: translateY(-1px); filter: brightness(1.1); }
.ad-alert-pill .n { background: var(--danger, #f87171); color: #fff;
  min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 900; font-size: 12px;
  padding: 0 6px; }
.ad-alert-pill.tone-warn { background: color-mix(in srgb, var(--warn, #fbbf24) 14%, transparent);
  border-color: color-mix(in srgb, var(--warn, #fbbf24) 45%, transparent); }
.ad-alert-pill.tone-warn .n { background: var(--warn, #fbbf24); color: #1a1a26; }
.ad-alerts-empty { font-size: 12px; color: var(--ok, #4ade80); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--ok, #4ade80) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok, #4ade80) 35%, transparent);
  border-radius: 999px; padding: 4px 12px; }

/* Revenue mini-chart — horizontal bars sized to gross per day.  Bar
   length is computed in JS (style="--w:NN%"); the colored fill animates
   in for a tiny touch of motion that draws the eye to the data. */
.ad-revchart { display: flex; flex-direction: column; gap: 4px; }
.ad-rev-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px;
  align-items: center; font-size: 12px; }
.ad-rev-row .d { color: var(--muted); font-weight: 700; direction: ltr; text-align: end; }
.ad-rev-row .bar { position: relative; height: 14px; background: var(--card2);
  border-radius: 999px; overflow: hidden; }
.ad-rev-row .bar > i { position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), #5bc8ff);
  width: var(--w, 0%); transform-origin: left center;
  animation: adRevGrow .55s ease-out both; }
[dir="rtl"] .ad-rev-row .bar > i { transform-origin: right center; }
.ad-rev-row .v { font-weight: 800; color: var(--text); min-width: 64px; text-align: end; }
@keyframes adRevGrow { from { width: 0; } to { width: var(--w, 0%); } }

/* Desktop: two-column group layout (people+money in one row, jobs+perf in next). */
@media (min-width: 1100px) {
  .ad-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .ad-overview .ad-sec-h { grid-column: 1 / -1; }
  .ad-overview .ad-grp-card.span-2 { grid-column: 1 / -1; }
}

/* ── ADMIN — info-icon "help" system (S51) ──
   A clickable "?" pill the admin can press next to any metric label to
   open a short Hebrew explanation in a modal.  Lives on labels in the
   deep-analytics and spec-gaps sections where the headline numbers are
   meaningful only with context (refund_ratio, retention_repeat_rate,
   stale_in_progress, etc.).  See _help() / _showHelp() in dashboard.js. */
.ad-help { display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; padding: 0; margin-inline-start: 4px; vertical-align: middle;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px; font-size: 11px; font-weight: 900; line-height: 1; cursor: pointer;
  transition: background .12s ease, transform .12s ease; }
.ad-help:hover, .ad-help:focus-visible {
  background: var(--accent); color: #fff; transform: scale(1.08); outline: none; }
/* S54: page-level help inside .app-top h1 gets a slightly larger pill so
   admins can spot it next to the tab title.  Adds the word "הסבר"
   via ::after when there's room, hidden on narrow viewports. */
.app-top h1 .ad-help { width: 22px; height: 22px; font-size: 13px; margin-inline-start: 8px; }
@media (min-width: 720px) {
  .app-top h1 .ad-help { width: auto; padding: 3px 10px 4px; border-radius: 999px; gap: 4px; }
  .app-top h1 .ad-help::after { content: 'הסבר'; font-size: 12px; font-weight: 800; }
  html[lang="en"] .app-top h1 .ad-help::after { content: 'Explain'; }
}
.ad-help-body { font-size: 14px; line-height: 1.65; color: var(--text); }
.ad-help-body p { margin: 0 0 8px; }
.ad-help-body .formula { display: block; margin: 6px 0; padding: 8px 12px;
  background: var(--card2); border-radius: 8px; font-family: monospace; font-size: 13px;
  direction: ltr; text-align: start; }
.ad-help-body strong { color: var(--accent); }

/* ── ADMIN — ranked row (top-N list) ── */
.ad-rank-list { display: flex; flex-direction: column; gap: 6px; }
.ad-rank-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px;
  align-items: center; font-size: 13px; padding: 5px 8px; background: var(--card2);
  border-radius: 9px; border: 1px solid var(--border); }
.ad-rank-row .r { width: 22px; height: 22px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; color: var(--muted); }
.ad-rank-row.r1 .r { background: linear-gradient(135deg, #ffd76b, #ff8a3d); color: #1a1a26; border-color: transparent; }
.ad-rank-row.r2 .r { background: linear-gradient(135deg, #d6d6e6, #a0a0b8); color: #1a1a26; border-color: transparent; }
.ad-rank-row.r3 .r { background: linear-gradient(135deg, #cf9a6b, #8a5a3a); color: #fff; border-color: transparent; }
.ad-rank-row .n { font-weight: 700; color: var(--text); min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; position: relative; }
.ad-rank-row .n::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -2px;
  height: 2px; width: var(--w, 0%); background: linear-gradient(90deg, var(--accent), #5bc8ff);
  border-radius: 2px; opacity: .6; }
[dir="rtl"] .ad-rank-row .n::after { transform: scaleX(-1); }
.ad-rank-row .v { font-weight: 800; color: var(--accent); font-size: 13px; }

/* ── ADMIN — 24-hour bar chart (peak hours) ── */
.ad-hours-chart { display: grid; grid-template-columns: 36px 1fr 32px;
  align-items: center; gap: 6px; row-gap: 3px; }
.ad-hours-chart .hh { font-family: monospace; font-size: 11px; color: var(--muted); text-align: start; direction: ltr; }
.ad-hours-chart .hb { height: 8px; background: var(--card2); border-radius: 3px; position: relative; overflow: hidden; }
.ad-hours-chart .hb > i { position: absolute; inset: 0; width: var(--w, 0%);
  background: linear-gradient(90deg, var(--accent), #5bc8ff); border-radius: 3px;
  animation: adRevGrow .45s ease-out both; }
.ad-hours-chart .hv { font-size: 11px; font-weight: 700; color: var(--text); text-align: end; }
.ad-hours-chart .hb.peak > i { background: linear-gradient(90deg, #ff8a3d, var(--accent2, #ff5f7e)); }

/* ── ADMIN — funnel chart ── */
.ad-funnel { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.ad-fn-row { display: grid; grid-template-columns: 1fr auto;
  gap: 4px 10px; align-items: center; }
.ad-fn-row .ftext { font-size: 12px; color: var(--text); font-weight: 600; }
.ad-fn-row .fnum { font-size: 12px; font-weight: 800; color: var(--text); }
.ad-fn-row .fbar { grid-column: 1 / -1; height: 14px; border-radius: 6px;
  background: var(--card2); position: relative; overflow: hidden; }
.ad-fn-row .fbar > i { position: absolute; inset: 0; width: var(--w, 0%);
  background: linear-gradient(90deg, var(--accent), #5bc8ff);
  animation: adRevGrow .55s ease-out both; }
.ad-fn-row .fbar > i.tone-warn { background: linear-gradient(90deg, var(--warn, #fbbf24), #ff8a3d); }
.ad-fn-row .fbar > i.tone-err  { background: linear-gradient(90deg, var(--danger, #f87171), #ff5f7e); }
.ad-fn-row .fpct { position: absolute; inset-block: 0; inset-inline-end: 6px;
  font-size: 11px; font-weight: 800; color: #fff; display: flex; align-items: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* ── ADMIN — mini-spark (trends) ── */
.ad-spark { display: flex; align-items: flex-end; gap: 2px; height: 48px;
  padding: 4px 0; direction: ltr; }
.ad-spark > i { flex: 1; min-width: 4px; background: var(--accent);
  border-radius: 2px 2px 0 0; opacity: .8;
  animation: adRevGrow .4s ease-out both; }
.ad-spark > i.tone-warn { background: var(--warn, #fbbf24); }
.ad-spark > i.tone-err  { background: var(--danger, #f87171); }
.ad-spark-empty { font-size: 11px; color: var(--muted); display: flex; align-items: center;
  justify-content: center; height: 48px; }

/* ── ADMIN — page-level deep section grid ── */
.ad-deep-grid { display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding: 0 14px; }
@media (min-width: 1200px) {
  .ad-deep-grid { grid-template-columns: repeat(3, 1fr); }
  .ad-deep-grid .span-2 { grid-column: span 2; }
}

/* ── RICH-TEXT EDITOR (S56) — legal-CMS WYSIWYG ── */
.rte-wrap { display: flex; flex-direction: column; gap: 6px;
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  padding: 6px 8px; background: var(--card); border-bottom: 1px solid var(--border); }
.rte-btn { min-width: 28px; height: 28px; padding: 0 8px;
  background: transparent; color: var(--text); border: 1px solid transparent;
  border-radius: 7px; font-weight: 700; font-size: 13px; cursor: pointer; line-height: 1;
  transition: background .12s ease, border-color .12s ease; }
.rte-btn:hover { background: var(--card2);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.rte-btn.on { background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.rte-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rte-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.rte-surface { padding: 12px 14px; outline: none; line-height: 1.6;
  font-size: 14px; color: var(--text);
  background: var(--card); overflow-y: auto; max-height: 480px;
  font-family: 'Heebo', system-ui, sans-serif; }
.rte-surface:focus { outline: none; }
.rte-surface.is-empty::before { content: attr(data-placeholder);
  color: var(--muted); pointer-events: none; }
.rte-surface h1 { font-size: 22px; font-weight: 900; margin: 12px 0 8px; }
.rte-surface h2 { font-size: 18px; font-weight: 800; margin: 10px 0 6px; }
.rte-surface h3 { font-size: 16px; font-weight: 800; margin: 8px 0 4px; }
.rte-surface p { margin: 0 0 8px; }
.rte-surface ul, .rte-surface ol { margin: 6px 22px 10px; padding-inline-start: 16px; }
.rte-surface li { margin: 2px 0; }
.rte-surface a { color: var(--accent); text-decoration: underline; }
.rte-surface blockquote { margin: 8px 0; padding: 6px 12px;
  border-inline-start: 3px solid var(--accent); background: var(--card2);
  border-radius: 0 8px 8px 0; color: var(--text); }
[dir="ltr"] .rte-surface blockquote { border-radius: 8px 0 0 8px; }
.rte-source { padding: 12px 14px; border: 0; background: var(--card);
  color: var(--text); font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.6; resize: vertical; width: 100%;
  box-sizing: border-box; outline: none; }
.rte-source:focus { outline: 1px solid var(--accent); outline-offset: -1px; }

/* ── THEME TOGGLE (S53) — sun/moon button used in desk chrome + admin header ── */
.fixy-theme-btn { display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer; padding: 0;
  background: color-mix(in srgb, var(--accent, #7c6dff) 12%, transparent);
  color: var(--text); border: 1px solid color-mix(in srgb, var(--accent, #7c6dff) 35%, transparent);
  transition: background .15s ease, border-color .15s ease, transform .12s ease, color .15s ease; }
.fixy-theme-btn:hover { background: color-mix(in srgb, var(--accent, #7c6dff) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent, #7c6dff) 55%, transparent);
  transform: translateY(-1px); }
.fixy-theme-btn:focus-visible { outline: 2px solid var(--accent, #7c6dff); outline-offset: 2px; }
.fixy-theme-btn svg { width: 56%; height: 56%; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fixy-theme-btn-md { width: 36px; height: 36px; }
.fixy-theme-btn-sm { width: 30px; height: 30px; }

/* Desk chrome: the toggle floats below the brand link, full-width-y. */
.desk-chrome .fixy-theme-btn { margin-top: 6px; align-self: flex-start; }

/* Admin header: sits inline with the FIXY wordmark + Admin label. */
.tab-pane .app-top .fixy-theme-btn { margin-inline-start: 6px; vertical-align: middle; }

/* ── HAMBURGER DRAWER ── */
.hm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 300; display: none; }
.hm-overlay.open { display: block; }
.hm-drawer { position: absolute; top: 0; bottom: 0; left: 0; width: 82%; max-width: 300px; background: var(--card); overflow-y: auto; padding: 52px 0 32px; animation: drawerIn .3s cubic-bezier(.2,1,.3,1); direction: rtl; }
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.hm-profile { display: flex; align-items: center; gap: 12px; padding: 8px 18px 20px; border-bottom: 1px solid var(--border); }
.hm-ava { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; flex-shrink: 0; }
.hm-brand { font-size: 16px; font-weight: 900; letter-spacing: 3px; background: linear-gradient(120deg, #5bc8ff 0%, #b8a8ff 55%, #ff8fa8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hm-username { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hm-section { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; padding: 18px 14px 6px; }
.hm-section svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hm-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin: 2px 8px; border-radius: 12px; cursor: pointer; transition: background .25s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
.hm-item:hover { background: rgba(124,109,255,.06); }
.hm-item:hover .hm-arr { transform: translateX(-3px); color: var(--accent); }
.hm-item:active { background: rgba(124,109,255,.12); transform: scale(.98); }
.hm-item-static, .hm-item-static:hover, .hm-item-static:active { cursor: default; background: transparent; transform: none; }
.hm-ico { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, rgba(124,109,255,.12), rgba(255,95,126,.06)); border: 1px solid rgba(124,109,255,.14); color: var(--accent); }
.hm-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-label { flex: 1; font-size: 14px; font-weight: 600; }
.hm-arr { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; transition: transform .25s ease, color .25s ease; }
.hm-arr svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-val { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-divider { height: 1px; background: var(--border); margin: 10px 14px; }
.hm-logout { color: var(--red); }
.hm-logout .hm-label { color: var(--red); }
.hm-logout .hm-ico { background: linear-gradient(135deg, rgba(231,76,60,.16), rgba(231,76,60,.06)); border-color: rgba(231,76,60,.20); color: var(--red); }
.hm-logout:hover { background: rgba(231,76,60,.08); }
.hm-logout:hover .hm-arr { color: var(--red); }
.hm-contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card2); border-radius: 12px; font-size: 14px; color: var(--muted); }
.theme-light .hm-item:hover { background: rgba(124,109,255,.04); }

/* ── PROVIDER PROFILE ── */
.pp-trust { display: flex; flex-direction: column; align-items: center; padding: 52px 18px 16px; background: linear-gradient(180deg, #1c1a30, var(--bg)); text-align: center; flex-shrink: 0; }
.pp-back-row { align-self: flex-start; width: 100%; margin-bottom: 10px; }
.pp-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin-bottom: 10px; border: 2.5px solid var(--accent); flex-shrink: 0; }
.pp-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.pp-avatar-init { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: 28px; font-weight: 900; color: #fff; }
.pp-trust-name { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.pp-trust-rating { font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.pp-trust-area { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.pp-verified-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(46,204,113,.12); color: var(--green); border: 1px solid rgba(46,204,113,.3); border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 700; margin-top: 4px; }
/* verified full block inside profile tab */
.pp-verified-full { display: flex; align-items: center; gap: 12px; background: rgba(46,204,113,.08); border: 1.5px solid rgba(46,204,113,.25); border-radius: 14px; padding: 14px 16px; }
.pp-verified-icon { font-size: 24px; flex-shrink: 0; }
/* Tabs */
.pp-tabs { display: flex; gap: 4px; padding: 4px; margin: 8px 14px 4px; background: var(--card2); border: 1px solid var(--border); border-radius: 14px; flex-shrink: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.18); }
.pp-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 10px; transition: color .35s cubic-bezier(.4,0,.2,1), background .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1); -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.pp-tab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .25s ease, transform .35s cubic-bezier(.5,1.5,.4,1); flex-shrink: 0; }
.pp-tab.on { color: var(--accent); background: linear-gradient(135deg, rgba(124,109,255,.22), rgba(255,95,126,.12)); box-shadow: 0 4px 14px -4px rgba(124,109,255,.40), inset 0 1px 0 rgba(255,255,255,.08); }
.pp-tab.on svg { stroke-width: 2.1; transform: scale(1.05); }
.pp-tab:active { transform: scale(.97); }
.theme-light .pp-tabs { box-shadow: inset 0 1px 2px rgba(60,60,90,.06); }
.theme-light .pp-tab.on { background: linear-gradient(135deg, rgba(124,109,255,.14), rgba(255,95,126,.08)); box-shadow: 0 4px 14px -4px rgba(124,109,255,.30), inset 0 1px 0 rgba(255,255,255,.6); }
/* Body */
.pp-body { padding: 16px 16px 40px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.pp-sec { margin-bottom: 22px; }
.pp-sec-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 10px; }
/* Stats */
.pp-stats { display: flex; gap: 10px; }
.pp-stat { flex: 1; background: var(--card2); border-radius: 12px; padding: 14px 8px; text-align: center; border: 1px solid var(--border); }
.pp-stat-val { font-size: 20px; font-weight: 900; color: var(--accent); margin-bottom: 3px; }
.pp-stat-lbl { font-size: 10px; color: var(--muted); font-weight: 600; }
/* Categories */
.pp-cats { display: flex; flex-wrap: wrap; gap: 6px; }
/* Reviews collapsible */
.pp-reviews-header { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 12px 14px; background: var(--card2); border-radius: 12px; border: 1px solid var(--border); }
.pp-expand-arrow { margin-right: auto; color: var(--muted); font-size: 12px; }
.pp-reviews-body { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pp-review { background: var(--card2); border-radius: 12px; padding: 13px; border: 1px solid var(--border); }
.pp-review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.pp-review-stars { font-size: 13px; letter-spacing: 1px; }
.pp-review-name { font-size: 12px; color: var(--muted); }
.pp-review-text { font-size: 13px; color: var(--text); line-height: 1.6; }
/* Works tab */
.pp-work-card { background: var(--card2); border-radius: 14px; padding: 14px; border: 1px solid var(--border); margin-bottom: 14px; }
.pp-work-header { display: flex; align-items: center; gap: 10px; }
.pp-work-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.pp-work-cat { font-weight: 400; color: var(--muted); font-size: 13px; }
.pp-work-photos { display: flex; flex-direction: row; gap: 12px; margin-bottom: 10px; }
.pp-photo-group { }
.pp-photo-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.pp-photo-row { display: flex; gap: 5px; flex-wrap: wrap; }
.pp-work-img { width: 130px; height: 130px; object-fit: cover; border-radius: 9px; cursor: pointer; }
.pp-work-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.pp-work-review { background: rgba(245,197,66,.07); border: 1px solid rgba(245,197,66,.2); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.pp-work-review-text { font-size: 13px; color: var(--text); margin-top: 5px; font-style: italic; line-height: 1.5; }
/* Portfolio management */
.portfolio-job-item { display: flex; flex-direction: column; background: var(--card2); border-radius: 12px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); overflow: hidden; }
.portfolio-job-info { flex: 1; min-width: 0; }
.portfolio-job-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portfolio-job-cat { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.portfolio-thumbs { display: flex; gap: 4px; }
.portfolio-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 7px; }

/* ── PROFESSIONAL CARD ── */
.mp-pro-card { margin: 0 14px 12px; background: linear-gradient(135deg, var(--card), var(--card2)); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: 0 4px 18px -8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); }
.mp-pro-row { display: flex; align-items: center; justify-content: space-around; }
.mp-pro-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mp-pro-stat-val { font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.mp-pro-stat-lbl { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
.mp-pro-divider { width: 1px; height: 36px; background: linear-gradient(180deg, transparent, var(--border), transparent); }
.mp-pro-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.mp-pro-cat { font-size: 12px; padding: 5px 12px; border-radius: 99px; background: linear-gradient(135deg, rgba(124,109,255,.18), rgba(255,95,126,.10)); color: var(--accent); font-weight: 600; border: 1px solid rgba(124,109,255,.22); }

/* ── MY PROFILE ACCORDION ── */
.mp-sections { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.mp-section { background: linear-gradient(180deg, var(--card), var(--card2)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1); }
.mp-section.open { border-color: rgba(124,109,255,.35); box-shadow: 0 8px 24px -10px rgba(124,109,255,.30), inset 0 1px 0 rgba(255,255,255,.05); }
.mp-sec-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; user-select: none; transition: background .35s cubic-bezier(.4,0,.2,1); -webkit-tap-highlight-color: transparent; }
.mp-sec-header:active { background: rgba(124,109,255,.06); }
.mp-sec-ico { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, rgba(124,109,255,.10), rgba(255,95,126,.06)); border: 1px solid rgba(124,109,255,.14); color: var(--accent); font-size: 18px; transition: background .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.5,1.5,.4,1); }
.mp-sec-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .25s ease; }
.mp-section.open .mp-sec-ico { background: linear-gradient(135deg, rgba(124,109,255,.30), rgba(255,95,126,.18)); box-shadow: 0 4px 14px -4px rgba(124,109,255,.45), inset 0 1px 0 rgba(255,255,255,.10); transform: scale(1.04); }
.mp-section.open .mp-sec-ico svg { stroke-width: 2.1; }
.mp-sec-title { font-size: 15px; font-weight: 700; flex: 1; transition: color .35s cubic-bezier(.4,0,.2,1); letter-spacing: .1px; }
.mp-section.open .mp-sec-title { color: var(--accent); }
.mp-sec-arrow { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: transform .35s cubic-bezier(.5,1.3,.4,1), color .35s cubic-bezier(.4,0,.2,1); flex-shrink: 0; font-size: 12px; }
.mp-sec-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-section.open > .mp-sec-header .mp-sec-arrow { transform: rotate(180deg); color: var(--accent); }
.mp-sec-body { padding: 0 16px 16px; display: none; animation: mpSecFade .35s cubic-bezier(.4,0,.2,1); }
.mp-section.open > .mp-sec-body { display: block; }
@keyframes mpSecFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.mp-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; gap: 12px; }
.mp-row:last-child { border-bottom: none; }
.mp-row-label { color: var(--muted); font-size: 13px; flex-shrink: 0; font-weight: 500; }
.mp-row-val { font-weight: 600; text-align: left; direction: ltr; word-break: break-all; max-width: 60%; }
.mp-row-val.empty { color: var(--muted); font-style: italic; font-weight: 400; }
.mp-edit-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 18px; border-radius: 12px; border: 1px solid rgba(124,109,255,.35); background: linear-gradient(135deg, rgba(124,109,255,.16), rgba(255,95,126,.08)); color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .25s ease, transform .2s ease, box-shadow .25s ease; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.mp-edit-btn:hover { box-shadow: 0 4px 14px -4px rgba(124,109,255,.40); }
.mp-edit-btn:active { transform: scale(.97); background: linear-gradient(135deg, rgba(124,109,255,.26), rgba(255,95,126,.14)); }
.mp-cats-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mp-cat-tag { padding: 7px 14px; border-radius: 99px; background: linear-gradient(135deg, rgba(124,109,255,.16), rgba(255,95,126,.08)); border: 1px solid rgba(124,109,255,.22); font-size: 12px; font-weight: 600; color: var(--text); }
.mp-review-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mp-review-item:last-child { border-bottom: none; }
.mp-review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mp-review-name { font-size: 13px; font-weight: 600; }
.mp-review-stars { font-size: 13px; }
.mp-review-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mp-verify-status { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.mp-verify-ok { background: rgba(0,200,100,.1); color: #00c864; border: 1px solid rgba(0,200,100,.22); }
.mp-verify-pending { background: rgba(245,158,11,.1); color: var(--gold); border: 1px solid rgba(245,158,11,.22); }
.mp-setting-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: opacity .2s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
.mp-setting-item:last-child { border-bottom: none; }
.mp-setting-item:active { opacity: .7; transform: scale(.99); }
.mp-setting-ico { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, rgba(124,109,255,.12), rgba(255,95,126,.06)); border: 1px solid rgba(124,109,255,.14); color: var(--accent); font-size: 16px; }
.mp-setting-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mp-setting-label { font-size: 14px; font-weight: 600; flex: 1; }
.mp-setting-arrow { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; flex-shrink: 0; transition: transform .25s ease, color .25s ease; }
.mp-setting-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-setting-item:hover .mp-setting-arrow { transform: translateX(-3px); color: var(--accent); }
.mp-setting-danger { color: var(--red); }
.mp-setting-danger .mp-setting-ico { background: linear-gradient(135deg, rgba(231,76,60,.16), rgba(231,76,60,.06)); border-color: rgba(231,76,60,.20); color: var(--red); }
.mp-action-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; cursor: pointer; background: linear-gradient(135deg, rgba(124,109,255,.10), rgba(255,95,126,.05)); border: 1px solid rgba(124,109,255,.20); border-radius: 14px; transition: background .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease; -webkit-tap-highlight-color: transparent; }
.mp-action-item:first-of-type { margin-top: 4px; }
.mp-action-item:hover { border-color: rgba(124,109,255,.40); box-shadow: 0 4px 14px -4px rgba(124,109,255,.30); }
.mp-action-item:hover .mp-setting-arrow { transform: translateX(-3px); color: var(--accent); }
.mp-action-item:active { transform: scale(.98); background: linear-gradient(135deg, rgba(124,109,255,.18), rgba(255,95,126,.10)); }
.mp-reviews-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.mp-reviews-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.mp-reviews-star { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(245,158,11,.20), rgba(245,158,11,.08)); border: 1px solid rgba(245,158,11,.25); color: var(--gold); flex-shrink: 0; }
.mp-reviews-star svg { width: 14px; height: 14px; stroke: currentColor; fill: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* ── LIGHT THEME ── */
.theme-light { --bg: #f4f4f8; --card: #ffffff; --card2: #ebebf2; --border: #dcdce8; --text: #1a1a2e; --muted: #6666aa; --ok: #15803d; --danger: #b91c1c; --warn: #b45309; --text-muted-strong: rgba(26, 26, 46, .55); --text-meta-soft: rgba(26, 26, 46, .68); }

/* Tab bar */
.theme-light .tabs { background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(248,248,253,.94) 100%); border-top: 1px solid rgba(0,0,0,.06); box-shadow: 0 -8px 32px -8px rgba(60,60,90,.18); }
.theme-light .tab.on .tab-ico { background: linear-gradient(135deg, rgba(124,109,255,.18), rgba(255,95,126,.10)); box-shadow: 0 6px 18px -4px rgba(124,109,255,.32), inset 0 1px 0 rgba(255,255,255,.6); }

/* Gradient headers – replace hardcoded dark purple with soft lavender */
.theme-light .splash-wrap { background: linear-gradient(160deg, #e8e4f8 0%, #d8d0f0 40%, #f0ecff 100%); }
.theme-light .splash-logo { background: rgba(255,255,255,.92); }
.theme-light .splash-title { background: linear-gradient(120deg, #2d8fe6 0%, #6a5ad8 55%, #d63a73 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: none; }
.theme-light .splash-sub { color: rgba(60,50,100,.55); }
.theme-light .splash-orb { opacity: .2; }
.theme-light .auth-page { background: linear-gradient(160deg, #e8e4f8 0%, var(--bg) 40%); }
.theme-light .auth-title { background: linear-gradient(135deg, #1a1a2e 30%, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.theme-light .auth-tabs { background: #fff; border-color: #dcdce8; }
.theme-light .auth-tab { color: #888; }
.theme-light .auth-tab.on { color: #fff; background: var(--accent); }
.theme-light .auth-field input, .theme-light .auth-field select { background: #fff; border-color: #dcdce8; color: var(--text); }
.theme-light .auth-field input::placeholder { color: #999; }
.theme-light .auth-role-opt { background: #fff; border-color: #dcdce8; }
.theme-light .auth-role-opt.on { border-color: var(--accent); background: rgba(124,109,255,.06); }
.theme-light .login-hero { background: linear-gradient(180deg, #e8e4f8, var(--bg)); }
.theme-light .detail-hd { background: linear-gradient(180deg, #d8d4f0, var(--bg)); }
.theme-light .profile-hero { background: linear-gradient(180deg, #d8d4f0, var(--bg)); }
.theme-light .profile-big-ava { background: linear-gradient(135deg, #9b8cff, #c084fc); color: #fff; }
.theme-light .profile-ava-img { border-color: #7c6dff; box-shadow: 0 2px 12px rgba(124,109,255,.3); }
.theme-light .profile-ava-edit { background: #7c6dff; border-color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.theme-light .pp-trust { background: linear-gradient(180deg, #d8d4f0, var(--bg)); }
.theme-light .mp-section { background: #fff; border-color: #dcdce8; }
.theme-light .mp-sec-header:active { background: rgba(124,109,255,.04); }

/* Chat – "them" bubbles use hardcoded dark color */
.theme-light .msg.them { background: var(--card2); border-color: var(--border); color: var(--text); }

/* Provider header buttons – hardcoded white color */
.theme-light .prov-hdr-btn { color: rgba(0,0,0,.5); }
.theme-light .prov-hdr-btn:active { background: rgba(0,0,0,.07); }

/* Delete / danger button – too washed-out on white background */
.theme-light .btn-d { background: rgba(231,76,60,.14); border-color: rgba(231,76,60,.35); }

/* Bell badge border adapts to light bg automatically via var(--bg) */

/* Role-select cards (legacy) */

/* ── GOOGLE PLACES AUTOCOMPLETE ── */
.pac-container {
  background: var(--card, #161620); border: 1px solid var(--border, #2a2a3a);
  border-radius: 12px; margin-top: 4px; font-family: 'Heebo', sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 10001;
}
.pac-item {
  padding: 10px 14px; border-top: 1px solid var(--border, #2a2a3a);
  color: var(--text, #eeeef5); cursor: pointer; font-size: 14px; line-height: 1.4;
}
.pac-item:first-child { border-top: none; }
.pac-item:hover, .pac-item-selected { background: var(--card2, #1e1e2a); }
.pac-item-query { color: var(--text, #eeeef5); font-weight: 500; }
.pac-icon { display: none; }
.pac-matched { color: var(--accent, #7c6dff); font-weight: 600; }
.pac-logo::after { display: none; }
/* Light theme overrides */
.theme-light .pac-container { background: #fff; border-color: #e0e0e0; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.theme-light .pac-item { border-top-color: #eee; color: #333; }
.theme-light .pac-item:hover, .theme-light .pac-item-selected { background: #f5f5f5; }
.theme-light .pac-item-query { color: #333; }

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE LIGHTBOX (in-app zoom)
   ═══════════════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .94);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; opacity: 0; pointer-events: none;
  transition: opacity .18s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.lightbox.lb-open { opacity: 1; pointer-events: auto; }
.lightbox .lb-close,
.lightbox .lb-nav {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: none; cursor: pointer; backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); display: flex; align-items: center;
  justify-content: center; z-index: 2; transition: background .15s, transform .15s;
}
.lightbox .lb-close {
  top: max(16px, env(safe-area-inset-top, 0px)); right: 16px;
  width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1;
}
.lightbox .lb-counter {
  position: absolute; top: max(20px, env(safe-area-inset-top, 0px)); left: 50%;
  transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600;
  background: rgba(0, 0, 0, .45); padding: 6px 14px; border-radius: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2;
}
.lightbox .lb-nav {
  top: 50%; transform: translateY(-50%); width: 50px; height: 50px;
  border-radius: 50%; font-size: 36px; font-weight: 300; padding-bottom: 4px;
}
.lightbox .lb-prev { right: 18px; }
.lightbox .lb-next { left: 18px; }
.lightbox .lb-close:hover,
.lightbox .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox .lb-close:active,
.lightbox .lb-nav:active { transform: scale(.92); }
.lightbox .lb-nav:active { transform: translateY(-50%) scale(.92); }
.lightbox .lb-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; padding: 64px 70px; touch-action: none; cursor: grab;
}
.lightbox .lb-slide:active { cursor: grabbing; }
.lightbox img, .lightbox video {
  max-width: 100%; max-height: 100%; object-fit: contain;
  -webkit-user-drag: none; user-select: none;
}
@media (max-width: 480px) {
  .lightbox .lb-slide { padding: 56px 12px; }
  .lightbox .lb-nav { width: 40px; height: 40px; font-size: 28px; }
  .lightbox .lb-prev { right: 8px; }
  .lightbox .lb-next { left: 8px; }
}

/* Make any zoomable photo show a subtle hover affordance */
[data-zoomable] { cursor: zoom-in; }

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE UPLOADER (modern picker + tiles)
   ═══════════════════════════════════════════════════════════════════════════ */
.iu-root { width: 100%; }
.iu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px; align-items: stretch;
}
.iu-tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px;
  overflow: hidden; background: var(--card2, #1e1e2a);
  border: 1px solid var(--border, #2a2a3a);
}
.iu-tile img, .iu-tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.iu-tile-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--muted, #888); font-size: 22px;
}
.iu-vid-badge {
  position: absolute; bottom: 6px; right: 6px; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  pointer-events: none;
}
.iu-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: rgba(0, 0, 0, .65); color: #fff;
  font-size: 12px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; line-height: 1; padding: 0;
  transition: background .15s, transform .15s;
}
.iu-remove:hover { background: rgba(220, 38, 38, .85); transform: scale(1.1); }
.iu-progress {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: #fff; font-size: 12px; font-weight: 700; gap: 4px;
}
.iu-progress svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.iu-prog-bg { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 4; }
.iu-prog-fg {
  fill: none; stroke: var(--accent, #7c6dff); stroke-width: 4;
  stroke-linecap: round; transition: stroke-dasharray .15s linear;
}
.iu-error {
  position: absolute; inset: 0; background: rgba(220, 38, 38, .82); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 6px; font-size: 12px;
}
.iu-error span { font-size: 22px; }
.iu-retry {
  background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.iu-tile.has-error { border-color: rgba(220, 38, 38, .6); }
.iu-picker {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px;
  border: 1.5px dashed var(--accent, #7c6dff);
  background: color-mix(in srgb, var(--accent, #7c6dff) 7%, transparent);
  color: var(--accent, #7c6dff);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; padding: 6px; font-family: inherit;
  transition: background .15s, transform .15s, border-color .15s;
}
.iu-picker:hover {
  background: color-mix(in srgb, var(--accent, #7c6dff) 14%, transparent);
  transform: translateY(-1px);
}
.iu-picker:active { transform: translateY(0); }
.iu-picker-icon { font-size: 26px; line-height: 1; }
.iu-picker-label { font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; }
.iu-picker-hint { font-size: 10px; color: var(--muted, #888); line-height: 1.2; text-align: center; }

/* Source-picker sheet items */
.iu-src-list { display: flex; flex-direction: column; gap: 8px; }
.iu-src-item {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--card2, #1e1e2a); border: 1px solid var(--border, #2a2a3a);
  border-radius: 14px; cursor: pointer; color: var(--text, #eeeef5);
  text-align: right; font-family: inherit; transition: transform .15s, background .15s;
}
.iu-src-item:hover { background: var(--card, #14141d); transform: translateY(-1px); }
.iu-src-ico {
  font-size: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #7c6dff) 14%, transparent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.iu-src-title { font-size: 14px; font-weight: 700; }
.iu-src-sub { font-size: 12px; color: var(--muted, #888); margin-top: 2px; }

/* Compact variant for chat & avatar overlays */
.iu-root.iu-compact .iu-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.iu-root.iu-compact .iu-picker-icon { font-size: 22px; }
.iu-root.iu-compact .iu-picker-label { font-size: 11px; }
.theme-light .pac-matched { color: var(--accent, #7c6dff); }

/* ═══════════════════════════════════════════════════════════════════════════
   DESKTOP ADAPTATION — full-screen layout (no phone frame).
   When the SPA is opened on a desktop browser, the app takes over the whole
   viewport. The bottom tab bar becomes a vertical side rail on the start side
   (right in RTL), and screen content is centered with a comfortable max-width
   so wide screens don't produce awkward line lengths.
   Mobile layout is unchanged — all rules live inside the min-width query.
   ═══════════════════════════════════════════════════════════════════════════ */
.desk-chrome { display: none; }

@media (min-width: 900px) {
  /* ── Full-bleed: app owns the whole viewport ── */
  html, body {
    overflow: hidden;
    height: 100dvh;
    width: 100vw;
  }
  body { background: var(--bg); }

  .phone {
    max-width: none;
    width: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
  }

  /* ── Vertical side rail (replaces bottom tab bar) ──
     Sits on the start side (right in RTL). Width reserved by .scr padding. */
  .scr.app-wrap,
  .scr {
    padding-bottom: 0;
    padding-inline-start: 92px;
  }
  .tabs {
    /* absolute (relative to .phone), NOT fixed: the admin app mounts
       inside .phone {position:relative;overflow:hidden}, so a fixed
       rail detaches and vanishes at some widths. absolute keeps it
       pinned to the app shell; overflow-y below stops the clipping
       that was the original bug. */
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 92px;
    height: auto;
    max-width: none;
    transform: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3px;
    padding: 12px 8px;
    /* The rail can hold many tabs; let it scroll instead of clipping
       the last ones (ניטור / סיכון were cut off on laptop heights). */
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border-top: none;
    border-inline-end: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .tabs::-webkit-scrollbar { width: 5px; }
  .tabs::-webkit-scrollbar-thumb {
    background: var(--border); border-radius: 3px;
  }
  .tab {
    flex: 0 0 auto;
    padding: 9px 4px;
    border-radius: 13px;
    font-size: 10px;
    line-height: 1.15;
    gap: 4px;
    transition: background .2s, color .2s;
  }
  .tab .tab-ico { width: 38px; height: 26px; }
  .tab .tab-ico svg { width: 19px; height: 19px; }
  .tab:hover { background: rgba(124, 109, 255, .07); }
  .tab.on { background: rgba(124, 109, 255, .12); }
  /* Hide the small indicator pill that sits at the top of each tab on mobile */
  .tab::before { display: none; }
  .theme-light .tabs { background: var(--card); border-inline-end-color: var(--border); }

  /* ── Content area: center within a comfortable max-width on wide screens ── */
  .tab-pane {
    max-width: 1080px;
    margin-inline: auto;
    width: 100%;
  }
  .prov-hdr,
  .app-top,
  .notif-hdr {
    max-width: 1080px;
    margin-inline: auto;
    width: 100%;
    box-sizing: border-box;
  }
  /* Denser stat tiles on desktop — the mobile 2-column layout leaves
     huge gaps and forces long scrolling over a work session. Flow into
     as many compact columns as the width allows. */
  .admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }
  .admin-stat { padding: 12px 10px; }
  .admin-stat .val { font-size: 22px; }
  /* Tighter list rows = more visible at once. */
  .admin-row { padding-block: 9px; }
  /* Screens that don't use .tab-pane (chat, job-detail, profile pages, etc.)
     still get a sensible reading width when their direct children are wrapped
     in common containers. */
  .scr .conv-list,
  .scr .bids-subtabs,
  .scr .bids-spane {
    max-width: 900px;
    margin-inline: auto;
    width: 100%;
    box-sizing: border-box;
  }

  /* ── Back-to-website pill — top-left of the viewport
     (the side rail occupies the right) ── */
  .desk-chrome {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 60;
    display: flex;
    align-items: center;
    pointer-events: none;
  }
  .desk-chrome > * { pointer-events: auto; }
  .desk-chrome-brand-link { display: none; }
  .desk-chrome-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .15s, border-color .2s;
  }
  .desk-chrome-back:hover {
    background: var(--card);
    border-color: var(--accent);
    transform: translateY(-1px);
  }
  .desk-chrome-back svg { transform: scaleX(-1); }

  /* ── Bottom sheets become centered modals on desktop ── */
  .overlay {
    align-items: center;
    justify-content: center;
  }
  .sheet {
    border-radius: 20px;
    width: calc(100% - 32px);
    max-width: 520px;
    max-height: 86vh;
    margin: 0 auto;
    animation: sheetFadeIn .28s cubic-bezier(.2, 1, .3, 1);
  }
  @keyframes sheetFadeIn {
    from { transform: translateY(16px) scale(.96); opacity: 0; }
    to   { transform: translateY(0)     scale(1);  opacity: 1; }
  }
  .overlay .sheet > .handle:first-child { display: none; }
}
