/* ═══════════════════════════════════════════════════════════════════════
   VITONELLA — Web Design System v2.0
   Single source of truth. Imported by every template.
   Sprint W1: DS v2 dark theme, aurora bg, glass cards, pharmacist badge.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────
   1. CSS RESET (minimal)
   ───────────────────────────────────────────────────────────────────── */
   *, *::before, *::after { box-sizing: border-box; }
   html {
     scroll-behavior: smooth;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
   }
   body { margin: 0; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      2. CSS VARIABLES — DS v2 (mobile-parity dark palette)
      ───────────────────────────────────────────────────────────────────── */
   :root {
     /* Backgrounds */
     --v-bg-base: #0a0f0e;
     --v-bg-surface: #0f1514;
     --v-bg-tertiary: #141c1a;
     --v-bg-elevated: #182320;
     --v-bg-card: rgba(20, 32, 28, 0.60);
     --v-bg-card-hover: rgba(30, 46, 40, 0.70);
   
     /* Brand accent */
     --v-accent: #4ee3b2;
     --v-accent-dim: #3bc498;
     --v-accent-subtle: rgba(78, 227, 178, 0.08);
     --v-accent-glow: rgba(78, 227, 178, 0.25);
     --v-accent-glow-strong: rgba(78, 227, 178, 0.40);
   
     /* Semantic colors */
     --v-green: #10B981;
     --v-green-light: #34D399;
     --v-green-glow: rgba(16, 185, 129, 0.15);
     --v-blue: #3B82F6;
     --v-blue-light: #60A5FA;
     --v-purple: #8B5CF6;
     --v-purple-light: #A78BFA;
     --v-gold: #F59E0B;
     --v-amber: #F59E0B;
     --v-red: #EF4444;
   
     /* Text */
     --v-text-primary: #e8edeb;
     --v-text-secondary: #8a9b95;
     --v-text-tertiary: #5a6b65;
     --v-text-accent: #4ee3b2;
     --v-text-inverse: #0a0f0e;
   
     /* Borders & glass */
     --v-border: rgba(255, 255, 255, 0.08);
     --v-border-hover: rgba(255, 255, 255, 0.15);
     --v-glass-border: rgba(78, 227, 178, 0.08);
     --v-glass-border-hover: rgba(78, 227, 178, 0.18);
   
     /* Spacing (4px grid) */
     --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
     --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
   
     /* Radius */
     --r-xs: 8px;  --r-sm: 12px; --r-md: 16px; --r-lg: 20px;
     --r-xl: 24px; --r-pill: 100px;
   
     /* Legacy radius aliases */
     --v-radius: 20px;
     --v-radius-sm: 12px;
     --v-radius-xs: 8px;
   
     /* Shadows */
     --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.20);
     --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.25);
     --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.30);
     --shadow-glow: 0 0 40px rgba(78, 227, 178, 0.10);
     --shadow-glow-hover: 0 0 60px rgba(78, 227, 178, 0.15);
   
     /* Legacy shadow aliases */
     --v-glow-green: 0 0 30px rgba(16, 185, 129, 0.1);
     --v-glow-blue: 0 0 30px rgba(59, 130, 246, 0.1);
     --v-shadow-dialog: 0 24px 48px rgba(0, 0, 0, 0.4);
   
     /* Motion */
     --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
     --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
     --dur-fast: 150ms;
     --dur-normal: 250ms;
     --dur-slow: 400ms;
   
     /* Legacy transition alias */
     --v-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   
     /* Legacy color aliases (backward compat) */
     --green: var(--v-green);
     --blue: var(--v-blue);
     --soft-blue: var(--v-bg-surface);
     --card-radius: var(--v-radius);
     --shadow: var(--v-glow-green);
   
     /* Legacy names used by older pages */
     --bg-primary: var(--v-bg-base);
     --bg-secondary: var(--v-bg-surface);
     --bg-tertiary: var(--v-bg-tertiary);
     --bg-elevated: var(--v-bg-elevated);
     --bg-card: var(--v-bg-card);
     --accent: var(--v-accent);
     --accent-dim: var(--v-accent-dim);
     --accent-subtle: var(--v-accent-subtle);
     --accent-glow: var(--v-accent-glow);
     --text-primary: var(--v-text-primary);
     --text-secondary: var(--v-text-secondary);
     --text-tertiary: var(--v-text-tertiary);
     --text-inverse: var(--v-text-inverse);
     --glass: rgba(20, 32, 28, 0.75);
     --glass-light: rgba(30, 46, 40, 0.50);
     --glass-border: var(--v-glass-border);
     --glass-border-hover: var(--v-glass-border-hover);
     --border-subtle: rgba(255, 255, 255, 0.04);
     --border-medium: rgba(255, 255, 255, 0.08);
     --radius-xs: var(--r-xs);
     --radius-sm: var(--r-sm);
     --radius-md: var(--r-md);
     --radius-lg: var(--r-lg);
     --radius-xl: var(--r-xl);
     --radius-pill: var(--r-pill);
     --duration-fast: var(--dur-fast);
     --duration-normal: var(--dur-normal);
     --duration-slow: var(--dur-slow);
   }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      3. BODY DEFAULTS
      ───────────────────────────────────────────────────────────────────── */
   body {
     font-family: 'Inter', -apple-system, system-ui, sans-serif;
     background: var(--v-bg-base);
     color: var(--v-text-primary);
     line-height: 1.6;
     min-height: 100vh;
     position: relative;
     overflow-x: hidden;
   }
   
   a {
     color: var(--v-green-light);
     text-decoration: none;
     transition: color var(--v-transition);
   }
   a:hover { color: var(--v-text-accent); }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      4. TYPOGRAPHY UTILITIES
      ───────────────────────────────────────────────────────────────────── */
   .v-display-xl { font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 800; line-height: 1.1; }
   .v-display-l  { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 700; line-height: 1.15; }
   .v-display-m  { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 700; line-height: 1.2; }
   .v-heading-l  { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.25; }
   .v-heading-m  { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3; }
   .v-heading-s  { font-size: 16px; font-weight: 600; line-height: 1.4; }
   .v-body-l     { font-size: 16px; font-weight: 400; line-height: 1.6; }
   .v-body-m     { font-size: 14px; font-weight: 400; line-height: 1.6; }
   .v-body-s     { font-size: 13px; font-weight: 400; line-height: 1.5; }
   .v-label      { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      5. AURORA BACKGROUND — <aurora-bg> custom element
      ───────────────────────────────────────────────────────────────────── */
   aurora-bg {
     display: block;
     position: fixed;
     inset: 0;
     pointer-events: none;
     z-index: 0;
   }
   
   .v-aurora {
     position: fixed;
     inset: 0;
     pointer-events: none;
     z-index: 0;
     background:
       radial-gradient(ellipse 80% 60% at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
       radial-gradient(ellipse 60% 50% at 90% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
       radial-gradient(ellipse 50% 40% at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
     animation: v-aurora-drift 20s ease-in-out infinite alternate;
   }
   
   @keyframes v-aurora-drift {
     0%   { background-position: 0% 50%, 100% 50%, 50% 50%; opacity: 1; }
     50%  { opacity: 0.85; }
     100% { background-position: 15% 40%, 85% 65%, 55% 45%; opacity: 1; }
   }
   
   @media (prefers-reduced-motion: reduce) {
     .v-aurora { animation: none; }
   }
   
   /* Ensure all page content appears above the aurora layer */
   body > *:not(aurora-bg) { position: relative; z-index: 1; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      6. GLASS SURFACE — <glass-card> custom element + .v-glass utility
      ───────────────────────────────────────────────────────────────────── */
   .v-glass {
     background: var(--v-bg-card);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border: 1px solid var(--v-glass-border);
     border-radius: var(--r-lg);
     box-shadow: var(--shadow-md);
     transition:
       border-color var(--dur-normal) var(--ease-out),
       box-shadow var(--dur-normal) var(--ease-out);
   }
   .v-glass:hover {
     border-color: var(--v-glass-border-hover);
     box-shadow: var(--shadow-glow);
   }
   
   /* Padding modifiers */
   .v-glass--p-sm  { padding: var(--sp-3); }
   .v-glass--p-md  { padding: var(--sp-6); }
   .v-glass--p-lg  { padding: var(--sp-8); }
   .v-glass--p-xl  { padding: var(--sp-10); }
   
   /* Radius modifiers */
   .v-glass--r-sm  { border-radius: var(--r-sm); }
   .v-glass--r-md  { border-radius: var(--r-md); }
   .v-glass--r-lg  { border-radius: var(--r-lg); }
   .v-glass--r-xl  { border-radius: var(--r-xl); }
   
   /* Legacy .glass class (backward compat — dashboard uses this) */
   .glass {
     background: var(--v-bg-card);
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px);
     border: 1px solid var(--v-border);
     border-radius: var(--v-radius);
   }
   .glass:hover {
     background: var(--v-bg-card-hover);
     border-color: var(--v-border-hover);
   }
   .glass-surface {
     background: var(--v-bg-surface);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border: 1px solid var(--v-border);
     border-radius: var(--v-radius);
   }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      7. PHARMACIST BADGE — <pharmacist-badge> custom element
      ───────────────────────────────────────────────────────────────────── */
   .v-pharmacist-badge {
     display: inline-flex;
     align-items: center;
     gap: var(--sp-2);
     background: var(--v-accent-subtle);
     border: 1px solid rgba(78, 227, 178, 0.18);
     border-radius: var(--r-pill);
     color: var(--v-text-accent);
     font-weight: 600;
     letter-spacing: 0.02em;
     white-space: nowrap;
   }
   .v-pharmacist-badge::before {
     content: '⚕️';
     font-size: 1em;
   }
   .v-pharmacist-badge--sm {
     font-size: 11px;
     padding: 4px 10px;
   }
   .v-pharmacist-badge--md {
     font-size: 13px;
     padding: 6px 14px;
   }
   
   html[dir="rtl"] .v-pharmacist-badge::before {
     order: 1;
   }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      8. BUTTONS — v-btn system
      ───────────────────────────────────────────────────────────────────── */
   
   /* Primary CTA (pill) */
   .v-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: var(--sp-2);
     padding: var(--sp-3) var(--sp-6);
     font-family: 'Inter', sans-serif;
     font-size: 15px;
     font-weight: 600;
     border-radius: var(--r-pill);
     border: none;
     cursor: pointer;
     transition: all var(--dur-normal) var(--ease-out);
     position: relative;
     overflow: hidden;
     text-decoration: none;
     letter-spacing: 0.01em;
     background: var(--v-accent);
     color: var(--v-text-inverse);
     box-shadow: 0 2px 12px var(--v-accent-glow);
   }
   .v-btn::before {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
     opacity: 0;
     transition: opacity var(--dur-normal) var(--ease-out);
   }
   .v-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 24px var(--v-accent-glow-strong);
     color: var(--v-text-inverse);
   }
   .v-btn:hover::before { opacity: 1; }
   .v-btn:active { transform: translateY(0); }
   
   /* Secondary / outline variant */
   .v-btn-outline {
     background: transparent;
     color: var(--v-text-primary);
     border: 1.5px solid var(--v-border);
     box-shadow: none;
   }
   .v-btn-outline::before { display: none; }
   .v-btn-outline:hover {
     background: var(--v-accent-subtle);
     color: var(--v-accent);
     border-color: rgba(78, 227, 178, 0.30);
     box-shadow: 0 0 20px var(--v-accent-subtle);
   }
   
   /* Legacy button classes — kept for backward compat */
   .v-btn-primary {
     background: var(--v-green);
     color: #fff;
     border: none;
     padding: 12px 24px;
     border-radius: var(--v-radius-xs);
     font-weight: 600;
     font-size: 1rem;
     cursor: pointer;
     transition: all var(--v-transition);
     font-family: inherit;
   }
   .v-btn-primary:hover {
     background: var(--v-green-light);
     box-shadow: 0 4px 20px var(--v-green-glow);
   }
   .v-btn-primary:disabled {
     background: var(--v-text-tertiary);
     cursor: not-allowed;
     box-shadow: none;
   }
   
   .v-btn-secondary {
     background: var(--v-bg-elevated);
     color: var(--v-text-secondary);
     border: 1px solid var(--v-border);
     padding: 10px 22px;
     border-radius: var(--v-radius-xs);
     font-weight: 600;
     cursor: pointer;
     transition: all var(--v-transition);
     font-family: inherit;
   }
   .v-btn-secondary:hover {
     background: var(--v-bg-card-hover);
     color: var(--v-text-primary);
     border-color: var(--v-border-hover);
   }
   
   /* Legacy .btn (from index/pricing/auth pages) */
   .btn {
     padding: 12px 28px;
     border-radius: var(--r-pill);
     background: var(--v-accent);
     color: var(--v-text-inverse);
     border: none;
     font-weight: 600;
     font-size: 0.9rem;
     font-family: inherit;
     cursor: pointer;
     transition: all var(--dur-normal) var(--ease-out);
     display: inline-block;
     text-align: center;
     letter-spacing: 0.01em;
     position: relative;
     overflow: hidden;
     box-shadow: 0 2px 12px var(--v-accent-glow);
   }
   .btn::before {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
     opacity: 0;
     transition: opacity var(--dur-normal) var(--ease-out);
   }
   .btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 24px var(--v-accent-glow-strong);
     color: var(--v-text-inverse);
   }
   .btn:hover::before { opacity: 1; }
   .btn:active { transform: translateY(0); }
   .btn.outline {
     background: transparent;
     color: var(--v-text-primary);
     border: 1.5px solid var(--v-border);
     box-shadow: none;
   }
   .btn.outline::before { display: none; }
   .btn.outline:hover {
     background: var(--v-accent-subtle);
     color: var(--v-accent);
     border-color: rgba(78, 227, 178, 0.30);
     box-shadow: 0 0 20px var(--v-accent-subtle);
   }
   .btn.solid { background: var(--v-accent); color: var(--v-text-inverse); border: 1.5px solid transparent; }
   .btn.solid:hover { box-shadow: 0 6px 24px var(--v-accent-glow-strong); transform: translateY(-2px); }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      9. FORM ELEMENTS — .v-input, .v-label, .v-checkbox
      ───────────────────────────────────────────────────────────────────── */
   .v-input {
     width: 100%;
     padding: 12px 16px;
     background: var(--v-bg-elevated);
     border: 1px solid var(--v-border);
     border-radius: var(--v-radius-xs);
     color: var(--v-text-primary);
     font-size: 1rem;
     font-family: inherit;
     transition: border-color var(--v-transition);
     box-sizing: border-box;
   }
   .v-input:focus {
     outline: none;
     border-color: var(--v-green);
     box-shadow: 0 0 0 3px var(--v-green-glow);
   }
   .v-input::placeholder { color: var(--v-text-tertiary); }
   
   .v-form-label {
     display: block;
     font-size: 0.85rem;
     font-weight: 600;
     color: var(--v-text-secondary);
     margin-bottom: 6px;
   }
   
   .v-checkbox {
     accent-color: var(--v-green);
     width: 18px;
     height: 18px;
     cursor: pointer;
   }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      10. SHARED HEADER
      ───────────────────────────────────────────────────────────────────── */
   .v-header {
     background: rgba(10, 15, 14, 0.85);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border-bottom: 1px solid var(--v-border);
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1rem 3vw;
     position: sticky;
     top: 0;
     z-index: 30;
   }
   .v-header .logo-row { display: flex; align-items: center; gap: 16px; }
   .v-header .logo-row img { height: 54px; border-radius: 16px; border: 1px solid var(--v-border); }
   .v-header .logo-title {
     font-weight: 800; font-size: 1.7rem;
     background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
     -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
     letter-spacing: -0.02em;
   }
   .v-header .topnav { display: flex; align-items: center; }
   .v-header .topnav a {
     margin-left: 2rem; text-decoration: none; color: var(--v-text-secondary);
     font-weight: 600; font-size: 1.05rem; transition: color var(--v-transition);
   }
   .v-header .topnav a:hover { color: var(--v-text-primary); }
   .v-header .topnav .v-btn-logout {
     margin-left: 2.2rem; background: var(--v-bg-elevated); color: var(--v-text-primary);
     padding: 10px 22px; border-radius: var(--v-radius-xs); font-weight: 700;
     border: 1px solid var(--v-border); transition: all var(--v-transition);
   }
   .v-header .topnav .v-btn-logout:hover {
     background: var(--v-bg-card-hover); border-color: var(--v-border-hover);
   }
   
   /* Legacy .main-header */
   .main-header {
     background: rgba(10, 15, 14, 0.80);
     backdrop-filter: blur(20px) saturate(1.2);
     -webkit-backdrop-filter: blur(20px) saturate(1.2);
     padding: 14px 0;
     position: sticky;
     top: 0;
     z-index: 1000;
     border-bottom: 1px solid var(--border-subtle);
     transition: background var(--dur-normal) var(--ease-out);
   }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      11. SHARED FOOTER
      ───────────────────────────────────────────────────────────────────── */
   .v-footer {
     background: var(--v-bg-surface);
     margin-top: 4rem;
     padding: 2.2rem 3vw;
     font-size: 1rem;
     color: var(--v-text-tertiary);
     text-align: center;
     border-top: 1px solid var(--v-border);
     font-weight: 500;
     position: relative;
     z-index: 1;
   }
   
   .main-footer {
     background: var(--v-bg-surface);
     padding: 48px 0 40px;
     font-size: 0.875rem;
     color: var(--v-text-secondary);
     border-top: 1px solid var(--border-subtle);
   }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      12. SHIMMER SKELETON LOADING
      ───────────────────────────────────────────────────────────────────── */
   @keyframes shimmer {
     0%   { background-position: -200% 0; }
     100% { background-position: 200% 0; }
   }
   .skeleton {
     background: linear-gradient(90deg,
       rgba(255,255,255,0.04) 25%,
       rgba(255,255,255,0.08) 50%,
       rgba(255,255,255,0.04) 75%
     );
     background-size: 200% 100%;
     animation: shimmer 1.8s ease-in-out infinite;
     border-radius: var(--v-radius-xs);
   }
   .skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }
   .skeleton-line:last-child { width: 60%; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      13. DIALOG / POPUP
      ───────────────────────────────────────────────────────────────────── */
   .v-overlay {
     position: fixed; inset: 0;
     background: rgba(0, 0, 0, 0.6);
     z-index: 1999; opacity: 0; visibility: hidden;
     transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
   }
   .v-overlay.open { opacity: 1; visibility: visible; }
   .v-dialog {
     background: var(--v-bg-surface);
     backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
     border: 1px solid var(--v-border);
     border-radius: var(--v-radius);
     box-shadow: var(--v-shadow-dialog);
     padding: 24px;
   }
   .v-dialog h3, .v-dialog h4 { color: var(--v-text-primary); margin-top: 0; }
   .v-dialog p { color: var(--v-text-secondary); }
   .v-dialog .close-btn {
     position: absolute; top: 15px; right: 15px;
     font-size: 1.5rem; cursor: pointer; color: var(--v-text-tertiary);
     transition: color var(--v-transition); background: none; border: none;
   }
   .v-dialog .close-btn:hover { color: var(--v-text-primary); }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      14. PROGRESS BAR
      ───────────────────────────────────────────────────────────────────── */
   .v-progress {
     appearance: none; -webkit-appearance: none;
     width: 54px; height: 8px; border-radius: 4px;
     background: rgba(255, 255, 255, 0.08); border: none;
   }
   .v-progress::-webkit-progress-bar { background: rgba(255,255,255,0.08); border-radius: 4px; }
   .v-progress::-webkit-progress-value {
     background: linear-gradient(90deg, var(--v-green), var(--v-green-light));
     border-radius: 4px;
   }
   .v-progress::-moz-progress-bar {
     background: linear-gradient(90deg, var(--v-green), var(--v-green-light));
     border-radius: 4px;
   }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      15. NOTIFICATION BADGE
      ───────────────────────────────────────────────────────────────────── */
   .v-badge {
     background: linear-gradient(135deg, #EF4444, #DC2626);
     color: white; border-radius: 50%;
     font-size: 0.75rem; font-weight: 700;
     position: absolute; width: 18px; height: 18px;
     display: flex; justify-content: center; align-items: center;
     line-height: 1; border: 2px solid var(--v-bg-base);
     box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
     transform: scale(0);
     transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
   }
   .v-badge.visible { transform: scale(1); }
   .v-badge:empty { display: none !important; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      16. PREMIUM GATE WIDGET
      ───────────────────────────────────────────────────────────────────── */
   .v-premium-gate {
     position: relative; overflow: hidden;
     border-radius: var(--v-radius); border: 1px solid var(--v-border);
   }
   .v-premium-gate::after {
     content: ''; position: absolute; inset: 0;
     background: rgba(10, 15, 14, 0.75);
     backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
     z-index: 2;
   }
   .v-premium-gate-cta {
     position: absolute; top: 50%; left: 50%;
     transform: translate(-50%, -50%);
     z-index: 3; text-align: center; padding: 24px;
   }
   .v-premium-gate-cta .lock-icon { font-size: 2rem; margin-bottom: 8px; }
   .v-premium-gate-cta h4 { color: var(--v-text-primary); margin: 0 0 8px 0; font-size: 1.1rem; }
   .v-premium-gate-cta p { color: var(--v-text-secondary); font-size: 0.9rem; margin: 0 0 16px 0; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      17. HABIT TILE (dashboard)
      ───────────────────────────────────────────────────────────────────── */
   .v-habit-tile {
     display: flex; align-items: center; gap: 12px;
     padding: 10px 0; border-bottom: 1px solid var(--v-border);
   }
   .v-habit-tile:last-child { border-bottom: none; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      18. MOBILE NAVIGATION
      ───────────────────────────────────────────────────────────────────── */
   .v-mobile-nav {
     display: none; background: rgba(10, 15, 14, 0.9);
     backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
     padding: 0 2vw; border-top: 1px solid var(--v-border);
     border-bottom: 1px solid var(--v-border);
     align-items: center; position: relative; z-index: 1;
   }
   .v-mobile-nav a {
     flex: 1; text-align: center; text-decoration: none;
     color: var(--v-text-secondary); font-weight: 600; font-size: 0.9rem;
     padding: 12px 4px; border-radius: 6px; transition: all var(--v-transition);
   }
   .v-mobile-nav a:hover { background: var(--v-bg-card); color: var(--v-text-primary); }
   
   .v-hamburger {
     display: none; font-size: 1.8rem;
     background: none; border: none; cursor: pointer;
     color: var(--v-text-secondary); padding: 0; margin-right: 12px;
     transition: color var(--v-transition);
   }
   .v-hamburger:hover { color: var(--v-text-primary); }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      19. RTL SUPPORT
      ───────────────────────────────────────────────────────────────────── */
   html[dir="rtl"] .v-header .topnav a { margin-left: 0; margin-right: 2rem; }
   html[dir="rtl"] .v-hamburger { margin-right: 0; margin-left: 12px; }
   html[dir="rtl"] .v-pharmacist-badge::before { order: 2; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      20. SCROLLBAR & SELECTION
      ───────────────────────────────────────────────────────────────────── */
   ::-webkit-scrollbar { width: 6px; }
   ::-webkit-scrollbar-track { background: transparent; }
   ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 3px; }
   ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.20); }
   ::selection { background: rgba(16, 185, 129, 0.30); color: #fff; }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      21. UTILITY CLASSES
      ───────────────────────────────────────────────────────────────────── */
   .container { width: 92%; max-width: 1200px; margin: 0 auto; }
   .container--padded { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
   .flex { display: flex; flex-wrap: wrap; }
   .between { justify-content: space-between; }
   .center { align-items: center; }
   .gap-16 { gap: 16px; }
   
   /* Animations */
   @keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
   @keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
   
   
   /* ─────────────────────────────────────────────────────────────────────
      22. RESPONSIVE — SHARED BREAKPOINTS
      ───────────────────────────────────────────────────────────────────── */
   @media (max-width: 1100px) {
     .v-hamburger { display: block; }
     .v-header .topnav > a:not(.v-btn-logout) { display: none; }
     .v-header .topnav .v-btn-logout { margin-left: 0.5rem; }
   }
   @media (max-width: 900px) {
     .v-header .topnav > a:not(.v-btn-logout) { display: none; }
     .v-mobile-nav { display: flex; }
     .v-header .topnav .v-btn-logout { padding: 8px 16px; font-size: 0.9rem; }
     .v-header { padding: 1rem 3vw; }
     .footer-content { flex-direction: column; text-align: center; align-items: center; gap: 28px !important; }
     .footer-column { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
     .footer-social-links { justify-content: center; width: 100%; margin-top: 4px; }
     .logo { justify-content: center; }
   }
   @media (max-width: 768px) {
     .main-header .container { flex-direction: column; gap: 16px; }
     .main-nav { order: 3; width: 100%; justify-content: center; background: var(--v-bg-elevated); padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--border-subtle); gap: 20px; }
   }
   @media (max-width: 450px) {
     .v-header .logo-row { gap: 8px; }
     .v-header .logo-row img { height: 40px; }
     .v-header .logo-title { font-size: 1.25rem; }
     .v-header .topnav .v-btn-logout { padding: 8px 14px; font-size: 0.9rem; }
     .v-hamburger { font-size: 1.6rem; }
   }