/* ============================================================
   على أصولها — نظام التصميم
   واجهة عربية RTL، موبايل أولاً، لوحة دافئة مستوحاة من الزليج
   ============================================================ */

:root {
  --bg: #F6F2EA;
  --bg-soft: #EFE8DB;
  --bg-deep: #E7DFCF;
  --surface: #FFFFFF;
  --surface-2: #FBF8F1;
  --ink: #13241F;
  --ink-2: #4B5B55;
  --ink-3: #84918C;
  --line: #E7E0D2;
  --line-2: #F0EADD;
  --green: #0E5B4C;
  --green-2: #0A463A;
  --green-3: #12705C;
  --green-100: #E3EFEA;
  --gold: #D4922F;
  --gold-2: #B87A1D;
  --gold-100: #FBF0DC;
  --terra: #C4553A;
  --terra-100: #FBE7E1;
  --red: #B23A2E;
  --red-100: #FBE7E4;
  --blue: #1D6FA8;
  --blue-100: #E8F2FA;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 16px 36px -22px rgba(19, 36, 31, .45);
  --shadow-soft: 0 7px 20px -15px rgba(19, 36, 31, .45);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cg fill='none' stroke='%23F0C166' stroke-opacity='.09'%3E%3Cpath d='M42 6l7 14 15-2-6 14 11 10-15 2-2 15-10-11-14 6 2-15-14-7 14-7-2-15 14 6z'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: 'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #DCD4C4;
  background-image:
    radial-gradient(1100px 620px at 12% -10%, #FBF7ED 0%, rgba(251, 247, 237, 0) 62%),
    radial-gradient(900px 540px at 105% 105%, #CBBFA9 0%, rgba(203, 191, 169, 0) 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%230E5B4C' stroke-opacity='.06'%3E%3Cpath d='M60 8l9 19 21-3-8 20 15 14-21 3-3 21-14-15-19 8 3-21-19-9 19-9-3-21 19 8z'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button, input, textarea, select { font-family: inherit; }
button { color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

.ic { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--ink-3); }
.small { font-size: 11px; }
.eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .4px; color: var(--green); margin: 0 0 3px; }
.hidden { display: none !important; }

/* ---------------- الهيكل ---------------- */
.app-shell {
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.app-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #D6CDBD transparent;
}
.app-scroll::-webkit-scrollbar { width: 4px; }
.app-scroll::-webkit-scrollbar-thumb { background: #D6CDBD; border-radius: 99px; }
main { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 100%; }

@media (min-width: 560px) {
  body { display: grid; place-items: center; padding: 22px; }
  .app-shell {
    height: min(880px, calc(100dvh - 44px));
    border-radius: 38px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 44px 90px -34px rgba(10, 30, 24, .6);
  }
}

.screen {
  padding: 0 16px 30px;
  animation: fadeUp .3s ease both;
  flex: 1 0 auto;
  min-height: 100%;
}

/* ---------------- الشريط السفلي ---------------- */
.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 253, 249, .95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  position: relative;
  z-index: 30;
}
.tabbar.hidden { display: none; }
.tab-btn {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 4px;
  border-radius: 13px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.tab-btn .ic { width: 22px; height: 22px; }
.tab-btn.active { color: var(--green); background: var(--green-100); }
.tab-btn:active { transform: scale(.97); }

/* ---------------- الأزرار ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(14, 91, 76, .9);
  transition: transform .15s, filter .2s, background .2s;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(140deg, #F1C368, #D89A34);
  color: #2A1C06;
  box-shadow: 0 14px 28px -14px rgba(212, 146, 47, .95);
}
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { border-color: #D4CBB8; }
.btn-danger-ghost { background: #FFF7F5; border: 1.5px solid #F2D2CB; color: var(--red); box-shadow: none; }
.btn-danger-ghost:hover { border-color: #E7B4A9; background: #FFF1ED; }
.btn-danger-ghost .ic { color: var(--red); }
.btn-light { background: #fff; color: var(--green); box-shadow: var(--shadow-soft); }
.btn-ghost-light { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .26); color: #fff; box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 14px; border-radius: 11px; font-size: 11.5px; }
.btn-sm .ic { width: 15px; height: 15px; }
.link-more {
  display: inline-flex; align-items: center; gap: 2px;
  background: none; border: 0; padding: 4px;
  color: var(--green); font-size: 11px; font-weight: 800; cursor: pointer;
}
.link-more .ic { width: 14px; height: 14px; }
.text-btn {
  border: 0; background: none; color: var(--green);
  font-size: 11px; font-weight: 800; cursor: pointer; padding: 6px; flex: none;
}
.icon-btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px; background: #fff;
  border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; position: relative;
  transition: transform .15s;
}
.icon-btn:active { transform: scale(.95); }
.icon-btn .ic { width: 20px; height: 20px; }
.dot {
  position: absolute; top: 9px; inset-inline-end: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--terra); box-shadow: 0 0 0 2px #fff;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 30%; color: #fff; font-weight: 800; line-height: 1;
  letter-spacing: 0; flex: none; user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
  box-shadow: 0 7px 16px -9px rgba(19, 36, 31, .5);
}
.avatar.ring { box-shadow: 0 0 0 4px #fff, 0 12px 24px -12px rgba(19, 36, 31, .55); }

.v-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 800; color: #7A4E10;
  background: var(--gold-100); border: 1px solid #F0DBAF;
  border-radius: 999px; padding: 3px 7px; white-space: nowrap;
}
.v-badge .ic { width: 11px; height: 11px; }

/* ---------------- النصوص والتقييم ---------------- */
h1 { font-size: 26px; font-weight: 900; line-height: 1.35; letter-spacing: -.2px; }
h2 { font-size: 17px; font-weight: 900; line-height: 1.4; }
h3 { font-size: 13.5px; font-weight: 800; }
p { line-height: 1.75; }

.section { margin-top: 26px; }
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.sec-head h2 { margin: 0; }
.sec-head .link-more { margin-inline-start: auto; }

.stars { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.stars .ic { width: 12px; height: 12px; }
.stars .ic.on { color: #E3A63A; }
.stars .ic.off { color: #DCD5C7; }
.stars.lg .ic { width: 17px; height: 17px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
}

/* ---------------- واجهة الترحيب ---------------- */
.welcome {
  min-height: 100%;
  background:
    radial-gradient(120% 90% at 100% 0%, #12705C 0%, #0B4A3E 48%, #07342B 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}
.welcome:before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--pattern);
  background-size: 84px 84px;
  opacity: .9;
  pointer-events: none;
}
.welcome > * { position: relative; z-index: 1; }
.w-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 900; letter-spacing: .2px; }
.w-logo { display: block; height: 46px; width: auto; }
.brand-mark {
  width: 35px; height: 35px; border-radius: 12px;
  background: linear-gradient(145deg, #F5CD7C, #D89A34);
  color: #2A1C06; display: grid; place-items: center; flex: none;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55);
}
.brand-mark .ic { width: 20px; height: 20px; }
.w-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 22px 0 6px; }
.w-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: 1.6px; color: #F0C166; margin-bottom: 13px; }
.w-hero h1 { font-size: 31px; line-height: 1.42; font-weight: 900; letter-spacing: -.3px; }
.w-hero h1 em { font-style: normal; color: #F0C166; position: relative; display: inline-block; }
.w-hero h1 em:after {
  content: ''; position: absolute; inset-inline: 0; bottom: 3px; height: 7px;
  background: rgba(240, 193, 102, .2); border-radius: 99px; z-index: -1;
}
.w-hero p { font-size: 12px; line-height: 1.95; color: rgba(255, 255, 255, .72); margin-top: 13px; max-width: 315px; }
.w-art { height: 148px; margin-top: 12px; position: relative; }
.w-orb {
  position: absolute; inset-inline-start: 4px; bottom: 0;
  width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(240, 193, 102, .24), rgba(240, 193, 102, .03) 65%);
  border: 1px solid rgba(240, 193, 102, .28);
  display: grid; place-items: center;
}
.w-orb:before { content: ''; position: absolute; inset: 13px; border-radius: 50%; border: 1px dashed rgba(240, 193, 102, .35); }
.w-orb .ic { width: 44px; height: 44px; color: #F0C166; }
.w-tile {
  position: absolute; width: 51px; height: 51px; border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid; place-items: center; color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .55);
}
.w-tile .ic { width: 24px; height: 24px; }
.w-tile.t1 { inset-inline-end: 4px; bottom: 84px; transform: rotate(-7deg); }
.w-tile.t2 { inset-inline-end: 64px; bottom: 22px; transform: rotate(5deg); color: #F0C166; }
.w-tile.t3 { inset-inline-end: 0; bottom: 4px; transform: rotate(9deg); }

.w-trust { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; }
.w-trust div {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .84);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px; padding: 8px 10px;
}
.w-trust .ic { width: 15px; height: 15px; color: #F0C166; }
.w-actions { display: flex; flex-direction: column; gap: 8px; }
.w-note { text-align: center; font-size: 9px; color: rgba(255, 255, 255, .4); margin-top: 7px; }

/* ---------------- الرئيسية ---------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 0 4px;
}
.topbar-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
}
.loc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  max-width: 64%; min-width: 0; flex: 0 1 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; font-size: 11.5px; font-weight: 700;
  color: var(--ink); box-shadow: var(--shadow-soft); cursor: pointer;
}
.loc-chip .ic { width: 15px; height: 15px; color: var(--green); }
.loc-chip .ic:last-child { width: 13px; height: 13px; color: var(--ink-3); }
.loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.greet { margin-top: 17px; }
.greet p { font-size: 12.5px; color: var(--ink-2); margin-bottom: 2px; }
.greet h1 { margin: 0; }

.search {
  display: flex; align-items: center; gap: 2px;
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 16px; padding: 5px;
  margin-top: 15px; box-shadow: var(--shadow-soft);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--green-3); box-shadow: 0 0 0 4px rgba(18, 112, 92, .08); }
.search-ic { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.search-ic .ic { width: 18px; height: 18px; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: none;
  background: transparent; font-size: 12px; color: var(--ink); padding: 0 2px;
}
.search input::placeholder { color: #A6AFA9; }
.mic-btn {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px;
  background: var(--green-100); color: var(--green);
  display: grid; place-items: center; cursor: pointer;
}
.mic-btn .ic { width: 19px; height: 19px; }

.live-card {
  width: 100%; margin-top: 15px; border: 0; border-radius: 20px;
  padding: 13px 14px; text-align: right; font-family: inherit;
  background: linear-gradient(120deg, #0C5144, #093E33);
  color: #fff; display: block; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 34px -20px rgba(10, 62, 51, .95);
}
.live-card:after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 76px 76px;
  opacity: .55; pointer-events: none;
}
.live-card > * { position: relative; z-index: 1; }
.live-top { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7FE0B9; flex: none;
  box-shadow: 0 0 0 4px rgba(127, 224, 185, .16); animation: pulse 1.9s infinite;
}
.live-eta { margin-inline-start: auto; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px 9px; font-size: 9.5px; }
.live-body { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.live-ic { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; flex: none; }
.live-ic .ic { width: 19px; height: 19px; }
.live-body div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.live-body b { font-size: 13px; }
.live-body span { font-size: 10.5px; color: rgba(255, 255, 255, .7); }
.live-go { margin-inline-start: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .13); display: grid; place-items: center; flex: none; }
.live-go .ic { width: 14px; height: 14px; }

.urgent-banner {
  width: 100%; display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 11px 12px;
  border: 1px solid #F0D9A8; border-radius: 17px;
  background: linear-gradient(110deg, #FDF4E1, #FAE7C6);
  text-align: right; font-family: inherit; color: #5A3B0C;
  cursor: pointer; box-shadow: 0 9px 22px -18px rgba(180, 120, 30, .9);
}
.urgent-ic {
  width: 38px; height: 38px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; color: var(--gold-2); flex: none;
  box-shadow: 0 5px 12px -7px rgba(180, 120, 30, .6);
}
.urgent-ic .ic { width: 19px; height: 19px; }
.urgent-txt { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.urgent-txt b { font-size: 12.5px; }
.urgent-txt span { font-size: 10px; color: #8A6425; }
.urgent-go {
  margin-inline-start: auto; display: flex; align-items: center; gap: 1px;
  font-size: 10.5px; font-weight: 800; color: #7A4E10;
  background: rgba(255, 255, 255, .75); padding: 6px 8px;
  border-radius: 999px; white-space: nowrap; flex: none;
}
.urgent-go .ic { width: 12px; height: 12px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 3px 9px; background: #fff;
  border: 1px solid var(--line-2); border-radius: 16px;
  font-size: 10.5px; font-weight: 800; color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow-soft);
  transition: transform .15s, border-color .15s;
}
.cat:hover { border-color: #D9D0BE; }
.cat:active { transform: scale(.96); }
.cat-ic { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.cat-ic .ic { width: 22px; height: 22px; }
.cat-ic.sm { width: 36px; height: 36px; border-radius: 11px; }
.cat-ic.sm .ic { width: 18px; height: 18px; }
.cat-ic.lg { width: 54px; height: 54px; border-radius: 17px; }
.cat-ic.lg .ic { width: 27px; height: 27px; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 16px; }
.trust-item {
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 10px 5px 9px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 3px;
  box-shadow: var(--shadow-soft);
}
.trust-item .ic { width: 18px; height: 18px; color: var(--green); }
.trust-item b { font-size: 9.5px; line-height: 1.3; }
.trust-item span { font-size: 8.5px; color: var(--ink-3); line-height: 1.45; }

.hscroll {
  display: flex; gap: 9px; overflow-x: auto; padding: 2px 16px 8px;
  margin: 0 -16px; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

.pop-card {
  flex: 0 0 166px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 17px; padding: 11px; text-align: right;
  cursor: pointer; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 4px;
  font-family: inherit;
}
.pop-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pop-price { font-size: 10.5px; font-weight: 800; color: var(--green); background: var(--green-100); padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.pop-price small { font-size: 7.5px; font-weight: 700; opacity: .72; margin-inline-end: 2px; }
.pop-card > b { font-size: 12px; line-height: 1.45; margin-top: 3px; }
.pop-meta { font-size: 9.5px; color: var(--ink-3); }
.pop-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 10px; font-weight: 800; color: var(--gold-2);
}
.pop-cta .ic { width: 12px; height: 12px; }

/* بطاقات بصور */
.pop-card { padding: 8px; gap: 3px; }
.pop-photo {
  display: block; height: 92px; border-radius: 12px; position: relative;
  background-image: linear-gradient(180deg, rgba(8, 32, 26, .04) 45%, rgba(8, 32, 26, .45)), var(--photo);
  background-size: cover; background-position: center;
}
.pop-price {
  position: absolute; top: 6px; inset-inline-end: 6px;
  background: rgba(255, 255, 255, .94); color: var(--green);
  box-shadow: 0 2px 8px rgba(8, 32, 26, .18);
}
.pop-dur {
  position: absolute; bottom: 6px; inset-inline-start: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8px; font-weight: 700; color: #fff;
  background: rgba(8, 32, 26, .55); border: 1px solid rgba(255, 255, 255, .28);
  padding: 3px 6px; border-radius: 999px; backdrop-filter: blur(5px);
}
.pop-dur .ic { width: 9px; height: 9px; }

/* فيديو الرئيسية */
.video-card {
  display: block; width: 100%; height: 172px; margin: 4px 0 12px;
  border: 0; padding: 0; border-radius: 22px; overflow: hidden;
  position: relative; cursor: pointer; color: #fff; text-align: right;
  font-family: inherit; box-shadow: var(--shadow-soft);
  background: #143a30;
}
.vc-photo {
  position: absolute; inset: 0; background-image: var(--photo);
  background-size: cover; background-position: center 38%;
  transition: transform .5s ease;
}
.video-card:active .vc-photo { transform: scale(1.04); }
.vc-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7, 30, 24, .9) 8%, rgba(7, 30, 24, .34) 52%, rgba(7, 30, 24, .08));
}
.vc-play {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); border: 1.5px solid rgba(255, 255, 255, .7);
  display: grid; place-items: center; backdrop-filter: blur(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.vc-play .ic { width: 19px; height: 19px; fill: #fff; margin-inline-start: 2px; }
.vc-txt {
  position: absolute; inset-inline: 14px; bottom: 11px;
  display: flex; flex-direction: column; gap: 2px;
}
.vc-txt b { font-size: 13.5px; font-weight: 800; }
.vc-txt span { font-size: 9.5px; color: rgba(255, 255, 255, .82); }
.vc-dur {
  position: absolute; top: 10px; left: 10px;
  font-size: 8.5px; font-weight: 800; letter-spacing: .5px;
  background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .3);
  padding: 3px 7px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* شاشة الفيديو */
.video-stage { border-radius: 16px; overflow: hidden; background: #05110d; margin-top: 2px; }
.video-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #05110d; }
.video-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 2px; }
.video-meta span {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; color: var(--green);
  background: var(--green-100); padding: 4px 8px; border-radius: 999px;
}
.video-meta .ic { width: 10px; height: 10px; }
.video-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 12px; }
.vt {
  aspect-ratio: 1 / 1; border-radius: 12px; cursor: pointer; color: #fff;
  background-image: linear-gradient(180deg, rgba(6, 26, 21, .02) 35%, rgba(6, 26, 21, .72)), var(--photo);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 6px;
}
.vt b { font-size: 8px; font-weight: 700; line-height: 1.45; }

/* خريطة التتبع */
.tm-card { padding: 0; overflow: hidden; margin-top: 12px; }
.tm-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; padding: 12px 13px 9px;
}
.tm-head b { display: block; font-size: 11.5px; }
.tm-head div > span { font-size: 9px; color: var(--ink-3); }
.tm-live {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 8.5px; font-weight: 800; color: #1B7A52;
  background: #E4F3EA; padding: 3px 7px; border-radius: 999px;
}
.tm-live i {
  width: 5px; height: 5px; border-radius: 50%; background: #2FB37C;
  box-shadow: 0 0 0 0 rgba(47, 179, 124, .5); animation: tmDot 1.7s infinite;
}
@keyframes tmDot {
  0% { box-shadow: 0 0 0 0 rgba(47, 179, 124, .45); }
  70% { box-shadow: 0 0 0 6px rgba(47, 179, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 179, 124, 0); }
}
.tm-canvas {
  position: relative; margin: 0 10px; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--line-2); background: #EAF0E7;
}
.tm-svg { display: block; width: 100%; height: auto; }
.tm-blocks rect { fill: #F7F3E9; stroke: #E2DBCA; stroke-width: 1; }
.tm-streets path { stroke: #fff; stroke-width: 10; fill: none; stroke-linecap: round; }
.tm-label { font-family: inherit; font-size: 8px; font-weight: 600; fill: #8C9B8E; }
.tm-badge { font-family: inherit; font-size: 8px; font-weight: 800; fill: #0E5B4C; }
.tm-route { stroke: #fff; stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tm-route-dash {
  stroke: var(--green); stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-dasharray: 6 7; animation: routeDash 1.5s linear infinite;
}
@keyframes routeDash { to { stroke-dashoffset: -13; } }
.tm-halo {
  transform-box: fill-box; transform-origin: center;
  animation: tmHalo 2s ease-out infinite;
}
@keyframes tmHalo {
  0% { transform: scale(.72); opacity: .95; }
  100% { transform: scale(1.35); opacity: 0; }
}
.tm-eta {
  position: absolute; top: 8px; inset-inline-end: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .95); color: var(--green);
  font-size: 8.5px; font-weight: 800; padding: 4px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(14, 91, 76, .14);
}
.tm-eta .ic { width: 10px; height: 10px; }
.tm-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 13px 11px; font-size: 9.5px; color: var(--ink-3);
}
.tm-foot > span {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-foot .ic { width: 12px; height: 12px; color: var(--green); flex: none; }
.tm-foot .text-btn { flex: none; display: inline-flex; align-items: center; gap: 2px; }
.tm-foot .text-btn .ic { width: 11px; height: 11px; }

/* شاشة تتبع كبيرة */
.track-map-big {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: #EAF0E7; margin-top: 2px;
}
.tm-sheet-status { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin: 11px 0 9px; }
.tm-sheet-status b { font-size: 13px; }
.tm-sheet-status > span:last-child { width: 100%; font-size: 9.5px; color: var(--ink-3); }
.tm-rows { background: #fff; border: 1px solid var(--line-2); border-radius: 15px; padding: 2px 12px; }
.tm-row {
  display: flex; align-items: center; gap: 8px; padding: 9px 0;
  border-bottom: 1px dashed var(--line); font-size: 10px;
}
.tm-row:last-child { border-bottom: 0; }
.tm-row .ic { width: 15px; height: 15px; color: var(--green); flex: none; }
.tm-row span { color: var(--ink-3); flex: 1; }
.tm-row b { font-size: 10.5px; text-align: left; }
.tm-sheet-actions { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-top: 11px; }
.tm-sheet-actions .btn { padding: 0 8px; font-size: 10.5px; gap: 4px; }
.tm-sheet-actions .btn .ic { width: 14px; height: 14px; }

/* صورة مكبّرة */
.photo-view {
  border-radius: 16px; overflow: hidden; margin-top: 2px;
  border: 1px solid var(--line-2); background: #0B221C;
}
.photo-view img { display: block; width: 100%; max-height: 56vh; object-fit: cover; }

.mini-artisan {
  flex: 0 0 196px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 17px; padding: 12px; text-align: right;
  cursor: pointer; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 1px;
  font-family: inherit;
}
.mini-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.mini-artisan > b { font-size: 12.5px; }
.mini-role { font-size: 9.5px; color: var(--ink-3); }
.mini-rating { display: flex; align-items: center; gap: 4px; font-size: 10px; margin-top: 3px; color: var(--ink-2); }
.mini-rating b { font-size: 10.5px; }
.mini-rating em { font-style: normal; color: var(--ink-3); font-size: 9px; }
.mini-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 7px;
  font-size: 9.5px; color: var(--ink-2);
}
.mini-foot span { display: flex; align-items: center; gap: 3px; }
.mini-foot span:last-child { color: var(--green); font-weight: 800; }
.mini-foot .ic { width: 11px; height: 11px; }

.how-card {
  margin-top: 24px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 21px; padding: 17px; box-shadow: var(--shadow-soft);
}
.how-card h2 { margin-bottom: 10px; }
.how-step { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; border-bottom: 1px dashed var(--line-2); }
.how-step:last-of-type { border: 0; }
.how-num {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  background: var(--green-100); color: var(--green);
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
}
.how-step div { display: flex; flex-direction: column; gap: 0; }
.how-step b { font-size: 12px; }
.how-step span { font-size: 10px; color: var(--ink-3); }
.guarantee-strip {
  margin-top: 10px; display: flex; align-items: center; gap: 7px;
  background: var(--green-100); color: var(--green-2);
  border-radius: 11px; padding: 9px 11px;
  font-size: 10.5px; font-weight: 700;
}
.guarantee-strip .ic { width: 16px; height: 16px; }

.footer-brand { text-align: center; padding: 26px 0 6px; color: var(--ink-3); }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 9px; margin: 0 auto 7px; }
.footer-brand .brand-mark .ic { width: 16px; height: 16px; }
.footer-brand b { display: block; font-size: 11.5px; color: var(--ink-2); }
.footer-brand span { display: block; font-size: 9px; line-height: 1.7; margin-top: 2px; }

/* ---------------- رأس الصفحة ---------------- */
.page-head {
  display: flex; align-items: center; gap: 11px;
  padding: calc(11px + env(safe-area-inset-top)) 0 12px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--bg) 72%, rgba(246, 242, 234, .0));
}
.page-head h1 { flex: 1; font-size: 18.5px; margin: 0; }
.page-head h1 small { display: block; font-size: 9.5px; color: var(--ink-3); font-weight: 600; margin-top: 1px; }
.page-head .eyebrow { margin-bottom: 1px; }
.back-btn {
  width: 40px; height: 40px; flex: none; border-radius: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.back-btn .ic { width: 18px; height: 18px; }
.head-spacer { width: 40px; flex: none; }
.count-chip {
  font-size: 10.5px; font-weight: 800; color: var(--green);
  background: var(--green-100); border-radius: 999px; padding: 4px 9px;
}

/* ---------------- استكشف ---------------- */
.filter-scroll {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 11px 16px 10px; margin: 0 -16px;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: 11px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.chip-btn .ic { width: 13px; height: 13px; }
.chip-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.chip-btn.soft { background: var(--surface-2); border-color: var(--line-2); font-weight: 600; padding: 6px 10px; font-size: 10px; }
.chip-btn.soft.active { background: var(--green-100); border-color: var(--green); color: var(--green); font-weight: 800; }
.sort-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 9px; }
.count-label { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 10px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.sort-btn .ic { width: 13px; height: 13px; }

.artisan-list { display: flex; flex-direction: column; gap: 9px; }
.artisan-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 18px; text-align: right; cursor: pointer;
  box-shadow: var(--shadow-soft); width: 100%; font-family: inherit;
  transition: border-color .15s;
}
.artisan-row:hover { border-color: #D9D0BE; }
.ar-ava { position: relative; flex: none; }
.online-dot {
  position: absolute; bottom: 0; inset-inline-start: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #2FBF8F; border: 2.5px solid #fff;
}
.ar-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ar-name { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ar-name b { font-size: 13.5px; }
.ar-role { font-size: 10px; color: var(--ink-3); }
.ar-stats { display: flex; align-items: center; gap: 3px; font-size: 9.5px; color: var(--ink-2); margin-top: 2px; flex-wrap: wrap; }
.ar-stats b { font-size: 10px; }
.ar-stats em { font-style: normal; color: var(--ink-3); }
.ar-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ar-tags span { font-size: 8.5px; background: var(--surface-2); border-radius: 999px; padding: 2px 6px; color: var(--ink-2); }
.ar-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0; flex: none; padding-top: 1px; }
.ar-end b { font-size: 14px; color: var(--green); }
.ar-end small { font-size: 8px; color: var(--ink-3); }
.ar-distance { font-size: 8.5px; color: var(--ink-3); background: var(--surface-2); border-radius: 999px; padding: 2px 6px; margin-top: 3px; white-space: nowrap; }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .ic { width: 40px; height: 40px; color: #C9C1B1; margin-bottom: 8px; }
.empty b { display: block; font-size: 13px; color: var(--ink-2); }
.empty span { display: block; font-size: 10.5px; line-height: 1.7; margin-top: 3px; }

/* ---------------- صفحة الخدمة ---------------- */
.service-hero {
  margin-top: 3px; border-radius: 23px; padding: 18px;
  background: linear-gradient(140deg, var(--tint), #fff 78%);
  border: 1px solid var(--line-2); position: relative; overflow: hidden;
}
.service-hero:after {
  content: ''; position: absolute; inset-inline-end: -30px; bottom: -46px;
  width: 170px; height: 170px; border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, .35); pointer-events: none;
}
.sh-icon {
  width: 56px; height: 56px; border-radius: 18px; background: #fff;
  color: var(--color); display: grid; place-items: center;
  box-shadow: var(--shadow-soft); position: relative; z-index: 1;
}
.sh-icon .ic { width: 29px; height: 29px; }
.service-hero h2 { font-size: 21px; margin: 11px 0 2px; position: relative; z-index: 1; }
.service-hero p { font-size: 11px; color: var(--ink-2); position: relative; z-index: 1; margin: 0; }
.sh-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px; position: relative; z-index: 1; }
.sh-tags span {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; color: var(--ink-2);
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(19, 36, 31, .05);
  padding: 4px 7px; border-radius: 999px;
}
.sh-tags .ic { width: 10px; height: 10px; color: var(--green); }

/* هيرو بصورة */
.service-hero.has-photo {
  min-height: 236px; display: flex; align-items: flex-end;
  border: 0; color: #fff;
  background: #123a30;
}
.service-hero.has-photo:after { display: none; }
.sh-photo {
  position: absolute; inset: 0;
  background-image: linear-gradient(0deg, rgba(6, 28, 22, .94) 4%, rgba(6, 28, 22, .48) 48%, rgba(6, 28, 22, .16)), var(--photo);
  background-size: cover; background-position: center 42%;
}
.sh-body { position: relative; z-index: 1; width: 100%; }
.service-hero.has-photo h2 { color: #fff; font-size: 23px; }
.service-hero.has-photo p { color: rgba(255, 255, 255, .84); }
.service-hero.has-photo .sh-icon {
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px);
  box-shadow: none;
}
.service-hero.has-photo .sh-tags span {
  background: rgba(255, 255, 255, .16); color: #fff;
  border-color: rgba(255, 255, 255, .24); backdrop-filter: blur(6px);
}
.service-hero.has-photo .sh-tags .ic { color: var(--gold); }

.sub-list { display: flex; flex-direction: column; gap: 7px; }
.sub-row {
  display: flex; gap: 9px; align-items: center;
  padding: 12px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 15px; text-align: right; width: 100%;
  cursor: pointer; box-shadow: var(--shadow-soft); font-family: inherit;
}
.sub-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.sub-main b { font-size: 12.5px; }
.sub-main > span { font-size: 9.5px; color: var(--ink-3); line-height: 1.55; }
.sub-dur { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; color: var(--ink-3); margin-top: 2px; }
.sub-dur .ic { width: 10px; height: 10px; }
.sub-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0; flex: none; }
.sub-end b { font-size: 14px; color: var(--green); }
.sub-end small { font-size: 8px; color: var(--ink-3); }
.sub-end .ic { width: 14px; height: 14px; color: var(--ink-3); margin-top: 2px; }

.info-note {
  display: flex; gap: 7px; align-items: flex-start;
  background: var(--gold-100); border: 1px solid #F2E0BC;
  color: #6B4A12; border-radius: 13px; padding: 10px 11px;
  font-size: 9.5px; line-height: 1.7; margin-top: 14px;
}
.info-note .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ---------------- ملف الحرفي ---------------- */
.profile-screen { padding: 0 16px 0; }
.profile-cover {
  height: 128px; margin: 0 -16px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  position: relative; overflow: hidden;
}
.profile-cover:after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 90px 90px;
  opacity: .7;
}
.profile-cover:before {
  content: ''; position: absolute; inset-inline-start: -40px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .1);
}
.cover-back {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-start: 16px;
  width: 38px; height: 38px; border-radius: 13px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .18); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px);
}
.cover-back .ic { width: 18px; height: 18px; }
.cover-share {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 16px;
  width: 38px; height: 38px; border-radius: 13px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .18); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px);
}
.cover-share .ic { width: 17px; height: 17px; }
.profile-head { margin-top: -46px; position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 11px; }
.profile-ava { position: relative; flex: none; }
.profile-ava .vmark {
  position: absolute; bottom: -3px; inset-inline-start: -3px;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: grid; place-items: center; border: 3px solid var(--bg);
}
.profile-ava .vmark .ic { width: 12px; height: 12px; }
.profile-title { padding-top: 50px; padding-bottom: 3px; min-width: 0; }
.profile-title h1 { font-size: 19px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.profile-title h1 .ic { width: 16px; height: 16px; color: var(--gold); }
.profile-title p { font-size: 10.5px; color: var(--ink-2); margin-top: 1px; }
.level-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8.5px; font-weight: 800; color: #7A4E10;
  background: var(--gold-100); padding: 3px 8px; border-radius: 999px; margin-top: 5px;
}
.level-chip .ic { width: 10px; height: 10px; }
.level-chip.gold { background: rgba(240, 193, 102, .14); color: #F0C166; border: 1px solid rgba(240, 193, 102, .3); }

.p-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin-top: 16px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 17px; padding: 11px 4px; box-shadow: var(--shadow-soft);
}
.p-stats > div {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border-inline-end: 1px solid var(--line-2); padding: 0 2px;
}
.p-stats > div:last-child { border: 0; }
.p-stats b { font-size: 13.5px; display: flex; align-items: center; gap: 3px; }
.p-stats span { font-size: 8px; color: var(--ink-3); text-align: center; line-height: 1.4; }
.p-stats .stars { margin-top: 1px; }
.p-stats .stars .ic { width: 8px; height: 8px; }

.p-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; color: var(--green-2);
  background: var(--green-100); border-radius: 999px; padding: 4px 8px;
}
.badge-chip .ic { width: 11px; height: 11px; }

.p-section { margin-top: 21px; }
.p-section > h2 { font-size: 15px; margin-bottom: 7px; }
.p-bio { font-size: 11px; line-height: 1.9; color: var(--ink-2); }

.price-list { background: #fff; border: 1px solid var(--line-2); border-radius: 15px; overflow: hidden; margin-top: 8px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line-2);
  font-size: 11.5px;
}
.price-row:last-child { border: 0; }
.price-row span { color: var(--ink-2); font-size: 9.5px; }
.price-row b { color: var(--green); font-size: 12.5px; white-space: nowrap; }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.folio {
  aspect-ratio: 1 / 1.05; border-radius: 13px;
  background-color: #26443a;
  background-image: linear-gradient(180deg, rgba(4, 20, 16, .03) 35%, rgba(4, 20, 16, .78)), var(--photo, linear-gradient(145deg, var(--f1), var(--f2)));
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8px; color: #fff; position: relative; overflow: hidden;
  border: 0; font-family: inherit; text-align: right; cursor: pointer;
}
.folio-ic {
  position: absolute; top: 8px; inset-inline-start: 8px;
  width: 22px; height: 22px; border-radius: 8px;
  background: rgba(6, 26, 21, .42); border: 1px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center; backdrop-filter: blur(4px);
}
.folio-ic .ic { width: 12px; height: 12px; }
.folio b { font-size: 8px; line-height: 1.5; font-weight: 700; position: relative; z-index: 1; }
.folio:after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .32));
}

.review-summary {
  display: flex; gap: 13px; background: #fff;
  border: 1px solid var(--line-2); border-radius: 17px;
  padding: 13px; margin-top: 8px; box-shadow: var(--shadow-soft);
}
.rs-score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; flex: none; padding-inline-end: 13px; border-inline-end: 1px solid var(--line-2);
}
.rs-score b { font-size: 27px; line-height: 1; }
.rs-score span { font-size: 8.5px; color: var(--ink-3); }
.rs-score .stars .ic { width: 9px; height: 9px; }
.dist { flex: 1; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.dist-row { display: flex; align-items: center; gap: 5px; font-size: 8px; color: var(--ink-3); }
.dist-row .bar-bg { flex: 1; height: 4px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.dist-row .bar-fill { height: 100%; background: #E3A63A; border-radius: 99px; }

.review { background: #fff; border: 1px solid var(--line-2); border-radius: 15px; padding: 12px; margin-top: 7px; }
.review-top { display: flex; align-items: center; gap: 7px; }
.rev-ava {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--surface-2); color: var(--ink-2);
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.review-top div { display: flex; flex-direction: column; gap: 0; flex: 1; }
.review-top b { font-size: 11px; }
.review-top span { display: flex; align-items: center; gap: 3px; font-size: 8.5px; color: var(--ink-3); }
.review-top > .ic { width: 14px; height: 14px; color: var(--gold); }
.review p { margin-top: 7px; font-size: 10.5px; line-height: 1.85; color: var(--ink-2); }
.review-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.review-tags span { font-size: 8px; background: var(--surface-2); color: var(--ink-2); border-radius: 99px; padding: 2px 6px; }

.profile-cta {
  position: sticky; bottom: 0; margin: 20px -16px 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 242, 234, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 9px; z-index: 25;
}
.profile-cta > div { display: flex; flex-direction: column; flex: 1; }
.profile-cta small { font-size: 8.5px; color: var(--ink-3); }
.profile-cta b { font-size: 16px; color: var(--green); line-height: 1.2; }
.profile-cta .btn { flex: 1; max-width: 180px; }
.profile-cta .icon-btn { width: 48px; height: 48px; border-radius: 14px; color: var(--green); }

/* ---------------- الحجز ---------------- */
.booking-screen { padding-bottom: 0; }
.step-count { font-size: 10px; font-weight: 800; color: var(--ink-3); flex: none; }
.steps-bar { display: flex; gap: 4px; margin: 0 0 15px; }
.steps-bar i { height: 4px; flex: 1; border-radius: 99px; background: var(--line); transition: background .25s; }
.steps-bar i.done { background: var(--green-3); }
.steps-bar i.on { background: var(--green); }

.book-service {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 15px; padding: 10px 12px; box-shadow: var(--shadow-soft);
}
.book-service div { display: flex; flex-direction: column; gap: 0; }
.book-service b { font-size: 12.5px; }
.book-service span { font-size: 9.5px; color: var(--ink-3); }
.block-title { font-size: 15px; margin: 20px 0 9px; }

.sub-pick { display: flex; flex-direction: column; gap: 7px; }
.pick-row {
  display: flex; align-items: center; gap: 9px;
  padding: 11px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; text-align: right; cursor: pointer; width: 100%; font-family: inherit;
}
.pick-row.active { border-color: var(--green); background: #F7FCFA; box-shadow: 0 0 0 3px rgba(14, 91, 76, .06); }
.pick-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #CFC7B7; flex: none;
  display: grid; place-items: center;
}
.pick-row.active .pick-radio { border-color: var(--green); background: var(--green); }
.pick-row.active .pick-radio:after { content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.pick-main { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.pick-main b { font-size: 11.5px; }
.pick-main span { font-size: 9px; color: var(--ink-3); line-height: 1.5; }
.pick-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pick-price b { font-size: 13px; color: var(--green); }
.pick-price small { font-size: 8px; color: var(--ink-3); }

.field { display: block; margin-top: 16px; }
.label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; margin-bottom: 7px; color: var(--ink); }
.label em { font-style: normal; font-size: 9px; color: var(--ink-3); font-weight: 500; }
.hint { display: block; font-size: 9.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line); background: #fff;
  border-radius: 14px; padding: 12px 13px;
  font-size: 12px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--green-3); box-shadow: 0 0 0 4px rgba(18, 112, 92, .07); }
.textarea { min-height: 104px; resize: none; line-height: 1.8; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2384918C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-inline-start: 32px; }
.textarea-wrap { position: relative; display: block; }
.textarea-wrap textarea { padding-inline-end: 48px; }
.in-textarea {
  position: absolute; bottom: 8px; inset-inline-start: 8px;
  width: 36px; height: 36px; border-radius: 11px; border: 0;
  background: var(--green-100); color: var(--green);
  display: grid; place-items: center; cursor: pointer;
}
.in-textarea .ic { width: 17px; height: 17px; }
.quick-sugs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }

.photo-row { display: flex; gap: 7px; flex-wrap: wrap; }
.photo-add {
  width: 70px; height: 70px; border-radius: 13px;
  border: 1.5px dashed #CFC7B7; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 8.5px; color: var(--ink-3); cursor: pointer;
}
.photo-add .ic { width: 19px; height: 19px; }
.photo-tile { width: 70px; height: 70px; border-radius: 13px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile button {
  position: absolute; top: 3px; inset-inline-end: 3px;
  width: 19px; height: 19px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .55); color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.photo-tile button .ic { width: 10px; height: 10px; }

.when-grid { display: flex; flex-direction: column; gap: 8px; }
.when-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 15px; text-align: right; cursor: pointer;
  width: 100%; font-family: inherit; position: relative;
}
.when-card.active { border-color: var(--green); background: #F7FCFA; box-shadow: 0 0 0 3px rgba(14, 91, 76, .06); }
.when-ic {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--surface-2); color: var(--green);
  display: grid; place-items: center;
}
.when-card.active .when-ic { background: var(--green); color: #fff; }
.when-main { display: flex; flex-direction: column; gap: 0; flex: 1; }
.when-main b { font-size: 12px; }
.when-main span { font-size: 9.5px; color: var(--ink-3); }
.when-fee { font-size: 9px; font-weight: 800; color: var(--gold-2); background: var(--gold-100); padding: 3px 7px; border-radius: 999px; flex: none; }

.schedule-panel {
  margin-top: 9px; padding: 11px; border: 1px solid var(--line-2);
  background: #fff; border-radius: 15px; box-shadow: var(--shadow-soft);
}
.day-row { display: flex; gap: 5px; margin-bottom: 9px; }
.day-chip {
  flex: 1; padding: 7px 3px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 9.5px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; display: flex; flex-direction: column;
  gap: 0; align-items: center;
}
.day-chip small { font-size: 7.5px; opacity: .7; font-weight: 500; }
.day-chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.slot {
  padding: 7px 1px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 9px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
}
.slot.active { background: var(--green-100); border-color: var(--green); color: var(--green); font-weight: 800; }

.addr-card {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 15px; padding: 11px 12px; box-shadow: var(--shadow-soft);
}
.addr-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--green-100); color: var(--green); display: grid; place-items: center; flex: none; }
.addr-ic .ic { width: 17px; height: 17px; }
.addr-card div { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.addr-card b { font-size: 11.5px; }
.addr-card span { font-size: 9.5px; color: var(--ink-3); line-height: 1.5; }

.sticky-cta {
  position: sticky; bottom: 0; margin: 20px -16px 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 242, 234, .95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); z-index: 25;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta .cta-amount { margin-inline-start: auto; margin-inline-end: 6px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .18); padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }

.summary-card {
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 19px; padding: 14px; box-shadow: var(--shadow-soft);
}
.sum-head { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px dashed var(--line); }
.sum-head div { display: flex; flex-direction: column; gap: 0; }
.sum-head b { font-size: 13px; }
.sum-head span { font-size: 9.5px; color: var(--ink-3); line-height: 1.5; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 10.5px; color: var(--ink-2); }
.sum-row b { color: var(--ink); font-size: 11.5px; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 3px; padding-top: 11px; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.sum-row.total b { font-size: 18px; color: var(--green); }
.sum-note { font-size: 9px; color: var(--ink-3); line-height: 1.7; margin-top: 9px; background: var(--surface-2); border-radius: 10px; padding: 8px 9px; }
.sum-artisan { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.sum-artisan div { display: flex; flex-direction: column; gap: 0; flex: 1; }
.sum-artisan b { font-size: 11.5px; }
.sum-artisan span { font-size: 9px; color: var(--ink-3); }
.pay-options { display: flex; gap: 7px; margin-top: 11px; }
.pay-opt {
  flex: 1; display: flex; align-items: center; gap: 7px;
  padding: 11px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 13px; text-align: right; cursor: pointer; font-family: inherit;
}
.pay-opt.active { border-color: var(--green); background: #F7FCFA; }
.pay-opt .ic { width: 18px; height: 18px; color: var(--green); flex: none; }
.pay-opt div { display: flex; flex-direction: column; gap: 0; }
.pay-opt b { font-size: 10.5px; }
.pay-opt span { font-size: 8.5px; color: var(--ink-3); }

.guarantee-card {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--green-100); border: 1px solid #CDE5DC;
  border-radius: 14px; padding: 11px; margin-top: 11px;
}
.guarantee-card .ic { width: 18px; height: 18px; color: var(--green); flex: none; }
.guarantee-card b { display: block; font-size: 10.5px; color: var(--green-2); }
.guarantee-card span { display: block; font-size: 9px; color: #33695B; line-height: 1.65; margin-top: 1px; }

/* ---------------- تتبع الطلب ---------------- */
.track-hero {
  border-radius: 23px; padding: 19px 17px;
  background: linear-gradient(140deg, #0C5144, #093E33);
  color: #fff; text-align: center; position: relative;
  overflow: hidden; margin-top: 3px;
}
.track-hero.working { background: linear-gradient(140deg, #134E63, #0B3743); }
.track-hero.arrived { background: linear-gradient(140deg, #0E6150, #0A4337); }
.track-hero.completed { background: linear-gradient(140deg, #0E5B4C, #0A3F33); }
.track-hero.cancelled { background: linear-gradient(140deg, #6B4B44, #4B332E); }
.track-hero:after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 80px 80px;
  opacity: .55; pointer-events: none;
}
.track-hero > * { position: relative; z-index: 1; }
.t-status-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 4px 9px; border-radius: 999px;
}
.t-status-tag .ic { width: 11px; height: 11px; }
.t-eta {
  width: 100px; height: 100px; margin: 10px auto 2px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; backdrop-filter: blur(4px);
}
.t-eta b { font-size: 27px; line-height: 1; }
.t-eta span { font-size: 8.5px; color: rgba(255, 255, 255, .65); margin-top: 3px; }
.t-pulse {
  width: 82px; height: 82px; margin: 12px auto 2px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); display: grid; place-items: center;
  position: relative;
}
.t-pulse:before, .t-pulse:after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(240, 193, 102, .55);
  animation: radar 2.4s infinite;
}
.t-pulse:after { animation-delay: 1.2s; }
.t-pulse .ic { width: 28px; height: 28px; color: #F0C166; }
.track-hero h2 { font-size: 19px; margin: 9px 0 2px; }
.track-hero p { font-size: 10.5px; color: rgba(255, 255, 255, .7); margin: 0; line-height: 1.7; max-width: 280px; margin-inline: auto; }

.t-rail {
  display: flex; justify-content: space-between; gap: 3px;
  margin-top: 10px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 17px; padding: 12px 8px; box-shadow: var(--shadow-soft);
}
.t-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; flex: 1; text-align: center;
  font-size: 7.5px; color: var(--ink-3); font-weight: 600;
}
.t-step .dot {
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--bg-soft); border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--ink-3);
}
.t-step .dot .ic { width: 10px; height: 10px; }
.t-step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.t-step.active .dot { background: #fff; border-color: var(--green); color: var(--green); box-shadow: 0 0 0 3px rgba(14, 91, 76, .1); }
.t-step.done { color: var(--ink-2); }
.t-step.active { color: var(--green); font-weight: 800; }

.artisan-mini { display: flex; align-items: center; gap: 9px; padding: 12px; margin-top: 10px; }
.am-main { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.am-main b { font-size: 12.5px; display: flex; align-items: center; gap: 4px; }
.am-main span { font-size: 9.5px; color: var(--ink-3); }
.am-actions { display: flex; gap: 5px; flex: none; }
.am-btn {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--green); display: grid; place-items: center;
  cursor: pointer; text-decoration: none;
}
.am-btn .ic { width: 17px; height: 17px; }

.detail-card, .timeline-card, .price-card { padding: 13px; margin-top: 10px; }
.detail-card h3, .timeline-card h3, .price-card h3 { margin-bottom: 8px; font-size: 12px; }
.detail-row {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 6px 0; border-bottom: 1px dashed var(--line-2); font-size: 10px;
}
.detail-row:last-child { border: 0; padding-bottom: 0; }
.detail-row .ic { width: 15px; height: 15px; color: var(--ink-3); flex: none; margin-top: 1px; }
.detail-row div { display: flex; flex-direction: column; gap: 0; }
.detail-row span { color: var(--ink-3); font-size: 8.5px; }
.detail-row b { font-weight: 600; color: var(--ink); line-height: 1.55; }

.timeline { position: relative; padding-inline-end: 20px; }
.timeline:before {
  content: ''; position: absolute; inset-inline-end: 5px; top: 5px; bottom: 5px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 12px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; inset-inline-end: -20px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); z-index: 1;
}
.tl-item.done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-item.active .tl-dot { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.tl-body { display: flex; flex-direction: column; gap: 0; }
.tl-body b { font-size: 10.5px; font-weight: 700; }
.tl-item:not(.done):not(.active) .tl-body b { color: var(--ink-3); font-weight: 500; }
.tl-body span { font-size: 8.5px; color: var(--ink-3); }

.demo-box {
  margin-top: 12px; border: 1px dashed #CFC7B7; border-radius: 13px;
  background: rgba(255, 255, 255, .55); overflow: hidden;
}
.demo-box summary {
  padding: 10px 12px; font-size: 9.5px; font-weight: 800;
  color: var(--ink-3); cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 5px;
}
.demo-box summary::-webkit-details-marker { display: none; }
.demo-box summary .ic { width: 13px; height: 13px; }
.demo-body { padding: 0 11px 11px; display: flex; flex-wrap: wrap; gap: 5px; }
.demo-body .btn { height: 34px; font-size: 9.5px; padding: 0 10px; border-radius: 9px; }
.cancel-link {
  display: block; margin: 12px auto 0; border: 0; background: none;
  color: var(--ink-3); font-family: inherit; font-size: 9.5px;
  text-decoration: underline; cursor: pointer; padding: 6px;
}

.invoice-banner {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 15px; padding: 11px 12px; margin-top: 10px;
  box-shadow: var(--shadow-soft);
}
.invoice-banner .ic { width: 19px; height: 19px; color: var(--green); }
.invoice-banner div { flex: 1; display: flex; flex-direction: column; }
.invoice-banner b { font-size: 10.5px; }
.invoice-banner span { font-size: 8.5px; color: var(--ink-3); }
.invoice-banner b:last-child { font-size: 12px; color: var(--green); flex: none; }

/* ---------------- التقييم ---------------- */
.rate-artisan {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 17px; padding: 12px; margin-top: 3px;
}
.rate-artisan div { display: flex; flex-direction: column; gap: 0; flex: 1; }
.rate-artisan b { font-size: 13px; }
.rate-artisan span { font-size: 9.5px; color: var(--ink-3); }
.rate-stars { display: flex; justify-content: center; gap: 8px; margin: 17px 0 5px; }
.rate-star {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #DCD5C7; transition: transform .15s, color .15s;
}
.rate-star .ic { width: 36px; height: 36px; }
.rate-star.on { color: #E3A63A; transform: scale(1.07); }
.rate-word { text-align: center; font-size: 10.5px; color: var(--ink-3); min-height: 17px; margin-bottom: 13px; }
.rate-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tag-chip {
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 7px 11px;
  font-size: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.tag-chip.active { background: var(--green-100); border-color: var(--green); color: var(--green); font-weight: 800; }
.tip-row { display: flex; gap: 5px; }
.tip-chip {
  flex: 1; padding: 9px 3px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff;
  font-size: 10px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.tip-chip.active { background: var(--gold-100); border-color: var(--gold); color: #7A4E10; }
.rate-submit { margin-top: 18px; }

/* ---------------- الطلبات ---------------- */
.tabs { display: flex; background: var(--bg-soft); border-radius: 13px; padding: 3px; margin: 3px 0 13px; }
.tab-btn2 {
  flex: 1; padding: 8px; border: 0; background: transparent;
  border-radius: 10px; font-family: inherit; font-size: 10.5px;
  font-weight: 700; color: var(--ink-3); cursor: pointer;
}
.tab-btn2.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.order-list { display: flex; flex-direction: column; gap: 9px; }
.ord-card { padding: 13px; }
.ord-top { display: flex; align-items: center; gap: 9px; }
.ord-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ord-ic .ic { width: 20px; height: 20px; }
.ord-title { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.ord-title b { font-size: 12px; }
.ord-title span { font-size: 8.5px; color: var(--ink-3); }
.ord-mid {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2);
}
.ord-mid > span { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--ink-2); }
.ord-mid b { font-size: 13px; color: var(--green); }
.ord-foot { margin-top: 10px; display: flex; gap: 6px; }
.ord-foot .btn { flex: 1; }

.status-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8.5px; font-weight: 800;
  padding: 4px 7px; border-radius: 999px;
  white-space: nowrap; flex: none;
}
.status-pill .ic { width: 10px; height: 10px; }
.tone-amber { background: var(--gold-100); color: #8A5A10; }
.tone-green { background: var(--green-100); color: var(--green-2); }
.tone-blue { background: var(--blue-100); color: #155A89; }
.tone-slate { background: #EEF0EF; color: #52605B; }
.tone-red { background: var(--red-100); color: var(--red); }

/* ---------------- الحساب ---------------- */
.user-card {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 19px; padding: 14px; box-shadow: var(--shadow-soft);
}
.user-ava {
  width: 52px; height: 52px; border-radius: 17px; flex: none;
  background: linear-gradient(145deg, #D9A24A, #B57A22);
  color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 900;
}
.user-card div { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.user-card b { font-size: 14px; }
.user-card span { font-size: 9.5px; color: var(--ink-3); display: flex; align-items: center; gap: 3px; }
.user-card span .ic { width: 10px; height: 10px; color: var(--green); }
.user-card .icon-btn { width: 36px; height: 36px; border-radius: 11px; box-shadow: none; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 9px; }
.quick-stats > div { background: #fff; border: 1px solid var(--line-2); border-radius: 13px; padding: 9px 4px; text-align: center; }
.quick-stats b { font-size: 16px; display: block; }
.quick-stats span { font-size: 8px; color: var(--ink-3); }

.pro-switch-card {
  width: 100%; display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 13px; border-radius: 17px; border: 0;
  background: linear-gradient(120deg, #0C5144, #093E33);
  color: #fff; text-align: right; cursor: pointer;
  font-family: inherit; position: relative; overflow: hidden;
  box-shadow: 0 16px 30px -18px rgba(10, 62, 51, .9);
}
.pro-switch-card:after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 70px 70px;
  opacity: .5; pointer-events: none;
}
.pro-switch-card > * { position: relative; z-index: 1; }
.ps-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .13); display: grid; place-items: center; flex: none; }
.ps-ic .ic { width: 20px; height: 20px; }
.pro-switch-card div { display: flex; flex-direction: column; gap: 0; flex: 1; }
.pro-switch-card b { font-size: 12.5px; }
.pro-switch-card span { font-size: 9.5px; color: rgba(255, 255, 255, .7); }
.pro-switch-card > .ic { width: 17px; height: 17px; color: rgba(255, 255, 255, .7); }

.menu-list { background: #fff; border: 1px solid var(--line-2); border-radius: 17px; overflow: hidden; margin-top: 11px; }
.menu-item {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line-2);
  background: #fff; text-align: right; cursor: pointer; color: var(--ink); font-family: inherit;
}
.menu-item:last-child { border: 0; }
.menu-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.menu-ic .ic { width: 16px; height: 16px; }
.menu-item span { flex: 1; font-size: 11.5px; font-weight: 600; }
.menu-item small { font-size: 8.5px; color: var(--ink-3); background: var(--surface-2); padding: 2px 6px; border-radius: 99px; }
.menu-item small.green { background: var(--green-100); color: var(--green); font-weight: 700; }
.menu-item > .ic { width: 14px; height: 14px; color: var(--ink-3); }
.danger-link {
  display: block; margin: 18px auto 0; background: none; border: 0;
  font-family: inherit; font-size: 9.5px; color: var(--ink-3);
  text-decoration: underline; cursor: pointer;
}

/* ---------------- دليل الأثمنة ---------------- */
.hero-soft {
  background: linear-gradient(135deg, #FDF4E1, #FAE7C6);
  border: 1px solid #F0D9A8; border-radius: 22px;
  padding: 17px; color: #5A3B0C;
  position: relative; overflow: hidden; margin-top: 3px;
}
.hero-soft:after {
  content: ''; position: absolute; inset-inline-end: -30px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, .35);
}
.hero-soft h2 { font-size: 18px; margin: 9px 0 3px; position: relative; z-index: 1; }
.hero-soft p { font-size: 10px; line-height: 1.8; color: #7A5A22; position: relative; z-index: 1; margin: 0; max-width: 85%; }
.hs-ic {
  width: 42px; height: 42px; border-radius: 13px; background: #fff;
  display: grid; place-items: center; color: var(--gold-2);
  box-shadow: var(--shadow-soft); position: relative; z-index: 1;
}
.hs-ic .ic { width: 21px; height: 21px; }
.guide-list { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.guide-item { background: #fff; border: 1px solid var(--line-2); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-soft); }
.guide-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 11px; border: 0; background: #fff;
  text-align: right; cursor: pointer; font-family: inherit; color: var(--ink);
}
.guide-head b { font-size: 11.5px; flex: 1; }
.guide-head span { font-size: 9px; color: var(--green); font-weight: 800; }
.guide-head .ic { width: 14px; height: 14px; color: var(--ink-3); transition: transform .2s; }
.guide-item.open .guide-head .ic { transform: rotate(180deg); }
.guide-body { display: none; padding: 0 11px 8px; }
.guide-item.open .guide-body { display: block; animation: fade .25s; }
.guide-sub { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px dashed var(--line-2); font-size: 10px; }
.guide-sub b { flex: 1; font-weight: 600; }
.guide-sub span { font-size: 8.5px; color: var(--ink-3); }
.guide-sub strong { font-size: 11px; color: var(--green); white-space: nowrap; }

/* ---------------- الضمان ---------------- */
.warranty-hero {
  background: linear-gradient(140deg, #0C5144, #093E33);
  border-radius: 23px; padding: 21px 17px;
  color: #fff; text-align: center; margin-top: 3px;
  position: relative; overflow: hidden;
}
.warranty-hero:after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 84px 84px;
  opacity: .5;
}
.warranty-hero > * { position: relative; z-index: 1; }
.warranty-hero .ic { width: 44px; height: 44px; color: #F0C166; margin-bottom: 7px; }
.warranty-hero h2 { font-size: 19px; margin-bottom: 5px; }
.warranty-hero p { font-size: 10.5px; line-height: 1.85; color: rgba(255, 255, 255, .72); max-width: 290px; margin: 0 auto; }
.steps-3 { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.step-3 { display: flex; gap: 9px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 11px; }
.step-3 .n {
  width: 25px; height: 25px; border-radius: 8px; flex: none;
  background: var(--green-100); color: var(--green);
  font-size: 10px; font-weight: 900; display: grid; place-items: center;
}
.step-3 b { display: block; font-size: 11px; }
.step-3 span { display: block; font-size: 9px; color: var(--ink-3); line-height: 1.6; margin-top: 1px; }
.claim-card { background: #fff; border: 1px solid var(--line-2); border-radius: 15px; padding: 12px; margin-top: 7px; }
.claim-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.claim-top b { font-size: 11.5px; }
.claim-top .status-pill { font-size: 8px; }
.claim-card p { font-size: 9px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }

/* ---------------- الدعم ---------------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 3px; }
.support-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: 17px;
  padding: 13px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft);
}
.support-card .ic { width: 23px; height: 23px; color: var(--green); }
.support-card b { font-size: 11.5px; }
.support-card span { font-size: 8.5px; color: var(--ink-3); line-height: 1.5; }
.hours-row { display: flex; align-items: center; gap: 8px; padding: 11px 12px; margin-top: 9px; font-size: 9.5px; color: var(--ink-2); }
.hours-row .ic { width: 15px; height: 15px; color: var(--gold-2); }
.hours-row b { margin-inline-start: auto; font-size: 9.5px; }
.faq-item { background: #fff; border: 1px solid var(--line-2); border-radius: 13px; margin-top: 7px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 7px;
  padding: 11px 12px; border: 0; background: #fff;
  font-size: 10.5px; font-weight: 700; text-align: right;
  color: var(--ink); cursor: pointer; font-family: inherit;
}
.faq-q span { flex: 1; }
.faq-q .ic { width: 13px; height: 13px; color: var(--ink-3); transition: transform .2s; }
.faq-item.open .faq-q .ic { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 12px 11px; font-size: 9.5px; line-height: 1.85; color: var(--ink-2); }
.faq-item.open .faq-a { display: block; }

/* ---------------- وضع الحرفي ---------------- */
.pro-screen { padding-bottom: 26px; }
.pro-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(11px + env(safe-area-inset-top)) 0 8px;
}
.pro-back {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; font-family: inherit;
  font-size: 10.5px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; padding: 6px 0;
}
.pro-back .ic { width: 14px; height: 14px; }
.pro-hero {
  margin: 0 -16px; padding: 8px 17px 24px;
  background: linear-gradient(150deg, #0C5144, #093A2F);
  color: #fff; border-radius: 0 0 27px 27px;
  position: relative; overflow: hidden;
}
.pro-hero:after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 80px 80px;
  opacity: .55;
}
.pro-hero > * { position: relative; z-index: 1; }
.pro-id { display: flex; align-items: center; gap: 10px; }
.pro-id div { display: flex; flex-direction: column; gap: 0; }
.pro-id h1 { font-size: 18px; margin: 0; }
.pro-id p { font-size: 9.5px; color: rgba(255, 255, 255, .65); margin: 0; }
.pro-id .level-chip { margin-top: 4px; width: fit-content; }
.online-row { display: flex; align-items: center; gap: 7px; margin-top: 13px; font-size: 9.5px; color: rgba(255, 255, 255, .82); }
.online-row .live-dot { background: #7FE0B9; }
.online-row b { font-weight: 600; }
.switch {
  margin-inline-start: auto; width: 44px; height: 25px;
  border-radius: 99px; background: rgba(255, 255, 255, .2);
  border: 0; position: relative; cursor: pointer;
  transition: background .2s; flex: none;
}
.switch i {
  position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; transition: transform .22s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.switch.on { background: #2FBF8F; }
.switch.on i { transform: translateX(19px); }

.pro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; position: relative; z-index: 2; }
.pro-stat { background: #fff; border: 1px solid var(--line-2); border-radius: 15px; padding: 11px; box-shadow: var(--shadow-soft); }
.pro-stat span { font-size: 8.5px; color: var(--ink-3); display: block; }
.pro-stat b { font-size: 18px; display: block; margin-top: 1px; line-height: 1.15; }
.pro-stat em { font-style: normal; font-size: 8px; color: var(--green); display: block; margin-top: 1px; }

.req-card {
  background: #fff; border: 1.5px solid #EDD29B;
  border-radius: 19px; padding: 13px;
  box-shadow: 0 16px 32px -22px rgba(180, 120, 30, .65);
  position: relative; overflow: hidden;
}
.req-card:before { content: ''; position: absolute; top: 0; inset-inline-end: 0; width: 3px; height: 100%; background: var(--gold); }
.req-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8.5px; font-weight: 800; color: #8A5A10;
  background: var(--gold-100); padding: 4px 8px; border-radius: 999px;
}
.req-badge .ic { width: 10px; height: 10px; }
.countdown {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800; color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.countdown .ic { width: 11px; height: 11px; }
.req-title { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.req-title > div { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.req-title b { font-size: 12.5px; }
.req-title span { font-size: 9px; color: var(--ink-3); }
.req-price { font-size: 15px; color: var(--green); white-space: nowrap; flex: none; }
.req-addr {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; color: var(--ink-3);
  margin-top: 8px; background: var(--surface-2);
  border-radius: 9px; padding: 6px 8px;
}
.req-addr .ic { width: 12px; height: 12px; }
.req-addr em { font-style: normal; color: var(--terra); font-weight: 800; margin-inline-start: auto; }
.req-actions { display: flex; gap: 6px; margin-top: 10px; }
.req-actions .btn { flex: 1; }

.job-card { padding: 12px; margin-top: 7px; }
.job-top { display: flex; align-items: center; gap: 8px; }
.job-top > div { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.job-top b { font-size: 11.5px; }
.job-top span { font-size: 8.5px; color: var(--ink-3); }
.job-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-2);
}
.job-foot b { font-size: 13px; color: var(--green); }

.chart-card { padding: 13px; margin-top: 3px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 11px; }
.chart-top b { font-size: 19px; }
.chart-top span { font-size: 8.5px; color: var(--ink-3); }
.chart { display: flex; align-items: flex-end; gap: 7px; height: 88px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #E7BC6B, #D4922F); min-height: 5px; transition: height .4s; }
.chart-col.today .chart-bar { background: linear-gradient(180deg, #12705C, #0A463A); }
.chart-col span { font-size: 7.5px; color: var(--ink-3); white-space: nowrap; }
.chart-col.today span { color: var(--green); font-weight: 800; }

.verify-card { padding: 13px; margin-top: 11px; }
.verify-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.verify-head .ic { width: 17px; height: 17px; color: var(--green); }
.verify-head b { font-size: 11.5px; }
.verify-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 9.5px; color: var(--ink-2); }
.verify-row .ic { width: 14px; height: 14px; color: var(--green); flex: none; }
.verify-row span { flex: 1; }
.verify-row em { font-style: normal; font-size: 7.5px; color: var(--green); background: var(--green-100); padding: 2px 5px; border-radius: 99px; font-weight: 800; }

.pro-empty {
  background: #fff; border: 1px dashed var(--line); border-radius: 15px;
  padding: 22px 14px; text-align: center; color: var(--ink-3); font-size: 10px; line-height: 1.7;
}
.pro-empty .ic { width: 28px; height: 28px; color: #C9C1B1; margin-bottom: 5px; }

/* ---------------- الأوراق السفلية ---------------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9, 24, 19, .52);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.sheet-backdrop.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 440px; max-height: 88dvh;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  padding: 7px 17px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(22px);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
}
.sheet-backdrop.show .sheet { transform: none; }
.sheet-grab { width: 36px; height: 4px; border-radius: 99px; background: #D3CBBB; margin: 2px auto 11px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 9px; }
.sheet-head h2 { font-size: 17px; margin: 0; }
.sheet-head .icon-btn { width: 34px; height: 34px; border-radius: 11px; box-shadow: none; }
.sheet-sub { font-size: 10px; color: var(--ink-3); line-height: 1.7; margin-bottom: 10px; }
.sheet .btn-block { margin-top: 12px; }
.flag {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-100); color: var(--green);
  font-size: 10px; font-weight: 800; font-family: inherit;
}
html.sheet-open .app-scroll { overflow: hidden; }

/* الإشعارات */
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-row {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 13px; text-align: right; cursor: pointer;
  width: 100%; font-family: inherit;
}
.notif-row.unread { border-color: #D8E9E2; background: #F8FCFA; }
.notif-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--green-100); color: var(--green); display: grid; place-items: center; flex: none; }
.notif-ic .ic { width: 16px; height: 16px; }
.notif-row div { display: flex; flex-direction: column; gap: 0; flex: 1; }
.notif-row b { font-size: 10.5px; }
.notif-row span { font-size: 9px; color: var(--ink-2); line-height: 1.5; }
.notif-row time { font-size: 7.5px; color: var(--ink-3); margin-top: 2px; }

/* الدردشة */
.chat-who { display: flex; align-items: center; gap: 8px; }
.chat-who div { display: flex; flex-direction: column; gap: 0; }
.chat-who b { font-size: 12px; }
.chat-who span { font-size: 8.5px; color: var(--green); display: flex; align-items: center; gap: 3px; }
.chat-who span:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #2FBF8F; }
.chat {
  max-height: 42dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 2px; background: linear-gradient(180deg, transparent, #F1EBDF);
  border-radius: 14px; margin: 6px 0;
}
.chat-msg { max-width: 78%; padding: 8px 10px; border-radius: 13px; font-size: 10.5px; line-height: 1.7; }
.chat-msg.them { background: #fff; border: 1px solid var(--line-2); border-start-start-radius: 4px; align-self: flex-start; }
.chat-msg.me { background: var(--green); color: #fff; border-start-end-radius: 4px; align-self: flex-end; }
.chat-msg time { display: block; font-size: 7px; opacity: .6; margin-top: 2px; }
.chat-quick { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-form { display: flex; gap: 5px; align-items: center; }
.chat-form input {
  flex: 1; height: 42px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  padding: 0 12px; font-size: 11px; outline: none;
}
.chat-form input:focus { border-color: var(--green); }
.send-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0;
  background: var(--green); color: #fff;
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.send-btn .ic { width: 17px; height: 17px; }

/* الصوت */
.voice-stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 2px; }
.voice-circle {
  width: 84px; height: 84px; border-radius: 50%; border: 0;
  background: linear-gradient(145deg, #12705C, #0A463A);
  color: #fff; display: grid; place-items: center;
  cursor: pointer; position: relative;
  box-shadow: 0 16px 32px -16px rgba(14, 91, 76, .8);
}
.voice-circle .ic { width: 32px; height: 32px; }
.voice-circle.listening:before, .voice-circle.listening:after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(18, 112, 92, .4);
  animation: radar 1.9s infinite;
}
.voice-circle.listening:after { animation-delay: .95s; }
.voice-status { font-size: 10.5px; color: var(--ink-2); margin: 9px 0 3px; }
.transcript {
  min-height: 42px; width: 100%; background: #fff;
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 9px 11px; font-size: 11px; line-height: 1.7;
  color: var(--ink); margin-top: 5px; text-align: right;
}
.transcript:empty:before { content: 'النص ديالك غادي يبان هنا…'; color: #A6AFA9; }
.wave { display: flex; align-items: center; gap: 2px; height: 16px; margin-top: 7px; }
.wave i { width: 3px; height: 5px; border-radius: 2px; background: var(--green-3); animation: wave 1s infinite ease-in-out; }
.wave i:nth-child(2n) { animation-delay: .15s; }
.wave i:nth-child(3n) { animation-delay: .3s; }
.wave i:nth-child(4n) { animation-delay: .45s; }
.voice-sugs { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 11px; }
.voice-actions { display: flex; gap: 6px; margin-top: 13px; }
.voice-actions .btn { flex: 1; }
.voice-note { font-size: 8.5px; color: var(--ink-3); line-height: 1.65; text-align: center; margin-top: 9px; }

/* الاختيارات داخل الأوراق */
.em-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.em-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 13px 6px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 14px; font-size: 10px; font-weight: 800;
  color: var(--ink); cursor: pointer; font-family: inherit;
}
.em-btn .cat-ic { width: 36px; height: 36px; }
.opt-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 11px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 12px; margin-top: 6px; font-family: inherit;
  font-size: 11px; font-weight: 600; text-align: right;
  cursor: pointer; color: var(--ink);
}
.opt-row.active { border-color: var(--green); background: #F7FCFA; }
.opt-row small { margin-inline-start: auto; color: var(--ink-3); font-size: 8.5px; }
.city-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.city-row .chip-btn { font-size: 10.5px; padding: 7px 11px; }
.form-grid { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.form-grid .field { margin-top: 0; }

/* ---------------- التوست ---------------- */
.toast-root {
  position: fixed; bottom: calc(90px + env(safe-area-inset-bottom));
  left: 0; right: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  pointer-events: none; padding: 0 18px;
}
.toast {
  display: flex; align-items: center; gap: 7px;
  background: #13241F; color: #fff;
  border-radius: 12px; padding: 9px 13px;
  font-size: 10.5px; font-weight: 600;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  max-width: 440px;
}
.toast.show { opacity: 1; transform: none; }
.toast .ic { width: 15px; height: 15px; color: #7FE0B9; flex: none; }
.toast-warn .ic { color: #F0C166; }
.toast-info .ic { color: #9CC9F0; }

/* ---------------- الخريطة ---------------- */
.map-preview {
  width: 100%; display: block; text-align: right; margin: 14px 0 12px;
  background: linear-gradient(160deg, #0B4C40, #062F27);
  border-radius: 20px; padding: 12px; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 14px 30px rgba(8, 52, 43, .22); color: #fff; cursor: pointer;
  overflow: hidden; position: relative; font-family: inherit;
}
.mp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.mp-head b { display: block; font-size: 13px; }
.mp-head span { display: block; font-size: 9.5px; color: rgba(255, 255, 255, .62); margin-top: 2px; }
.mp-live { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; color: #9FE3C6; background: rgba(255, 255, 255, .08); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.mp-live .ic { width: 11px; height: 11px; }
.mp-canvas { position: relative; height: 152px; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 120% at 70% 10%, #12725E, #063A30 70%); }
.mp-canvas .ma-svg { width: 100%; height: 100%; display: block; }
.mp-chip { position: absolute; bottom: 7px; inset-inline-start: 7px; font-size: 9px; background: rgba(4, 28, 23, .72); border: 1px solid rgba(255, 255, 255, .12); padding: 4px 8px; border-radius: 999px; color: #D7F3E7; }
.mp-foot { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: rgba(255, 255, 255, .7); padding-top: 8px; }
.mp-foot > span:first-child { display: flex; align-items: center; gap: 4px; }
.mp-foot .ic { width: 11px; height: 11px; }
.mp-go { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }

.ma-svg .city-dot { cursor: pointer; transition: opacity .2s; }
.ma-svg .cd-core { fill: #F2D48B; stroke: #083D32; stroke-width: 1.2; }
.ma-svg .cd-halo { fill: rgba(242, 212, 139, .16); }
.ma-svg .city-dot.t2 .cd-core { fill: #FFF4CF; }
.ma-svg .city-dot.t3 .cd-core { fill: #BFE7D8; }
.ma-svg .city-dot.active .cd-core { fill: #fff; stroke: #E5B85C; stroke-width: 1.6; }
.ma-svg .city-dot.active .cd-halo { fill: rgba(242, 212, 139, .3); animation: mapPulse 2s ease-out infinite; }
.ma-svg .city-dot.dim { opacity: .18; }
.ma-svg .cd-label { font-family: inherit; font-size: 11px; font-weight: 700; fill: #EAF7F1; text-anchor: middle; paint-order: stroke; stroke: rgba(4, 32, 26, .65); stroke-width: 2.2px; pointer-events: none; }
.ma-svg .map-land { stroke: rgba(255, 255, 255, .15); stroke-width: 1; }

.map-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.map-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 7px 3px; text-align: center; }
.map-stats b { display: block; font-size: 15px; color: var(--green); font-weight: 800; }
.map-stats span { font-size: 8.5px; color: var(--ink-3); }
.map-screen .page-head { margin-bottom: 10px; }

.map-search { position: relative; display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 10px; height: 42px; margin-bottom: 10px; }
.map-search .ic { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.map-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink); min-width: 0; }
.map-search-x { width: 24px; height: 24px; border: 0; background: var(--surface-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); cursor: pointer; flex: none; }
.map-search-x .ic { width: 12px; height: 12px; }

.map-stage {
  position: relative; height: 402px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(100% 90% at 60% 0%, #156B59 0%, #0A4A3E 45%, #062F27 100%);
  border: 1px solid rgba(14, 91, 76, .35);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .28), 0 16px 32px rgba(10, 60, 50, .18);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.map-stage.zoomed { touch-action: none; }
.map-stage .ma-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tools { position: absolute; left: 9px; top: 9px; display: flex; flex-direction: column; gap: 5px; z-index: 3; }
.map-stage.zoomed .cd-label { opacity: 0; }
.map-tools button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 34, 28, .72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.map-tools .ic { width: 15px; height: 15px; }
.map-tools .map-loc { background: #E8C87D; color: #083D32; border-color: transparent; }
.map-minus { font-size: 18px; line-height: 1; margin-top: -2px; }
.map-legend { position: absolute; right: 9px; top: 9px; z-index: 3; background: rgba(5, 34, 28, .66); border: 1px solid rgba(255, 255, 255, .12); color: #DDF2E9; border-radius: 999px; padding: 5px 8px; display: flex; gap: 7px; font-size: 8px; }
.map-legend span { display: flex; align-items: center; gap: 3px; }
.map-legend .lg { width: 5px; height: 5px; border-radius: 50%; background: #F2D48B; display: inline-block; }
.map-legend .lg.t2 { background: #FFF4CF; width: 4px; height: 4px; }
.map-legend .lg.t3 { background: #BFE7D8; width: 3px; height: 3px; }
.map-hint { position: absolute; right: 9px; bottom: 9px; z-index: 3; font-size: 8px; color: rgba(255, 255, 255, .66); background: rgba(5, 34, 28, .55); padding: 5px 8px; border-radius: 999px; display: flex; align-items: center; gap: 4px; max-width: 66%; }
.map-hint .ic { width: 10px; height: 10px; flex: none; }

.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 11px 12px; margin-top: 10px; box-shadow: var(--shadow-soft); }
.ms-head { display: flex; align-items: center; gap: 9px; }
.ms-pin { width: 34px; height: 34px; border-radius: 11px; background: var(--green-100); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.ms-pin .ic { width: 17px; height: 17px; }
.ms-id { flex: 1; min-width: 0; }
.ms-id b { display: block; font-size: 14px; }
.ms-id span { display: block; font-size: 9px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-pros { text-align: center; flex: none; }
.ms-pros b { display: block; font-size: 14px; color: var(--green); }
.ms-pros small { font-size: 8px; color: var(--ink-3); }
.ms-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ms-tags span { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); padding: 4px 7px; border-radius: 999px; }
.ms-tags .ic { width: 10px; height: 10px; color: var(--green); }
.ms-actions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px; margin-top: 9px; }
.ms-actions .btn { font-size: 10.5px; padding: 9px 6px; }
.ms-actions .btn .ic { width: 13px; height: 13px; }
.ms-actions .btn[disabled] { opacity: .55; }

/* حرفيو الخريطة — دبابيس وإعلانات */
.ma-svg .artisan-dot { cursor: pointer; }
.ma-svg .ad-halo { fill: rgba(242, 212, 139, .18); }
.ma-svg .ad-ring { fill: #1F8A6C; stroke: #063A30; stroke-width: 1.4; }
.ma-svg .artisan-dot.off .ad-ring { fill: #67736F; stroke-dasharray: 2.4 1.6; }
.ma-svg .artisan-dot.promo .ad-ring { fill: #E8C87D; stroke: #7A5A12; }
.ma-svg .artisan-dot.sel .ad-halo { fill: rgba(242, 212, 139, .5); animation: mapPulse 1.8s ease-out infinite; }
.ma-svg .ad-init { font-family: inherit; font-size: 5.6px; font-weight: 800; fill: #fff; text-anchor: middle; pointer-events: none; }
.map-stage:not(.zoomed) .ma-svg .ad-init { display: none; }
.map-stage:not(.zoomed) .ma-svg .ad-ring { r: 6; }
.map-stage:not(.zoomed) .ma-svg .ad-halo { r: 9; fill: rgba(242, 212, 139, .1); }
.ma-svg .artisan-dot.promo .ad-init { fill: #3E2E05; }
.ma-svg .artisan-dot.dim { opacity: .2; }

.map-artisans { margin-top: 16px; }
.map-art-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.map-art-hd b { display: block; font-size: 13.5px; }
.map-art-hd span { display: block; font-size: 9px; color: var(--ink-3); margin-top: 2px; }
.map-art-hd .link-more { font-size: 10px; flex: none; }
.map-filters { display: flex; gap: 5px; overflow-x: auto; margin: 0 0 9px; padding-bottom: 2px; scrollbar-width: none; }
.map-filters::-webkit-scrollbar { display: none; }
.map-filters .chip-btn { flex: none; font-size: 10px; padding: 6px 10px; }
.map-ads { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.map-ads::-webkit-scrollbar { display: none; }
.map-ad {
  position: relative; flex: 0 0 262px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; box-shadow: var(--shadow-soft);
}
.map-ad.promo { border-color: #E9D49B; padding-top: 26px; background: linear-gradient(180deg, #FFFCF3, var(--surface) 55%); }
.map-ad.sel { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-100); }
.ma-ad-tag { position: absolute; top: 8px; inset-inline-start: 9px; display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 800; color: #6B4E0A; background: #F6E4B4; border-radius: 999px; padding: 3px 7px; }
.ma-ad-tag .ic { width: 9px; height: 9px; }
.ma-hd { display: flex; align-items: flex-start; gap: 8px; }
.ma-ava { flex: none; }
.ma-id { flex: 1; min-width: 0; }
.ma-id > b { display: block; font-size: 11.5px; }
.ma-id > span { display: block; font-size: 8px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-id .ma-st { display: flex; align-items: center; gap: 3px; color: var(--ink-2); }
.ma-id .ma-st b { color: var(--gold-2); font-size: 8.5px; }
.ma-id .ma-st .ic { width: 9px; height: 9px; }
.ma-avail { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 800; padding: 3px 6px; border-radius: 999px; }
.ma-avail i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ma-avail.on { color: var(--green); background: var(--green-100); }
.ma-avail.off { color: #8A5A22; background: #F9EDDA; }
.ma-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.ma-chips > span { display: flex; flex-direction: column; align-items: center; gap: 1px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px 3px; min-width: 0; }
.ma-chips .ic { width: 11px; height: 11px; color: var(--green); }
.ma-chips b { font-size: 8.5px; text-align: center; line-height: 1.3; }
.ma-chips small { font-size: 7px; color: var(--ink-3); }
.ma-svc { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 7.5px; color: var(--ink-3); line-height: 1.45; }
.ma-svc .ic { width: 10px; height: 10px; color: var(--green); flex: none; }
.ma-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.ma-total { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; color: var(--ink-2); }
.ma-total .ic { width: 10px; height: 10px; color: var(--green); }
.ma-foot .btn { height: 32px; padding: 0 11px; font-size: 10px; flex: none; }
.ma-foot .btn .ic { width: 12px; height: 12px; }
.map-ad-empty { display: flex; align-items: flex-start; gap: 7px; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 12px; font-size: 9.5px; color: var(--ink-2); line-height: 1.6; }
.map-ad-empty .ic { width: 14px; height: 14px; color: var(--green); flex: none; }
.map-ad-note { display: flex; align-items: flex-start; gap: 5px; font-size: 8px; color: var(--ink-3); line-height: 1.55; margin: 7px 2px 0; }
.map-ad-note .ic { width: 11px; height: 11px; flex: none; color: var(--ink-3); margin-top: 1px; }

@keyframes mapPulse { 0% { transform: scale(.55); opacity: .85; } 100% { transform: scale(1.9); opacity: 0; } }

.map-list-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 8px; }
.map-list-head b { font-size: 13.5px; }
.map-city-list { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mc-group + .mc-group { border-top: 1px solid var(--line-2); }
.mc-region { display: flex; justify-content: space-between; padding: 8px 12px 5px; font-size: 9px; font-weight: 800; color: var(--ink-3); background: var(--surface-2); }
.mc-row { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: none; border: 0; border-top: 1px solid var(--line-2); text-align: right; cursor: pointer; font: inherit; color: var(--ink); }
.mc-row:first-child { border-top: 0; }
.mc-row.active { background: #F2F8F4; }
.mc-dot { width: 26px; height: 26px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--green-100); color: var(--green); }
.mc-dot .ic { width: 13px; height: 13px; }
.mc-dot.t2 { background: #F7EED6; color: #9A7220; }
.mc-dot.t3 { background: var(--surface-2); color: var(--ink-3); }
.mc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mc-main b { font-size: 11.5px; display: flex; align-items: center; gap: 5px; }
.mc-main span { font-size: 8.5px; color: var(--ink-3); }
.mc-here { font-style: normal; font-size: 7.5px; font-weight: 800; color: var(--green); background: var(--green-100); padding: 2px 5px; border-radius: 6px; }
.mc-pros { text-align: center; flex: none; min-width: 34px; }
.mc-pros b { display: block; font-size: 11px; color: var(--green); }
.mc-pros small { font-size: 7.5px; color: var(--ink-3); }
.mc-chev { width: 13px; height: 13px; color: var(--ink-3); flex: none; }

.sheet-search { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 38px; padding: 0 10px; margin-bottom: 8px; }
.sheet-search .ic { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.sheet-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 11.5px; min-width: 0; }
.loc-list { max-height: 232px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 11px; }
.loc-group + .loc-group { border-top: 1px solid var(--line-2); }
.loc-group-h { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 10px; font-size: 8.5px; font-weight: 800; color: var(--ink-3); background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.loc-group-h .ic { width: 10px; height: 10px; }
.loc-row { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-top: 1px solid var(--line-2); background: none; font: inherit; text-align: right; color: var(--ink); cursor: pointer; }
.loc-row:first-child { border-top: 0; }
.loc-row.active { background: #F2F8F4; }
.loc-pin { width: 24px; height: 24px; border-radius: 8px; background: var(--green-100); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.loc-pin .ic { width: 12px; height: 12px; }
.loc-pin.t2 { background: #F7EED6; color: #9A7220; }
.loc-pin.t3 { background: var(--surface-2); color: var(--ink-3); }
.loc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-main b { font-size: 10.5px; }
.loc-main span { font-size: 8px; color: var(--ink-3); }
.loc-pros { font-size: 8px; color: var(--ink-3); white-space: nowrap; }
.loc-check { width: 13px; height: 13px; color: var(--green); }

/* ---------------- تقدير الثمن ---------------- */
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.scope-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 8px; text-align: right; font-family: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.scope-card > span:last-child { font-size: 8px; color: var(--ink-3); line-height: 1.5; }
.scope-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.scope-top b { font-size: 11.5px; }
.scope-top em { font-style: normal; font-size: 8px; color: var(--green); background: var(--green-100); padding: 2px 5px; border-radius: 6px; font-weight: 800; white-space: nowrap; }
.scope-card.active { border-color: var(--green); background: #F2F8F4; box-shadow: 0 0 0 1.5px var(--green) inset; }
.scope-card.active .scope-top em { background: var(--green); color: #fff; }

.qty-stepper { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 9px 11px; margin-bottom: 9px; }
.qs-main { flex: 1; min-width: 0; }
.qs-main b { display: block; font-size: 11.5px; }
.qs-main span { display: block; font-size: 8.5px; color: var(--ink-3); line-height: 1.45; }
.qs-ctrl { display: flex; align-items: center; gap: 7px; flex: none; }
.qs-ctrl button { width: 27px; height: 27px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--green); font-family: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.qs-ctrl button:disabled { opacity: .4; }
.qs-ctrl b { min-width: 22px; text-align: center; font-size: 13px; }

.quote-box { background: linear-gradient(150deg, #0E5B4C, #083D32); border-radius: 16px; padding: 11px 13px; color: #fff; margin-bottom: 12px; }
.qb-main { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qb-main span { font-size: 10px; color: rgba(255, 255, 255, .7); }
.qb-main b { font-size: 19px; color: #F2D48B; }
.qb-sub { font-size: 8.5px; color: rgba(255, 255, 255, .62); margin-top: 2px; }
.qb-note { display: flex; align-items: flex-start; gap: 5px; font-size: 8px; color: rgba(255, 255, 255, .66); border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 8px; padding-top: 7px; line-height: 1.55; }
.qb-note .ic { width: 10px; height: 10px; flex: none; margin-top: 1px; color: #9FE3C6; }

/* ---------------- حركة ---------------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes radar { 0% { transform: scale(.92); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 15px; } }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* شاشات صغيرة */
@media (max-width: 370px) {
  .screen { padding-inline: 13px; }
  .hscroll { padding-inline: 13px; margin-inline: -13px; }
  .greet h1 { font-size: 24px; }
  .cat-grid { gap: 6px; }
  .cat { font-size: 9.5px; padding: 9px 2px; }
  .cat-ic { width: 38px; height: 38px; }
  .profile-cta .btn { font-size: 12px; padding: 0 12px; }
}

/* ============================================================
   لوحة التحكم
   ============================================================ */
.admin-screen { padding-bottom: 36px; }
.admin-head { align-items: center; }
.admin-head h1 small { display: block; font-size: 9px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }
.admin-badge { font-size: 8px; letter-spacing: .8px; font-weight: 800; color: #fff; background: var(--green); padding: 4px 8px; border-radius: 99px; }

.admin-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 15px; color: #fff; background: linear-gradient(150deg, #0E5B4C 0%, #0A463A 55%, #072F27 100%); box-shadow: var(--shadow); margin-bottom: 12px; }
.admin-hero:after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .5; pointer-events: none; }
.ah-top { display: flex; justify-content: space-between; font-size: 8.5px; color: rgba(255, 255, 255, .65); position: relative; }
.ah-live { display: inline-flex; align-items: center; gap: 5px; color: #9FE3C6; font-weight: 700; }
.ah-live i { width: 6px; height: 6px; border-radius: 50%; background: #7EE0B4; animation: pulse 2s infinite; }
.admin-hero h2 { font-size: 19px; margin-top: 8px; position: relative; }
.admin-hero p { font-size: 9.5px; line-height: 1.65; color: rgba(255, 255, 255, .76); margin-top: 4px; position: relative; }
.ah-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; position: relative; }
.ah-stats > div { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; padding: 7px 4px; text-align: center; }
.ah-stats b { display: block; font-size: 15px; color: #F2D48B; }
.ah-stats span { font-size: 8px; color: rgba(255, 255, 255, .7); }

.admin-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 0 -16px 8px; padding: 2px 16px 10px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 63px; padding: 8px 4px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 8.5px; font-weight: 700; cursor: pointer; }
.admin-tab .ic { width: 17px; height: 17px; }
.admin-tab.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: var(--shadow-soft); }
.admin-body { display: flex; flex-direction: column; gap: 11px; }

.admin-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 3px 0 1px; }
.admin-sec-head h2 { font-size: 13.5px; }
.admin-sec-head > span { font-size: 9px; color: var(--ink-3); }
.admin-sec-head .text-btn { font-size: 9px; }
.admin-block { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }

.admin-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-kpis .ak { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 11px; }
.admin-kpis .ak > span { display: flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 700; color: var(--ink-3); }
.admin-kpis .ak .ic { width: 13px; height: 13px; color: var(--green); }
.admin-kpis .ak b { display: block; font-size: 17px; margin-top: 4px; }
.admin-kpis .ak small { font-size: 8px; color: var(--ink-3); }

.admin-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 9px; }
.ab-row { display: grid; grid-template-columns: 74px 1fr 18px; align-items: center; gap: 7px; font-size: 9px; }
.ab-row > span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-row b { font-size: 9px; text-align: left; color: var(--green); }
.ab-track { height: 6px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.ab-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #2E8B74); border-radius: 99px; }
.ab-row.ab-btn { width: 100%; background: none; border: 0; padding: 3px 2px; font-family: inherit; cursor: pointer; text-align: start; border-radius: 6px; }
.ab-row.ab-btn:hover { background: var(--bg-soft); }
.ab-row.ab-promo { grid-template-columns: 1fr auto auto; gap: 8px; }
.ab-row.ab-promo .admin-pill { font-style: normal; }
.ab-row.ab-promo b { font-size: 8.5px; color: var(--ink-3); white-space: nowrap; text-align: end; }

.admin-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-actions-grid .aa { display: flex; flex-direction: column; gap: 2px; padding: 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.admin-actions-grid .aa .ic { width: 17px; height: 17px; color: var(--green); margin-bottom: 4px; }
.admin-actions-grid .aa b { font-size: 10.5px; }
.admin-actions-grid .aa span { font-size: 8px; color: var(--ink-3); }

.admin-orders { display: flex; flex-direction: column; gap: 7px; }
.admin-order { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 10px; }
.ao-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ao-top > b { font-size: 9.5px; color: var(--ink-2); }
.ao-main { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 10px; }
.ao-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ao-meta span { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 700; color: var(--ink-3); background: var(--bg-soft); border-radius: 5px; padding: 2px 6px; }
.ao-meta .ic { width: 10px; height: 10px; }
.ao-meta .ao-disc { color: var(--green); background: var(--green-100); }
.ao-meta .ao-urgent { color: var(--gold-2); background: #FBF2DC; }
.aaf-row .admin-art-reset { align-self: end; }
.contract-card .ac-head b small { display: block; font-size: 7px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.pay-used { display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--ink-3); margin: 8px 0 2px; }
.pay-used .ic { width: 11px; height: 11px; }
.mini-x:disabled { opacity: .35; cursor: not-allowed; }
.ac-actions .mini-x { align-self: center; }
.ao-main > span { color: var(--ink-2); }
.ao-main > b { font-size: 11px; color: var(--green); }
.ao-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 8px; color: var(--ink-3); }
.ao-btns { display: inline-flex; gap: 5px; }

.admin-note { display: flex; align-items: flex-start; gap: 6px; font-size: 8.5px; line-height: 1.65; color: var(--ink-3); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 9px 10px; }
.admin-note .ic { width: 12px; height: 12px; flex: none; margin-top: 1px; color: var(--green); }
.admin-note b { color: var(--ink-2); }
.admin-empty { text-align: center; padding: 18px 10px; font-size: 9.5px; color: var(--ink-3); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; }
.ad-checks { display: grid; gap: 5px; margin-bottom: 10px; }
.ad-check { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; }
.ad-check-ic { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ad-check-ic .ic { width: 10px; height: 10px; }
.ad-check.ok .ad-check-ic { background: var(--green-100); color: var(--green); }
.ad-check.warn .ad-check-ic { background: #FBF0D8; color: #A8781E; }
.ad-check b { font-size: 8.5px; color: var(--ink-2); }
.ad-check em { margin-inline-start: auto; font-style: normal; font-size: 8px; color: var(--ink-3); }
.ad-check.warn em { color: #A8781E; font-weight: 700; }

.admin-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.admin-stat-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; }
.admin-stat-row b { display: block; font-size: 14px; color: var(--green); }
.admin-stat-row span { font-size: 7.5px; color: var(--ink-3); }
.admin-filter-row { display: flex; gap: 7px; align-items: center; }
.chip-scroll { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.admin-filter-row .chip-btn { flex: none; }
.admin-filter-row .mini-btn { flex: none; white-space: nowrap; }
/* ==== admin part 1 end ==== */

.mini-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 5px 8px; font-size: 8.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.mini-btn .ic { width: 11px; height: 11px; }
.mini-btn .stat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.mini-btn .stat-dot.on { background: var(--green-3); box-shadow: 0 0 0 2px var(--green-100); }
.mini-btn.danger { color: var(--red); border-color: #F3D3CD; background: #FFF8F6; }
.mini-x { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid #F3D3CD; background: #FFF8F6; color: var(--red); cursor: pointer; }
.mini-x .ic { width: 12px; height: 12px; }

.admin-pill { display: inline-flex; align-items: center; font-size: 7.5px; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-3); white-space: nowrap; }
.admin-pill.on { background: var(--green-100); color: var(--green); }
.admin-pill.off { background: var(--bg-soft); color: var(--ink-3); }
.admin-pill.new { background: var(--gold-100); color: var(--gold-2); margin-inline-start: 3px; font-style: normal; }

.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.admin-card.off { opacity: .72; }
.ac-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 11px; background: none; border: 0; text-align: start; cursor: pointer; }
.ac-head.static { cursor: default; }
.ac-head > div { flex: 1; min-width: 0; }
.ac-head b { display: block; font-size: 11px; }
.ac-head span:not(.admin-pill) { display: block; font-size: 8px; color: var(--ink-3); margin-top: 2px; }
.ac-head > .ic { width: 15px; height: 15px; color: var(--ink-3); transition: transform .2s; }
.admin-card.open .ac-head > .ic { transform: rotate(180deg); }
.ac-body { padding: 0 11px 11px; border-top: 1px dashed var(--line); padding-top: 10px; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 9px; }

.admin-add { background: var(--surface); border: 1px dashed var(--line); border-radius: 15px; padding: 0 11px; }
.admin-add summary { display: flex; align-items: center; gap: 6px; padding: 11px 0; font-size: 10.5px; font-weight: 800; color: var(--green); cursor: pointer; list-style: none; }
.admin-add summary::-webkit-details-marker { display: none; }
.admin-add summary .ic { width: 14px; height: 14px; }
.admin-add[open] { padding-bottom: 11px; border-style: solid; }
.admin-form { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.af-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.af-field > span { font-size: 8.5px; font-weight: 700; color: var(--ink-2); }
.af-field input, .af-field select { width: 100%; height: 35px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 0 9px; font-size: 10.5px; color: var(--ink); outline: none; }
.af-field input:focus, .af-field select:focus { border-color: var(--green); background: #fff; }
.af-field input:disabled { color: var(--ink-3); background: var(--bg-soft); }
.af-field em { font-size: 7.5px; font-style: normal; }
.af-field em.ok { color: var(--green-3); }
.af-field em.warn { color: var(--gold-2); }
.af-two { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.af-check { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--ink-2); cursor: pointer; }
.af-check input { width: 15px; height: 15px; accent-color: var(--green); }
.af-hint { font-size: 8px; color: var(--ink-3); align-self: center; }

.admin-sub-list { display: flex; flex-direction: column; gap: 5px; }
.admin-sub-row { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-2); }
.as-main { flex: 1; min-width: 0; }
.as-main b { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-main span { display: block; font-size: 7.5px; color: var(--ink-3); margin-top: 1px; }
.as-price { display: flex; align-items: center; gap: 3px; }
.as-price input { width: 58px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; font-size: 10px; font-weight: 700; color: var(--green); }
.as-price small { font-size: 7px; color: var(--ink-3); }
.sub-form { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

.admin-city-bar { display: flex; align-items: flex-end; gap: 7px; }
.admin-city-bar .af-field { flex: 1; }
.admin-art-filter { display: flex; flex-direction: column; gap: 7px; margin: 8px 0 3px; }
.aaf-search { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.aaf-search .ic { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.aaf-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-family: inherit; font-size: 10px; color: var(--ink); }
.aaf-search input::-webkit-search-cancel-button { display: none; }
.aaf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.aaf-row .af-field select { height: 36px; }
.admin-art-reset { align-self: flex-start; }
.admin-artisan { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 9px; }
.aav { flex: none; }
.aam { flex: 1; min-width: 0; }
.aam b { display: block; font-size: 10px; }
.aam b em { font-size: 7px; }
.aam > span { display: block; font-size: 7.5px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
.aam .aar { color: var(--gold-2); font-weight: 700; }
.aaa { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.aaa .mini-btn { font-size: 7.5px; }
.mini-btn.promo-on { color: #7A5A12; border-color: #E9D49B; background: #FFF9E9; }

.admin-switch { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; flex: none; }
.admin-switch i { width: 32px; height: 18px; border-radius: 99px; background: #D6D0C4; position: relative; transition: background .18s; }
.admin-switch i:after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s; }
.admin-switch span { font-size: 8px; font-weight: 700; color: var(--ink-3); }
.admin-switch.on i { background: var(--green); }
.admin-switch.on i:after { transform: translateX(-14px); }
html[dir="rtl"] .admin-switch.on i:after { transform: translateX(-14px); }
.admin-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.admin-toggle-row + .admin-toggle-row { border-top: 1px dashed var(--line); }
.admin-toggle-row > div { flex: 1; min-width: 0; }
.admin-toggle-row b { display: flex; align-items: center; gap: 5px; font-size: 10.5px; }
.admin-toggle-row b .ic { width: 14px; height: 14px; color: var(--green); }
.admin-toggle-row span { display: block; font-size: 8px; color: var(--ink-3); line-height: 1.55; margin-top: 2px; }
.admin-toggle-row em.ok { color: var(--green-3); font-style: normal; font-weight: 700; }

.admin-feature-list { margin-top: 3px; }
.admin-range { margin-top: 6px; padding-top: 9px; border-top: 1px dashed var(--line); }
.ar-top { display: flex; justify-content: space-between; align-items: center; }
.ar-top b { display: flex; align-items: center; gap: 5px; font-size: 10.5px; }
.ar-top b .ic { width: 14px; height: 14px; color: var(--green); }
.ar-top span { font-size: 11px; font-weight: 800; color: var(--green); }
.ar-top span:after { content: " كم"; font-size: 7.5px; color: var(--ink-3); font-weight: 600; }
.admin-range input[type="range"] { width: 100%; margin: 9px 0 4px; accent-color: var(--green); }
.ar-scale { display: flex; justify-content: space-between; font-size: 7px; color: var(--ink-3); }
.admin-range p { font-size: 8px; color: var(--ink-3); line-height: 1.6; margin-top: 5px; }

.admin-preview { margin-top: 8px; }
.pay-hero, .map-hero { display: flex; align-items: center; gap: 9px; }
.ph-ic, .mh-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--green-100); color: var(--green); }
.ph-ic .ic, .mh-ic .ic { width: 17px; height: 17px; }
.pay-hero b, .map-hero b { display: block; font-size: 10.5px; }
.pay-hero span:not(.ph-ic), .map-hero span:not(.mh-ic) { display: block; font-size: 8px; color: var(--ink-3); line-height: 1.55; margin-top: 1px; }
.pay-hero > div, .map-hero > div { flex: 1; }
.pay-card .ac-head b, .code-card .ac-head b { display: flex; align-items: center; gap: 5px; }
.pay-card .ac-head b .ic { width: 13px; height: 13px; color: var(--green); }

.admin-subs { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.admin-sub-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); }
.asi-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--gold-100); color: var(--gold-2); }
.asi-ic .ic { width: 13px; height: 13px; }
.admin-sub-item > div { flex: 1; min-width: 0; }
.admin-sub-item b { display: block; font-size: 9.5px; }
.admin-sub-item span { display: block; font-size: 7.5px; color: var(--ink-3); margin-top: 1px; }
.contract-card .ac-head { gap: 9px; }
.contract-card .ac-head b { flex: 1; }
.contract-card .admin-switch span { display: none; }

/* ==== admin part 2 end ==== */

/* ---------------- الإعلانات والشريط ---------------- */
.ad-slot { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px 11px 11px; margin: 12px 0; min-height: 66px; }
.ad-tag { position: absolute; top: 6px; inset-inline-end: 9px; font-size: 6.5px; letter-spacing: .5px; color: var(--ink-3); background: var(--bg-soft); border-radius: 4px; padding: 1px 5px; }
.ad-demo { text-align: center; border-style: dashed; color: var(--ink-3); }
.ad-demo b { display: block; font-size: 10px; color: var(--ink-2); margin-top: 5px; }
.ad-demo span:not(.ad-tag) { font-size: 8px; }
.adsense-slot { min-height: 90px; padding-top: 20px; }
.ad-promo { position: relative; display: flex; align-items: center; gap: 9px; margin: 12px 0; padding: 14px 11px 11px; border-radius: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.ap-body { flex: 1; min-width: 0; padding-top: 4px; }
.ap-body b { display: block; font-size: 11px; }
.ap-body span { display: block; font-size: 8.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.ap-cta { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; font-weight: 800; color: var(--green); }
.ap-cta .ic { width: 12px; height: 12px; }
.ad-promo.tone-gold { background: linear-gradient(140deg, #FBF0DC, #fff); border-color: #F0DBAF; }
.ad-promo.tone-gold .ap-cta { color: var(--gold-2); }
.ad-promo.tone-blue { background: linear-gradient(140deg, #E8F2FA, #fff); border-color: #CFE3F2; }
.ad-promo.tone-blue .ap-cta { color: var(--blue); }
.ad-slot.ad-unfilled { display: none; }
.admob-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px dashed #C9BFAE; border-radius: 14px;
  padding: 12px 11px; min-height: 58px;
}
.admob-preview > div { min-width: 0; }
.admob-preview b { display: block; font-size: 12px; }
.admob-preview span { display: block; font-size: 9.5px; color: var(--ink-3); direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admob-preview em { margin-inline-start: auto; font-style: normal; font-size: 8.5px; font-weight: 800; flex: none; }
.admob-preview em.ok { color: var(--green); }
.admob-preview em.warn { color: #A8781E; }
/* مساحة بانر AdMob داخل تطبيق Android — البانر كيتحط فوق الشريط السفلي */
html.ala-native.ala-banner-on.ala-has-tabbar .tabbar { padding-bottom: calc(61px + env(safe-area-inset-bottom)); }
html.ala-native.ala-banner-on:not(.ala-has-tabbar) .app-scroll { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.ad-fallback[hidden] { display: none !important; }
.admin-preview .ad-slot, .admin-preview .ad-promo { margin: 0; }

.announce-bar { display: flex; align-items: center; gap: 7px; background: var(--green); color: #fff; border-radius: 12px; padding: 8px 10px; margin: 9px 0 1px; font-size: 9.5px; font-weight: 600; }
.announce-bar > .ic { width: 14px; height: 14px; flex: none; color: #F2D48B; }
.announce-bar span { flex: 1; line-height: 1.5; }
.announce-bar button { flex: none; border: 0; background: rgba(255, 255, 255, .16); border-radius: 7px; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; cursor: pointer; }
.announce-bar button .ic { width: 11px; height: 11px; }
.announce-bar.tone-gold { background: linear-gradient(135deg, #B7791F, #D4922F); }
.announce-bar.tone-blue { background: linear-gradient(135deg, #155C8C, #1D6FA8); }

/* ---------------- عقود الصيانة ---------------- */
.contracts-screen { padding-bottom: 36px; }
.contract-hero { background: linear-gradient(150deg, #0E5B4C, #072F27); color: #fff; border-radius: 20px; padding: 17px; text-align: center; margin-top: 4px; position: relative; overflow: hidden; }
.ch-ic { width: 38px; height: 38px; margin: 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #F2D48B; }
.ch-ic .ic { width: 19px; height: 19px; }
.contract-hero h2 { font-size: 18px; margin-top: 7px; color: #fff; }
.contract-hero p { font-size: 9px; color: rgba(255, 255, 255, .72); line-height: 1.7; margin-top: 4px; }
.my-contract { background: var(--surface); border: 1px solid var(--green); border-radius: 17px; padding: 13px; margin-top: 10px; box-shadow: var(--shadow-soft); }
.mc-top { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 700; color: var(--green); }
.mc-top span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.mc-top .ic { width: 12px; height: 12px; }
.mc-main { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.mc-main > div:first-child { display: flex; align-items: baseline; gap: 4px; }
.mc-main > div:first-child b { font-size: 22px; color: var(--green); }
.mc-main > div:first-child span { font-size: 9px; color: var(--ink-3); }
.mc-row { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--ink-2); }
.mc-row .ic { width: 12px; height: 12px; color: var(--green-3); }
.my-contract > p { font-size: 8.5px; color: var(--ink-3); line-height: 1.6; margin: 8px 0 10px; }
.contract-plans { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.contract-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px; }
.contract-plan.current { border-color: var(--green); background: #F7FCFA; }
.cp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cp-cycle { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 800; color: var(--green); background: var(--green-100); border-radius: 99px; padding: 3px 7px; }
.cp-cycle .ic { width: 11px; height: 11px; }
.cp-top h3 { font-size: 14px; margin-top: 5px; }
.cp-price { text-align: left; flex: none; }
.cp-price b { font-size: 18px; color: var(--green); }
.cp-price small { font-size: 7.5px; color: var(--ink-3); }
.contract-plan > p { font-size: 9px; color: var(--ink-3); line-height: 1.65; margin-top: 6px; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 9px 0 10px; }
.cp-tags span { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 7px; }
.cp-tags .ic { width: 10px; height: 10px; color: var(--green); }
.contract-how { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 10px; }
.contract-how h3 { font-size: 12px; margin-bottom: 8px; }
.contract-how .how-step { display: flex; gap: 8px; padding: 6px 0; }
.contract-how .how-step + .how-step { border-top: 1px dashed var(--line); }
.contract-how .how-step b { display: block; font-size: 9.5px; }
.contract-how .how-step span { display: block; font-size: 8px; color: var(--ink-3); margin-top: 1px; line-height: 1.5; }

/* ---------------- كود الخصم داخل الحجز ---------------- */
.promo-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.promo-row { display: flex; gap: 6px; align-items: center; }
.promo-row .input { flex: 1; height: 36px; min-width: 0; }
.promo-row .btn { flex: none; height: 36px; }
.promo-ok { display: flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 700; color: var(--green); }
.promo-ok .ic { width: 12px; height: 12px; }
.promo-hint { font-size: 8px; color: var(--ink-3); }
.promo-contract { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--gold-2); font-weight: 700; background: var(--gold-100); border: 1px solid #F0DBAF; border-radius: 9px; padding: 7px 8px; cursor: pointer; text-decoration: none; }
.promo-contract .ic { width: 12px; height: 12px; }
.promo-contract .ic:last-child { margin-inline-start: auto; }
.sum-row.discount b { color: var(--green); }
.opt-row.is-off { opacity: .55; }

@media (max-width: 370px) {
  .admin-kpis .ak b { font-size: 15px; }
  .ab-row { grid-template-columns: 62px 1fr 16px; }
  .admin-order .ao-main { font-size: 9.5px; }
  .cp-top h3 { font-size: 13px; }
  .cp-price b { font-size: 16px; }
}

/* ==== admin part 3 end ==== */

/* ---------------- السحابة (Supabase) ---------------- */
.cloud-gate { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 16px; text-align: center; box-shadow: var(--shadow-soft); }
.cloud-gate h2 { font-size: 16px; margin: 0 0 6px; }
.cloud-gate p { font-size: 10px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.cloud-gate p b { color: var(--green); }
.cg-orb { width: 54px; height: 54px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green); }
.cg-orb .ic { width: 24px; height: 24px; }
.cg-orb.bad { background: var(--red-100); color: var(--red); }
.cg-error { font-size: 9.5px; line-height: 1.65; color: var(--red); background: var(--red-100); border: 1px solid #F2D2CB; border-radius: 12px; padding: 9px 10px; margin: 0 0 12px; }
.cloud-gate .btn-block + .btn-block { margin-top: 8px; }
.cloud-gate .admin-note { text-align: right; margin-top: 12px; }
.cloud-login { display: flex; flex-direction: column; gap: 9px; text-align: right; }
.cloud-login .af-field span { font-size: 9px; color: var(--ink-3); font-weight: 700; display: block; margin-bottom: 4px; }
.cloud-login .af-field input { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 0 11px; font-size: 12px; color: var(--ink); }
.cloud-login .af-field input:focus { border-color: var(--green); background: #fff; outline: none; }
.cg-dots { display: flex; justify-content: center; gap: 5px; margin-top: 4px; }
.cg-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: .3; animation: cgPulse 1s infinite; }
.cg-dots i:nth-child(2) { animation-delay: .15s; }
.cg-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cgPulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.cloud-foot { text-align: center; font-size: 8px; color: var(--ink-3); margin: 10px 0 4px; letter-spacing: .3px; }
.cloud-pill { font-size: 8px; font-weight: 800; border-radius: 999px; padding: 3px 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); }
.cloud-pill.ok { background: var(--green-100); border-color: #C6E0D6; color: var(--green); }
.cloud-pill.wait { background: var(--gold-100); border-color: #F0DBAF; color: var(--gold-2); }
.cloud-pill.bad { background: var(--red-100); border-color: #F2D2CB; color: var(--red); }
.cloud-rows { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.cloud-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.cloud-rows > div:last-child { border-bottom: 0; }
.cloud-rows span { font-size: 9px; color: var(--ink-3); }
.cloud-rows b { font-size: 9.5px; color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
.cg-sep { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; color: var(--ink-3); font-size: 8.5px; font-weight: 700; }
.cg-sep::before, .cg-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   دفعة 2026-10: الأدوار، صندوق المحادثات، الفريق، الزبناء،
   السجل، الدفع الموسّع، ورسائل الزبون
   ============================================================ */

/* ---------- شارات الأدوار ---------- */
.role-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 7.5px; font-weight: 800; padding: 3px 7px; border-radius: 99px;
  white-space: nowrap; background: var(--bg-soft); color: var(--ink-2);
  border: 1px solid transparent; flex: none;
}
.role-badge.role-owner { background: #FBF2DC; color: #8A5A15; border-color: #F0DBAF; }
.role-badge.role-admin { background: var(--green-100); color: var(--green); border-color: #C6E0D6; }
.role-badge.role-moderator { background: #E2F4F5; color: #0E6B72; border-color: #C4E4E6; }
.role-badge.role-support { background: #EFECF8; color: #5B4B85; border-color: #DCD5EE; }
.role-badge.role-artisan { background: #E8F2FA; color: #1D6FA8; border-color: #CFE3F2; }
.role-badge.role-client { background: var(--bg-soft); color: var(--ink-3); }
.admin-badge.role-owner { background: linear-gradient(145deg, #B7791F, #8A5A15); }
.admin-badge.role-admin { background: var(--green); }
.admin-badge.role-moderator { background: #0E6B72; }
.admin-badge.role-support { background: #5B4B85; }

/* ---------- نبض الأسبوع ---------- */
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.week-bars .wb { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.week-bars .wb b { font-size: 8.5px; color: var(--ink-3); font-weight: 800; }
.week-bars .wb.today b { color: var(--green); }
.wb-track {
  width: 100%; height: 84px; border-radius: 8px; background: var(--bg-soft);
  display: flex; align-items: flex-end; overflow: hidden;
}
.wb-track i { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #2E8B74, var(--green-3)); transition: height .35s ease; }
.wb.today .wb-track i { background: linear-gradient(180deg, #D8A24A, var(--gold-2)); }
.week-bars .wb small { font-size: 7.5px; color: var(--ink-3); font-weight: 700; }
.week-bars .wb.today small { color: var(--green); }

/* ---------- آخر المحادثات (نظرة عامة) ---------- */
.overview-chats { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.oc-row {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 2px;
  background: none; border: 0; border-bottom: 1px dashed var(--line-2);
  font-family: inherit; text-align: start; cursor: pointer; color: var(--ink);
}
.oc-row:last-child { border-bottom: 0; }
.oc-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.oc-row b { font-size: 10px; }
.oc-row small { font-size: 8px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-row time { font-size: 7.5px; color: var(--ink-3); flex: none; }
.oc-row.unread b { color: var(--green); }
.oc-row.unread small { color: var(--ink-2); font-weight: 600; }
.acr-badge {
  min-width: 16px; height: 16px; border-radius: 99px; background: var(--red);
  color: #fff; font-size: 7.5px; font-style: normal; font-weight: 800;
  display: inline-grid; place-items: center; padding: 0 4px; flex: none;
}

/* ---------- حرف أول (صور رمزية) ---------- */
.acr-ava {
  width: 34px; height: 34px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--green-100);
  color: var(--green); font-size: 11px; font-weight: 800;
}
.acr-ava.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 9.5px; }

/* ---------- صندوق المحادثات ---------- */
.admin-chat-list { display: flex; flex-direction: column; gap: 6px; }
.admin-chat-row {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  font-family: inherit; text-align: start; color: var(--ink); cursor: pointer;
}
.admin-chat-row.unread { border-color: #BFDFD3; background: #FAFEFC; box-shadow: inset 3px 0 0 var(--green); }
.acr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acr-main b { font-size: 10.5px; display: flex; align-items: baseline; gap: 3px; overflow: hidden; white-space: nowrap; }
.acr-main b small { font-size: 8px; font-weight: 600; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.acr-main > span { font-size: 8.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-chat-row.unread .acr-main > span { color: var(--ink-2); font-weight: 600; }
.acr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.acr-side time { font-size: 7.5px; color: var(--ink-3); }
.acr-src { display: inline-flex; color: var(--ink-3); opacity: .7; font-style: normal; }
.acr-src .ic { width: 10px; height: 10px; }

.admin-chat-thread { display: flex; flex-direction: column; gap: 9px; }
.act-head { display: flex; align-items: center; gap: 8px; }
.act-head .back-btn { flex: none; }
.act-ava {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--green-100);
  color: var(--green); font-size: 11.5px; font-weight: 800;
}
.act-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.act-who b { font-size: 12px; }
.act-who span { font-size: 8.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.act-src { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 700; color: var(--ink-3); }
.act-src .ic { width: 10px; height: 10px; }
.act-actions { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; }
.chat.admin-chat-body { max-height: 52dvh; min-height: 180px; background: linear-gradient(180deg, #FAF6EE, #F1EBDF); }
.chat-loading { text-align: center; font-size: 9px; color: var(--ink-3); padding: 22px 0; }
.cm-name { display: block; font-size: 7.5px; font-weight: 800; opacity: .65; margin-bottom: 2px; }
.chat-msg.them .cm-name { color: var(--green); opacity: .8; }
.chat-msg.me .cm-name { color: #fff; }

/* ---------- الفريق ---------- */
.team-me {
  display: flex; align-items: center; gap: 9px; padding: 11px;
  background: linear-gradient(140deg, #0F5C4B, #0A4036); color: #fff;
  border-radius: 16px; box-shadow: var(--shadow-soft);
}
.tm-ava {
  width: 38px; height: 38px; border-radius: 13px; flex: none;
  display: grid; place-items: center; background: rgba(255,255,255,.16);
  color: #fff; font-size: 12px; font-weight: 800;
}
.tm-ava.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 10px; background: var(--green-100); color: var(--green); }
.team-me > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.team-me b { font-size: 11.5px; }
.team-me > div span { font-size: 8.5px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-me small { font-size: 7.5px; opacity: .72; flex: none; }
.team-card .ac-head { gap: 8px; }
.team-card .ac-head > div { flex: 1; min-width: 0; }
.team-card .ac-head .tm-ava { flex: none; }

.role-guide { display: flex; flex-direction: column; gap: 8px; }
.rg-row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 8px; }
.rg-row > span:nth-child(2) { font-size: 8px; line-height: 1.5; color: var(--ink-3); }
.rg-row > b { font-size: 8px; color: var(--ink-3); font-weight: 700; }

.team-perms-preview { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 10px; margin-bottom: 10px; }
.team-perms-preview > span { display: flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 800; color: var(--green); margin-bottom: 6px; }
.team-perms-preview .ic { width: 12px; height: 12px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-chip { font-size: 7.5px; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 2px 7px; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 4px; }
.perm-check { position: relative; display: flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.perm-check input { position: absolute; opacity: 0; pointer-events: none; }
.perm-check span { display: flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 700; color: var(--ink-3); }
.perm-check span .ic { width: 11px; height: 11px; }
.perm-check:has(input:checked) { border-color: var(--green); background: var(--green-100); }
.perm-check:has(input:checked) span { color: var(--green); }

.invite-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.invite-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.invite-row:last-child { border-bottom: 0; }
.invite-mail { flex: 1; min-width: 130px; font-size: 9px; color: var(--ink-2); word-break: break-all; }
.invite-row small { font-size: 7.5px; color: var(--ink-3); width: 100%; }

/* ---------- الزبناء ---------- */
.client-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 8px; }
.client-meta span { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; color: var(--ink-3); font-weight: 600; }
.client-meta .ic { width: 11px; height: 11px; color: var(--green); }
.client-card .ac-head { gap: 8px; }
.client-card .ac-head > div { flex: 1; min-width: 0; }

/* ---------- سجل العمليات ---------- */
.audit-list { display: flex; flex-direction: column; gap: 5px; }
.audit-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.audit-dot {
  width: 26px; height: 26px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3);
}
.audit-dot .ic { width: 12px; height: 12px; }
.audit-row.cat-team .audit-dot { background: var(--green-100); color: var(--green); }
.audit-row.cat-chat .audit-dot { background: #E2F4F5; color: #0E6B72; }
.audit-row.cat-orders .audit-dot { background: #E8F2FA; color: #1D6FA8; }
.audit-row.cat-payments .audit-dot { background: #FBF2DC; color: var(--gold-2); }
.audit-row.cat-catalog .audit-dot { background: #EFECF8; color: #5B4B85; }
.audit-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.audit-main b { font-size: 9.5px; }
.audit-target { font-size: 8px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-main small { font-size: 7.5px; color: var(--ink-3); margin-top: 1px; }
.audit-src { font-size: 7px; font-weight: 800; padding: 2px 6px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-3); flex: none; }
.audit-src.cloud { background: var(--green-100); color: var(--green); }
.audit-list.compact .audit-row { padding: 7px 8px; border-style: dashed; }
.audit-list.compact .audit-dot { width: 22px; height: 22px; border-radius: 7px; }

/* ---------- الدفع الموسّع ---------- */
.pay-card .ac-head { flex-wrap: wrap; }
.pay-usage { font-size: 8px; color: var(--ink-3); font-weight: 700; margin-inline-start: auto; }
.pay-preview {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 10px;
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px;
}
.pay-preview > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.pay-preview b { font-size: 9.5px; }
.pay-preview small { font-size: 8px; color: var(--ink-3); }
.pay-preview .menu-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--green); }
.pay-preview .menu-ic .ic { width: 14px; height: 14px; }
.pay-preview small.green { color: var(--green); font-weight: 800; flex: none; }

.pay-instructions { background: #FFFCF4; border: 1px solid #F0DBAF; border-radius: 13px; padding: 10px 11px; margin: 9px 0 0; }
.pi-head { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--gold-2); }
.pi-head .ic { width: 13px; height: 13px; }
.pi-head b { font-size: 9.5px; }
.pay-instructions p { font-size: 8.5px; line-height: 1.7; color: var(--ink-2); margin: 5px 0 0; }
.pi-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.pi-meta span { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid #F0DBAF; border-radius: 6px; padding: 3px 6px; }
.pi-meta .ic { width: 10px; height: 10px; color: var(--gold-2); }
.pi-meta b { font-size: 7.5px; }

/* ---------- رسائل الزبون ---------- */
.head-badge {
  width: 32px; height: 32px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--green-100); color: var(--green);
}
.head-badge .ic { width: 16px; height: 16px; }
.messages-screen .page-head { margin-bottom: 12px; }
.msg-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.msg-row {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  font-family: inherit; text-align: start; color: var(--ink); cursor: pointer;
}
.msg-row.unread { border-color: #BFDFD3; background: #FAFEFC; box-shadow: inset 3px 0 0 var(--green); }
.msg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.msg-main b { font-size: 11px; }
.msg-main > span { font-size: 8px; color: var(--green); font-weight: 700; }
.msg-main small { font-size: 8.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row.unread .msg-main small { color: var(--ink-2); font-weight: 600; }
.msg-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.msg-side time { font-size: 7.5px; color: var(--ink-3); }
.msg-empty { text-align: center; padding: 30px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; margin-bottom: 12px; }
.msg-empty .cg-orb { margin-bottom: 10px; }
.msg-empty h2 { font-size: 14px; margin: 0 0 5px; }
.msg-empty p { font-size: 9.5px; line-height: 1.7; color: var(--ink-3); margin: 0 0 12px; }

/* نقطة الرسائل على الشريط السفلي */
.tab-btn { position: relative; }
.tab-dot {
  position: absolute; top: 4px; inset-inline-end: 22%;
  min-width: 7px; height: 7px; border-radius: 99px; background: var(--red);
  border: 1.5px solid #fff; box-sizing: content-box;
}

/* نقطة تبويب المحادثات فلوحة التحكم */
.admin-tab { position: relative; }
.admin-tab-dot {
  position: absolute; top: 3px; inset-inline-end: 8px;
  min-width: 14px; height: 14px; padding: 0 3px; border-radius: 99px;
  background: var(--red); color: #fff; border: 1.5px solid #fff;
  font-size: 7px; font-style: normal; font-weight: 800; line-height: 14px;
  text-align: center; box-sizing: content-box;
}
.admin-tab.active .admin-tab-dot { border-color: var(--green); }

/* ---------- حالات الاتصال والصلاحيات ---------- */
.cloud-required, .access-denied { text-align: center; padding: 22px 16px; }
.cloud-required h2, .access-denied h2 { font-size: 14px; margin: 8px 0 5px; }
.cloud-required p, .access-denied p { font-size: 9.5px; line-height: 1.75; color: var(--ink-3); margin: 0 0 10px; }
.cloud-required .cg-orb, .access-denied .cg-orb { margin: 0 auto 4px; }
.cloud-required .btn, .access-denied .btn { margin-top: 4px; }
.cg-orb.small { width: 40px; height: 40px; border-radius: 13px; }
.cg-orb.small .ic { width: 19px; height: 19px; }
.access-denied > .ic { width: 26px; height: 26px; color: var(--red); }
.cloud-signup { margin-top: 12px; text-align: right; }
.cloud-signup summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 9px; font-weight: 800; color: var(--ink-2);
  border: 1px dashed var(--line); border-radius: 12px; padding: 9px 10px; background: var(--surface-2);
}
.cloud-signup summary::-webkit-details-marker { display: none; }
.cloud-signup summary .ic { width: 12px; height: 12px; color: var(--green); }
.cloud-signup[open] summary { margin-bottom: 10px; }

/* ---------- تعديلات صغيرة ---------- */
.admin-stat-row .hot { color: var(--red); }
.ao-btns { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
