:root {
  --navy: #0d1850; --navy2: #121345; --navy3: #1b2a6b; --blue: #1a6fd4; --blue2: #5ba3e8; --sky: #e8f1fd;
  --orange: #fa7c09; --orange2: #e06e08; --peach: #fff1e3;
  --bg: #f4f7fc; --card: #fff; --ink: #0f1a33; --muted: #5d6b85; --line: #e2e8f2;
  --ok: #12a150; --okbg: #e6f7ee; --warn: #d98a00; --warnbg: #fff6e0; --bad: #d93636; --badbg: #fdecec;
  --r: 18px; --sh: 0 1px 2px rgba(13,24,80,.06), 0 8px 24px rgba(13,24,80,.07);
  --wa: #0b141a; --wa2: #1f2c33; --wabub: #005c4b; --wain: #202c33;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Cairo', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }

/* ===== شريط التجربة ===== */
.demobar { position: sticky; top: 0; z-index: 60; background: #070d2e; color: #fff; display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 13px; }
.demobar .tag { background: var(--orange); color: #fff; font-weight: 800; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.demobar .seg { display: flex; background: rgba(255,255,255,.08); border-radius: 12px; padding: 3px; gap: 2px; margin-inline: auto; }
.demobar .seg a { padding: 5px 14px; border-radius: 9px; color: #c9d3f5; font-weight: 700; white-space: nowrap; }
.demobar .seg a.on { background: #fff; color: var(--navy); }
.demobar .wabtn { display: flex; align-items: center; gap: 6px; background: #25d366; color: #052e16; border: 0; border-radius: 10px; padding: 5px 12px; font-weight: 800; cursor: pointer; white-space: nowrap; position: relative; }
.demobar .wabtn .n { background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; min-width: 18px; text-align: center; }
.demobar .live { color: #8fe3b0; white-space: nowrap; }
.demobar .live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #25d366; margin-inline-end: 5px; vertical-align: middle; }
@media (max-width: 720px) {
  .demobar { flex-wrap: wrap; justify-content: space-between; }
  .demobar .seg { order: 3; width: 100%; margin: 0; }
  .demobar .seg a { flex: 1; text-align: center; padding: 6px 4px; }
  .demobar .live { display: none; }
}

/* ===== أزرار وحاجات عامة ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 11px 20px; font-weight: 800; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-o { background: linear-gradient(180deg, #ff8a1e, var(--orange2)); color: #fff; box-shadow: 0 6px 18px rgba(250,124,9,.32); }
.btn-o:hover { box-shadow: 0 8px 22px rgba(250,124,9,.42); }
.btn-b { background: var(--blue); color: #fff; }
.btn-n { background: var(--navy); color: #fff; }
.btn-g { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-g:hover { border-color: var(--blue2); }
.btn-w { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-bad { background: #fff; color: var(--bad); border: 1.5px solid #f3c4c4; }
.btn-sm { padding: 7px 13px; border-radius: 11px; font-size: 13.5px; }
.btn-lg { padding: 14px 26px; font-size: 17px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid #edf1f7; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--sky); color: var(--blue); border-radius: 99px; padding: 3px 11px; font-size: 13px; font-weight: 700; }
.chip.o { background: var(--peach); color: var(--orange2); }
.chip.g { background: #eef1f6; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 10px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.b-wait { background: var(--warnbg); color: var(--warn); }
.b-ok { background: var(--okbg); color: var(--ok); }
.b-done { background: #eaf0fb; color: var(--blue); }
.b-bad { background: var(--badbg); color: var(--bad); }
.b-grey { background: #eef1f6; color: var(--muted); }
.stars { color: #f5a623; letter-spacing: 1px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.inp { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 13px; padding: 11px 14px; outline: none; transition: border .12s, box-shadow .12s; }
.inp:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,111,212,.12); }
textarea.inp { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.wrapf { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty .ic { font-size: 38px; margin-bottom: 6px; }

/* ===== الموقع ===== */
.nav { background: var(--navy2); position: sticky; top: 38px; z-index: 50; }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 70px; }
.nav .logo img { height: 50px; width: auto; }
.nav .links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav .links a { color: #cfd8f6; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; }
.nav .links a:hover, .nav .links a.on { color: #fff; background: rgba(255,255,255,.08); }
.nav .cta { margin-inline-start: auto; }
.nav .burger { display: none; margin-inline-start: auto; background: transparent; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 900px) {
  .nav { top: 76px; }
  .nav .links { display: none; position: absolute; top: 70px; inset-inline: 0; background: var(--navy2); flex-direction: column; padding: 8px 16px 16px; margin: 0; }
  .nav .links.open { display: flex; }
  .nav .cta { display: none; }
  .nav .burger { display: block; }
  .nav .logo img { height: 42px; }
}
@media (min-width: 721px) and (max-width: 900px) { .nav { top: 38px; } }

.hero { background: radial-gradient(1200px 500px at 85% -10%, #2348b8 0%, transparent 60%), radial-gradient(800px 400px at 0% 110%, #3b1f6e55 0%, transparent 60%), linear-gradient(160deg, var(--navy2), var(--navy) 60%, #0a1240); color: #fff; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 90px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.5px; }
.hero h1 .o { color: var(--orange); }
.hero p.lead { color: #c3cdf0; font-size: 18px; margin: 16px 0 26px; max-width: 520px; }
.hero .trust { display: flex; gap: 18px; margin-top: 26px; color: #c3cdf0; font-size: 14px; flex-wrap: wrap; }
.hero .trust b { color: #fff; }
.collage { position: relative; height: 470px; }
.collage .ph { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.12); background: #24306b; }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.collage .p1 { width: 210px; height: 270px; inset-inline-start: 6%; top: 40px; }
.collage .p2 { width: 190px; height: 240px; inset-inline-end: 4%; top: 0; }
.collage .p3 { width: 170px; height: 210px; inset-inline-end: 14%; bottom: 0; }
.collage .p4 { width: 150px; height: 180px; inset-inline-start: 30%; bottom: 10px; }
.float { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: 0 14px 34px rgba(0,0,0,.28); font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 10px; animation: bob 5s ease-in-out infinite; }
.float small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.float .i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; }
.f1 { top: 300px; inset-inline-start: -4%; }
.f2 { top: 40px; inset-inline-start: 46%; animation-delay: -2s; }
.f3 { bottom: 40px; inset-inline-end: -2%; animation-delay: -3.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 70px; gap: 10px; }
  .collage { height: 300px; }
  .collage .p1 { width: 140px; height: 180px; top: 20px; }
  .collage .p2 { width: 130px; height: 165px; }
  .collage .p3 { width: 120px; height: 150px; }
  .collage .p4 { width: 105px; height: 130px; inset-inline-start: 34%; }
  .f1 { top: 210px; inset-inline-start: 0; } .f2 { inset-inline-start: 36%; top: 6px; } .f3 { bottom: 4px; inset-inline-end: 0; }
  .float { font-size: 12.5px; padding: 7px 10px; } .float .i { width: 28px; height: 28px; font-size: 15px; }
}

.search { margin-top: -50px; position: relative; z-index: 5; }
.search .card { padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 800px) { .search .card { grid-template-columns: 1fr; } }

.sec { padding: 64px 0; }
.sec-h { text-align: center; margin-bottom: 34px; }
.sec-h .k { color: var(--orange2); font-weight: 800; font-size: 14px; }
.sec-h h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy); margin-top: 4px; }
.sec-h p { color: var(--muted); margin: 8px auto 0; max-width: 560px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats .card { padding: 20px; text-align: center; }
.stats b { display: block; font-size: 30px; color: var(--navy); font-weight: 800; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px 22px; position: relative; }
.step .ill { height: 120px; margin-bottom: 14px; border-radius: 16px; background: linear-gradient(135deg, var(--sky), #f4f8ff); display: grid; place-items: center; }
.step .num { position: absolute; top: 16px; inset-inline-end: 18px; font-weight: 800; color: #c8d3e8; font-size: 30px; }
.step h3 { color: var(--navy); font-size: 19px; }
.step p { color: var(--muted); margin: 6px 0 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.spec { padding: 22px; display: flex; gap: 16px; align-items: center; cursor: pointer; transition: transform .15s; }
.spec:hover { transform: translateY(-3px); }
.spec .ill { width: 78px; height: 78px; border-radius: 22px; flex: none; display: grid; place-items: center; }
.spec h3 { color: var(--navy); font-size: 18px; }
@media (max-width: 800px) { .specs { grid-template-columns: 1fr; } }

.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.dcard { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.dcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(13,24,80,.13); }
.dcard .pic { aspect-ratio: 4/3.4; background: linear-gradient(160deg, #dfe9fb, #f5f8ff); position: relative; overflow: hidden; }
.dcard .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.dcard .pic .ver { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.95); color: var(--ok); font-weight: 800; font-size: 12px; border-radius: 99px; padding: 3px 10px; }
.dcard .pic .rt { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(13,24,80,.85); color: #fff; font-weight: 800; font-size: 13px; border-radius: 10px; padding: 3px 9px; }
.dcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dcard h3 { font-size: 17px; color: var(--navy); }
.dcard .meta { font-size: 13.5px; color: var(--muted); }
.dcard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); }
.dcard .price b { color: var(--navy); font-size: 18px; }
.ini { width: 100%; height: 100%; display: grid; place-items: center; font-size: 56px; font-weight: 800; color: var(--blue); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .inp { width: auto; min-width: 160px; flex: 1; }

.joinband { background: linear-gradient(120deg, var(--navy2), var(--navy3)); color: #fff; border-radius: 26px; padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; overflow: hidden; position: relative; }
.joinband h2 { font-size: 28px; }
.joinband p { color: #c3cdf0; margin: 8px 0 0; }
@media (max-width: 700px) { .joinband { grid-template-columns: 1fr; padding: 26px; } }

.foot-site { background: var(--navy2); color: #aab6e0; padding: 40px 0 26px; margin-top: 40px; font-size: 14px; }
.foot-site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.foot-site h4 { color: #fff; margin-bottom: 10px; }
.foot-site a { display: block; padding: 3px 0; }
@media (max-width: 700px) { .foot-site .cols { grid-template-columns: 1fr; } }

/* صفحة الدكتور */
.dhead { background: linear-gradient(160deg, var(--navy2), var(--navy)); color: #fff; padding: 30px 0 80px; }
.dhead .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.dhead .ph { width: 220px; height: 260px; border-radius: 26px; overflow: hidden; border: 4px solid rgba(255,255,255,.15); background: #24306b; }
.dhead .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.dhead h1 { font-size: 32px; }
.dhead .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dhead .chips .chip { background: rgba(255,255,255,.1); color: #fff; }
.dhead .nums { display: flex; gap: 26px; margin-top: 18px; }
.dhead .nums b { display: block; font-size: 24px; }
.dhead .nums span { color: #aab6e0; font-size: 13px; }
.dbody { margin-top: -50px; display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.dbody .card { padding: 22px; }
.dbody h3 { color: var(--navy); margin-bottom: 10px; font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.bookbox { position: sticky; top: 130px; }
.bookbox .pr { font-size: 30px; font-weight: 800; color: var(--navy); }
@media (max-width: 860px) {
  .dhead .wrap { grid-template-columns: 1fr; text-align: center; }
  .dhead .ph { width: 160px; height: 190px; margin: 0 auto; }
  .dhead .chips, .dhead .nums { justify-content: center; }
  .dbody { grid-template-columns: 1fr; }
  .bookbox { position: static; }
}

/* الحجز */
.wizard { max-width: 760px; margin: 30px auto; }
.prog { display: flex; gap: 8px; margin-bottom: 18px; }
.prog div { flex: 1; height: 6px; border-radius: 99px; background: #dde5f2; }
.prog div.on { background: linear-gradient(90deg, var(--orange), #ffb066); }
.wizard .card { padding: 24px; }
.wizard h2 { color: var(--navy); font-size: 24px; margin-bottom: 4px; }
.opts { display: grid; gap: 10px; }
.opt { border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; align-items: center; background: #fff; text-align: start; width: 100%; transition: border .12s, background .12s; }
.opt:hover { border-color: var(--blue2); }
.opt.on { border-color: var(--blue); background: #f2f7ff; }
.opt .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--sky); }
.opt b { display: block; color: var(--navy); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { flex: none; min-width: 78px; border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; text-align: center; cursor: pointer; background: #fff; }
.day b { display: block; font-size: 15px; color: var(--navy); }
.day span { font-size: 12px; color: var(--muted); }
.day.on { border-color: var(--blue); background: #f2f7ff; }
.day.off { opacity: .4; pointer-events: none; }
.times { display: flex; gap: 8px; flex-wrap: wrap; }
.time { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 7px 14px; cursor: pointer; font-weight: 700; }
.time.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.mini-doc { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: #f6f9ff; border: 1px solid #e1eafa; }
.mini-doc img, .mini-doc .av { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; object-position: 50% 15%; flex: none; }
.av { display: grid; place-items: center; background: var(--sky); color: var(--blue); font-weight: 800; font-size: 20px; border-radius: 50%; width: 40px; height: 40px; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.sum { display: grid; gap: 8px; background: #f7f9fd; border-radius: 14px; padding: 14px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum span { color: var(--muted); }

/* متابعة الطلب */
.track { max-width: 640px; margin: 30px auto; }
.track .hero2 { text-align: center; padding: 30px 22px; }
.pulse { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 38px; background: var(--warnbg); position: relative; }
.pulse.wait::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid #ffd27a; animation: ping 1.6s infinite; }
.pulse.ok { background: var(--okbg); }
.pulse.bad { background: var(--badbg); }
@keyframes ping { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.tl li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); margin-top: 7px; box-shadow: 0 0 0 4px var(--sky); }
.tl li::after { content: ''; position: absolute; inset-inline-start: 5px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }

/* ===== اللوحات ===== */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 38px); }
.side { background: var(--navy2); color: #c9d3f5; padding: 18px 12px; position: sticky; top: 38px; height: calc(100vh - 38px); display: flex; flex-direction: column; gap: 4px; }
.side .logo { padding: 4px 10px 16px; }
.side .logo img { height: 44px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a.on { background: rgba(255,255,255,.12); color: #fff; }
.side a .n { margin-inline-start: auto; background: var(--orange); color: #fff; border-radius: 99px; font-size: 12px; padding: 0 8px; }
.side .me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.06); }
.side .me b { color: #fff; display: block; font-size: 14px; }
.main { padding: 22px 26px 90px; min-width: 0; }
.ph-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ph-head h1 { font-size: 24px; color: var(--navy); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi span { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.kpi b { display: block; font-size: 28px; color: var(--navy); font-weight: 800; }
.kpi.hot { background: linear-gradient(135deg, #fff7ec, #fff); border-color: #ffe2bf; }
.kpi.hot b { color: var(--orange2); }
.panel { padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 18px; color: var(--navy); }
.list { display: grid; gap: 10px; margin-top: 12px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; flex-wrap: wrap; }
.item .grow { flex: 1; min-width: 180px; }
.item b { color: var(--navy); }
.item.alert { border-color: #ffd9a8; background: #fffaf2; }
.item.badl { border-color: #f6c9c9; background: #fff7f7; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: 14px; }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: start; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #eef2f8; vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f7faff; }
.scrollx { overflow-x: auto; }
.offer { border: 2px solid #ffd59a; background: linear-gradient(135deg, #fffaf2, #fff); border-radius: 18px; padding: 16px; }
.offer .tagl { font-size: 12.5px; font-weight: 800; color: var(--orange2); }
.bar { height: 8px; border-radius: 99px; background: #e8edf6; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue2)); border-radius: 99px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd8e6; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 24px; height: 24px; top: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(-22px); }
.msg { padding: 14px 16px; border-radius: 16px; background: #f4f8ff; border: 1px solid #dfe8f8; }
.mob-tabs { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 16px 14px 96px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mob-tabs { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mob-tabs a { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; position: relative; }
  .mob-tabs a .e { display: block; font-size: 20px; line-height: 1.2; }
  .mob-tabs a.on { color: var(--blue); }
  .mob-tabs a .n { position: absolute; top: 0; inset-inline-end: 22%; background: var(--orange); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 0 5px; }
  .tbl.resp thead { display: none; }
  .tbl.resp tr { display: block; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
  .tbl.resp td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 7px 12px; }
  .tbl.resp td::before { content: attr(data-l); color: var(--muted); font-weight: 700; }
}

/* الدخول */
.login { min-height: calc(100vh - 38px); display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(900px 400px at 80% 0%, #2348b8 0%, transparent 60%), linear-gradient(160deg, var(--navy2), var(--navy)); }
.login .card { width: 100%; max-width: 420px; padding: 28px; }
.login .logo { background: var(--navy2); border-radius: 16px; padding: 10px; display: flex; justify-content: center; margin-bottom: 18px; }
.login .logo img { height: 52px; }
.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 13px; outline: none; }
.otp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,111,212,.12); }
.hint { background: #f6f9ff; border: 1px dashed #c9d7f0; border-radius: 14px; padding: 12px; font-size: 13.5px; }

/* ===== المودال والتوست ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(7,13,46,.55); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 22px; }
.modal h2 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 99; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); animation: up .2s; }
.toast.err { background: var(--bad); }
@keyframes up { from { transform: translate(-50%, 12px); opacity: 0; } }
@media (max-width: 900px) { .toast { bottom: 84px; } }

/* ===== موبايل الواتساب ===== */
.wa-wrap { position: fixed; top: 38px; bottom: 0; inset-inline-end: 0; width: 400px; z-index: 70; background: #0c1330; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 40px rgba(0,0,0,.35); }
@keyframes slide { from { transform: translateX(-30px); opacity: 0; } }
.wa-top { display: flex; align-items: center; justify-content: space-between; color: #fff; }
.wa-top small { color: #9fb0e6; display: block; font-size: 12px; }
.wa-x { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 18px; }
.phone { flex: 1; background: var(--wa); border-radius: 30px; border: 8px solid #222b45; overflow: hidden; display: flex; flex-direction: column; min-height: 0; color: #e9edef; }
.wa-h { background: var(--wa2); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.wa-h b { font-size: 15px; }
.wa-h .back { background: none; border: 0; color: #e9edef; font-size: 20px; cursor: pointer; padding: 0 4px; }
.wa-list { overflow-y: auto; flex: 1; }
.wa-chat { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #1d282f; cursor: pointer; align-items: center; }
.wa-chat:hover { background: #18232a; }
.wa-chat .av { width: 44px; height: 44px; background: #2a3942; color: #cfd8dc; font-size: 16px; }
.wa-chat .t { flex: 1; min-width: 0; }
.wa-chat .t b { display: block; font-size: 14.5px; }
.wa-chat .t span { display: block; color: #8696a0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-chat .r { text-align: end; font-size: 11.5px; color: #8696a0; }
.wa-chat .r i { display: inline-block; background: #25d366; color: #052e16; font-style: normal; font-weight: 800; border-radius: 99px; padding: 0 6px; margin-top: 3px; }
.wa-kind { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #233138; color: #8fb9ff; margin-inline-start: 4px; }
.wa-body { flex: 1; overflow-y: auto; padding: 12px 10px; background: #0b141a; display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 86%; align-self: flex-start; background: var(--wain); border-radius: 12px; border-start-start-radius: 4px; padding: 8px 10px 4px; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.bub .tm { display: block; text-align: end; color: #8696a0; font-size: 11px; margin-top: 2px; }
.bub.sched { opacity: .55; border: 1px dashed #556; }
.bub.sched .tm::before { content: '🕓 هيتبعت '; }
.bub-btns { align-self: flex-start; display: grid; gap: 4px; width: 86%; }
.bub-btns button { background: var(--wain); border: 0; color: #53bdeb; border-radius: 10px; padding: 8px; cursor: pointer; font-weight: 700; font-size: 14px; }
.bub-btns button:hover { background: #2a3942; }
.bub-btns button[disabled] { color: #5f6f78; cursor: default; }
.wa-day { align-self: center; background: #182229; color: #8696a0; font-size: 12px; padding: 3px 10px; border-radius: 8px; margin: 6px 0; }
.wa-note { color: #8696a0; font-size: 12px; text-align: center; padding: 8px; }
.wa-search { padding: 8px 10px; background: var(--wa); }
.wa-search input { width: 100%; border: 0; background: #202c33; color: #e9edef; border-radius: 10px; padding: 8px 12px; outline: none; }
.wa-filters { display: flex; gap: 6px; padding: 0 10px 8px; }
.wa-filters button { border: 0; background: #202c33; color: #8696a0; border-radius: 99px; padding: 3px 11px; cursor: pointer; font-size: 12.5px; font-weight: 700; }
.wa-filters button.on { background: #0a332c; color: #25d366; }
@media (max-width: 720px) { .wa-wrap { width: 100%; top: 76px; padding: 8px; } .phone { border-width: 0; border-radius: 18px; } }
body.wa-open .main, body.wa-open .site { margin-inline-end: 400px; }
@media (max-width: 1200px) { body.wa-open .main, body.wa-open .site { margin-inline-end: 0; } }

/* ===== بوت الواتساب (صفحة 4) ===== */
.bub.me { align-self: flex-end; background: var(--wabub); }
.botpage { padding: 22px 0 40px; }
.botgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.wal { height: calc(100vh - 100px); min-height: 520px; max-height: 820px; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; box-shadow: var(--sh); border: 1px solid #e3e0d8; }
.wal-h { background: #008069; color: #fff; padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
.wal-b { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; background-color: #efeae2; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 18px 18px; }
.wb { max-width: 80%; align-self: flex-start; background: #fff; color: #111b21; border-radius: 10px; border-start-start-radius: 3px; padding: 7px 10px 4px; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wb.me { align-self: flex-end; background: #d9fdd3; border-radius: 10px; border-start-end-radius: 3px; }
.wb .tm { display: block; text-align: end; color: #667781; font-size: 11px; margin-top: 1px; }
.wb.sched { opacity: .6; border: 1px dashed #9aa6b2; }
.wq { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 88%; }
.wq button { background: #fff; border: 0; color: #008069; border-radius: 18px; padding: 6px 13px; font-weight: 700; cursor: pointer; box-shadow: 0 1px .5px rgba(11,20,26,.13); font-size: 14px; }
.wq button:hover { background: #f5f6f6; }
.wq button[disabled] { color: #a9b3ba; cursor: default; }
.wsys { align-self: center; background: #fff; color: #54656f; font-size: 12px; padding: 4px 10px; border-radius: 8px; text-align: center; max-width: 90%; box-shadow: 0 1px .5px rgba(11,20,26,.1); }
.wsys:first-child { background: #ffeecd; }
.wal-f { background: #f0f2f5; padding: 8px; display: flex; gap: 8px; align-items: center; }
.wal-f input { flex: 1; border: 0; border-radius: 22px; padding: 11px 16px; outline: none; background: #fff; font-size: 15px; }
.wal-f button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: #00a884; color: #fff; font-size: 18px; cursor: pointer; transform: scaleX(-1); }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.botside { padding: 20px; position: sticky; top: 60px; }
.botside h2 { color: var(--navy); font-size: 20px; }
.trylist { display: grid; gap: 6px; margin-top: 8px; }
.trylist .chip { border: 0; cursor: pointer; text-align: start; justify-content: flex-start; padding: 7px 12px; font-size: 13.5px; border-radius: 12px; }
.trylist .chip:hover { background: var(--sky); color: var(--blue); }
@media (max-width: 900px) {
  .botgrid { grid-template-columns: 1fr; }
  .botpage { padding: 10px 0 30px; }
  .botpage .wrap { padding: 0 8px; }
  .wal { height: calc(100vh - 100px); border-radius: 16px; }
  .botside { position: static; }
}
@media (max-width: 720px) { .wal { height: calc(100vh - 96px); } .demobar .seg a { font-size: 12px; padding: 6px 2px; } }
@media (max-width: 1100px) { .demobar .live { display: none; } }
@media (max-width: 900px) and (min-width: 721px) { .demobar .seg a { padding: 5px 9px; font-size: 12.5px; } }
.demobar .xs { display: none; }
@media (max-width: 720px) { .demobar .xl { display: none; } .demobar .xs { display: inline; } .demobar .seg a { font-size: 13px; } }
