/* ==============================================================================
   منظومة «صيانة بلس» - أنماط واجهة العميل وتتبع الحجوزات (Customer & Bookings)
============================================================================== */

/* البانر الترويجي الرئيسي (Hero Banner) */
.hero-banner {
  background: linear-gradient(135deg, #1E252D 0%, #2A3644 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin: 12px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(30, 37, 45, 0.3);
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 95, 0, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 161, 0, 0.18);
  border: 1px solid rgba(255, 161, 0, 0.4);
  color: #FFA100;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #FFF;
}

.hero-desc {
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 90%;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-btn {
  background: var(--primary);
  color: #FFF;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
}

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

.hero-support-pill {
  font-size: 0.72rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* بطاقة المحفظة والترحيب بالعميل (User Profile Header) */
.user-profile-header {
  padding: 16px;
  background: #FFF;
  border-bottom: 1px solid var(--border-subtle);
}

.user-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.user-status-dot {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid #FFF;
}

.user-text-meta {
  flex: 1;
}

.user-greeting {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-tier-badge {
  background: var(--tertiary-light);
  color: var(--tertiary-dark);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.user-active-hint {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* بطاقة رصيد المحفظة */
.wallet-card-strip {
  background: var(--surface-dim);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
}

.wallet-balance-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wallet-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
}

.wallet-charge-btn {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 95, 0, 0.2);
}

/* بطاقات الإجراءات السريعة للمستخدم */
.quick-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px;
}

.action-card-emergency {
  background: linear-gradient(135deg, #FF5F00 0%, #D63A00 100%);
  color: #FFF;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
}

.action-card-packages {
  background: #FFF;
  border: 1.5px solid rgba(30, 37, 45, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--secondary);
}

.action-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.action-card-emergency .action-card-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #FFF;
}

.action-card-packages .action-card-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.action-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.action-card-subtitle {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* تبويبات الحجوزات */
.tabs-container {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--primary);
  color: #FFF;
  box-shadow: var(--shadow-glow);
}

.tab-counter {
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 50%;
}

.tab-btn:not(.active) .tab-counter {
  background: var(--surface-dim);
  color: var(--text-muted);
}

/* بطاقة الطلب الجاري الحي (Active Live Order Card) */
.active-order-card {
  background: #FFF;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  margin: 14px 16px;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.order-card-live-header {
  background: var(--primary);
  color: #FFF;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: #FFF;
  border-radius: 50%;
  animation: pulse 1s infinite;
  display: inline-block;
  margin-inline-end: 6px;
}

.order-card-body {
  padding: 16px;
}

.order-meta-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-pin-badge {
  background: var(--surface-dim);
  border: 1.5px dashed var(--secondary);
  border-radius: 10px;
  padding: 4px 8px;
  text-align: center;
}

.order-pin-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  display: block;
}

.order-pin-code {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: 1px;
}

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

.order-category-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 4px;
}

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

/* مؤشر خطوات الفني (Tracker Stepper) */
.tracker-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  position: relative;
}

.tracker-stepper::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 12px;
  left: 12px;
  height: 3px;
  background: var(--surface-dim);
  z-index: 1;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.track-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-dim);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFF;
  transition: var(--transition-fast);
}

.track-step.done .track-circle {
  background: var(--success);
  color: #FFF;
}

.track-step.current .track-circle {
  background: var(--primary);
  color: #FFF;
  box-shadow: var(--shadow-glow);
}

.track-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.track-step.current .track-label {
  color: var(--primary);
}

/* بطاقة الخريطة التفاعلية */
.map-tracker-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 140px;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
  background: #1E293B;
}

.map-tracker-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-distance-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(30, 37, 45, 0.85);
  backdrop-filter: blur(8px);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* بطاقة ملخص الفني بالطلب */
.order-tech-mini {
  background: var(--surface-dim);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.order-tech-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-tech-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.order-tech-details h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--secondary);
}

.order-tech-details p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.order-tech-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.tech-action-btn.call {
  background: #FFF;
  color: var(--secondary);
  border: 1px solid var(--border-subtle);
}

.tech-action-btn.chat {
  background: var(--primary);
  color: #FFF;
}

/* بطاقات الزيارات السابقة والفواتير */
.past-order-card {
  background: #FFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 0 16px 12px;
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.past-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.past-order-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.past-order-status.completed {
  background: var(--success-light);
  color: var(--success);
}

.past-order-status.closed {
  background: var(--surface-dim);
  color: var(--text-muted);
}

.warranty-indicator {
  background: var(--primary-light);
  border: 1px dashed rgba(255, 95, 0, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.past-order-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* قسم كيف تطلب فني صيانة */
.how-it-works-box {
  background: #FFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 14px 16px;
  box-shadow: var(--shadow-ambient);
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.how-step:last-child {
  margin-bottom: 0;
}

.how-step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFF;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.how-step:nth-child(2) .how-step-num {
  background: var(--secondary);
}

.how-step-content h5 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--secondary);
}

.how-step-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* آراء العملاء */
.reviews-scroll {
  display: flex;
  gap: 12px;
  padding: 8px 16px 16px;
  overflow-x: auto;
}

.review-card {
  background: #FFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  min-width: 260px;
  max-width: 280px;
  box-shadow: var(--shadow-ambient);
  flex-shrink: 0;
}

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

.reviewer-name {
  font-size: 0.85rem;
  font-weight: 800;
}

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

.review-text {
  font-size: 0.75rem;
  color: var(--text-main);
  line-height: 1.4;
  font-style: italic;
}

/* بانر التسعير العادل والشفاف */
.pricing-guarantee-card {
  background: linear-gradient(135deg, #1E252D 0%, #2A3844 100%) !important;
  color: #FFFFFF !important;
  border-radius: var(--radius-lg) !important;
  padding: 16px 18px !important;
  margin: 0 14px 18px !important;
  box-shadow: 0 8px 24px -4px rgba(30, 37, 45, 0.18) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pricing-guarantee-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.pricing-guarantee-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(255, 95, 0, 0.22) !important;
  color: #FF5F00 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  flex-shrink: 0 !important;
}

.pricing-guarantee-title {
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 0 3px !important;
}

.pricing-guarantee-desc {
  font-size: 0.76rem !important;
  color: #CBD5E1 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.pricing-steps-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.pricing-step-item {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.pricing-step-num {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #FFA100 !important;
  margin-bottom: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.pricing-step-text {
  font-size: 0.73rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.35 !important;
}

