/* =========================================================
   WASLA (وصلة) - Complete Mobile-First & Role-Based UI
   Palette: Orange (#FF6B00), Charcoal (#181818), White (#FFFFFF)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --primary: #FF6B00;
  --primary-hover: #E55E00;
  --primary-soft: #FFF3EA;
  --primary-border: #FFD9BE;
  --dark: #181818;
  --dark-card: #222222;
  --white: #FFFFFF;
  --bg-page: #F2F4F7;
  --text-main: #181818;
  --text-muted: #667085;
  --border-light: #EAECF0;
  --success: #12B76A;
  --success-soft: #ECFDF3;
  --warning: #F79009;
  --warning-soft: #FFFAEB;
  --danger: #F04438;
  --danger-soft: #FEF3F2;
  --whatsapp: #25D366;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(24, 24, 24, 0.05);
  --shadow-md: 0 8px 24px rgba(24, 24, 24, 0.08);
  --nav-height: 72px;
}

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

html, body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

html[dir="ltr"] body {
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
}

/* Native App Shell Container */
.app-shell {
  max-width: 520px;
  margin: 0 auto;
  background-color: var(--white);
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--nav-height) + 24px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  overflow-x: hidden;
}

.app-shell.no-nav {
  padding-bottom: 32px;
}

/* Top App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-lang {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 11px;
  border-radius: 99px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-lang:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-back {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-page);
  border: none;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

html[dir="ltr"] .btn-back svg {
  transform: rotate(180deg);
}

.page-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
}

.content-pad {
  padding: 16px 18px;
}

/* Working Hours */
.hours-banner {
  background: var(--warning-soft);
  border: 1px solid #FEC84B;
  color: #93370D;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-page);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.status-dot.closed {
  background: var(--warning);
}

/* Hero Banner */
.hero-card {
  background: linear-gradient(135deg, var(--dark) 0%, #2B211B 65%, var(--primary) 145%);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.22);
  border: 1px solid rgba(255, 107, 0, 0.5);
  color: #FFB37B;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 0.85rem;
  color: #D0D5DD;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger-outline {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #FECDCA;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

/* Section Heading */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.service-card-description {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.service-description-preview {
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--dark);
  font-size: 0.8rem;
  line-height: 1.55;
}

.service-admin-card { margin: 10px 0; padding: 14px; border:1px solid var(--border-light); border-radius:var(--radius-md); }
.service-admin-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.service-admin-form { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; border-top:1px solid var(--border-light); padding-top:12px; }
.service-admin-form .form-label { margin:3px 0 0; }
.service-admin-form .form-control { min-width:0; }
.service-admin-form textarea.form-control { min-height:82px; }
.service-admin-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:8px; margin-top:5px; }
.service-admin-actions .btn { width:100%; min-height:44px; padding:9px 8px; font-size:.8rem; }
.service-admin-create { margin-top:12px; padding:14px; border:1px solid var(--border-light); border-radius:var(--radius-md); background:var(--bg-page); }

.price-chip {
  background: var(--bg-page);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
}

/* Pricing Info Box */
.pricing-info-card {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  padding: 4px 0;
}

.pricing-row strong {
  color: var(--primary);
  font-weight: 800;
}

.pricing-note {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--primary-border);
}

/* Store Coming Soon Banner */
.coming-soon-card {
  background: linear-gradient(90deg, #FFF5ED 0%, #FFE8D6 100%);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.coming-soon-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lock-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Support Strip */
.support-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-btns {
  display: flex;
  gap: 8px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control[readonly] {
  background: var(--bg-page);
  color: var(--text-muted);
  cursor: not-allowed;
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* Service Pills Selector */
.pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.pills-scroll::-webkit-scrollbar {
  display: none;
}

.service-pill {
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 99px;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  color: var(--dark);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.service-pill.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Zone Radio Cards */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.zone-option {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.zone-option input {
  display: none;
}

.zone-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.zone-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
}

.zone-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

/* Interactive delivery map */
.map-preview-box {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #EEF2F6;
  margin-top: 8px;
}
.delivery-map { height: 260px; width: 100%; z-index: 0; background: #e9eef3; }
.order-map-shell { margin: 10px 0; padding: 8px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--white); }
.order-location-map { height: 190px; width: 100%; border-radius: 8px; background: #e9eef3; z-index: 0; }
.map-caption, .map-route-info { display:block; margin-top:6px; color:var(--text-muted); font-size:.75rem; }
.driver-route-button { margin-top:7px; }
.order-details-skeleton .skeleton-card { margin-bottom:12px; }
.gps-coordinates { color: var(--text-muted); font-size: .72rem; text-align: center; direction: ltr; }

.map-footer {
  background: var(--white);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.cod-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

/* Order Cards & Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.filter-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.order-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.order-card.order-state-pending { border: 2px solid #f59e0b; }
.order-card.order-state-assigned { border: 2px solid #8b5cf6; }
.order-card.order-state-in-progress { border: 2px solid #3b82f6; }
.order-card.order-state-overdue { border: 2px solid #e67e22; box-shadow: 0 0 0 2px rgba(230,126,34,.12); }
.order-card.order-state-delivered { border: 2px solid #22a06b; }
.order-card.order-state-cancelled { border: 2px solid #e5484d; }
.order-status-legend { display:flex; flex-wrap:wrap; gap:7px 14px; margin:4px 0 12px; color:var(--text-muted); font-size:.72rem; }
.order-status-legend span { display:inline-flex; align-items:center; gap:5px; }
.legend-dot { width:10px; height:10px; border-radius:50%; display:inline-block; }
.legend-dot.pending { background:#f59e0b; }
.legend-dot.assigned { background:#8b5cf6; }
.legend-dot.in-progress { background:#3b82f6; }
.legend-dot.overdue { background:#e67e22; }
.legend-dot.delivered { background:#22a06b; }
.legend-dot.cancelled { background:#e5484d; }

.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.order-id {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--dark);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-pending { background: var(--warning-soft); color: #B54708; }
.status-in_progress { background: var(--primary-soft); color: var(--primary); }
.status-delivered { background: var(--success-soft); color: #027A48; }
.status-rejected { background: var(--danger-soft); color: #B42318; }

.edited-tag {
  background: #EEF4FF;
  color: #3538CD;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-inline-start: 6px;
}

.order-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 10px;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Circular Countdown Timer */
.timer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0 20px;
}

.timer-ring {
  position: relative;
  width: 184px;
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring svg {
  transform: rotate(-90deg);
  width: 184px;
  height: 184px;
}

.timer-ring circle.bg {
  fill: none;
  stroke: #F2F4F7;
  stroke-width: 12;
}

.timer-ring circle.progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 65;
  transition: stroke-dashoffset 0.5s linear;
}

.timer-center {
  position: absolute;
  text-align: center;
}

.timer-digits {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  direction: ltr;
}

.timer-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Detail Summary Rows */
.detail-box {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 14px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.86rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-key {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.detail-val {
  color: var(--dark);
  font-weight: 700;
  text-align: end;
}

/* Alert Boxes */
.alert-danger {
  background: var(--danger-soft);
  border: 1.5px solid #FDA29B;
  color: #912018;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.alert-warning {
  background: var(--warning-soft);
  border: 1.5px solid #FEC84B;
  color: #93370D;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.alert-info {
  background: #EFF8FF;
  border: 1.5px solid #B2DDFF;
  color: #175CD3;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  font-size: 0.84rem;
}

/* Dashboard KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.kpi-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kpi-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
}

.kpi-card-button {
  width: 100%;
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.kpi-card-button:hover { transform: translateY(-1px); }
.kpi-card-button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.kpi-card-button.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.kpi-card-attention .kpi-num { color: #c65d12; }
.kpi-card-secondary { opacity: .78; }
.overdue-order-alert { border-inline-start: 3px solid #e67e22; font-weight: 700; }

@media (max-width: 560px) {
  .kpi-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.kpi-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.kpi-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Auth Tabs & Social Buttons */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-page);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.auth-tab {
  padding: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
}

.auth-tab.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.social-divider {
  text-align: center;
  position: relative;
  margin: 18px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
  z-index: 0;
}

.social-divider span {
  background: var(--white);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Fixed Native Android Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: var(--nav-height);
  background: var(--white);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 60;
  padding: 6px 0;
}

.admin-bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 24, 0.55);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 700;
  z-index: 120;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.hidden {
  display: none !important;
}

/* Dashboard skeletons */
.wasla-skeleton {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.skeleton-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.skeleton-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .skeleton-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.skeleton-block {
  min-height: 14px;
  border-radius: 7px;
  background: linear-gradient(100deg, #edf0f2 25%, #f8f9fa 45%, #edf0f2 65%);
  background-size: 220% 100%;
  animation: wasla-shimmer 1.35s ease-in-out infinite;
}
.skeleton-block.skeleton-kpi { min-height: 74px; border-radius: var(--radius-md); }
.skeleton-block.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-block.skeleton-line-lg { height: 20px; width: 52%; }
.skeleton-block.skeleton-line-md { height: 14px; width: 76%; }
.skeleton-block.skeleton-line-sm { height: 12px; width: 38%; }
.skeleton-block.skeleton-input { height: 42px; width: 100%; }
.skeleton-row { display: flex; align-items: center; gap: 12px; }
.skeleton-column { display: grid; flex: 1; gap: 9px; }
.skeleton-error { padding: 16px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--white); }
.order-timer-wrapper { padding: 8px 0 10px; }
.order-timer-wrapper .timer-ring,
.order-timer-wrapper .timer-ring svg { width: 142px; height: 142px; }
.order-timer-wrapper .timer-digits { font-size: 1.5rem; }
.order-timer-wrapper .timer-label { max-width: 104px; line-height: 1.5; }
.order-timer-wrapper .timer-digits.is-expired { color: var(--danger); font-size: .78rem; direction: rtl; }
@keyframes wasla-shimmer {
  to { background-position-x: -220%; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-block { animation: none; background: #edf0f2; }
}

.auth-muted { color: var(--text-muted); font-size: .82rem; line-height: 1.7; }
.notification-trigger { position: relative; white-space: nowrap; }
.notification-count { display:inline-flex; min-width:18px; height:18px; align-items:center; justify-content:center; margin-inline-start:4px; padding:0 4px; border-radius:999px; background:#c62828; color:#fff; font-size:.68rem; font-weight:800; }
.notification-panel { position:fixed; z-index:150; top:72px; inset-inline:12px; max-width:520px; margin-inline:auto; max-height:min(72vh,640px); overflow:hidden; background:var(--white); border:1px solid var(--border-light); border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
.notification-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid var(--border-light); }
.notification-list { overflow:auto; max-height:calc(min(72vh,640px) - 54px); padding:8px; }
.notification-item { display:flex; width:100%; flex-direction:column; gap:4px; text-align:start; background:transparent; border:0; border-bottom:1px solid var(--border-light); padding:12px; color:var(--text-main); cursor:pointer; }
.notification-item:hover { background:var(--bg-page); }
.notification-item-title { font-weight:800; font-size:.86rem; }
.notification-item-body { font-size:.82rem; line-height:1.5; }
.notification-item time { color:var(--text-muted); font-size:.72rem; }
.notification-unread { border-inline-start:3px solid var(--primary); background:rgba(11,122,99,.05); }
.data-table th, .data-table td { text-align:center; padding:10px 8px; border-bottom:1px solid var(--border-light); font-size:.82rem; }
.data-table th { color:var(--text-muted); font-weight:800; }
.working-days-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.working-days-grid label { display:flex; align-items:center; gap:6px; padding:8px; border:1px solid var(--border-light); border-radius:var(--radius-sm); font-size:.82rem; }
