/* admin-web/styles.css */
/* DOSEVA Health — Enterprise Clinical Design System v3.0 */
/* Inspired by Linear, Vercel, Apple Health — Precision Medical UI */

:root {
  /* Canvas & Elevations — Ultra-dark medical grade */
  --bg-primary: #030509;
  --bg-secondary: #070b14;
  --bg-card: rgba(10, 15, 28, 0.65);
  --bg-card-hover: rgba(14, 22, 42, 0.8);
  --bg-glass-input: rgba(6, 10, 20, 0.7);
  --bg-surface: rgba(255, 255, 255, 0.025);
  --bg-surface-hover: rgba(255, 255, 255, 0.04);

  /* Hairline Borders — Barely visible, Apple-like */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-card-top: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;
  --border-focus-cyan: #06b6d4;
  --border-subtle: rgba(255, 255, 255, 0.04);

  /* Typography Colors — High contrast hierarchy */
  --text-primary: #f0f2f5;
  --text-secondary: #8b95a8;
  --text-muted: #566072;
  --text-dim: #3d4654;

  /* Clinical Signal Accents — Refined, not neon */
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #38bdf8;
  --accent-cyan-glow: rgba(6, 182, 212, 0.15);
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-indigo: #6366f1;

  /* Modern Display & System Fonts — Premium Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radii — Softer, more modern */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* Hardware Inset & Multi-Layer Elevations — Subtle, not flashy */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.12);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.12);

  /* Transitions — Smooth spring-like */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Sleek Dark Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #050811;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid #050811;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Subtle noise texture overlay for depth — Vercel/Linear style */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Gradient mesh background — subtle depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}

/* Atmospheric Lighting — Subtle, professional, not distracting */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.12;
  animation: ambientFloat 25s infinite alternate ease-in-out;
  will-change: transform;
}

.ambient-glow-top-left {
  top: -200px;
  left: -160px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 65%);
}

.ambient-glow-top-right {
  top: 60px;
  right: -180px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, transparent 65%);
  animation-delay: -8s;
}

.ambient-glow-mid {
  top: 55%;
  left: 20%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, 20px) scale(1.03); }
  100% { transform: translate(-10px, 8px) scale(0.98); }
}

/* Pulsing input highlight for 1-click credentials filler */
.input-highlight-pulse {
  animation: inputFillPulse 0.8s ease;
}

@keyframes inputFillPulse {
  0% { border-color: var(--accent-emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.4); }
  50% { border-color: var(--accent-cyan); box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.3); }
  100% { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar — Dark, minimal */
.sidebar {
  width: 260px;
  background: rgba(5, 8, 14, 0.95);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-img-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.45));
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 60%, var(--accent-emerald));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.sidebar-nav {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.05));
  color: var(--accent-emerald);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: var(--accent-emerald);
  border-radius: 0 4px 4px 0;
}

.badge-count {
  margin-left: auto;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

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

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #070b14;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 100vh;
}

.top-bar {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clinical-safety-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

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

.safety-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.content-body {
  padding: 32px;
  flex: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

/* Metric KPI Cards */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-footer {
  font-size: 0.75rem;
  font-weight: 500;
}

.text-success { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }
.text-warning { color: var(--accent-amber); }
.text-danger { color: var(--accent-rose); }

/* Clinical Banner */
.clinical-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 4px solid var(--accent-emerald);
}

.banner-icon {
  font-size: 2.2rem;
}

.banner-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.banner-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Split Grid */
.dashboard-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .dashboard-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.calc-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-glass-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-emerald);
  background: rgba(10, 16, 30, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

select.form-control option {
  background: #080d19;
  color: #f8fafc;
  padding: 8px;
}

.text-center-input {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Flexible Age Input Group with Unit Selector */
.age-input-group {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
}

.age-input-group .age-value-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
  flex: 1;
  min-width: 0;
}

.age-input-group .age-unit-select {
  width: 110px !important;
  flex-shrink: 0;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  background-color: rgba(13, 20, 36, 0.98) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--accent-cyan) !important;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 32px 0 12px;
  background-position: right 10px center;
  transition: all 0.2s ease;
}

.age-input-group .age-unit-select:hover {
  background-color: rgba(20, 32, 54, 0.98) !important;
  color: #38bdf8 !important;
}

.age-input-group .age-unit-select:focus,
.age-input-group .age-value-input:focus {
  z-index: 2;
}

.age-conversion-preview {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
  transition: all 0.25s ease;
}

/* Enterprise Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 25px rgba(16, 185, 129, 0.5);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-hero-wa {
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
  background: rgba(37, 211, 102, 0.08);
}

.btn-hero-wa:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Result Box in Dashboard */
.calc-result-box {
  margin-top: 20px;
  padding: 22px;
  background: rgba(7, 12, 23, 0.9);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.result-main {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.result-stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.trace-accordion {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.trace-step {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.clinical-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.clinical-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.clinical-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

/* Tags & Badges */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.tag-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.tag-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-danger { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.3); }

/* Modal */
.modal-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 540px;
  margin: auto;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

/* ========================================================
   LANDING PAGE & LOGIN PORTAL STYLES (DOSEVA HEALTH)
   ======================================================== */
.landing-portal-view {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.dashboard-view {
  width: 100%;
  min-height: 100vh;
}

/* Landing Header — Frosted glass, minimal */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  background: rgba(3, 5, 9, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.landing-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
}

.landing-nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.landing-nav-links a.active {
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  font-weight: 600;
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero Section — Clean, impactful */
.landing-hero {
  padding: 56px 32px 48px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.clinical-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: var(--accent-emerald-light);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.gradient-text-hero {
  background: linear-gradient(135deg, #34d399 0%, #22d3ee 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all var(--duration-normal) var(--ease-spring);
}

.hero-stat-item:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

.hero-stat-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: block;
  color: var(--text-primary);
}

.hero-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.25;
  display: block;
  margin-top: 1px;
}

/* Auth Card — Minimal terminal aesthetic */
.auth-portal-card {
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.auth-portal-card .form-group {
  width: 100% !important;
  margin-bottom: 12px;
}

.auth-portal-card .form-group label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  white-space: normal !important;
  overflow: visible !important;
  line-height: 1.4 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.auth-portal-card .form-control {
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-glass-input) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-primary) !important;
  padding: 11px 14px !important;
  font-size: 0.88rem !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.2s ease !important;
}

.auth-portal-card .form-control:focus {
  border-color: var(--accent-emerald) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
  outline: none !important;
}

.auth-portal-card select.form-control option {
  background: #0b1329 !important;
  color: #f1f5f9 !important;
  padding: 8px !important;
}

.auth-portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
  opacity: 0.7;
}

.auth-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.auth-header-title h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-status-indicator {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: block;
}

.demo-login-box {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.demo-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-hint-badge {
  font-size: 0.68rem;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.demo-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-demo-pill {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-demo-pill:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.demo-pill-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.demo-pill-info strong {
  display: block;
  font-size: 0.78rem;
  color: #ffffff;
}

.demo-pill-info small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.security-guarantee-banner {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Landing Section General */
.landing-section {
  padding: 64px 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.035em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: all var(--duration-normal) var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.feature-box:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-emerald);
}

.feature-box h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Live Calculator Box on Landing */
.landing-calc-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.calc-form-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-output-card {
  background: rgba(5, 8, 16, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Drug Grid Highlight */
.drug-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.drug-tag-badge {
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.82rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.drug-tag-badge:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: scale(1.04);
}

/* Download APK Card */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-card);
}

.download-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.download-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 560px;
  line-height: 1.55;
}

/* Enterprise Footer — Clean, minimal */
.landing-footer {
  position: relative;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #020408 100%);
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: auto;
  overflow: hidden;
}

/* Top border accent — subtle gradient line */
.footer-neon-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3) 25%, rgba(6, 182, 212, 0.25) 50%, rgba(59, 130, 246, 0.2) 75%, transparent 100%);
}

/* Trust Badges Strip */
.footer-trust-strip {
  background: rgba(5, 10, 20, 0.5);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
}

.footer-trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  transition: all var(--duration-normal) ease;
}

.trust-badge-item:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

.trust-badge-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.trust-badge-item strong {
  display: block;
  font-size: 0.82rem;
  color: #f1f5f9;
  font-weight: 700;
  line-height: 1.2;
}

.trust-badge-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Main Container & Grid */
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 28px 24px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 36px;
}

/* Column 1: Brand & Clinical Ecosystem */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-emblem-glow {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.45));
  transition: filter 0.3s ease;
}

.footer-emblem-glow:hover {
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.75));
}

.footer-brand-bio {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.76rem;
  color: #34d399;
  font-weight: 600;
  width: fit-content;
}

.pulsing-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.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); }
}

.build-version-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  color: #f8fafc;
  font-family: monospace;
}

.footer-tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tech-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: monospace;
}

/* Columns: Titles & Links */
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-icon {
  font-size: 1rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  padding: 3px 0;
}

.footer-link .link-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #10b981;
  transform: translateX(4px);
}

.footer-link:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #10b981;
}

/* Column 4: Service Box & WhatsApp */
.footer-app-box,
.footer-service-box {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.footer-app-header,
.footer-service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.app-badge-android,
.service-badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.app-size-tag,
.service-type-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

.footer-app-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 12px;
}

.footer-btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.25s ease;
}

.footer-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.footer-contact-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.contact-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.28);
  color: #25d366;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-wa-btn:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  transform: translateY(-1px);
}

/* Clinical Legal & Decision Support Disclaimer Box */
.footer-disclaimer-box {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.disclaimer-icon {
  font-size: 1.1rem;
}

.disclaimer-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.disclaimer-text strong {
  color: #f8fafc;
}

.disclaimer-text em {
  color: #38bdf8;
  font-style: normal;
  font-weight: 600;
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

.copyright-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copyright-info strong {
  color: #e2e8f0;
}

.sep-dot {
  opacity: 0.4;
}

.footer-faskes-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-back-to-top:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-2px);
}

/* ========================================================
   RESPONSIVE LAYOUT & MOBILE FLUIDITY ENHANCEMENTS
   ======================================================== */
@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-calc-container {
    grid-template-columns: 1fr;
  }
  .app-showcase-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .smartphone-frame-wrapper {
    order: -1;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-trust-inner {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px !important; /* Space for mobile sticky bottom quick bar */
  }

  .landing-header {
    padding: 12px 16px;
  }

  /* Switch desktop links to mobile hamburger */
  .landing-nav-links {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
  }

  /* Show mobile quick bar on smartphones */
  .mobile-quick-bottom-bar {
    display: flex !important;
  }

  .landing-hero {
    padding: 24px 0 36px;
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 12px 10px;
  }

  .stat-card-value {
    font-size: 1.3rem;
  }

  .stat-card-label {
    font-size: 0.72rem;
  }

  /* Collapse 2-column form rows cleanly */
  .form-row,
  .form-row-responsive {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .icu-subgrid-responsive {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .icu-grid {
    grid-template-columns: 1fr !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .download-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

  .auth-portal-card {
    padding: 20px 16px;
  }

  .landing-section {
    padding: 36px 16px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .landing-calc-container {
    padding: 18px 14px;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .calc-form-card,
  .calc-output-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .catalog-cards-grid {
    grid-template-columns: 1fr;
  }

  .smartphone-frame {
    width: 260px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-trust-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-badge-item {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .btn-back-to-top {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  /* Mobile adjustments for Education Suite and MedPass */
  .edu-suite-card {
    padding: 20px 14px;
  }
  .edu-tabs-nav {
    flex-direction: column;
    gap: 8px;
    padding: 6px;
  }
  .edu-tab-btn {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 0.85rem;
    white-space: normal;
    text-align: left;
  }
  .medpass-card {
    padding: 18px 14px;
  }
  .medpass-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .medpass-token-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .latin-dict-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .landing-header {
    padding: 10px 12px;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .calc-presets-bar {
    gap: 6px;
  }

  .preset-pill {
    padding: 4px 10px;
    font-size: 0.74rem;
  }

  .pump-digital-speed {
    font-size: 2.5rem;
  }

  .stepper-btn {
    width: 40px;
    height: 40px;
  }

  .gcs-score-pill {
    font-size: 2.2rem;
  }
}

/* ========================================================
   SELECTIVE USER SELECTION & ASSET PROTECTION
   ======================================================== */
.brand-logo,
.stepper-btn,
.mobile-nav-toggle,
.mobile-quick-bottom-bar,
.phone-speaker-notch,
.preset-pill {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* ICU & Critical Care Suite — Professional monitor aesthetic */
.icu-suite-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-top: 20px;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) ease;
  position: relative;
  overflow: hidden;
}

.icu-tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.icu-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}

.icu-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: rgba(6, 182, 212, 0.2);
}

.icu-tab-btn.active {
  background: rgba(6, 182, 212, 0.1);
  color: var(--text-primary);
  border-color: rgba(6, 182, 212, 0.3);
}

.icu-pane {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.icu-pane.active {
  display: block;
}

.icu-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .icu-grid {
    grid-template-columns: 1fr;
  }
}

/* ICU Syringe Pump Display — Clean monitor */
.pump-display-card {
  background: rgba(3, 6, 14, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.pump-display-card::before {
  content: "ICU SYRINGE PUMP TELEMETRY";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  opacity: 0.6;
}

.pump-digital-speed {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  line-height: 1;
  margin: 12px 0 6px;
  display: inline-block;
}

.pump-speed-unit {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 600;
  margin-left: 8px;
}

.dilution-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* GCS Neurological Interactive Scale */
.gcs-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.gcs-group-title {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.gcs-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gcs-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.gcs-radio-label:hover {
  background: rgba(6, 182, 212, 0.1);
  color: #ffffff;
  border-color: rgba(6, 182, 212, 0.3);
}

.gcs-radio-label input[type="radio"]:checked + span {
  color: #38bdf8;
  font-weight: 700;
}

.gcs-score-pill {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #34d399;
  text-shadow: 0 0 25px rgba(52, 211, 153, 0.5);
  line-height: 1;
  margin: 10px 0;
}

.flowchart-step {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(13, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.flowchart-step-number {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

/* ========================================================
   MODERN UI COMPONENTS & MOBILE ADAPTATION
   ======================================================== */

/* Mobile Navigation Toggle & Drawer */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav-toggle:hover, .mobile-nav-toggle:focus-visible {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-nav-drawer.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-nav-content {
  position: relative;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #080d19;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateX(4px);
}

.mobile-nav-icon {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}

/* Calculator Presets Bar */
.calc-presets-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 16px;
  width: 100%;
}

.calc-presets-title,
.calc-presets-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.calc-presets-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.preset-pill:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.preset-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.2));
  color: #34d399;
  border-color: var(--accent-emerald);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

/* Touch Dose Stepper */
.dose-stepper-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stepper-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: #38bdf8;
  transform: translateY(-1px);
}

.stepper-btn:active {
  transform: translateY(1px) scale(0.96);
  background: rgba(6, 182, 212, 0.35);
}

/* Interactive Drug Catalog Controls */
.catalog-controls-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  background: rgba(10, 16, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.catalog-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.catalog-search-field-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
}

.catalog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.catalog-search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 48px;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(13, 20, 36, 0.98);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.catalog-search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.catalog-search-clear-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #fff;
}

.catalog-badge-container {
  flex-shrink: 0;
}

.catalog-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-top: 0;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
}

.catalog-count-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.card-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.catalog-category-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 2px;
}

.cat-chip {
  white-space: nowrap;
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.cat-chip:hover {
  background: rgba(6, 182, 212, 0.12);
  color: #7dd3fc;
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.cat-chip.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.25));
  color: #ffffff;
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

@media (max-width: 768px) {
  .catalog-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .catalog-badge-container {
    display: flex;
    justify-content: flex-start;
  }
  .catalog-category-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
}

.catalog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.catalog-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.catalog-card-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.catalog-card-item.high-alert {
  border-left: 3px solid #f43f5e;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-drug-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.card-cat-badge {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.card-body-text {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 4px 0 8px;
}

.card-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-meta-chip {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
  font-weight: 600;
}

.card-meta-chip.alert-chip {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.card-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-test-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-test-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* Smartphone Showcase & Interactive Frame */
.app-showcase-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.smartphone-frame-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.smartphone-frame {
  width: 290px;
  max-width: 100%;
  border-radius: 40px;
  border: 6px solid #1a2236;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #000;
  overflow: hidden;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.smartphone-frame:hover {
  transform: translateY(-3px);
}

.phone-speaker-notch {
  width: 65px;
  height: 5px;
  background: #334155;
  border-radius: 4px;
  margin: 10px auto 8px;
}

.phone-screen-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 9/19.5;
  transition: opacity 0.2s ease;
}

.mockup-toggle-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 20, 36, 0.8);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.mockup-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.mockup-pill-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.25));
  color: #ffffff;
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Mobile Bottom Quick Navigation Bar (Smartphones) */
.mobile-quick-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: rgba(6, 10, 19, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  z-index: 990;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px env(safe-area-inset-bottom);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}

.mobile-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-quick-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mobile-quick-item:hover, .mobile-quick-item:active {
  color: #ffffff;
}

.mobile-quick-item.active {
  color: var(--accent-cyan);
  font-weight: 700;
}

.mobile-quick-item.active .mobile-quick-icon {
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.7));
}

/* ========================================================
   AUTHENTICATED DASHBOARD MOBILE DRAWER & RESPONSIVE
   ======================================================== */
.sidebar-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fff;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .sidebar-mobile-toggle {
    display: inline-flex !important;
  }

  .sidebar-close-btn {
    display: inline-flex !important;
  }

  .sidebar-backdrop {
    display: block !important;
  }

  .app-layout {
    position: relative;
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85);
  }

  .top-bar {
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .content-body {
    padding: 18px 12px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .dashboard-split-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .metric-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Digital Prescription Ticket — Clean clinical slip */
.digital-rx-slip {
  background: rgba(8, 14, 28, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--accent-emerald);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: rxFadeIn 0.3s var(--ease-spring);
}

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

.rx-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.rx-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rx-serial-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.rx-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rx-status-safe {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.rx-status-warning {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.rx-status-danger {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}

.rx-patient-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.rx-patient-item strong {
  color: #ffffff;
  font-family: var(--font-mono);
}

.rx-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .rx-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.rx-hero-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.rx-hero-box.highlight {
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.12) 0%, rgba(10, 16, 32, 0.7) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.rx-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.rx-box-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.rx-hero-box.highlight .rx-box-val {
  color: #34d399;
  text-shadow: 0 0 16px rgba(52, 211, 153, 0.4);
}

.rx-box-sub {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  margin-top: 4px;
}

.rx-signa-card {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.rx-signa-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rx-signa-latin {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.rx-meter-card {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.rx-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 4px;
}

.rx-meter-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.rx-meter-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 70%, #f59e0b 100%);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rx-action-toolbar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.rx-action-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rx-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.rx-trace-details {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
}

.rx-trace-summary {
  cursor: pointer;
  color: var(--accent-emerald);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rx-trace-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rx-trace-item {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--accent-cyan);
  border-radius: 0 4px 4px 0;
}

/* ========================================================
   ACADEMIC & VOCATIONAL EDUCATION SUITE (FK & SMK FARMASI)
   ======================================================== */
.edu-suite-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-top: 24px;
}

.edu-tabs-nav {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.edu-tab-btn {
  flex: 1;
  min-width: 170px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.edu-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.edu-tab-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.edu-pane {
  display: none;
}

.edu-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

@media (max-width: 992px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.edu-card-box {
  background: rgba(8, 14, 26, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.edu-etiket-slip {
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  padding: 16px;
  border-left: 6px solid #10b981;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
}

.edu-etiket-slip.etiket-blue {
  border-left-color: #3b82f6;
}

.edu-etiket-header {
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.edu-etiket-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.edu-etiket-meta {
  font-size: 0.72rem;
  color: #64748b;
}

.edu-etiket-body {
  font-size: 0.82rem;
  line-height: 1.6;
}

.edu-etiket-signa {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  margin: 10px 0;
}

.edu-watermark-sandbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.latin-dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.latin-dict-item {
  background: rgba(8, 14, 26, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.latin-dict-item:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(12, 22, 40, 0.9);
  transform: translateY(-1px);
}

.latin-dict-abbr {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

.latin-dict-full {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.latin-dict-meaning {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ========================================================
   DOSEVA MEDICAL PASS (DIGITAL IDENTITY & GATED DOWNLOAD)
   ======================================================== */
.medpass-card {
  background: linear-gradient(135deg, rgba(10, 18, 32, 0.95) 0%, rgba(6, 11, 22, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.15);
  width: 100%;
}

.medpass-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.medpass-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.medpass-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.medpass-token-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.medpass-token-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: #38bdf8;
  letter-spacing: 1px;
}

.gated-download-locked {
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gated-lock-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* ========================================================
   PRINT STYLESHEET FOR OFFICIAL CLINICAL PRESCRIPTIONS
   ======================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  .landing-header, .sidebar, .top-bar, .mobile-quick-bottom-bar, .ambient-glow, .rx-action-toolbar, details, .sidebar-backdrop, .sidebar-mobile-toggle, .btn-back-to-top {
    display: none !important;
  }
  .digital-rx-slip {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
  .rx-box-val, .rx-signa-latin, .rx-patient-item strong {
    color: #000000 !important;
  }
  .rx-top-banner, .rx-patient-bar, .rx-hero-box, .rx-signa-card, .rx-meter-card {
    border-color: #cccccc !important;
    background: #f9f9f9 !important;
    color: #000000 !important;
  }
}




