/* ===================================================
   سريع ديليفري - Saree Web Delivery Platform
   منظومة ويب متكاملة للشاشات الكبيرة وأجهزة الكمبيوتر والمتصفحات
   =================================================== */

:root {
  --primary: #FF5A1F;
  --primary-dark: #E0440C;
  --primary-light: #FFF0EB;
  --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF3D00 100%);
  
  --secondary: #0F172A;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --bg-page: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  
  --success: #10B981;
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --danger: #EF4444;
  --blue: #3B82F6;
  --blue-light: #EFF6FF;
  --purple: #8B5CF6;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 15px 30px -5px rgba(255, 90, 31, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-family: 'Tajawal', sans-serif;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1440px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==================== 1. الشريط العلوي للويب (Navbar) ==================== */
.web-navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* الشعار */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.35);
}

.brand-text h1 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.1;
}

.brand-text h1 span {
  color: var(--primary);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* محدد العنوان */
.web-location-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  max-width: 290px;
  flex-shrink: 0;
}

.web-location-btn:hover {
  background: #E2E8F0;
  border-color: var(--border-color);
}

.loc-pin {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.loc-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.loc-title {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.loc-info strong {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow-down {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* شريط البحث للويب */
.web-search-bar {
  flex: 1;
  max-width: 440px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.web-search-bar:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

.search-icon {
  color: var(--text-muted);
  font-size: 1rem;
}

.web-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-main);
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: none;
}

/* أزرار التبديل بين البوابات */
.portal-switchers {
  display: flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.portal-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.portal-btn:hover {
  color: var(--text-main);
}

.portal-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 90, 31, 0.35);
}

/* الإجراءات والمستخدم */
.web-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-circle-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-main);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.action-circle-btn:hover {
  background: #F8FAFC;
  border-color: var(--primary);
  color: var(--primary);
}

.action-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.mobile-cart-toggle {
  display: none;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.user-profile-menu:hover {
  background: #F1F5F9;
}

.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-meta strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.user-tier {
  font-size: 0.68rem;
  color: #D97706;
  font-weight: 700;
}

/* ==================== تبديل البوابات ==================== */
.portal-section {
  display: none;
  flex: 1;
}

.portal-section.active {
  display: block;
}

/* ==================== 2. شريط الأقسام (Categories Bar) ==================== */
.categories-bar-wrapper {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.categories-bar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.categories-bar-container::-webkit-scrollbar {
  display: none;
}

.web-category-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.web-category-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.web-category-card.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.3);
}

.cat-img {
  font-size: 1.15rem;
}

.web-category-card span {
  font-size: 0.88rem;
  font-weight: 700;
}

/* ==================== 3. المحتوى الرئيسي (المطاعم + الوجبات + السلة) ==================== */
.web-main-layout {
  max-width: var(--max-width);
  margin: 28px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 30px;
  align-items: start;
}

/* العمود الأيمن (Content) */
.web-content-col {
  min-width: 0;
}

/* بانرات العروض الكبيرة للويب */
.web-banners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.web-promo-banner {
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.banner-orange {
  background: linear-gradient(135deg, #FF6B35 0%, #FF3D00 100%);
  box-shadow: 0 10px 24px rgba(255, 90, 31, 0.25);
}

.banner-dark {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.promo-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.green-tag {
  background: rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.web-promo-banner h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.web-promo-banner p {
  font-size: 0.84rem;
  opacity: 0.9;
  margin-bottom: 16px;
  max-width: 320px;
  line-height: 1.4;
}

.coupon-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coupon-code-box {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
}

.btn-copy-code {
  background: #0F172A;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-code:hover {
  background: #000;
}

.btn-banner-action {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-banner-action:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.promo-icon-art i {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.2);
  transform: rotate(-15deg);
}

/* عناوين الأقسام */
.content-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.web-section-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--secondary);
}

.web-section-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.filter-chips-row {
  display: flex;
  gap: 8px;
}

.filter-chip {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.filter-chip:hover, .filter-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* شبكة المطاعم (Web Stores Grid) */
.web-stores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.web-store-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.web-store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.wstore-thumb {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.wstore-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.web-store-card:hover .wstore-thumb img {
  transform: scale(1.05);
}

.wstore-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.wstore-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wstore-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wstore-header h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--secondary);
}

.wstore-rating {
  font-size: 0.8rem;
  font-weight: 700;
  color: #D97706;
  display: flex;
  align-items: center;
  gap: 3px;
}

.wstore-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* شبكة الوجبات للويب (Web Meals Grid) */
.web-meals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.web-meal-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.web-meal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.wmeal-thumb {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.wmeal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.web-meal-card:hover .wmeal-thumb img {
  transform: scale(1.06);
}

.wmeal-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.wmeal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wmeal-store {
  font-size: 0.74rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.wmeal-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--secondary);
}

.wmeal-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  height: 38px;
  overflow: hidden;
}

.wmeal-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.wmeal-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
}

.btn-add-wmeal {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-wmeal:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 90, 31, 0.3);
}

/* ==================== 4. الشريط الجانبي الثابت (Sidebar - Cart & Tracking) ==================== */
.web-sidebar-col {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
  overflow: hidden;
}

.sidebar-tabs-nav {
  display: flex;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
  padding: 6px;
  gap: 6px;
}

.side-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.side-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.side-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: liveBlink 1.2s infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
}

.sidebar-panel {
  display: none;
}

.sidebar-panel.active {
  display: block;
}

.sidebar-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-card-header h4 {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear-cart {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* عناصر السلة */
.web-cart-items-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 14px 20px;
}

.web-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.cart-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item-meta {
  flex: 1;
}

.cart-item-meta h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--secondary);
}

.cart-item-meta .sub-details {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-item-meta .price {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cqty {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

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

/* الحسابات والدفع */
.web-cart-checkout-box {
  padding: 16px 20px 22px;
  background: #FAFAFB;
  border-top: 1px solid var(--border-color);
}

.web-promo-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.web-promo-input-row input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.84rem;
  outline: none;
}

.web-promo-input-row button {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.web-promo-msg {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.web-promo-msg.success { color: var(--success); }
.web-promo-msg.error { color: var(--danger); }

.price-breakdown-card {
  margin-bottom: 14px;
}

.p-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.discount-color {
  color: var(--success) !important;
  font-weight: 700;
}

.p-row-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--secondary);
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.p-row-total strong {
  color: var(--primary);
  font-size: 1.15rem;
}

.web-payment-selection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pay-method-radio {
  cursor: pointer;
}

.pay-method-radio input {
  display: none;
}

.pay-method-box {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.pay-method-box i {
  font-size: 1.2rem;
}

.pay-method-radio input:checked + .pay-method-box {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.btn-web-checkout {
  width: 100%;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(255, 90, 31, 0.35);
  transition: var(--transition);
}

.btn-web-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 90, 31, 0.45);
}

/* لوحة التتبع الحي في الـ Sidebar */
.tracking-order-id {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.btn-move-driver {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(255, 90, 31, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.web-tracking-map-container {
  height: 200px;
  position: relative;
}

.web-map {
  width: 100%;
  height: 100%;
}

.map-eta-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-eta-badge i {
  color: var(--warning);
}

/* مراحل الطلب في الويب */
.web-stepper {
  padding: 16px 20px;
  background: #fff;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.step-info h5 {
  font-size: 0.85rem;
  font-weight: 800;
}

.step-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.step-item.completed .step-circle {
  background: var(--success);
  color: #fff;
}

.step-item.in-progress .step-circle {
  background: var(--primary);
  color: #fff;
  animation: pulseWeb 1.5s infinite;
}

.pulse-text {
  color: var(--primary) !important;
  font-weight: 700;
}

@keyframes pulseWeb {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

.step-connector {
  width: 2px;
  height: 14px;
  background: #E2E8F0;
  margin-right: 15px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.step-connector.active {
  background: var(--success);
}

/* بطاقة السائق */
.web-courier-card {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: #FAFAFB;
  display: flex;
  align-items: center;
  gap: 12px;
}

.courier-photo-wrap {
  position: relative;
  width: 46px;
  height: 46px;
}

.courier-photo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2px solid #fff;
  border-radius: 50%;
}

.courier-meta {
  flex: 1;
}

.courier-meta h5 {
  font-size: 0.92rem;
  font-weight: 800;
}

.courier-rating {
  font-size: 0.72rem;
  color: #D97706;
  font-weight: 700;
}

.courier-vehicle {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.courier-btns {
  display: flex;
  gap: 6px;
}

.courier-btns .call-btn, .courier-btns .chat-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.courier-btns .call-btn {
  background: var(--success-light);
  color: var(--success);
}

.courier-btns .chat-btn {
  background: var(--primary-light);
  color: var(--primary);
}

.courier-btns button:hover {
  transform: scale(1.08);
}

/* ==================== 5. بوابة المندوب للويب (Driver Portal) ==================== */
.portal-container {
  max-width: var(--max-width);
  margin: 30px auto;
  padding: 0 28px;
}

.driver-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.driver-dashboard-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--secondary);
}

.driver-dashboard-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.driver-online-status-card {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-active {
  color: var(--success);
  font-size: 0.84rem;
}

/* زر التبديل Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--success);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.earnings-quick-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.earnings-quick-box span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.earnings-quick-box strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
}

.driver-portal-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
}

.incoming-order-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(255, 90, 31, 0.12);
  margin-bottom: 20px;
}

.inc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.inc-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
}

.timer-badge {
  background: #FEF2F2;
  color: var(--danger);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
}

.fare-banner {
  background: var(--primary-light);
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.fare-banner span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.fare-banner h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.trip-points-box {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.point-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.point-row strong {
  font-size: 0.88rem;
  display: block;
}

.point-row span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.icon-store {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-user {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #DBEAFE;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.point-divider {
  width: 2px;
  height: 18px;
  background: #CBD5E1;
  margin-right: 15px;
  margin-top: 3px;
  margin-bottom: 3px;
}

.driver-confirm-btns {
  display: flex;
  gap: 10px;
}

.btn-decline-order {
  flex: 1;
  background: #F1F5F9;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-accept-order {
  flex: 2;
  background: var(--success);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.driver-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.d-stat-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.d-stat-box i {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.d-stat-box h3 {
  font-size: 1.35rem;
  font-weight: 900;
}

.d-stat-box p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.text-green { color: var(--success); }
.text-orange { color: var(--primary); }
.text-gold { color: #D97706; }
.text-blue { color: var(--blue); }

.map-card-shell {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 580px;
}

.map-top-caption {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.live-pill-tag {
  background: var(--success-light);
  color: var(--success);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.driver-full-map {
  width: 100%;
  flex: 1;
}

/* ==================== 6. لوحة تحكم الإدارة (Admin Portal) ==================== */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-page-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.btn-admin-action {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-action.primary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.admin-metric-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.blue-gradient { background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); }
.orange-gradient { background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%); }
.green-gradient { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.purple-gradient { background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%); }

.admin-metric-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.metric-body span {
  font-size: 0.78rem;
  opacity: 0.9;
}

.metric-body h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 2px 0;
}

.metric-body .trend {
  font-size: 0.72rem;
  font-weight: 700;
}

/* جدول الإدارة */
.admin-table-container {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.table-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.table-top-bar h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.table-top-bar p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.table-search-box {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 320px;
}

.table-search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.82rem;
  flex: 1;
}

.table-responsive {
  overflow-x: auto;
}

.web-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.web-admin-table th, .web-admin-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid #F1F5F9;
  white-space: nowrap;
}

.web-admin-table th {
  background: #F8FAFC;
  font-weight: 800;
  color: var(--text-muted);
}

.status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.status-badge.in-delivery { background: #DBEAFE; color: #1D4ED8; }
.status-badge.preparing { background: #FFEDD5; color: #C2410C; }
.status-badge.delivered { background: #D1FAE5; color: #047857; }

/* ==================== 7. النوافذ المنبثقة للويب (Modals) ==================== */
.web-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.web-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.web-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-close-modal {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 20;
}

.modal-two-columns {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.modal-col-img {
  position: relative;
  height: 100%;
}

.modal-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
}

.modal-col-details {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.modal-store-name {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.modal-col-details h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.meal-full-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.modal-price-display {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 18px;
}

.modal-addons-box {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.modal-addons-box h4 {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.custom-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  margin-bottom: 8px;
  cursor: pointer;
}

.custom-check-row input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.addon-cost {
  margin-right: auto;
  color: var(--primary);
  font-weight: 800;
}

.modal-notes-box {
  margin-bottom: 20px;
}

.modal-notes-box label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-notes-box input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.84rem;
  outline: none;
}

.modal-bottom-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.web-qty-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F1F5F9;
  padding: 6px 14px;
  border-radius: 12px;
}

.web-qty-counter button {
  background: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.btn-confirm-add-cart {
  flex: 1;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.35);
}

/* نافذة العنوان المصغرة */
.mini-card {
  max-width: 460px;
  padding: 24px;
}

.modal-header-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.address-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.addr-card:hover, .addr-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.addr-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.addr-meta strong {
  font-size: 0.9rem;
  display: block;
}

.addr-meta p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.check-selected {
  margin-right: auto;
  color: var(--primary);
  font-size: 1.1rem;
}

/* نافذة الدردشة للويب */
.chat-card-web {
  max-width: 520px;
  height: 520px;
  display: flex;
  flex-direction: column;
}

.chat-header-web {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-driver-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-driver-info img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.chat-driver-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
}

.online-txt {
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 700;
}

.chat-body-web {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-msg.incoming {
  align-self: flex-start;
  background: #F1F5F9;
  border-bottom-right-radius: 4px;
}

.chat-msg.outgoing {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.m-time {
  display: block;
  font-size: 0.68rem;
  opacity: 0.75;
  margin-top: 4px;
}

.chat-input-web {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.chat-input-web input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  font-size: 0.86rem;
}

.chat-input-web button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: var(--radius-full);
  font-weight: 800;
  cursor: pointer;
}

/* ==================== 8. تذييل الصفحة للويب (Footer) ==================== */
.web-footer {
  background: #0F172A;
  color: #fff;
  margin-top: auto;
  padding: 50px 0 20px;
  border-top: 1px solid #1E293B;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.brand-col p {
  font-size: 0.84rem;
  color: #94A3B8;
  margin: 16px 0;
  line-height: 1.6;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: #1E293B;
  color: #94A3B8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #F8FAFC;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.84rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-tag {
  background: #1E293B;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #CBD5E1;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px 28px 0;
  border-top: 1px solid #1E293B;
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
}

/* إشعارات التوست للويب */
.web-toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.web-toast {
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideUpToast 0.3s ease;
  border-right: 4px solid var(--primary);
}

@keyframes slideUpToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==================== الاستجابة لشاشات اللابتوب والتابلت ==================== */
@media (max-width: 1200px) {
  .web-main-layout {
    grid-template-columns: 1fr 340px;
    gap: 20px;
  }
  .web-stores-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .web-meals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .web-main-layout {
    grid-template-columns: 1fr;
  }
  .web-sidebar-col {
    position: static;
  }
  .mobile-cart-toggle {
    display: flex;
  }
  .web-banners-grid {
    grid-template-columns: 1fr;
  }
  .driver-portal-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== أنماط تفاعلية إضافية ==================== */
.sound-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-main);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sound-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.web-store-card.selected-store {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15);
  transform: translateY(-4px);
}

.driver-alert-badge, .admin-orders-count-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  margin-right: 4px;
}

.admin-orders-count-badge {
  background: var(--primary);
}

.meals-filter-feedback {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meals-filter-feedback span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.btn-reset-filter {
  background: #FEF2F2;
  color: var(--danger);
  border: 1px solid #FCA5A5;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-reset-filter:hover {
  background: var(--danger);
  color: #fff;
}

/* ==================== لمسات إضافية للأنيميشن الاحترافي ==================== */
.btn-web-checkout, .btn-confirm-add-cart {
  position: relative;
  overflow: hidden;
}

.btn-web-checkout::after, .btn-confirm-add-cart::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(30deg);
  animation: buttonLightSweep 3.5s infinite;
}

@keyframes buttonLightSweep {
  0% { transform: translateX(-100%) rotate(30deg); }
  25%, 100% { transform: translateX(100%) rotate(30deg); }
}

.web-meal-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}

.web-meal-card:hover {
  transform: translateY(-8px) scale(1.015) !important;
  box-shadow: 0 20px 40px -10px rgba(255, 90, 31, 0.22) !important;
}

.web-category-card.active {
  animation: categoryGlow 3s infinite alternate ease-in-out;
}

@keyframes categoryGlow {
  0% { box-shadow: 0 4px 14px rgba(255, 90, 31, 0.3); }
  100% { box-shadow: 0 8px 25px rgba(255, 90, 31, 0.55); }
}


