/* ========================================================
   RoLink - Portal Tautan Resmi RS Roemani Muhammadiyah
   Modern 2026 Contemporary Theme
   Warna Khas: linear-gradient(135deg, #00a14b 0%, #0d7338 38%, #21409a 100%)
   ======================================================== */

:root {
  /* Brand Colors RS Roemani */
  --roemani-green: #00a14b;
  --roemani-green-dark: #00823c;
  --roemani-green-light: #10b981;
  --roemani-blue: #21409a;
  --roemani-blue-dark: #1b347d;
  --roemani-gradient: linear-gradient(135deg, #00a14b 0%, #0d7338 38%, #21409a 100%);
  --roemani-gradient-subtle: linear-gradient(135deg, rgba(0, 161, 75, 0.08) 0%, rgba(33, 64, 154, 0.08) 100%);

  /* Canvas & Surfaces */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfd;
  --border-card: rgba(226, 232, 240, 0.85);
  --border-hover: #00a14b;

  /* Typography Colors (High-Contrast Modern Slate) */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Modern Accents */
  --accent-amber: #d97706;
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-rose: #e11d48;
  --accent-wa: #16a34a;

  /* Layered Modern Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(226, 232, 240, 0.85);
  --shadow-card-hover: 0 14px 28px -6px rgba(0, 161, 75, 0.16), 0 4px 8px -2px rgba(0, 161, 75, 0.08), 0 0 0 1.5px rgba(0, 161, 75, 0.45);
  --shadow-hero: 0 20px 35px -10px rgba(33, 64, 154, 0.32), 0 8px 16px -6px rgba(0, 161, 75, 0.22);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 1.75rem 1rem 3.5rem 1rem;
  display: flex;
  justify-content: center;
}

/* Ambient Background Mesh Aura */
.glow-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 161, 75, 0.11) 0%, transparent 70%);
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(33, 64, 154, 0.10) 0%, transparent 70%);
  bottom: 60px;
  right: -90px;
}

/* Main Mobile-First Container */
.app-container {
  width: 100%;
  max-width: 580px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ========================================================
   HERO HEADER CARD (Vibrant Roemani Modern Banner)
   ======================================================== */
.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.4rem 1.6rem;
  background: var(--roemani-gradient);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

/* Subtle Geometric Dot Pattern */
.hero-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.65;
}

/* 1. TOP BRAND BAR: RoLink (Kecil, Elegan & Minimalis) */
.brand-bar {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.32rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-fast);
}

.brand-pill:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* Active Green Blinking Radar Indicator */
.active-status-beacon {
  position: relative;
  width: 9px;
  height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.1rem;
}

.beacon-ping {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.8;
  animation: beaconPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.beacon-core {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 10px #22c55e, 0 0 4px #4ade80;
  animation: beaconBlink 1.8s infinite ease-in-out;
}

@keyframes beaconPing {
  0% {
    transform: scale(0.8);
    opacity: 0.95;
  }
  70%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes beaconBlink {
  0%, 100% {
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
  }
  50% {
    background-color: #86efac;
    box-shadow: 0 0 14px #4ade80, 0 0 6px #22c55e;
  }
}

.brand-name {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

.verified-badge {
  color: #fef08a;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
}

.brand-sep {
  opacity: 0.45;
  font-size: 0.75rem;
}

.brand-hospital {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* 2. LOGO RS ROEMANI */
.logo-wrapper {
  position: relative;
  width: 78px;
  height: 78px;
  margin-bottom: 0.85rem;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.logo-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ro-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-smooth);
}

.hero-header:hover .ro-logo-img {
  transform: scale(1.05) rotate(2deg);
}

/* 3. EVENT HERO (Dominan, Besar & Eye-Catching) */
.event-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

/* JUDUL EVENT — Besar, Utama, dan Berwibawa */
.event-title {
  font-size: clamp(1.4rem, 4.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  text-transform: uppercase;
  max-width: 95%;
}

/* ========================================================
   SUBJUDUL & KETERANGAN EVENT (Contemporary Styled Structure)
   ======================================================== */
.event-meta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
  margin-top: 0.2rem;
}

/* 1. Training Roadmap Stepper (Pills Modern) */
.training-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
}

.step-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.step-num {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

/* Final Step Highlight (Siap Go-Live) */
.step-pill.step-pill-target {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.step-pill-target .step-icon {
  font-size: 0.74rem;
  color: #fef08a;
}

.step-connector {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
}

/* 2. Event Description Text */
.event-desc-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.5;
  text-align: center;
  max-width: 90%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* 3. Milestone / Go-Live Live Badge */
.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.01em;
}

.milestone-badge i {
  color: #00a14b;
  font-size: 0.85rem;
}

.milestone-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a14b;
  box-shadow: 0 0 8px #00a14b;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* HOST BADGE — Minimalist Pill */
.host-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-family: monospace;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.host-badge i {
  color: #86efac;
  font-size: 0.75rem;
}

/* HERO ACTION PILLS (Share Link & QR Code) */
.hero-action-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-fast);
}

.hero-pill-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-pill-btn:active {
  transform: scale(0.97);
}

.hero-pill-btn i {
  font-size: 0.82rem;
  color: #a7f3d0;
}

/* ========================================================
   CATEGORY NAVIGATION TABS (Jika > 1 Kategori)
   ======================================================== */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.tab-item:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.tab-item.active {
  background: var(--roemani-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 161, 75, 0.28);
}

/* ========================================================
   LINKS FEED & CARDS (Contemporary Tactile Cards)
   ======================================================== */
.links-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Section Header / Kategori */
.group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.35rem 0.2rem;
  margin-top: 0.35rem;
}

.group-title-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--roemani-blue);
}

.group-title-inner i {
  color: var(--roemani-green);
  font-size: 0.95rem;
}

.group-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* ========================================================
   LINK CARD STYLING
   ======================================================== */
.link-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Hover & Active States */
.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--roemani-green);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.link-card:active {
  transform: scale(0.985);
}

/* Left Accent Indicator on Hover */
.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--roemani-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.link-card:hover::before {
  opacity: 1;
}

/* Order Sequence Badge (01, 02, 03...) */
.card-seq-badge {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dim);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.link-card:hover .card-seq-badge {
  background: #ecfdf5;
  color: var(--roemani-green);
  border-color: #a7f3d0;
  transform: scale(1.04);
}

/* Link Icon Squircle */
.link-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.link-card:hover .link-icon {
  transform: scale(1.08);
}

/* Predefined Color Swatches */
.icon-amber   { background: #fef3c7; color: #d97706; border-color: #fde68a; }
.icon-blue    { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.icon-emerald { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.icon-teal    { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.icon-cyan    { background: #cffafe; color: #0e7490; border-color: #a5f3fc; }
.icon-purple  { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.icon-rose    { background: #ffe4e6; color: #be123c; border-color: #fecdd3; }
.icon-indigo  { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.icon-gold    { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.icon-red     { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* Link Content & Details */
.link-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.link-desc {
  font-size: 0.81rem;
  color: var(--text-body);
  line-height: 1.45;
}

.link-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Action Circle Button (Sleek Micro-Interaction) */
.link-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 0.25rem;
}

.action-btn-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  transition: all var(--transition-smooth);
}

.link-card:hover .action-btn-circle {
  background: var(--roemani-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.08) translateX(2px);
  box-shadow: 0 4px 10px rgba(0, 161, 75, 0.3);
}

/* ========================================================
   HERO LINK CARD (e.g. LINK TESTING SIMRS)
   ======================================================== */
.link-card.hero-link {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #00a14b;
  box-shadow: 0 6px 20px -2px rgba(0, 161, 75, 0.16);
  position: relative;
}

.link-card.hero-link::before {
  opacity: 1;
  width: 5px;
}

.link-card.hero-link .link-icon {
  background: var(--roemani-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 161, 75, 0.35);
}

.link-card.hero-link .card-seq-badge {
  background: #00a14b;
  color: #ffffff;
  border-color: #00a14b;
  font-weight: 800;
}

.link-card.hero-link:hover {
  box-shadow: 0 14px 30px -4px rgba(0, 161, 75, 0.26);
}

/* WhatsApp Card Hover */
.link-card.wa-card:hover {
  border-color: var(--accent-wa);
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.16);
}

.link-card.wa-card .link-icon {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

/* ========================================================
   FOOTER
   ======================================================== */
.app-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-hospital {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-card);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.hosp-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--roemani-blue);
  line-height: 1.35;
}

.hosp-address {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.15rem;
}

.footer-credits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.footer-credits strong {
  color: var(--roemani-blue);
}

.admin-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.admin-link-btn:hover {
  background: var(--roemani-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 161, 75, 0.25);
  transform: translateY(-1px);
}

/* ========================================================
   QR CODE MODAL
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.25rem;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card-qr {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem 1.6rem;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  animation: zoomInModal 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInModal {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: rotate(90deg);
}

.qr-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.qr-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ecfdf5;
  color: var(--roemani-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.qr-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.qr-modal-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 260px;
}

.qr-code-box {
  background: #ffffff;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-canvas-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-canvas-wrapper canvas,
.qr-canvas-wrapper img {
  display: block;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.qr-url-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  width: 100%;
  font-size: 0.76rem;
  color: #475569;
}

.qr-url-pill i {
  color: var(--roemani-green);
  flex-shrink: 0;
}

.qr-url-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
  font-size: 0.75rem;
  text-align: left;
}

.btn-copy-mini {
  background: none;
  border: none;
  color: var(--roemani-blue);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-copy-mini:hover {
  color: var(--roemani-green);
  transform: scale(1.15);
}

.qr-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

.btn-qr-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 0.85rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-qr-download {
  background: var(--roemani-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 161, 75, 0.28);
}

.btn-qr-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 161, 75, 0.38);
}

.btn-qr-wa {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.btn-qr-wa:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.38);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.toast-notification i {
  color: #4ade80;
  font-size: 0.95rem;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Utility */
.hidden {
  display: none !important;
}

/* ========================================================
   RESPONSIVE DESIGN (Mobile < 480px)
   ======================================================== */
@media (max-width: 480px) {
  body {
    padding: 0.85rem 0.65rem 2.5rem 0.65rem;
  }

  .hero-header {
    padding: 1.4rem 1rem 1.35rem;
    border-radius: var(--radius-lg);
  }

  .brand-pill {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
  }

  .brand-hospital {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-wrapper {
    width: 68px;
    height: 68px;
    margin-bottom: 0.65rem;
  }

  .event-title {
    font-size: 1.4rem;
  }

  .training-stepper {
    padding: 0.3rem 0.5rem;
    gap: 0.3rem;
  }

  .step-pill {
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
  }

  .step-num {
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
  }

  .event-desc-text {
    font-size: 0.82rem;
  }

  .milestone-badge {
    padding: 0.3rem 0.75rem;
    font-size: 0.74rem;
  }

  .hero-pill-btn {
    padding: 0.34rem 0.75rem;
    font-size: 0.73rem;
  }

  .link-card {
    padding: 0.9rem 0.95rem;
    gap: 0.75rem;
  }

  .card-seq-badge {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
    border-radius: 8px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    border-radius: 10px;
  }

  .link-title {
    font-size: 0.9rem;
  }

  .link-desc {
    font-size: 0.76rem;
  }

  .action-btn-circle {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .footer-hospital {
    padding: 0.75rem 0.85rem;
  }
}
