* { box-sizing: border-box; }
body{
  margin:0; font-family:"Segoe UI",Tahoma,Arial,sans-serif; background:#f4f5f7;
  color:#222; line-height:1.6; padding-bottom:90px;
}
a{ color:inherit; text-decoration:none; }

/* الشريط العلوي */
.topbar{
  position:sticky; top:0; z-index:50; display:flex; align-items:center;
  justify-content:space-between; padding:12px 16px; background:var(--brand);
  color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.brand{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:19px; }
.brand .logo{ background:#fff; color:var(--brand); border-radius:8px; padding:2px 6px; }
.top-actions{ display:flex; align-items:center; gap:14px; }
.langbtn{ border:1.5px solid #fff; border-radius:8px; padding:3px 10px; font-weight:800; font-size:14px; }
.cart{ position:relative; font-size:22px; }
.badge{
  position:absolute; top:-8px; left:-10px; background:#e23; color:#fff;
  border-radius:50%; font-size:12px; min-width:18px; height:18px; line-height:18px;
  text-align:center; padding:0 4px; font-weight:700;
}

.wrap{ max-width:680px; margin:0 auto; padding:16px; }
h1{ font-size:22px; margin:8px 0 16px; }
h2{ font-size:18px; margin:22px 0 10px; }
.muted{ color:#777; font-size:14px; }

/* بطاقات الفئات */
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.card{
  background:#fff; border-radius:14px; padding:16px; box-shadow:0 1px 4px rgba(0,0,0,.07);
  display:flex; flex-direction:column; gap:6px; transition:.15s;
}
.card:active{ transform:scale(.98); }
.cat-card{ text-align:center; }
.cat-card .icon{ font-size:34px; }
.cat-card .name{ font-weight:800; font-size:16px; }
.cat-card .tag{ color:#888; font-size:12px; }

/* العروض */
.offer-card{
  border-right:5px solid var(--brand); flex-direction:row; align-items:center;
  justify-content:space-between; gap:10px;
}
.offer-card .price{ color:var(--brand); font-weight:800; font-size:20px; white-space:nowrap; }
.offer-card .t{ font-weight:700; }
.offer-card .s{ color:#888; font-size:13px; }

/* قائمة الخدمات */
.svc{
  background:#fff; border-radius:12px; padding:14px; margin-bottom:10px;
  box-shadow:0 1px 4px rgba(0,0,0,.06); display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.svc .info{ flex:1; }
.svc .name{ font-weight:700; }
.svc .price{ color:var(--brand); font-weight:700; font-size:14px; }
.svc .note{ color:#999; font-size:12px; }
.qty{ display:flex; align-items:center; gap:6px; }
.qty button{
  width:32px; height:32px; border:none; border-radius:8px; background:#eee;
  font-size:20px; font-weight:700; cursor:pointer; color:#444;
}
.qty input{
  width:42px; height:32px; text-align:center; border:1px solid #ddd; border-radius:8px; font-size:15px;
}

/* الحجز */
.day-tabs{ display:flex; gap:8px; overflow-x:auto; padding-bottom:8px; }
.day-tabs button{
  flex:0 0 auto; padding:8px 14px; border:1px solid #ddd; background:#fff; border-radius:20px;
  font-size:14px; cursor:pointer; font-weight:600;
}
.day-tabs button.active{ background:var(--brand); color:#fff; border-color:var(--brand); }
.slots{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.slot{
  padding:12px; border:1px solid #ddd; border-radius:10px; background:#fff; text-align:center;
  cursor:pointer; font-size:14px; direction:ltr;
}
.slot.disabled{ background:#f0f0f0; color:#bbb; cursor:not-allowed; }
.slot.sel{ background:var(--brand); color:#fff; border-color:var(--brand); font-weight:700; }

/* ملخّص / فاتورة */
.summary{ background:#fff; border-radius:12px; padding:14px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.summary .row{ display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px dashed #eee; }
.summary .row:last-child{ border:none; }
.total{ font-weight:800; font-size:18px; color:var(--brand); }

/* الضمانات */
.guar{ display:flex; gap:10px; align-items:flex-start; padding:8px 0; }
.guar .g-i{ font-size:22px; }
.guar .g-t{ font-weight:700; }
.guar .g-s{ color:#888; font-size:13px; }

/* النماذج */
label{ display:block; font-weight:600; margin:12px 0 4px; }
input[type=text], input[type=tel], textarea, input[type=file]{
  width:100%; padding:11px; border:1px solid #ddd; border-radius:10px; font-size:15px; font-family:inherit;
}
textarea{ min-height:80px; }

/* الأزرار */
.btn{
  display:block; width:100%; padding:15px; border:none; border-radius:12px;
  background:var(--brand); color:#fff; font-size:17px; font-weight:800; cursor:pointer; text-align:center;
}
.btn:active{ background:var(--brand-dark); }
.btn-ghost{ background:#fff; color:var(--brand); border:2px solid var(--brand); }

/* الشريط السفلي الثابت */
.bottombar{
  position:fixed; bottom:0; right:0; left:0; background:#fff; padding:10px 16px;
  box-shadow:0 -2px 10px rgba(0,0,0,.1); z-index:40;
}
.bottombar .inner{ max-width:680px; margin:0 auto; }

.flashes{ max-width:680px; margin:8px auto; padding:0 16px; }
.flash{ padding:10px 14px; border-radius:10px; margin-bottom:8px; font-size:14px; }
.flash.warn{ background:#fff3cd; color:#8a6d3b; }
.flash.ok{ background:#d4edda; color:#256029; }

.foot{ text-align:center; color:#aaa; font-size:12px; padding:20px; }
.cover{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark)); color:#fff;
  border-radius:14px; padding:22px; text-align:center; margin-bottom:16px;
}
.cover .big{ font-size:26px; font-weight:800; }
/* بانر خصم التركيب */
.promo{
  background:linear-gradient(90deg,#fff3e8,#ffe2c7); color:var(--brand-dark);
  border:1.5px dashed var(--brand); border-radius:12px; padding:13px 14px;
  font-weight:800; font-size:15px; text-align:center; margin-bottom:16px;
}
.approx{ background:#eef6ff; color:#2b5b8a; border-radius:10px; padding:9px 12px;
  font-size:13px; text-align:center; margin-bottom:14px; }
/* عناوين مجموعات الخدمات */
.grp-head{
  font-weight:800; font-size:16px; color:#333; margin:18px 0 8px; padding-bottom:6px;
  border-bottom:2px solid var(--brand);
}
.addchk{ margin:0; white-space:nowrap; font-weight:600; }
.cond li{ margin:6px 0; color:#555; }
.pill{ display:inline-block; background:#fff3e8; color:var(--brand); border-radius:20px; padding:3px 10px; font-size:12px; font-weight:700; }

/* جدول اللوحة */
.tbl{ width:100%; border-collapse:collapse; background:#fff; border-radius:10px; overflow:hidden; }
.tbl th,.tbl td{ padding:10px; border-bottom:1px solid #eee; font-size:14px; text-align:right; }
.tbl th{ background:#fafafa; }
.tag-st{ padding:2px 8px; border-radius:12px; font-size:12px; font-weight:700; }
.st-new{ background:#e7f1ff; color:#1366d6; }
.st-confirmed{ background:#fff3cd; color:#8a6d3b; }
.st-assigned{ background:#e8eaf6; color:#5e35b1; }
.st-done{ background:#d4edda; color:#256029; }
.st-cancelled{ background:#fde8e8; color:#c0392b; }
