/* -------------------------------------------------------------
   Design System & Tokens based on exact UI screenshots
------------------------------------------------------------- */
:root {
  --color-navy: #06213B;
  --color-navy-hover: #0a2d52;
  --color-navy-gradient: linear-gradient(145deg, #05192E 0%, #082240 50%, #0B2C52 100%);
  --color-orange: #FF5722;
  --color-orange-dark: #E64A19;
  --color-orange-gradient: linear-gradient(135deg, #FF6B00 0%, #FF851B 45%, #FF3D00 100%);
  --color-header-gradient: linear-gradient(180deg, #05192E 0%, #0B2442 55%, #FF5722 100%);
  
  --color-sky-blue: #349DFB;
  --color-sky-blue-hover: #2187e4;
  --color-sky-gradient: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  --color-disabled-btn: #E2E8F0;
  --color-disabled-text: #94A3B8;
  
  --color-mint-bg: #E6F8F0;
  --color-mint-green: #059669;
  
  --color-text-dark: #0A1E32;
  --color-text-subtle: #475569;
  --color-text-muted: #64748B;
  --color-border-subtle: #E2E8F0;
  --color-card-bg: #FFFFFF;
  --color-body-bg: #F8FAFC;
  --color-input-border: #CBD5E1;
  --color-input-focus: #0284C7;

  --touch-target-min: 44px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);

  --shadow-card-elevated: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 24px -4px rgba(6, 33, 59, 0.07);
  --shadow-card-hover: 0 12px 30px -4px rgba(6, 33, 59, 0.12), 0 4px 10px -2px rgba(6, 33, 59, 0.04);
  --shadow-glow-orange: 0 8px 24px -4px rgba(255, 107, 0, 0.42);
  --shadow-glow-navy: 0 8px 24px -4px rgba(6, 33, 59, 0.35);
  
  --font-family: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --phone-width: 375px;
  --phone-height: 812px;
}

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

/* Accessibility Focus Rings (WCAG 2.1 AA) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--color-sky-blue);
  outline-offset: 2px;
  border-radius: 8px;
}

body {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* -------------------------------------------------------------
   Realistic iPhone Mockup Shell
------------------------------------------------------------- */
.phone-wrapper {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-shell-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 94vh;
}

.phone-mockup {
  width: 380px;
  max-width: calc(92vh * (380 / 812));
  height: min(812px, 92vh);
  aspect-ratio: 375 / 812;
  background: #FFFFFF;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 3px #1e293b,
    0 0 0 9px #090d16,
    0 0 0 11.5px #334155,
    0 25px 70px -10px rgba(0, 0, 0, 0.85),
    0 0 60px -15px rgba(52, 157, 251, 0.18);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Hardware Buttons */
.iphone-btn-silent {
  position: absolute;
  top: 110px;
  left: -13px;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #64748B 0%, #334155 100%);
  border-radius: 3px 0 0 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.iphone-btn-volume-up {
  position: absolute;
  top: 155px;
  left: -13px;
  width: 4px;
  height: 48px;
  background: linear-gradient(180deg, #64748B 0%, #334155 100%);
  border-radius: 3px 0 0 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.iphone-btn-volume-down {
  position: absolute;
  top: 215px;
  left: -13px;
  width: 4px;
  height: 48px;
  background: linear-gradient(180deg, #64748B 0%, #334155 100%);
  border-radius: 3px 0 0 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.iphone-btn-power {
  position: absolute;
  top: 175px;
  right: -13px;
  width: 4px;
  height: 70px;
  background: linear-gradient(180deg, #64748B 0%, #334155 100%);
  border-radius: 0 3px 3px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Top Status Bar & Dynamic Island */
.phone-status-bar {
  height: 48px;
  width: 100%;
  padding: 10px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.status-dark {
  color: #FFFFFF;
}

.status-light {
  color: #000000;
}

.status-time {
  letter-spacing: -0.2px;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.camera-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #253347, #000000);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.camera-lens::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-signal,
.icon-wifi {
  width: 16px;
  height: 12px;
}

.icon-battery {
  width: 22px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3.5px;
  padding: 1.5px;
  position: relative;
}

.icon-battery::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 2.5px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

.battery-level {
  width: 100%;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}

/* -------------------------------------------------------------
   Header Dark with Blueprint / Gear Pattern
------------------------------------------------------------- */
.app-header-dark {
  height: 180px;
  background-color: var(--color-navy);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 36px;
  overflow: hidden;
}

.header-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.12;
  background-image: 
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%23FFFFFF' fill-opacity='0.25' d='M60 40a20 20 0 1 0 0 40 20 20 0 0 0 0-40zm0 30a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM20 20l15 15-5 5-15-15zm80 80l15 15-5 5-15-15z'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: auto, 120px 120px;
  pointer-events: none;
}

.header-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-svg {
  width: 90px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

/* -------------------------------------------------------------
   Screen Content Layouts
------------------------------------------------------------- */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  overflow-y: auto;
}

.content-card {
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  margin-top: -24px;
  padding: 24px 22px 20px 22px;
}

.content-clean {
  background: #FFFFFF;
  padding: 85px 22px 20px 22px;
}

/* Segmented Control (تسجيل الدخول / إنشاء حساب) */
.segmented-control {
  background: #FFFFFF;
  border: 1px solid #EAEFEF;
  border-radius: 36px;
  padding: 4px;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 34px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.seg-btn.active {
  background: var(--color-navy);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(6, 33, 59, 0.25);
}

/* Auth Form Styles */
.auth-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 24px 0;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  text-align: right;
}

.form-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-dark);
  background: #FFFFFF;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus {
  border-color: var(--color-sky-blue);
  box-shadow: 0 0 0 3.5px rgba(52, 157, 251, 0.18), 0 2px 8px rgba(6, 33, 59, 0.04);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .form-input {
  padding-left: 44px;
  font-size: 15px;
  letter-spacing: 2px;
}

.field-icon-btn {
  position: absolute;
  left: 4px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.field-icon-btn:hover {
  color: var(--color-navy);
  background-color: rgba(6, 33, 59, 0.05);
  transform: scale(1.05);
}

.field-icon-btn:active {
  transform: scale(0.92);
}

.field-icon-btn svg {
  width: 19px;
  height: 19px;
}

.forgot-password-wrap {
  text-align: left;
  margin-top: -6px;
}

.forgot-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--color-navy);
}

/* -------------------------------------------------------------
   Buttons & Bottom Action Bars
------------------------------------------------------------- */
.app-footer-action {
  margin-top: auto;
  padding-top: 20px;
}

.app-footer-action-double {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
}

.btn {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, box-shadow 0.25s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn-navy {
  background: linear-gradient(135deg, #06213B 0%, #0b3259 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(6, 33, 59, 0.22);
}

.btn-navy:hover {
  background: linear-gradient(135deg, #092c4e 0%, #0e3d6d 100%);
  box-shadow: 0 8px 22px rgba(6, 33, 59, 0.32);
}

/* Shimmer reflection highlight */
.btn-navy::after, .btn-orange::after, .btn-gradient-orange::after, .promo-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 38%, rgba(255, 255, 255, 0.18) 50%, transparent 62%);
  transform: translateX(-100%) rotate(25deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.btn-navy:hover::after, .btn-orange:hover::after, .btn-gradient-orange:hover::after, .promo-btn:hover::after {
  transform: translateX(100%) rotate(25deg);
}

.btn-orange, .btn-gradient-orange {
  background: linear-gradient(135deg, #FF6B00 0%, #FF851B 45%, #FF3D00 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.38);
}

.btn-orange:hover, .btn-gradient-orange:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
  transform: translateY(-1px);
}

.btn-disabled {
  background: var(--color-disabled-btn);
  color: var(--color-disabled-text);
  cursor: not-allowed;
  box-shadow: none !important;
}

.btn-disabled:active {
  transform: none;
}

.btn-sky-blue {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(52, 157, 251, 0.35);
}

.btn-sky-blue:hover {
  background: linear-gradient(135deg, #2eaae3 0%, #0374af 100%);
  box-shadow: 0 8px 22px rgba(52, 157, 251, 0.45);
}

.btn-outline {
  background: #FFFFFF;
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-outline:hover {
  background: #F8FAFC;
  box-shadow: 0 4px 12px rgba(6, 33, 59, 0.06);
}

/* Bottom Safe Area Home Indicator */
.home-indicator-bar {
  min-height: max(24px, calc(10px + var(--safe-area-bottom)));
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  padding-bottom: max(6px, var(--safe-area-bottom));
  flex-shrink: 0;
}

.home-indicator {
  width: 134px;
  height: 4.5px;
  background: #000000;
  border-radius: 100px;
}

/* -------------------------------------------------------------
   Screen 2: OTP Verification Specifics
------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.otp-main-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 16px 0 10px 0;
}

.otp-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-subtle);
  line-height: 1.5;
  margin: 0 0 32px 0;
}

.otp-boxes-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.otp-box {
  width: 58px;
  height: 60px;
  border: 1.5px solid var(--color-input-border);
  border-radius: 14px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--color-navy);
  background: #FAFCFE;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-box:focus {
  border-color: var(--color-sky-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(52, 157, 251, 0.18), 0 2px 8px rgba(6, 33, 59, 0.05);
  transform: translateY(-2px);
}

.otp-timer-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-subtle);
}

/* -------------------------------------------------------------
   Screen 3: تم التعرف عليك Facility Details
------------------------------------------------------------- */
.status-badge-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 10px auto 22px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mint-badge {
  background: var(--color-mint-bg);
}

.badge-icon-svg {
  width: 44px;
  height: 44px;
}

.recognize-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 6px 0;
}

.recognize-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-subtle);
  margin: 0 0 16px 0;
}

.facility-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 4px 18px rgba(6, 33, 59, 0.05);
  text-align: right;
  margin-bottom: 18px;
}

.facility-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 6px 0;
}

.row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  flex: 1;
}

.row-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #8E9BA7;
}

.row-value {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.35;
}

.row-icon-box {
  width: 38px;
  height: 38px;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.row-icon-box svg {
  width: 19px;
  height: 19px;
  color: #FF5722;
}

.facility-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 2px 0;
}

/* -------------------------------------------------------------
   Screen 4: Notifications Vector Illustration
------------------------------------------------------------- */
.illustration-container {
  width: 100%;
  height: 230px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 12px;
}

.notif-illustration-svg {
  width: 250px;
  height: 210px;
}

/* -------------------------------------------------------------
   Screen 5: Face ID Biometric Icon
------------------------------------------------------------- */
.faceid-icon-wrap {
  margin: 60px auto 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.faceid-svg {
  width: 90px;
  height: 90px;
}

/* =============================================================
   NEW SCREENS (6 to 10): Home, Branch Selector, Services, AI Bot
============================================================= */

/* Home Header with Orange Gradient, Hospital Meta & Role-Aware Branch Selector */
.home-header {
  min-height: 178px;
  background: var(--color-header-gradient);
  position: relative;
  padding: 44px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  color: #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.25);
}

.home-header .header-pattern-overlay {
  opacity: 0.15;
}

/* Header Top Meta Row (Hospital Facility + Role Switcher Badge) */
.header-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hospital-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
  letter-spacing: -0.2px;
}

.hospital-name-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

/* Header Interactive Role Badge / Switcher */
.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 33, 59, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.role-badge-pill:hover {
  background: rgba(6, 33, 59, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.role-badge-pill .role-icon {
  font-size: 12px;
}

.role-badge-pill .role-switch-icon {
  width: 12px;
  height: 12px;
  stroke: #93C5FD;
}

/* Header Main Branch Card Row */
.header-branch-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.branch-display-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  text-align: right;
}

.current-branch-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-branch-region {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.current-branch-region svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke-width: 2.2;
  stroke: #FFD200;
}

/* "تغيير الفروع" Action Button (Owner Only) */
.btn-change-branch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #06213B;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-change-branch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  background: #F8FAFC;
}

.btn-change-branch:active {
  transform: scale(0.96);
}

.btn-change-branch svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
  color: #FF5722;
}

/* User Mode Specific Read-Only Lock Badge (User Only) */
.user-branch-fixed-badge {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 10px;
  border-radius: 14px;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.user-branch-fixed-badge svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
  color: #38BDF8;
}

/* Strict Role Mode Visibility Rules */
.home-header.role-mode-user .btn-change-branch {
  display: none !important;
}

.home-header.role-mode-user .user-branch-fixed-badge {
  display: inline-flex !important;
}

.home-header.role-mode-owner .btn-change-branch {
  display: inline-flex !important;
}

.home-header.role-mode-owner .user-branch-fixed-badge {
  display: none !important;
}

/* Legacy fallback classes for safety */
.hospital-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 2px;
}

.branch-selector-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  text-align: right;
}

.branch-selector-trigger svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}

/* Home Body Content */
.home-body {
  flex: 1;
  background: #FFFFFF;
  padding: 18px 18px 10px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-greeting h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0A1E32;
  margin: 0 0 4px 0;
}

.welcome-greeting p {
  font-size: 14px;
  color: #7A8B99;
  margin: 0;
}

/* Maintenance Promo Banner Card */
.maintenance-promo-card {
  background: #06213B;
  border-radius: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
  min-height: 148px;
  box-shadow: 0 8px 24px rgba(6, 33, 59, 0.18);
}

.promo-info {
  flex: 1;
  z-index: 2;
  max-width: 60%;
}

.promo-info h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #FFFFFF;
}

.promo-info p {
  font-size: 12px;
  line-height: 1.45;
  color: #D3E0EA;
  margin: 0 0 14px 0;
}

.promo-btn {
  background: var(--color-orange);
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.4);
  transition: all 0.2s ease;
}

.promo-btn:hover {
  background: var(--color-orange-dark);
}

.promo-toolbox-visual {
  position: absolute;
  left: -8px;
  bottom: -4px;
  width: 145px;
  height: 125px;
  z-index: 1;
}

/* Section Header (طلبك الحالي) */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0A1E32;
  margin: 0;
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.section-link:hover {
  transform: translateX(-3px);
  color: var(--color-orange-dark);
}

.section-link.gray-link {
  color: #8A9BA8;
}

/* Empty State Card */
.empty-request-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  padding: 30px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 24px -4px rgba(6, 33, 59, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.empty-wrench-icon {
  width: 48px;
  height: 48px;
  color: #94A3B8;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.empty-request-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: #0A1E32;
  margin: 0 0 8px 0;
}

.empty-request-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #7A8B99;
  max-width: 260px;
  margin: 0;
}

/* Active Request Card */
.active-request-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 24px -4px rgba(6, 33, 59, 0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.active-request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(6, 33, 59, 0.12);
}

.card-top-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-badge-green {
  background: #E8F8F0;
  color: #059669;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.status-badge-green svg {
  width: 14px;
  height: 14px;
}

/* Pulsing Dots for Live Status */
.pulse-dot-green {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  position: relative;
}

.pulse-dot-green::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.45);
  animation: badgePulse 1.8s infinite ease-out;
}

.pulse-dot-orange {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #F97316;
  display: inline-block;
  position: relative;
}

.pulse-dot-orange::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.45);
  animation: badgePulse 1.8s infinite ease-out;
}

@keyframes badgePulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.request-datetime {
  font-size: 12px;
  color: #7A8B99;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.request-datetime svg {
  width: 14px;
  height: 14px;
}

.active-request-divider {
  height: 1px;
  background: #F0F3F6;
}

.card-req-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.req-id-tag {
  font-size: 12px;
  font-weight: 700;
  color: #8E9BA7;
}

.req-title {
  font-size: 16px;
  font-weight: 800;
  color: #0A1E32;
  margin: 0;
}

.req-desc {
  font-size: 12.5px;
  color: #7A8B99;
  margin: 0;
}

.card-inner-btn {
  height: 46px;
  border-radius: 23px;
  font-size: 14.5px;
  margin-top: 6px;
}

/* Bottom App Navigation Bar */
.bottom-nav-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  min-height: calc(68px + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(6, 33, 59, 0.04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.15s ease;
  min-width: 56px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: var(--color-navy);
  font-weight: 800;
  position: relative;
}

.nav-item.active svg {
  transform: translateY(-2px);
  color: var(--color-navy);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-orange);
  box-shadow: 0 1px 4px rgba(255, 87, 34, 0.4);
  animation: navIndicatorSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navIndicatorSlide {
  from { width: 0; opacity: 0; }
  to { width: 14px; opacity: 1; }
}

.nav-fab-center {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00 0%, #FF3D00 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
  margin-top: -26px;
  border: 4px solid #FFFFFF;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
}

.nav-fab-center:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 107, 0, 0.58);
}

.nav-fab-center:active {
  transform: scale(0.95);
}

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

/* Floating AI Bot Badge on Home Screen */
.floating-bot-bubble {
  position: absolute;
  left: 20px;
  bottom: 84px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2EDF8 100%);
  box-shadow: 0 8px 24px rgba(6, 33, 59, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  border: 2.5px solid #FFFFFF;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.floating-bot-bubble:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 33, 59, 0.25);
}

.floating-bot-bubble::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
  animation: aiPulseAura 2.6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes aiPulseAura {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.9; }
}

.floating-bot-bubble svg {
  width: 38px;
  height: 38px;
}

/* -------------------------------------------------------------
   Screen 7: Bottom Sheet Modal (اختر الفرع الحالي)
------------------------------------------------------------- */
.modal-backdrop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 45, 0.45);
  backdrop-filter: blur(2px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bottom-sheet-card {
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  padding: 12px 20px 24px 20px;
  position: relative;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-drag-handle {
  width: 54px;
  height: 4px;
  background: #D9E1E8;
  border-radius: 4px;
  margin: 0 auto 16px auto;
}

.sheet-close-btn {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  cursor: pointer;
  color: #64748B;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sheet-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
  transform: scale(1.05);
}

.sheet-close-btn:active {
  transform: scale(0.92);
}

.sheet-close-btn svg {
  width: 20px;
  height: 20px;
}

.sheet-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 10px 0 6px 0;
  text-align: right;
}

.sheet-subtitle {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 16px 0;
  text-align: right;
}

.branch-list {
  display: flex;
  flex-direction: column;
}

.branch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  border-radius: 14px;
  border-bottom: 1px solid #F1F4F7;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.branch-item:hover {
  background: #F8FAFC;
}

.branch-item.selected-branch {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
}

.branch-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.branch-info-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.branch-pin-icon {
  width: 22px;
  height: 22px;
  color: var(--color-navy);
}

.branch-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.branch-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0A1E32;
}

.branch-addr {
  font-size: 12px;
  color: #8E9BA7;
}

.branch-request-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  margin-top: 4px;
  width: fit-content;
}

.branch-request-tag.tag-empty {
  background: #F1F5F9;
  color: #64748B;
}

.branch-request-tag.tag-active {
  background: #ECFDF5;
  color: #047857;
}

.branch-check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.branch-check-indicator svg {
  width: 14px;
  height: 14px;
}

/* -------------------------------------------------------------
   Screen 8: اختيار الخدمة (Select Service)
------------------------------------------------------------- */
.top-nav-bar {
  min-height: 56px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: max(40px, var(--safe-area-top));
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.nav-back-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #0A1E32;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s ease, border-color 0.15s ease;
}

.nav-back-circle:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: scale(1.04);
}

.nav-back-circle:active {
  transform: scale(0.92);
}

.nav-back-circle svg {
  width: 20px;
  height: 20px;
}

.top-nav-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-navy);
}

.service-select-body {
  padding: 16px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-page-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 24px 0;
  text-align: right;
}

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

.service-card-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 68px;
  box-sizing: border-box;
  border: 1.5px solid #EDF2F7;
  border-radius: 16px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-radio:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 33, 59, 0.04);
}

.service-card-radio:active {
  transform: scale(0.98);
}

.service-card-radio.selected {
  border-color: var(--color-sky-blue);
  background: #F8FBFF;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.12);
}

.service-right-part {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin-left: 10px;
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EEF7FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E3A5F;
  flex-shrink: 0;
}

.service-icon-box svg {
  width: 22px;
  height: 22px;
}

.service-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.service-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0A1E32;
  white-space: nowrap;
}

.service-subtitle {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  white-space: nowrap;
  line-height: 1.2;
}

.radio-check-circle {
  width: 22px;
  height: 22px;
  border: 1.5px solid #D2DCE6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.service-card-radio.selected .radio-check-circle {
  border-color: var(--color-sky-blue);
  background: var(--color-sky-blue);
}

.service-card-radio.selected .radio-check-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
}

/* -------------------------------------------------------------
   Screen 10: AI Assistant (اسأل مساعدنا الذكي)
------------------------------------------------------------- */
.ai-assistant-screen {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5EF 55%, #FFE9DC 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ai-header-bar {
  height: 60px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
  flex-shrink: 0;
}

.ai-bot-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 35px;
}

.ai-avatar-glowing-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-ring-1 {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 145, 90, 0.22) 0%, rgba(255, 145, 90, 0) 70%);
}

.glow-ring-2 {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 145, 90, 0.35) 0%, rgba(255, 145, 90, 0) 75%);
}

.ai-robot-badge {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 4px 10px rgba(255, 87, 34, 0.25));
}

.ai-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #0A1E32;
  margin: 18px 0 0 0;
}

.ai-chat-bottom-section {
  margin-top: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-prompt-heading {
  font-size: 15px;
  font-weight: 700;
  color: #0A1E32;
  text-align: right;
  margin: 0;
}

.ai-suggestions-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ai-suggestion-chip {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0A1E32;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-suggestion-chip:hover {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ai-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ai-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.ai-input-field {
  width: 100%;
  height: 48px;
  background: #FFFFFF;
  border: 1.5px solid #F0F3F6;
  border-radius: 24px;
  padding: 0 16px 0 44px;
  font-family: inherit;
  font-size: 14px;
  color: #0A1E32;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.attachment-btn {
  position: absolute;
  left: 14px;
  background: transparent;
  border: none;
  color: #8E9BA7;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.attachment-btn svg {
  width: 20px;
  height: 20px;
}

.ai-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #EDF2F7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: var(--color-navy);
  color: #FFFFFF;
}

.ai-send-btn svg {
  width: 20px;
  height: 20px;
}

/* =============================================================
   SCREENS 11 TO 15: Orders, Chat Lists, Chat Detail, Rating Modal
============================================================= */

/* AI In-Chat Conversation */
.ai-user-bubble {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  color: #0A1E32;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 80%;
  text-align: right;
  margin-top: 14px;
}

.ai-bubble-time {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
  text-align: left;
}

.ai-bot-suggestion-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
  text-align: right;
}

.ai-suggest-title {
  font-size: 14px;
  font-weight: 800;
  color: #0A1E32;
  margin: 0 0 6px 0;
}

.ai-suggest-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.ai-bot-actions-row {
  display: flex;
  gap: 10px;
}

.ai-pill-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ai-pill-btn-primary {
  background: #FFF7ED;
  border: 1.5px solid #FF5722;
  color: #FF5722;
}

.ai-pill-btn-primary:hover {
  background: #FFEDD5;
}

.ai-pill-btn-secondary {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #475569;
}

/* Screen 12: الطلبات (Orders List) */
.page-simple-header {
  padding: 16px 20px;
  text-align: center;
  margin-top: 40px;
  flex-shrink: 0;
}

.page-simple-title {
  font-size: 20px;
  font-weight: 800;
  color: #0A1E32;
  margin: 0;
}

.filter-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 20px 14px 20px;
  flex-shrink: 0;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.active {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}

.orders-scroll-container {
  flex: 1;
  padding: 0 20px 20px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-badge-orange {
  background: #FFF4ED;
  color: #EA580C;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(234, 88, 12, 0.15);
}

.status-badge-orange svg {
  width: 14px;
  height: 14px;
}

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

.card-outline-btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 19px;
  border: 1.5px solid var(--color-navy);
  background: #FFFFFF;
  color: var(--color-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.card-orange-link {
  color: var(--color-orange);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

/* Screen 13: المحادثات (Messages List) */
.search-input-box {
  position: relative;
  margin: 4px 20px 12px 20px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  height: 48px;
  background: #FFFFFF;
  border: 1.5px solid #EDF2F7;
  border-radius: 24px;
  padding: 0 16px 0 44px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  color: #0A1E32;
}

.search-icon-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  display: flex;
  align-items: center;
}

.search-icon-btn svg {
  width: 18px;
  height: 18px;
}

.chat-items-list {
  flex: 1;
  padding: 4px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.chat-card-item {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-card-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.chat-user-part {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.chat-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #E2E8F0;
  flex-shrink: 0;
}

.chat-avatar-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.chat-meta-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  overflow: hidden;
}

.chat-user-name-role {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-user-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0A1E32;
}

.chat-user-role {
  font-size: 11.5px;
  color: #8E9BA7;
}

.chat-last-snippet {
  font-size: 12.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-left-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-right: 8px;
}

.chat-timestamp {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
}

.chat-badge-counter {
  width: 20px;
  height: 20px;
  background: #FF5722;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-check-icon {
  width: 16px;
  height: 16px;
}

/* Screen 14: Chat Detail with Technician */
.chat-detail-header {
  height: 64px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F4F7;
  margin-top: 40px;
  flex-shrink: 0;
  background: #FFFFFF;
}

.chat-header-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-name {
  font-size: 16px;
  font-weight: 800;
  color: #0A1E32;
}

.chat-thread-container {
  flex: 1;
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-bubble {
  max-width: 82%;
  display: flex;
  flex-direction: column;
}

.msg-incoming {
  align-self: flex-start;
}

.msg-outgoing {
  align-self: flex-end;
}

.msg-incoming .msg-card {
  background: #FFFFFF;
  border: 1px solid #EEF2F6;
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  color: #0A1E32;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: right;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.msg-outgoing .msg-card {
  background: #349DFB;
  border-radius: 18px 18px 4px 18px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: right;
}

.msg-img-gallery {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.msg-thumb-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.msg-audio-card {
  background: #349DFB;
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  width: 210px;
  direction: ltr;
}

.audio-play-circle {
  width: 32px;
  height: 32px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.audio-play-circle svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.audio-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.wave-bar {
  width: 2.5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}

.audio-time-label {
  font-size: 11px;
  font-weight: 700;
}

.msg-audio-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.msg-action-btn-fill {
  background: var(--color-navy);
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.msg-action-btn-line {
  background: #FFFFFF;
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  border-radius: 20px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pinned-chat-alert {
  background: #E8F8F0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  margin-top: auto;
}

.pinned-alert-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-size: 13px;
  font-weight: 800;
}

.pinned-alert-title svg {
  width: 16px;
  height: 16px;
}

.pinned-alert-desc {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.45;
  margin: 0;
}

.chat-closed-bar {
  height: 50px;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin: 10px 18px 6px 18px;
  border-radius: 25px;
}

/* Screen 15: Rating Bottom Sheet Modal */
.service-stepper-header {
  padding: 16px 20px;
  margin-top: 40px;
  background: #F8FAFC;
}

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

.stepper-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy);
}

.stepper-success-label {
  color: #10B981;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.stepper-progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 280px;
  margin: 0 auto;
}

.stepper-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #10B981;
  z-index: 1;
}

.stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.stepper-circle svg {
  width: 16px;
  height: 16px;
}

.rating-stars-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 16px 0;
}

.star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #CBD5E1;
  padding: 4px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, filter 0.2s ease;
}

.star-btn:hover {
  transform: scale(1.22);
  color: #FBBF24;
}

.star-btn:active {
  transform: scale(0.9);
}

.star-btn.filled {
  color: #F59E0B;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
}

.star-btn svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.rating-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.rating-tag-pill {
  padding: 7px 14px;
  border-radius: 18px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #EDF2F7;
  background: #F8FAFC;
  color: #475569;
  transition: all 0.2s ease;
}

.rating-tag-pill.selected {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}

.rating-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  margin-bottom: 20px;
}

.rating-textarea-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0A1E32;
}

.rating-textarea {
  width: 100%;
  height: 72px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: #0A1E32;
  resize: none;
  outline: none;
}

.rating-char-counter {
  font-size: 11px;
  color: #94A3B8;
  text-align: left;
}

/* =============================================================
   NEW SCREENS: Rating Thank You, Profile, Request Form 1 & 2
============================================================= */

/* Rating Thank You Dialog */
.rating-thankyou-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 10px 20px 10px;
}

.thankyou-engineer-svg {
  width: 170px;
  height: 155px;
  margin-bottom: 8px;
}

.thankyou-title {
  font-size: 24px;
  font-weight: 800;
  color: #0A1E32;
  margin: 0 0 6px 0;
}

.thankyou-subtitle {
  font-size: 14.5px;
  color: #7A8B99;
  margin: 0 0 16px 0;
}

.thankyou-tags-pill {
  background: #F8FAFC;
  border: 1px solid #EEF2F6;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  margin-top: 10px;
  margin-bottom: 24px;
}

/* Screen: حسابي (Profile) */
.profile-scroll-body {
  flex: 1;
  padding: 16px 20px 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-user-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.profile-edit-btn {
  width: 44px;
  height: 44px;
  background: #EEF6FF;
  border: none;
  border-radius: 12px;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-edit-btn svg {
  width: 20px;
  height: 20px;
}

.profile-user-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.profile-name {
  font-size: 16px;
  font-weight: 800;
  color: #0A1E32;
}

.profile-email {
  font-size: 12px;
  color: #7A8B99;
}

.profile-role-badge {
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  align-self: flex-start;
  margin-top: 2px;
}

.profile-contract-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contract-right-part {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contract-icon-box {
  color: #1E3A8A;
}

.contract-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.contract-label {
  font-size: 11.5px;
  color: #8E9BA7;
}

.contract-title {
  font-size: 14px;
  font-weight: 800;
  color: #0A1E32;
}

.contract-active-badge {
  background: #E8F8F0;
  color: #10B981;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 10px 4px 4px 4px;
  text-align: right;
}

.profile-menu-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 18px;
  overflow: hidden;
}

.profile-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #F1F4F7;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.profile-menu-row:hover {
  background: #F8FAFC;
}

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

.menu-row-icon {
  width: 20px;
  height: 20px;
  color: #334155;
}

.menu-row-text {
  font-size: 14px;
  font-weight: 700;
  color: #0A1E32;
}

.menu-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
  font-size: 13px;
}

.menu-arrow-icon {
  width: 16px;
  height: 16px;
}

/* Screen: طلب صيانة أجهزة طبية (Request Form 1 & 2) */
.form-header-bar {
  height: 60px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  flex-shrink: 0;
}

.form-blue-action-btn {
  background: #E8F3FF;
  color: #2563EB;
  border: none;
  border-radius: 12px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.request-form-scroll-body {
  flex: 1;
  padding: 14px 18px 24px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.req-form-heading h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0A1E32;
  margin: 0 0 4px 0;
  text-align: right;
}

.req-form-heading p {
  font-size: 13px;
  color: #7A8B99;
  margin: 0;
  text-align: right;
}

.form-card-box {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.card-title-text {
  font-size: 15px;
  font-weight: 800;
  color: #0A1E32;
}

.ai-help-tag-btn {
  background: #FFE8D6;
  color: #FF5722;
  border: none;
  border-radius: 16px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.ai-help-tag-btn:hover {
  background: #FFD2B2;
}

.field-required-star {
  color: #EF4444;
  margin-left: 2px;
}

.form-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #0A1E32;
  text-align: right;
  margin-bottom: 6px;
  display: block;
}

.form-select-styled {
  width: 100%;
  height: 46px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: #334155;
  background: #FFFFFF;
  outline: none;
}

.form-textarea-styled {
  width: 100%;
  height: 72px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: #0A1E32;
  outline: none;
  resize: none;
}

.upload-boxes-row {
  display: flex;
  gap: 12px;
}

.upload-box-dashed {
  flex: 1;
  border: 1.5px dashed #CBD5E1;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  transition: all 0.2s ease;
}

.upload-box-dashed:hover {
  border-color: #38BDF8;
  background: #F0F9FF;
}

.upload-box-dashed svg {
  width: 24px;
  height: 24px;
  color: #64748B;
}

.upload-box-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #0A1E32;
}

.upload-box-subtext {
  font-size: 10.5px;
  color: #8E9BA7;
  line-height: 1.3;
}

.uploaded-preview-item {
  background: #F8FAFC;
  border: 1px solid #EEF2F6;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upload-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.upload-file-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.upload-file-name {
  font-size: 13px;
  font-weight: 700;
  color: #FF5722;
}

.upload-file-size {
  font-size: 11px;
  color: #8E9BA7;
}

.upload-delete-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
}

.upload-delete-btn:hover {
  color: #EF4444;
}

/* =============================================================
   SCREENS: Review, Time Slots, Request Sent Modal, Accepted, Tracking
============================================================= */

/* Modern Date & Time Picker (حجز واختيار الموعد - طبقاً للصورة 1) */
.booking-calendar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px;
  flex: 1;
  overflow-y: auto;
}

/* Month Navigation Row */
.calendar-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.calendar-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #06213B;
  letter-spacing: -0.2px;
}

.month-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s ease;
  padding: 0;
}

.month-nav-btn:hover {
  background: #EDF2F7;
  color: #06213B;
}

.month-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.month-display-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #06213B;
}

/* Horizontal Days Row */
.days-slider-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.day-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 8px 4px;
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.day-card-item:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.day-card-item .day-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 2px;
}

.day-card-item .day-num {
  font-size: 20px;
  font-weight: 900;
  color: #0A1E32;
  line-height: 1.1;
  margin-bottom: 4px;
}

.day-card-item .day-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #10B981;
}

.day-card-item.selected {
  background: #0A3C46;
  border-color: #0A3C46;
  box-shadow: 0 6px 16px rgba(10, 60, 70, 0.28);
}

.day-card-item.selected .day-name {
  color: rgba(255, 255, 255, 0.85);
}

.day-card-item.selected .day-num {
  color: #FFFFFF;
}

.day-card-item.selected .day-dot {
  background: #F59E0B;
}

/* Time Picker Section */
.time-picker-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

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

.time-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #06213B;
}

.time-selected-day-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
}

.time-group-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.time-group-label.morning {
  color: #B45309;
}

.time-group-label.evening {
  color: #0D9488;
}

.time-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.time-chip-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #0A1E32;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.time-chip-btn:hover {
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.time-chip-btn:active {
  transform: scale(0.95);
}

.time-chip-btn.selected {
  background: #0A3C46;
  color: #FFFFFF;
  border-color: #0A3C46;
  box-shadow: 0 4px 12px rgba(10, 60, 70, 0.25);
}

/* Appointment Summary Bottom Card */
.appointment-summary-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #E6F8F6;
  border: 1.5px solid #99F6E4;
  border-radius: 16px;
  padding: 11px 16px;
  color: #0A3C46;
  font-size: 14px;
  font-weight: 800;
  margin: 6px 18px 4px 18px;
}

.appointment-summary-pill svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.btn-confirm-booking {
  background: #0A3C46;
  color: #FFFFFF;
  border-radius: 24px;
  height: 50px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0 6px 20px rgba(10, 60, 70, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-confirm-booking:hover {
  background: #082F37;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(10, 60, 70, 0.4);
}

.btn-confirm-booking:active {
  transform: scale(0.97);
}

/* Legacy Fallbacks for Safety */
.time-slots-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 20px 20px 20px;
  flex: 1;
}

.time-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1.5px solid #EDF2F7;
  border-radius: 16px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot-card.selected {
  border-color: var(--color-sky-blue);
  background: #F8FBFF;
}

.time-slot-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-slot-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EEF7FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}

.time-slot-icon-box svg {
  width: 20px;
  height: 20px;
}

.time-slot-label {
  font-size: 14.5px;
  font-weight: 700;
  color: #0A1E32;
}

.btn-cancel-red {
  background: #FFFFFF;
  border: 1.5px solid #EF4444;
  color: #EF4444;
}

.btn-cancel-red:hover {
  background: #FEF2F2;
}

/* Review Request Screen (Image 1) */
.review-summary-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-item-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.review-label {
  font-size: 12.5px;
  color: #8E9BA7;
  font-weight: 600;
}

.review-value {
  font-size: 14.5px;
  font-weight: 800;
  color: #0A1E32;
  line-height: 1.4;
}

.review-divider {
  height: 1px;
  background: #F1F4F8;
}

/* Hourglass Request Sent Modal (Image 3) */
.hourglass-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px 20px 10px;
}

.hourglass-svg {
  width: 100px;
  height: 110px;
  margin-bottom: 12px;
}

.loading-spinner-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spinLoader 0.9s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* Request Accepted Screen (Image 5) */
.technician-assigned-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}

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

.assigned-label {
  font-size: 14px;
  font-weight: 800;
  color: #0A1E32;
}

.badge-available-now {
  background: #E8F8F0;
  color: #059669;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.technician-profile-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.technician-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10B981;
  font-size: 12.5px;
  font-weight: 800;
}

.assigned-date-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

/* Tracking Request Screen (Image 2) */
.tracking-stepper-header {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid #F1F4F7;
}

.tracking-alert-heading {
  color: #FF5722;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.tracking-track-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 10px;
}

.tracking-base-line {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #E2E8F0;
  z-index: 1;
}

.tracking-active-line {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 66%;
  height: 3px;
  background: var(--color-navy);
  z-index: 2;
}

.tracking-step-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 3;
}

.tracking-circle-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracking-step-col.step-done .tracking-circle-icon,
.tracking-step-col.step-current .tracking-circle-icon {
  background: var(--color-navy);
  color: #FFFFFF;
}

.tracking-circle-icon svg {
  width: 18px;
  height: 18px;
}

.tracking-step-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
}

.tracking-step-col.step-done .tracking-step-title,
.tracking-step-col.step-current .tracking-step-title {
  color: var(--color-navy);
}

.tracking-scroll-body {
  flex: 1;
  padding: 16px 18px 24px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tracking-notice-box {
  background: #F8FAFC;
  border: 1px solid #EDF2F7;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: right;
  line-height: 1.45;
}

.tracking-notice-box svg {
  width: 20px;
  height: 20px;
  color: #F97316;
  flex-shrink: 0;
  margin-top: 2px;
}

.tracking-notice-text {
  font-size: 12.5px;
  color: #EA580C;
  font-weight: 700;
}

.tracking-tech-report-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.report-header-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #8E9BA7;
}

.report-quote-text {
  font-size: 13.5px;
  color: #0A1E32;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.parts-added-card {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parts-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.parts-info-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.parts-thumb-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.parts-price-tag {
  font-size: 16px;
  font-weight: 800;
  color: #0A1E32;
}

.time-slot-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
}

.time-slot-card.selected .time-slot-check-icon {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #FFFFFF;
}

.review-thumbs-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.review-thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #E2E8F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #CBD5E1;
}

.review-thumb-item svg {
  width: 100%;
  height: 100%;
}

.tracking-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px 20px 20px;
  background: #FFFFFF;
  border-top: 1px solid #EEF2F6;
  border-radius: 0 0 34px 34px;
}

.request-accepted-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 10px 20px;
  gap: 8px;
}

.request-accepted-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #E8F8F0;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.request-accepted-title {
  font-size: 22px;
  font-weight: 800;
  color: #06213B;
  margin: 0;
}

.request-accepted-sub {
  font-size: 13.5px;
  color: #64748B;
  font-weight: 600;
  margin: 0;
}

/* =============================================================
   SCREENS: Live Map Tracking, Call Screen, Voice Recording
============================================================= */

/* Map Tracking View */
.map-view-container {
  position: relative;
  flex: 1;
  width: 100%;
  background: #E8EEF5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-svg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  object-fit: cover;
}

.map-technician-marker {
  position: absolute;
  top: 18%;
  left: 48%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.map-hospital-marker {
  position: absolute;
  top: 40%;
  left: 36%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hospital-pin-bubble {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 10px;
  font-weight: 700;
  color: #06213B;
  white-space: nowrap;
}

/* Clean Map Graphic & Image Styling (No API Keys / No Watermarks) */
.clean-map-image-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 230px;
  z-index: 1;
  overflow: hidden;
  background-color: #EDF3F9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clean-tracking-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.3s ease;
}

.tech-radar-pulse-ambient {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.35) 0%, rgba(255, 87, 34, 0.05) 70%, transparent 100%);
  animation: radarPing 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes radarPing {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

.map-type-subtoggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  padding: 2px 4px;
  gap: 4px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.map-type-btn {
  border: none;
  background: transparent;
  padding: 3px 8px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-type-btn.active {
  background: var(--color-navy);
  color: #FFFFFF;
}

/* Real Interactive Leaflet Map Styling */
.leaflet-container {
  direction: ltr !important;
  font-family: inherit;
  width: 100%;
  height: 100%;
  background: #EBF0F5;
}

.real-map-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 240px;
  z-index: 1;
}

.leaflet-control-attribution,
.leaflet-control-zoom {
  display: none !important;
}

.tech-leaflet-div-icon,
.hospital-leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

.tech-marker-wrap {
  position: relative;
  width: 48px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3));
}

.tech-radar-pulse {
  position: absolute;
  bottom: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.35);
  animation: radarPulse 1.8s ease-out infinite;
  z-index: -1;
}

@keyframes radarPulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hospital-marker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.25));
}


.map-bottom-sheet {
  margin-top: auto;
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
}

.eta-headline {
  text-align: right;
  font-size: 14.5px;
  font-weight: 800;
  color: #06213B;
  margin: 0;
}

.eta-orange-text {
  color: #EA580C;
}

.stepper-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
}

.stepper-compact-line-bg {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 2.5px;
  background: #E2E8F0;
  z-index: 1;
}

.stepper-compact-line-active {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 25%;
  height: 2.5px;
  background: var(--color-navy);
  z-index: 2;
}

.stepper-compact-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 3;
}

.stepper-compact-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EEF2F6;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-compact-node.active .stepper-compact-circle {
  background: var(--color-navy);
  color: #FFFFFF;
}

.stepper-compact-circle svg {
  width: 15px;
  height: 15px;
}

.stepper-compact-label {
  font-size: 11px;
  font-weight: 700;
  color: #8E9BA7;
}

.stepper-compact-node.active .stepper-compact-label {
  color: var(--color-navy);
}

.tech-card-horizontal {
  background: #FFFFFF;
  border: 1.5px solid #EEF2F6;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-contact-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-circle-action {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}

.btn-circle-action:hover {
  transform: scale(1.05);
}

.btn-circle-navy {
  background: var(--color-navy);
  color: #FFFFFF;
}

.btn-circle-outline {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: var(--color-navy);
}

.btn-cancel-red-outline {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  border: 1.5px solid #EF4444;
  background: #FFFFFF;
  color: #EF4444;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-cancel-red-outline:hover {
  background: #FEF2F2;
}

/* Call Screen */
.phone-call-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 20px 24px 40px 24px;
  background: #FFFFFF;
}

.call-header-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.call-user-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.call-avatar-big {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 4px solid #F1F5F9;
}

.call-name-text {
  font-size: 24px;
  font-weight: 800;
  color: #06213B;
  margin: 0;
}

.call-status-text {
  font-size: 15px;
  color: #64748B;
  font-weight: 600;
  margin: 0;
}

.call-controls-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: auto;
  padding-bottom: 20px;
}

.call-control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.call-control-btn:hover {
  transform: scale(1.08);
}

.call-control-btn.btn-gray-control {
  background: #EEF2F6;
  color: #334155;
}

.call-control-btn.btn-end-call {
  width: 64px;
  height: 64px;
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
}

/* Voice Recording Bar in Chat */
.voice-recording-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 16px 14px;
  background: #FFFFFF;
  border-top: 1px solid #EEF2F6;
}

.btn-trash-record {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.voice-recording-pill {
  flex: 1;
  height: 44px;
  background: #60A5FA;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #FFFFFF;
}

.record-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  display: inline-block;
  margin-left: 6px;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.record-waveform-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
}

.record-bar-segment {
  width: 2.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

.btn-send-record {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Tracking View Switch (Map vs Normal) */
.tracking-view-segmented-tabs {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 3px;
  gap: 3px;
  margin: 6px auto;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seg-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 11px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.seg-view-btn.active {
  background: #FFFFFF;
  color: var(--color-navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* =============================================================
   Screen 29: Doctors Discovery & Booking Filters (Live API)
   Filters: rankCode (GENERAL_PRACTITIONER, SPECIALIST, CONSULTANT)
   & availableNow (true/false)
============================================================= */
.discovery-content-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #F8FAFC;
  padding-bottom: 24px;
}

/* Top Sticky Search & Filter Header */
.discovery-top-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 12px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.discovery-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discovery-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0 12px;
  height: 42px;
  gap: 8px;
  transition: all 0.2s ease;
}

.discovery-search-box:focus-within {
  border-color: var(--color-sky-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.discovery-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  color: #06213B;
}

.discovery-search-input::placeholder {
  color: #94A3B8;
}

.btn-open-filter-modal {
  height: 42px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-family: inherit;
  flex-shrink: 0;
}

.btn-open-filter-modal:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

.btn-open-filter-modal.has-filters {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
}

.filter-badge-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
}

/* Horizontal Quick Filter Strip */
.quick-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px 2px;
  scrollbar-width: none;
}

.quick-filter-strip::-webkit-scrollbar {
  display: none;
}

/* Live Available Now Toggle Pill (availableNow Filter) */
.filter-pill-available-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  flex-shrink: 0;
  user-select: none;
}

.filter-pill-available-now .bolt-icon {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.filter-pill-available-now .live-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
  transition: background 0.25s ease;
}

.filter-pill-available-now.active {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.22);
}

.filter-pill-available-now.active .bolt-icon {
  transform: scale(1.15);
}

.filter-pill-available-now.active .live-indicator-dot {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
  animation: liveDotPulse 1.8s infinite;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Rank Code Filter Pills (rankCode Filter) */
.filter-rank-chips-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rank-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.rank-chip-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.rank-chip-btn.active {
  background: #06213B;
  color: #FFFFFF;
  border-color: #06213B;
  box-shadow: 0 2px 6px rgba(6, 33, 59, 0.2);
}

.rank-chip-btn.rank-gp.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.rank-chip-btn.rank-specialist.active {
  background: #0D9488;
  border-color: #0D9488;
  color: #FFFFFF;
}

.rank-chip-btn.rank-consultant.active {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #FFFFFF;
}

/* Service Type Chips */
.service-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.service-type-chip.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
}

/* Active Filter HUD Banner */
.discovery-active-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #F0F9FF;
  border-bottom: 1px solid #BAE6FD;
  font-size: 11.5px;
  color: #0369A1;
}

.hud-details-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hud-tag {
  background: #FFFFFF;
  border: 1px solid #7DD3FC;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  color: #0284C7;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hud-clear-btn {
  background: transparent;
  border: none;
  color: #0284C7;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
  font-family: inherit;
}

/* Doctor Cards List */
.doctors-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.doctor-discovery-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.doctor-discovery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.doc-top-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.doc-avatar-container {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: #F1F5F9;
  overflow: visible;
}

.doc-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.doc-online-pulse-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.doc-main-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-name-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.doc-doctor-name {
  font-size: 15px;
  font-weight: 800;
  color: #06213B;
  margin: 0;
  line-height: 1.3;
}

.doc-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Rank Code Color Stylings */
.rank-pill-gp {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.rank-pill-specialist {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.rank-pill-consultant {
  background: #FAF5FF;
  color: #6B21A8;
  border: 1px solid #E9D5FF;
}

.doc-facility-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}

.doc-facility-info svg {
  width: 14px;
  height: 14px;
  color: #94A3B8;
  flex-shrink: 0;
}

.doc-specialty-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.doc-specialty-pill {
  background: #F1F5F9;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

.doc-avail-pill {
  background: #ECFDF5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.doc-avail-pill.busy {
  background: #FEF3C7;
  color: #B45309;
}

/* Doctor Services & Pricing Row */
.doc-pricing-services-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #F8FAFC;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid #F1F5F9;
}

.doc-service-badge {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.doc-service-type-label {
  font-size: 10.5px;
  color: #64748B;
}

.doc-service-price-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #06213B;
}

.doc-service-price-val span {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
}

.doc-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.btn-book-doctor-action {
  flex: 1;
  height: 40px;
  background: var(--color-navy);
  color: #FFFFFF;
  border: none;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-book-doctor-action:hover {
  background: #0B355E;
}

.btn-doctor-quick-call {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-doctor-quick-call:hover {
  background: #DBEAFE;
}

/* Empty State / Loading State */
.doctors-loading-state,
.doctors-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #64748B;
}

.discovery-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #E2E8F0;
  border-top-color: var(--color-sky-blue);
  border-radius: 50%;
  animation: discSpin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes discSpin {
  to { transform: rotate(360deg); }
}

/* Filter Modal Bottom Sheet */
.filter-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 33, 59, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.filter-sheet-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUpSheet 0.25s ease-out;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 12px;
}

.filter-sheet-title {
  font-size: 16px;
  font-weight: 800;
  color: #06213B;
  margin: 0;
}

.filter-sheet-close-btn {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  font-size: 18px;
}

.filter-section-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-section-title-label {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-toggle-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-toggle-switch-card:hover {
  border-color: #CBD5E1;
}

.filter-toggle-switch-card.active {
  background: #ECFDF5;
  border-color: #10B981;
}

.filter-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.filter-radio-tile {
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.filter-radio-tile:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.filter-radio-tile.selected {
  border-color: var(--color-navy);
  background: #F0F4F8;
  color: var(--color-navy);
  font-weight: 700;
}

.filter-sheet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-apply-filters {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  background: var(--color-navy);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.btn-apply-filters:hover {
  background: #0B355E;
}

.btn-reset-filters {
  padding: 0 16px;
  height: 46px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-reset-filters:hover {
  background: #E2E8F0;
}

/* =============================================================
   Screen 30: Periodic Maintenance Visit (الزيارة الدورية - 4 مرات في السنة)
   Checklist for clinic chairs & Green Completion Alert on last chair
============================================================= */
.periodic-visit-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #F8FAFC;
  padding: 16px;
  gap: 14px;
}

.periodic-hero-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.periodic-badge-quarterly {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 11.5px;
  font-weight: 700;
  align-self: flex-start;
}

.periodic-progress-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.periodic-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #06213B;
}

.periodic-progress-track {
  height: 9px;
  border-radius: 6px;
  background: #E2E8F0;
  overflow: hidden;
  position: relative;
}

.periodic-progress-fill {
  height: 100%;
  width: 90%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 6px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Green Completion Alert Banner (علامة خضراء تفاعلية عند صيانة آخر كرسي) */
.periodic-complete-banner {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #10B981;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
  animation: bounceInComplete 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.3s ease;
}

@keyframes bounceInComplete {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.complete-badge-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.complete-badge-text-wrap {
  flex: 1;
}

.complete-main-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #065F46;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.complete-desc-text {
  font-size: 12px;
  color: #047857;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Chair Items Checklist */
.chairs-checklist-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chair-card-item {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.chair-card-item:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.chair-card-item.serviced {
  border-color: #A7F3D0;
  background: #F0FDF4;
}

.chair-card-item.is-last-chair {
  border-style: dashed;
  border-width: 2px;
}

.chair-card-item.is-last-chair.serviced {
  border-style: solid;
  border-color: #10B981;
  background: #ECFDF5;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.15);
}

.chair-right-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chair-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #475569;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.chair-card-item.serviced .chair-icon-badge {
  background: #DCFCE7;
  color: #16A34A;
}

.chair-text-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chair-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #06213B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chair-status-subtitle {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

.chair-card-item.serviced .chair-status-subtitle {
  color: #059669;
  font-weight: 600;
}

.chair-check-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.chair-card-item.serviced .chair-check-circle {
  background: #10B981;
  border-color: #10B981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.chair-card-item.serviced .chair-check-circle svg {
  display: block;
}

.chair-check-circle svg {
  width: 14px;
  height: 14px;
  display: none;
}





