/* ============================================================
   دؤوي — نظام التصميم المشترك (Design System)
   الألوان، الخطوط، المتغيرات، والمكونات الأساسية
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── المتغيرات الأساسية ──────────────────────────────────── */
:root {
  /* الألوان الرئيسية */
  --color-primary:        #006c49;
  --color-primary-light:  #10b981;
  --color-primary-dim:    #4edea3;
  --color-primary-bg:     rgba(0, 108, 73, 0.06);

  --color-secondary:      #0058be;
  --color-secondary-light:#2170e4;

  --color-error:          #ba1a1a;
  --color-warning:        #d97706;
  --color-success:        #059669;

  /* الخلفيات - دافئة وناعمة مريحة للعين */
  --bg-page:              #fcfbf7; /* خلفية بيضاء عاجية دافئة تمنع إجهاد شبكية العين */
  --bg-card:              #ffffff;
  --bg-container:         #f1f5f9; /* رمادي كحلي ناعم مهدئ للعين */
  --bg-container-low:     #f8fafc;
  --bg-container-high:    #e2e8f0;

  /* النصوص - رمادي كحلي داكن يمنع التباين الحاد المزعج */
  --text-primary:         #1e293b;
  --text-secondary:       #475569;
  --text-hint:            #64748b;
  --text-on-primary:      #ffffff;

  /* الحدود */
  --border-color:         #cbd5e1;
  --border-subtle:        #f1f5f9;

  /* الظلال */
  --shadow-card:    0 4px 24px -4px rgba(0, 108, 73, 0.06);
  --shadow-modal:   0 20px 60px -8px rgba(30, 41, 59, 0.12);
  --shadow-btn:     0 4px 14px rgba(0, 108, 73, 0.18);

  /* الزوايا */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* المسافات */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;

  /* الانتقالات */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* الخطوط */
  --font-body:     'Inter', 'IBM Plex Sans Arabic', sans-serif;
  --font-headline: 'IBM Plex Sans Arabic', 'Inter', sans-serif;

  /* ── مستعارات متوافقة مع واجهة الصيدلي ── */
  --bg-body:   #fcfbf7;           /* نفس --bg-page */
  --text-main: #1e293b;           /* نفس --text-primary */
  --bg-surface: rgba(255,255,255,0.72); /* سطح زجاجي */
}

/* ── دعم المظهر الداكن التلقائي واليدوي المريح للعين ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page:              #0f172a; /* رمادي أردوازي داكن ومريح للعين ليلاً */
    --bg-card:              #1e293b; /* بطاقات هادئة لمنع تباين الحواف */
    --bg-container:         #334155;
    --bg-container-low:     #1e293b;
    --bg-container-high:    #475569;
    
    --text-primary:         #f1f5f9; /* أبيض دافئ يمنع توهج الشاشة */
    --text-secondary:       #cbd5e1;
    --text-hint:            #94a3b8;
    
    --border-color:         #334155;
    --border-subtle:        #1e293b;
    
    --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-modal:   0 20px 60px rgba(0, 0, 0, 0.5);
  }
}

[data-theme="dark"] {
  --bg-page:              #0f172a;
  --bg-card:              #1e293b;
  --bg-container:         #334155;
  --bg-container-low:     #1e293b;
  --bg-container-high:    #475569;
  
  --text-primary:         #f1f5f9;
  --text-secondary:       #cbd5e1;
  --text-hint:            #94a3b8;
  
  --border-color:         #334155;
  --border-subtle:        #1e293b;
  
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-modal:   0 20px 60px rgba(0, 0, 0, 0.5);

  /* مستعارات الصيدلي في الداكن */
  --bg-body:    #0f172a;
  --text-main:  #f1f5f9;
  --bg-surface: rgba(15, 23, 42, 0.75);
}

/* ── إعادة الضبط ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { 
  font-size: 16px; 
  scroll-behavior: smooth; 
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background:  var(--bg-page);
  color:       var(--text-primary);
  line-height: 1.5;
  direction:   rtl;
  min-height:  100dvh;
  max-width:   100vw;
}

/* ── شريط التمرير ────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-container-low); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-full); }

/* ── الأزرار ─────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--space-sm);
  padding:         12px var(--space-lg);
  border-radius:   var(--radius-md);
  font-family:     var(--font-headline);
  font-size:       15px;
  font-weight:     600;
  cursor:          pointer;
  border:          none;
  transition:      all var(--transition);
  white-space:     nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;

  touch-action: manipulation;
  user-select: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-primary);
  color:      var(--text-on-primary);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: #005239; }

.btn-secondary {
  background: transparent;
  color:      var(--color-secondary);
  border:     1.5px solid var(--color-secondary);
}
.btn-secondary:hover { background: rgba(0, 88, 190, 0.06); }

.btn-ghost {
  background: var(--bg-container-low);
  color:      var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-container); }

.btn-danger {
  background: var(--color-error);
  color:      white;
}

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius-full); }

/* ── البطاقات ────────────────────────────────────────────── */
.card {
  background:    var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-card);
  padding:       var(--space-lg);
  transition:    box-shadow var(--transition);
}
.card:hover { box-shadow: 0 8px 32px -4px rgba(0, 108, 73, 0.14); }

.card-accent-green  { border-inline-start: 4px solid var(--color-primary); }
.card-accent-blue   { border-inline-start: 4px solid var(--color-secondary); }
.card-accent-yellow { border-inline-start: 4px solid var(--color-warning); }
.card-accent-red    { border-inline-start: 4px solid var(--color-error); }

/* ── حقول الإدخال ────────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: var(--space-xs); }

.input-label {
  font-size:   13px;
  font-weight: 500;
  color:       var(--text-secondary);
}

.input-field {
  width:         100%;
  padding:       12px var(--space-md);
  border:        1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family:   var(--font-body);
  font-size:     15px;
  color:         var(--text-primary);
  background:    var(--bg-card);
  transition:    border-color var(--transition), box-shadow var(--transition);
  outline:       none;
  direction:     rtl;
}
.input-field:focus {
  border-color: var(--color-secondary);
  box-shadow:   0 0 0 3px rgba(0, 88, 190, 0.12);
}
.input-field::placeholder { color: var(--text-hint); }

/* ── الشارات (Badges) ────────────────────────────────────── */
.badge {
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  padding:       3px 10px;
  border-radius: var(--radius-full);
  font-size:     12px;
  font-weight:   600;
}
.badge-green  { background: rgba(16, 185, 129, 0.15); color: #065f46; }
.badge-blue   { background: rgba(0, 88, 190, 0.12);   color: #003580; }
.badge-yellow { background: rgba(245, 158, 11, 0.15); color: #92400e; }
.badge-red    { background: rgba(186, 26, 26, 0.12);  color: #7f1d1d; }
.badge-gray   { background: var(--bg-container);      color: var(--text-hint); }

/* ── المشاعر المتحركة (Toast) ────────────────────────────── */
.toast {
  position:      fixed;
  top:           var(--space-xl);
  left:          50%;
  transform:     translateX(-50%) translateY(-20px);
  background:    #1e2a3a;
  color:         white;
  padding:       12px 24px;
  border-radius: var(--radius-full);
  font-size:     14px;
  font-weight:   500;
  box-shadow:    var(--shadow-modal);
  z-index:       9999;
  opacity:       0;
  transition:    all 0.3s ease;
  pointer-events:none;
  white-space:   normal;
  word-wrap:     break-word;
}
.toast.show {
  opacity:   1;
  transform: translateX(-50%) translateY(0);
}

/* ── Loading Spinner ─────────────────────────────────────── */
.spinner {
  width:  24px;
  height: 24px;
  border: 3px solid rgba(0,108,73,0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── حالة الفراغ (Empty State) ───────────────────────────── */
.empty-state {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         var(--space-2xl) var(--space-lg);
  text-align:      center;
  gap:             var(--space-md);
  color:           var(--text-hint);
}
.empty-state .icon { font-size: 48px; opacity: 0.5; }
.empty-state h3    { font-size: 16px; color: var(--text-secondary); }
.empty-state p     { font-size: 14px; }

/* ── Overlay / Modal ─────────────────────────────────────── */
.overlay {
  position:   fixed;
  inset:      0;
  background: rgba(21, 28, 39, 0.5);

  z-index:    100;
  display:    flex;
  align-items: center;
  justify-content: center;
  padding:    var(--space-md);
}
.modal {
  background:    var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow:    var(--shadow-modal);
  width:         100%;
  max-width:     480px;
  max-height:    90dvh;
  overflow-y:    auto;
  padding:       var(--space-xl);
}

/* ── الفائدات المساعدة ───────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm       { gap: var(--space-sm); }
.gap-md       { gap: var(--space-md); }
.gap-lg       { gap: var(--space-lg); }
.text-center  { text-align: center; }
.text-sm      { font-size: 13px; }
.text-lg      { font-size: 18px; }
.font-bold    { font-weight: 700; }
.color-primary   { color: var(--color-primary); }
.color-secondary { color: var(--color-secondary); }
.color-hint      { color: var(--text-hint); }
.hidden       { display: none !important; }
.w-full       { width: 100%; }

/* ── زر التبديل الفاخر (Premium Toggle Switch) ────────────── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-color);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-full);
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: var(--bg-card);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider {
  background-color: var(--color-primary);
}
input:checked + .slider:before {
  transform: translateX(18px);
}

/* تعديل حركة التبديل لاتجاه RTL */
body[dir="rtl"] input:checked + .slider:before {
  transform: translateX(-18px);
}
@keyframes ai-pulse {
  0% { transform: scale(1); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ── Timeline CSS ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-step {
  display: flex;
  gap: 16px;
}
.timeline-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-container);
  border: 2px solid var(--bg-container-low);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
  transition: all 0.3s ease;
}
.timeline-dot.active {
  border-color: var(--color-primary);
  background: rgba(0, 108, 73, 0.1);
  box-shadow: 0 0 0 4px rgba(0, 108, 73, 0.1);
}
.timeline-dot.done {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}
.timeline-connector {
  width: 2px;
  flex-grow: 1;
  background: var(--bg-container-low);
  min-height: 24px;
}
.timeline-connector.done {
  background: var(--color-primary);
}
.timeline-content {
  padding-bottom: 24px;
  padding-top: 4px;
}
.timeline-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.timeline-desc {
  font-size: 12px;
  color: var(--text-hint);
}

/* ══════════════════════════════════════════════════════════════
   § PREMIUM POLISH v1.0 — إضافات التجميل البصري الفاخر
   القاعدة: إضافات فقط — لا تعديل على أي قاعدة سابقة
   ══════════════════════════════════════════════════════════════ */

/* ── §1: توحيد الخط العربي (يلغي !important في glass-upgrade) ─ */
/* نستخدم specificity أعلى لضمان IBM Plex Sans Arabic أولاً */
body, .app-header, .bottom-nav, .modal, .card, .btn,
.input-field, .badge, .toast, .empty-state {
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif !important;
}

/* ── §2: تقوية تباين النصوص ─────────────────────────────────── */
/* Light Mode: نص رئيسي أكثر حدة لراحة القراءة على الهاتف */
:root {
  --text-primary: #0f172a;
}
/* Dark Mode: بطاقات دافئة + تباين محسّن */
[data-theme="dark"] {
  --bg-card: #1a2535;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-card: #1a2535;
    --text-primary: #f1f5f9;
  }
}
/* حدود خفية لكل بطاقة في الوضع الداكن لمنع الانصهار البصري */
[data-theme="dark"] .card {
  border: 1px solid rgba(255, 255, 255, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card {
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* ── §3: Micro-interactions — Spring Physics ─────────────────── */
/* CTA Buttons: hover رفع ناعم + active ضغط احترافي */
.btn-primary {
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 108, 73, 0.30) !important;
}
.btn-primary:active {
  transform: scale(0.96) translateY(0) !important;
  transition-duration: 0.08s !important;
}

/* Secondary + Ghost: أخف */
.btn-secondary, .btn-ghost {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-secondary:active, .btn-ghost:active {
  transform: scale(0.97) !important;
  transition-duration: 0.08s !important;
}

/* بطاقات تفاعلية: hover يرفع البطاقة بخفة */
.card {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease !important;
}
.card:hover {
  transform: translateY(-3px);
}

/* ── §4: Skeleton Shimmer — تغطية كاملة لكل أنواع المحتوى ────── */
/* Animation موحدة (تعريفها هنا يلغي التكرار في patient.css) */
@keyframes dawaei-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Base class: خضراوي يعكس هوية دؤوي */
.skel {
  border-radius: var(--radius-md);
  background: linear-gradient(
    90deg,
    rgba(0, 108, 73, 0.05) 25%,
    rgba(0, 108, 73, 0.13) 50%,
    rgba(0, 108, 73, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: dawaei-shimmer 1.4s infinite linear;
}

[data-theme="dark"] .skel {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: dawaei-shimmer 1.4s infinite linear;
}

/* أشكال جاهزة للاستخدام */
.skel-order-card    { height: 110px; border-radius: 16px; margin-bottom: 12px; }
.skel-product-card  { height: 196px; border-radius: 20px; }
.skel-pharmacy-row  { height: 80px;  border-radius: 14px; margin-bottom: 10px; }
.skel-offer-card    { height: 160px; border-radius: 20px; }
.skel-line-full     { height: 15px;  border-radius: 8px;  width: 100%; margin-bottom: 8px; }
.skel-line-short    { height: 13px;  border-radius: 8px;  width: 58%; margin-bottom: 6px; }
.skel-line-mid      { height: 13px;  border-radius: 8px;  width: 78%; margin-bottom: 6px; }
.skel-avatar        { width: 44px;   height: 44px;         border-radius: 50%; flex-shrink: 0; }
.skel-badge         { height: 22px;  border-radius: 999px; width: 72px; }

/* ── §5: Screen Transitions — انتقال ناعم بين الشاشات ─────────── */
/* يعمل تلقائياً مع دالة showScreen() الموجودة */
.screen:not(.hidden) {
  animation: screenSlideIn 0.22s cubic-bezier(0.4, 0.0, 0.2, 1) both;
}
@keyframes screenSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Overlay/Modal: fade-in احترافي */
.overlay:not(.hidden) {
  animation: overlayFadeIn 0.2s ease both;
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal {
  animation: modalSlideUp 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes modalSlideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Toast: دخول نعومة iOS */
.toast.show {
  animation: toastPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes toastPop {
  from { transform: translateX(-50%) translateY(-12px) scale(0.94); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0)    scale(1);    opacity: 1; }
}

/* ── زر حذف رسالة المحادثة ───────────────────────────────── */
.delete-msg-btn {
  display:          inline-flex;
  align-items:      center;
  justify-content:  center;
  background:       transparent;
  border:           none;
  cursor:           pointer;
  padding:          2px 4px;
  margin-inline-start: 6px;
  border-radius:    var(--radius-full);
  color:            var(--color-error);
  opacity:          0;
  transition:       opacity var(--transition), background var(--transition);
  vertical-align:   middle;
}
.pharmacy-msg-bubble:hover .delete-msg-btn {
  opacity: 1;
}
.delete-msg-btn:hover {
  background: rgba(186, 26, 26, 0.10);
}

/* Dark Mode Badge Overrides */
[data-theme="dark"] .badge-blue { background: rgba(59, 130, 246, 0.2) !important; color: #93c5fd !important; }
[data-theme="dark"] .badge-green { background: rgba(16, 185, 129, 0.2) !important; color: #6ee7b7 !important; }
[data-theme="dark"] .badge-yellow { background: rgba(245, 158, 11, 0.2) !important; color: #fcd34d !important; }
[data-theme="dark"] .badge-red { background: rgba(239, 68, 68, 0.2) !important; color: #fca5a5 !important; }
[data-theme="dark"] .badge-gray { background: rgba(148, 163, 184, 0.2) !important; color: #cbd5e1 !important; }

/* --- Theme: Medical Clean (Default) --- */
:root[data-app-style="medical"] {
  --color-primary: #006c49;
  --color-primary-light: #10b981;
  --color-primary-bg: rgba(0, 108, 73, 0.1);
  --color-secondary: #0058be;
}

/* --- Theme: Dark VIP --- */
:root[data-app-style="dark-vip"] {
  --color-primary: #d4af37;
  --color-primary-light: #eab308;
  --color-primary-bg: rgba(212, 175, 55, 0.1);
  --color-secondary: #10b981;
  --bg-page: #0f172a;
  --bg-card: #1e293b;
  --bg-container: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --border-subtle: #1e293b;
  --shadow-card: 0 8px 30px rgba(0,0,0,0.4);
}

/* --- Theme: Vibrant (Noon-like) --- */
:root[data-app-style="vibrant"] {
  --color-primary: #f59e0b;
  --color-primary-light: #fbbf24;
  --color-primary-bg: rgba(245, 158, 11, 0.1);
  --color-secondary: #8b5cf6;
}



/* ============================================================
   ══ 2026 WORLD-CLASS MEDICAL PRO MAX UPGRADE ══
   Medical-Grade Clarity | Apple iOS 18 Glass | Airbnb Precision
   ============================================================ */



:root {
  --font-body: 'Alexandria', 'Outfit', 'Inter', sans-serif !important;
  --font-headline: 'Alexandria', 'Outfit', 'Inter', sans-serif !important;
  
  /* 2026 Medical Luxury Palette */
  --med-teal: #0d9488;
  --med-teal-light: #14b8a6;
  --med-emerald: #059669;
  --med-cerulean: #0284c7;
  --med-glow: rgba(13, 148, 136, 0.15);
  
  --shadow-2026-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-2026-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-2026-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  --shadow-2026-hover: 0 24px 50px -12px rgba(13, 148, 136, 0.22);
}

body {
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* ── 2026 Tactile Buttons ── */
.btn {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2026-sm);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.25) !important;
}

.btn:active:not(:disabled) {
  transform: scale(0.96) translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}

.btn-secondary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
}

.btn-ghost {
  background: var(--bg-container) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
}

/* ── 2026 Medical Glass Cards ── */
.card, .modal {
  border-radius: 20px !important;
  box-shadow: var(--shadow-2026-md) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="dark"] .card, [data-theme="dark"] .modal {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(30, 41, 59, 0.85) !important;
  backdrop-filter: blur(20px) !important;
}

.card:hover {
  box-shadow: var(--shadow-2026-hover) !important;
}

/* ── 2026 Precision Form Inputs ── */
.input-field {
  font-family: var(--font-body) !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  border: 1.5px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.input-field:focus {
  border-color: var(--med-teal) !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18) !important;
  outline: none !important;
  transform: translateY(-1px);
}

/* ── Status Badges ── */
.badge {
  border-radius: 9999px !important;
  padding: 4px 12px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.01em;
}

/* ── Ensure Hidden remains Hidden ── */
.hidden { display: none !important; }
