/* file: assets/css/cart.css */
/**
 * Selfcare Diagnostics - 3D Glassmorphism Cart & Checkout Engine v11.0.0
 * Features:
 * - Clean Multi-Patient Selection Carousel & Card Groups
 * - Added 3D Referral & Promotion Card Styling with Applied Banner
 * - Tactile Controls & Docked Fixed Control Bar
 */

:root {
  --primary-purple: #4A154B;
  --dark-purple: #3B0746;
  --primary-green: #078866;
  --dark-green: #045D49;
  --deep-green: #033F33;
  --light-green: #35C39A;
  --primary-pink: #E4005A;
  --light-pink: #FDF2F5;
  --bg-main: #F4FBF9;
  --text-main: #10231E;
  --text-muted: #536E66;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-specular: inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-3d: 0 12px 30px -8px rgba(0, 48, 35, 0.10), 0 3px 8px rgba(7, 136, 102, 0.04);
  --brand-green: #078866;
  --brand-dark: #045D49;
  --brand-light: #ECFDF5;
  --brand-accent: #10B981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body.glass-bg-body {
  background: radial-gradient(circle at top left, #EDFBF7 0%, #E5F6F0 45%, #F3FAF7 100%);
  color: var(--text-main);
  padding-bottom: 175px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.main-container {
  padding: 10px 14px;
  max-width: 680px;
  margin: 0 auto;
}

.cart-wizard-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 14px;
}

/* =========================================================
   3D GLASS PANEL & ELEVATION
   ========================================================= */
.glass-panel-3d {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 12px 28px -8px rgba(0, 48, 35, 0.10), var(--glass-specular);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-nav-3d {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 -6px 20px rgba(0, 48, 35, 0.06) !important;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 3px 15px rgba(7, 136, 102, 0.05);
}

.header-logo {
  height: 36px;
  max-width: 150px;
  object-fit: contain;
}

.fallback-logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 15px;
  font-weight: 900;
  color: var(--dark-green);
  letter-spacing: -0.4px;
}

.logo-sub {
  color: var(--primary-pink);
  font-weight: 700;
}

.tagline {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.clear-cart-text-btn {
  background: rgba(228, 0, 90, 0.08);
  border: 1px solid rgba(228, 0, 90, 0.25);
  color: var(--primary-pink);
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-cart-text-btn:active {
  transform: scale(0.95);
  background: rgba(228, 0, 90, 0.16);
}

/* =========================================================
   EMPTY CART STATE
   ========================================================= */
.empty-cart-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 20px;
  margin: 20px auto 16px;
  max-width: 420px;
  border-radius: 20px;
}

.empty-cart-card[style*="display: none"],
#empty-cart-section[style*="display: none"] {
  display: none !important;
}

.empty-cart-icon {
  font-size: 38px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  box-shadow: 0 8px 20px rgba(7, 136, 102, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

.empty-cart-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.empty-cart-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 300px;
  margin: 0 0 20px 0;
}

.empty-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 270px;
}

.browse-action-btn {
  width: 100%;
  padding: 11px 18px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.browse-action-btn.primary-btn {
  background: linear-gradient(135deg, #078866, #045D49);
  color: #FFFFFF;
  box-shadow: 0 5px 15px rgba(7, 136, 102, 0.24);
}

.browse-action-btn.primary-btn:active {
  transform: scale(0.97);
}

.browse-action-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #045D49;
  border: 1.5px solid #A7F3D0;
  box-shadow: 0 3px 10px rgba(7, 136, 102, 0.05);
}

/* Wizard Slide Animation */
.wizard-slide {
  display: none;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: slideFadeIn 0.32s forwards;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slide-header {
  margin-bottom: 12px;
}

.slide-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-green);
  background: var(--brand-light);
  padding: 2.5px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 4px;
  border: 1px solid rgba(7, 136, 102, 0.2);
}

.slide-header h2 {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 3px 0;
  letter-spacing: -0.2px;
}

.slide-subtext {
  font-size: 11.5px;
  color: #4B5563;
  margin: 0;
}

/* Slide Collection Cards */
.collection-choice-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.collection-3d-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04), var(--glass-specular);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.collection-3d-card:active {
  transform: scale(0.98);
}

.collection-3d-card.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.92));
  border-color: #078866;
  box-shadow: 0 12px 28px rgba(7, 136, 102, 0.15), 0 0 0 1px #078866, var(--glass-specular);
  transform: translateY(-2px) scale(1.005);
}

.card-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.collection-3d-card.active .card-radio-circle {
  border-color: #078866;
}

.collection-3d-card.active .radio-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #078866;
}

.choice-icon-wrap {
  font-size: 26px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.collection-3d-card.active .choice-icon-wrap {
  background: #D1FAE5;
}

.choice-details h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 3px 0;
}

.choice-details p {
  font-size: 11px;
  color: #4B5563;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.badge-price-tag {
  font-size: 10px;
  font-weight: 800;
  display: inline-block;
  padding: 2.5px 7px;
  border-radius: 5px;
  background: #FEF3C7;
  color: #92400E;
}

.badge-price-tag.free-tag {
  background: #D1FAE5;
  color: #065F46;
}

/* =========================================================
   PATIENT CHIPS (COMPACT)
   ========================================================= */
.group-box {
  padding: 12px 14px;
  margin-bottom: 12px;
}

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

.group-title-row h4 {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.sub-counter {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-green);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.8));
  border: 1.2px solid rgba(7, 136, 102, 0.35);
  box-shadow: 0 2px 6px rgba(7, 136, 102, 0.1), inset 0 1px 1px #FFFFFF;
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.patient-chips-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
}

.patient-chips-scroll::-webkit-scrollbar {
  display: none;
}

.patient-chip {
  min-width: 145px;
  max-width: 220px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03), var(--glass-specular);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.patient-chip:active {
  transform: scale(0.96);
}

.patient-chip.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.92));
  border-color: #078866;
  border-width: 1.8px;
  box-shadow: 0 6px 16px rgba(7, 136, 102, 0.18), 0 0 0 1px #078866, var(--glass-specular);
  transform: translateY(-1px) scale(1.01);
}

.patient-chip.active::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9.5px;
  font-weight: 900;
  color: #FFFFFF;
  background: #078866;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(7, 136, 102, 0.25);
}

.chip-name {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding-right: 12px;
}

.patient-chip.active .chip-name {
  color: #045D49;
}

.chip-relation-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #078866;
  background: #ECFDF5;
  padding: 1.5px 6px;
  border-radius: 5px;
  display: inline-block;
  border: 1px solid rgba(7, 136, 102, 0.15);
}

.patient-chip.active .chip-relation-tag {
  background: #078866;
  color: #FFFFFF;
  border-color: #078866;
}

/* Patient Details Display Box */
.patient-info-card-3d {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(240,253,250,0.88));
  border: 1.5px solid #99F6E4;
}

.patient-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 9px;
}

.patient-info-header h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.relation-pill {
  font-size: 9.5px;
  font-weight: 800;
  background: #CCFBF1;
  color: #0F766E;
  padding: 1.5px 6px;
  border-radius: 5px;
}

.mini-glass-btn {
  background: rgba(7, 136, 102, 0.1);
  color: #078866;
  border: 1px solid rgba(7, 136, 102, 0.25);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.info-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.info-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.info-text label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  display: block;
}

.info-text strong {
  font-size: 11.5px;
  color: #1E293B;
}

.location-link-text {
  font-size: 10px;
  color: #0284C7;
  word-break: break-all;
}

/* =========================================================
   🎁 3D REFERRAL & COUPON CARD STYLING
   ========================================================= */
.referral-card-3d {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.88));
  border: 1.5px solid #A7F3D0;
}

.referral-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.referral-input-wrapper input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #045D49;
  letter-spacing: 0.5px;
  outline: none;
  background: #FFFFFF;
}

.referral-input-wrapper input:focus {
  border-color: #078866;
  box-shadow: 0 0 0 2px rgba(7, 136, 102, 0.15);
}

.referral-apply-btn {
  padding: 8px 14px !important;
  font-size: 11.5px !important;
  background: #078866 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 9px !important;
  box-shadow: 0 3px 8px rgba(7, 136, 102, 0.25) !important;
}

.applied-referral-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ECFDF5;
  border: 1.5px solid #059669;
  border-radius: 11px;
  padding: 9px 12px;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.08);
}

.applied-info strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #045D49;
}

.applied-info span {
  font-size: 9.5px;
  color: #059669;
  font-weight: 600;
}

.remove-coupon-btn {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  color: #DC2626;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.referral-savings-row {
  background: #ECFDF5 !important;
}

.referral-savings-row .s-label,
.referral-savings-row .s-value {
  color: #047857 !important;
  font-weight: 800;
}

/* Slot Picker */
.slot-days-toggle-3d {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.slot-day-btn {
  flex: 1;
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  background: #F1F5F9;
  border: 1.5px solid transparent;
  border-radius: 9px;
  color: #475569;
  cursor: pointer;
}

.slot-day-btn.active {
  background: #078866;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(7, 136, 102, 0.22);
}

.slot-dropdown-select-3d {
  width: 100%;
  padding: 9px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  outline: none;
}

.slot-notice-hint {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.3;
}

/* Slide 3: Payment Options */
.payment-options-grid-3d {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-option-card-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.02), var(--glass-specular);
  transition: all 0.22s ease;
}

.pay-option-card-3d.active {
  background: #ECFDF5;
  border-color: #078866;
  box-shadow: 0 3px 12px rgba(7, 136, 102, 0.14), var(--glass-specular);
}

.pay-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-card-left input[type="radio"] {
  accent-color: #078866;
  cursor: pointer;
}

.pay-title-inline strong {
  font-size: 12px;
  font-weight: 800;
  color: #1E293B;
}

.pay-card-left p {
  font-size: 10px;
  color: #64748B;
  margin: 2px 0 0 0;
}

.pay-icon-tag {
  font-size: 10px;
  font-weight: 800;
  background: #F1F5F9;
  padding: 3px 7px;
  border-radius: 5px;
  color: #334155;
}

/* =========================================================
   3D GLASS PATIENT TEST CARDS & ACTION BUTTONS
   ========================================================= */
.cart-items-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.patient-tests-group-card {
  margin-bottom: 2px;
  padding: 11px 12px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 253, 250, 0.92));
  border: 1.5px solid rgba(7, 136, 102, 0.3);
  box-shadow: 0 8px 22px rgba(0, 48, 35, 0.05), 0 2px 5px rgba(7, 136, 102, 0.04), var(--glass-specular);
  position: relative;
  transition: all 0.28s ease;
}

.animate-3d-card {
  animation: cardElevate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardElevate {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.patient-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(7, 136, 102, 0.12);
}

.patient-group-name {
  font-size: 12px;
  font-weight: 900;
  color: #045D49;
  letter-spacing: -0.2px;
}

.patient-tests-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #078866;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  padding: 2.5px 7px;
  border-radius: 6px;
  border: 1px solid rgba(7, 136, 102, 0.25);
  box-shadow: 0 1px 4px rgba(7, 136, 102, 0.08);
}

.patient-empty-tests-box {
  padding: 12px 10px;
  text-align: center;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 11px;
  margin-bottom: 8px;
  border: 1.5px dashed #CBD5E1;
}

.patient-empty-tests-box p {
  font-size: 10.5px;
  color: #64748B;
  font-weight: 600;
  margin: 0 0 3px 0;
}

.patient-empty-tests-box span {
  font-size: 10px;
  font-weight: 800;
  color: #078866;
}

/* Individual Test Card inside Patient Group */
.glass-panel-3d-item {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 1px #FFFFFF;
  transition: all 0.2s ease;
}

.glass-panel-3d-item:hover {
  border-color: rgba(7, 136, 102, 0.35);
  box-shadow: 0 4px 10px rgba(7, 136, 102, 0.05);
}

.item-main-details {
  flex: 1;
}

.item-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.type-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.type-badge.package-type {
  background: #FFE4E6;
  color: #E11D48;
}

.type-badge.test-type {
  background: #E0F2FE;
  color: #0369A1;
}

.item-code-tag {
  font-size: 8.5px;
  font-weight: 700;
  color: #64748B;
}

.paid-tag {
  font-size: 8px;
  font-weight: 800;
  background: #D1FAE5;
  color: #065F46;
  padding: 1px 4px;
  border-radius: 3px;
}

.item-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.item-price-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
}

.item-mrp-strike {
  text-decoration: line-through;
  color: #94A3B8;
  font-size: 9.5px;
}

.item-offer-price {
  color: #078866;
}

.item-actions-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.item-delete-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 25px;
  height: 25px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  transition: all 0.2s ease;
}

.item-delete-btn:active {
  transform: scale(0.9);
  background: rgba(239, 68, 68, 0.2);
}

.patient-card-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(7, 136, 102, 0.25);
}

.patient-action-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: -0.1px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  outline: none;
}

.patient-action-btn:active {
  transform: translateY(1px) scale(0.97);
}

.patient-action-btn.add-test-sub-btn {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.85));
  border: 1.5px solid #078866;
  color: #045D49;
  box-shadow: 0 3px 8px rgba(7, 136, 102, 0.1), inset 0 1px 1px #FFFFFF;
}

.patient-action-btn.add-pkg-sub-btn {
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.95), rgba(255, 228, 230, 0.85));
  border: 1.5px solid #E11D48;
  color: #BE123C;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.1), inset 0 1px 1px #FFFFFF;
}

/* =========================================================
   ORDER SUMMARY CARD (COMPACT)
   ========================================================= */
.order-summary-3d-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.88));
  border: 1.5px solid #A7F3D0;
}

.summary-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px 0;
}

.summary-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.s-label {
  color: #475569;
  font-weight: 600;
}

.s-value {
  color: #1E293B;
  font-weight: 800;
}

.strikethrough {
  text-decoration: line-through;
  color: #94A3B8;
}

.highlight-savings {
  background: #F0FDF4;
  padding: 5px 8px;
  border-radius: 7px;
}

.highlight-savings .s-label,
.highlight-savings .s-value {
  color: #166534;
  font-weight: 800;
}

.green-val {
  color: #059669;
}

.summary-divider {
  height: 1.2px;
  background: #E2E8F0;
  margin: 3px 0;
}

.final-total-row {
  padding-top: 3px;
}

.grand-label {
  font-size: 13px;
  font-weight: 900;
  color: #0F172A;
}

.grand-sub {
  font-size: 9px;
  color: #64748B;
  margin: 1px 0 0 0;
}

.grand-val {
  font-size: 18px;
  font-weight: 900;
  color: #078866;
}

.safety-guarantee-note-3d {
  text-align: center;
  font-size: 9.5px;
  color: var(--text-muted);
  padding: 8px 6px 12px;
  line-height: 1.35;
}

/* =========================================================
   PERFECTLY POSITIONED CONTROL BAR (FIXED ABOVE FOOTER)
   ========================================================= */
.cart-floating-bar-3d {
  position: fixed;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 12px 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 850;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 -6px 20px rgba(0, 48, 35, 0.08) !important;
}

.floating-left-btn-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.floating-left-btn-wrap .bar-nav-btn {
  min-width: 72px;
  padding: 9px 11px;
}

.floating-price-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(209, 250, 229, 0.9));
  border: 1.5px solid #078866;
  border-radius: 11px;
  padding: 4px 9px;
  margin: 0;
  box-shadow: 0 2px 7px rgba(7, 136, 102, 0.1);
}

.floating-price-center .f-title {
  font-size: 8.5px;
  font-weight: 800;
  color: #045D49;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.floating-price-center .highlight-3d-text {
  font-size: 15.5px;
  font-weight: 900;
  color: #078866;
  line-height: 1.15;
}

.floating-right-btn-wrap {
  flex: 1.2 1 auto;
  min-width: 135px;
  display: flex;
  justify-content: flex-end;
}

.bar-nav-btn {
  padding: 10px 13px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-glow-btn {
  background: linear-gradient(135deg, #078866, #045D49);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 3px 12px rgba(7, 136, 102, 0.24);
}

.primary-glow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(7, 136, 102, 0.32);
}

.primary-glow-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-bar-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.exit-bar-btn {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1.5px solid #FCA5A5 !important;
  font-weight: 800;
}

/* =========================================================
   MODALS WITH 3D GLASSMORPHISM
   ========================================================= */
.sia-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  background: rgba(3, 35, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  justify-content: center;
  align-items: center;
  padding: 14px;
}

.glass-modal-3d {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  background: #FFFFFF;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 35, 25, 0.32);
  border: 1.5px solid rgba(7, 136, 102, 0.25);
}

.animate-3d-pop {
  animation: popIn3D 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn3D {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.sia-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 15px;
  background: linear-gradient(135deg, #045D49, #078866) !important;
  color: #FFFFFF !important;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.modal-title-wrap h3 {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0;
}

.sia-close-btn {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #FFFFFF;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sia-modal-body {
  padding: 15px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.modal-action-btn {
  width: 100%;
  padding: 10px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 10.5px;
  font-weight: 800;
  color: #045D49;
}

.form-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  font-size: 11.5px;
  font-weight: 600;
  color: #1E293B;
  outline: none;
  background: #FFFFFF;
}

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

.get-gps-btn {
  background: #ECFDF5;
  color: #045D49;
  border: 1.5px solid #A7F3D0;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 800;
  cursor: pointer;
}

/* 5-Tab Fixed Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 900;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 3px 4px calc(3px + env(safe-area-inset-bottom, 0px)) 4px;
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #6B7280;
  font-size: 9.5px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  position: relative;
}

.nav-icon {
  font-size: 17px;
  line-height: 1;
}

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

.cart-badge {
  position: absolute;
  top: -3px;
  right: calc(50% - 14px);
  background: var(--primary-pink);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 4.5px;
  border-radius: 8px;
  min-width: 15px;
  text-align: center;
}
