/* ==========================================================================
   Op. Dr. Hasan Doğan — Seminer & Hekim Operasyon Merkezi
   Design System v3: drhasandogan.com Signature Clinical Luxury
   Crisp Porcelain Ice · Royal Medical Navy (#004E82) · Aegean Cerulean · Emblem Plum (#8F1D5B)
   Typography: Cormorant Garamond · Outfit · DM Sans · JetBrains Mono
   ========================================================================== */

:root {
  /* Luminous Cool Porcelain & Surface Hierarchy */
  --bg-canvas: #F3F6FA;
  --bg-canvas-glow: radial-gradient(1100px 580px at 88% -10%, rgba(22, 128, 191, 0.085), transparent 64%),
                    radial-gradient(850px 480px at 8% 100%, rgba(143, 29, 91, 0.04), transparent 58%);
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F8FAFC;
  --bg-surface-muted: #EAF0F6;

  /* Official Logo Royal Medical Navy & Cerulean */
  --sidebar-bg: linear-gradient(180deg, #061C34 0%, #0A2C50 56%, #07203B 100%);
  --primary: #004E82;
  --primary-hover: #00619F;
  --primary-active: #003B63;
  --primary-soft: #E6F2FA;
  --primary-tint: rgba(0, 78, 130, 0.1);

  /* Logo Signature Plum & Cerulean Sky Accents */
  --accent-brass: #8F1D5B;
  --accent-brass-light: #4FB3E8;
  --accent-brass-soft: #FBEBF3;

  /* WhatsApp Clinical Emerald */
  --wa-green: #147A3A;
  --wa-green-hover: #0F622E;
  --wa-green-soft: #E6F5EC;
  --wa-wallpaper: #EFEAE2;

  /* Ink Palette */
  --ink-primary: #0F1F30;
  --ink-secondary: #43566B;
  --ink-muted: #708296;
  --ink-inverse: #F7FAFD;

  /* Refined Hairlines */
  --border-subtle: rgba(15, 31, 48, 0.085);
  --border-strong: rgba(15, 31, 48, 0.16);

  /* Semantic Statuses */
  --status-info: #0070A8;
  --status-info-soft: #E5F4FC;
  --status-warn: #A86410;
  --status-warn-soft: #FDF3E2;
  --status-danger: #B3261E;
  --status-danger-soft: #FDECEB;
  --status-success: #147345;
  --status-success-soft: #E6F5ED;

  /* Layered Ambient Shadows */
  --shadow-xs: 0 1px 2px rgba(7, 30, 56, 0.045);
  --shadow-sm: 0 3px 10px rgba(7, 30, 56, 0.055), 0 1px 2px rgba(7, 30, 56, 0.04);
  --shadow-md: 0 12px 30px rgba(7, 30, 56, 0.08), 0 3px 8px rgba(7, 30, 56, 0.04);
  --shadow-lg: 0 24px 54px rgba(6, 26, 48, 0.18), 0 6px 16px rgba(6, 26, 48, 0.08);
  --shadow-card-inner: inset 0 1px 0 rgba(255, 255, 255, 0.88);

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

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --sidebar-width: 268px;
  --topbar-height: 68px;
  --transition-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  background-image: var(--bg-canvas-glow);
  background-attachment: fixed;
  line-height: 1.58;
  overflow-x: hidden;
  letter-spacing: -0.004em;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink-primary);
  letter-spacing: -0.025em;
  line-height: 1.22;
  font-weight: 600;
}

p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: 0.88em; }

.tabular-nums { font-variant-numeric: tabular-nums; }

/* Custom Subtle Scrollbars */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15, 31, 48, 0.16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 31, 48, 0.28); }

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

/* ==========================================================================
   Buttons & Tactile Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.87rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { padding: 7px 13px; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 13px 24px; font-size: 0.94rem; border-radius: var(--radius-md); }

.btn-primary {
  background: linear-gradient(180deg, #075D97 0%, #004778 100%);
  color: var(--ink-inverse);
  box-shadow: 0 2px 6px rgba(0, 71, 120, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #0A6DB0 0%, #00548E 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 71, 120, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

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

.btn-whatsapp {
  background: linear-gradient(180deg, #198B44 0%, #136F35 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(20, 122, 58, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-whatsapp:hover {
  background: linear-gradient(180deg, #1B994B 0%, #157D3C 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 122, 58, 0.26);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}

.btn-ghost:hover {
  background: var(--bg-surface-muted);
  color: var(--ink-primary);
}

.btn-danger-soft {
  background: var(--status-danger-soft);
  color: var(--status-danger);
}

.btn-danger-soft:hover { background: #F8DCD5; }

.btn-icon { padding: 7px; width: 35px; height: 35px; }

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Form Elements */
.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-label .req { color: var(--status-danger); margin-left: 2px; }
.form-hint { font-size: 0.77rem; color: var(--ink-muted); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(13, 56, 52, 0.34);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-tint);
  background: #FFFFFF;
}

.form-textarea { resize: vertical; min-height: 96px; line-height: 1.56; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.3;
  white-space: nowrap;
}

.badge svg { width: 13px; height: 13px; }
.badge-neutral { background: var(--bg-surface-muted); color: var(--ink-secondary); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--status-success-soft); color: var(--status-success); }
.badge-warn    { background: var(--status-warn-soft); color: var(--status-warn); }
.badge-info    { background: var(--status-info-soft); color: var(--status-info); }
.badge-danger  { background: var(--status-danger-soft); color: var(--status-danger); }
.badge-brass   { background: var(--accent-brass-soft); color: var(--accent-brass); border: 1px solid rgba(168, 124, 56, 0.22); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), var(--shadow-card-inner);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

.card-body { padding: 22px 24px; }

/* ==========================================================================
   Admin Layout Shell — Deep Obsidian Emerald Sidebar + Ivory Workspace
   ========================================================================== */

.admin-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar-bg);
  color: var(--ink-inverse);
  border-right: 1px solid rgba(215, 180, 115, 0.14);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  transition: transform var(--transition-base);
  box-shadow: 4px 0 28px rgba(9, 28, 26, 0.12);
}

.sidebar-brand {
  padding: 22px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #D7B473 0%, #9E722E 100%);
  color: #061C34;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-text-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: #FAF8F4;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.brand-text-sub {
  font-size: 0.72rem;
  color: rgba(215, 180, 115, 0.85);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Public nav brand override on white header */
.public-nav .brand-text-title { color: var(--ink-primary); }
.public-nav .brand-text-sub { color: var(--accent-brass); font-weight: 600; }

.sidebar-nav {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-section-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 248, 244, 0.42);
  padding: 14px 12px 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  color: rgba(250, 248, 244, 0.76);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  position: relative;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  color: rgba(250, 248, 244, 0.52);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}

.nav-item:hover svg { color: var(--accent-brass-light); }

.nav-item.active {
  background: rgba(79, 179, 232, 0.16);
  border-color: rgba(79, 179, 232, 0.28);
  color: #FFFFFF;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-brass-light);
}

.nav-item.active svg { color: var(--accent-brass-light); }

.nav-badge {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(247, 250, 253, 0.85);
}

.nav-item.active .nav-badge {
  background: var(--accent-brass-light);
  color: #061C34;
}

.sidebar-footer {
  padding: 16px 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-portal-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(79, 179, 232, 0.22);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sidebar-portal-card strong {
  color: #F7FAFD !important;
  font-family: var(--font-display);
  font-size: 0.83rem !important;
}

.sidebar-portal-card p {
  font-size: 0.76rem;
  color: rgba(247, 250, 253, 0.68);
  line-height: 1.45;
}

.sidebar-portal-card .btn-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8F3FB 100%);
  color: #004778;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.sidebar-portal-card .btn-primary:hover {
  background: #FFFFFF;
  color: #00355B;
}

/* Main Content Area */
.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: var(--topbar-height);
  background: rgba(243, 246, 250, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mobile-menu-btn { display: none; }

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-subtitle {
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: block;
  margin-top: 1px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-switch {
  display: inline-flex;
  background: rgba(15, 31, 48, 0.06);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mode-switch-btn {
  padding: 6px 13px;
  border: none;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: transparent;
  transition: all var(--transition-fast);
}

.mode-switch-btn:hover { color: var(--ink-primary); }

.mode-switch-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.page-content {
  padding: 28px 32px 56px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: viewFadeUp 260ms ease both;
}

/* ==========================================================================
   Dashboard Components — Architectural Welcome & Executive KPIs
   ========================================================================== */

.welcome-banner {
  background: radial-gradient(640px 340px at 94% 8%, rgba(79, 179, 232, 0.25), transparent 64%),
              radial-gradient(420px 260px at 14% 96%, rgba(143, 29, 91, 0.2), transparent 62%),
              linear-gradient(135deg, #061D36 0%, #0A3762 56%, #0D4B82 100%);
  color: #F7FAFD;
  border-radius: var(--radius-xl);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(79, 179, 232, 0.24);
  position: relative;
  overflow: hidden;
}

.welcome-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8FD2F6;
  margin-bottom: 6px;
}

.welcome-banner h1 {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 8px;
}

.welcome-banner p {
  color: rgba(247, 250, 253, 0.84);
  font-size: 0.92rem;
  max-width: 590px;
  line-height: 1.6;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-on-dark {
  background: linear-gradient(180deg, #FFFFFF 0%, #EAF4FC 100%);
  color: #004778;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.btn-on-dark:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  color: #00355B;
}

.btn-on-dark-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #F7FAFD;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.btn-on-dark-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(79, 179, 232, 0.65);
  color: #FFFFFF;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm), var(--shadow-card-inner);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 56, 52, 0.18);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kpi-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.005em;
}

.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon.green { background: var(--wa-green-soft); color: var(--wa-green); }
.kpi-icon.brass { background: var(--accent-brass-soft); color: var(--accent-brass); }
.kpi-icon.info  { background: var(--status-info-soft); color: var(--status-info); }
.kpi-icon svg { width: 18px; height: 18px; }

.kpi-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpi-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

/* Funnel */
.funnel-list { display: flex; flex-direction: column; gap: 16px; }
.funnel-step { display: flex; flex-direction: column; gap: 7px; }

.funnel-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.funnel-step-name { font-weight: 600; color: var(--ink-primary); }

.funnel-step-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-muted);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #004E82 0%, #1680BF 100%);
  transition: width 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill.green { background: linear-gradient(90deg, #147A3A 0%, #22A053 100%); }
.progress-fill.brass { background: linear-gradient(90deg, #8F1D5B 0%, #BA337C 100%); }
.progress-fill.info  { background: linear-gradient(90deg, #0070A8 0%, #3BA4E3 100%); }

/* Mini Seminar List */
.mini-seminar-list { display: flex; flex-direction: column; gap: 13px; }

.mini-seminar-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-surface-subtle);
  transition: all var(--transition-fast);
}

.mini-seminar-item:hover {
  border-color: rgba(13, 56, 52, 0.28);
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.mini-seminar-thumb {
  width: 78px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.mini-seminar-info { flex: 1; min-width: 0; }

.mini-seminar-info h4 {
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-seminar-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Activity Feed */
.activity-list { display: flex; flex-direction: column; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-item:last-child { border-bottom: none; padding-bottom: 0; }

.activity-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-dot.green { background: var(--wa-green-soft); color: var(--wa-green); }
.activity-dot.brass { background: var(--accent-brass-soft); color: var(--accent-brass); }
.activity-dot svg { width: 15px; height: 15px; }
.activity-text { font-size: 0.87rem; color: var(--ink-primary); line-height: 1.5; }
.activity-time { font-size: 0.76rem; color: var(--ink-muted); margin-top: 3px; }

/* ==========================================================================
   Doctor Discovery (Google Maps 81 Provinces)
   ========================================================================== */

.discovery-builder {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
}

.selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.selector-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.selector-shortcuts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.shortcut-link {
  background: var(--bg-surface-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all var(--transition-fast);
}

.shortcut-link:hover {
  border-color: rgba(13, 56, 52, 0.3);
  color: var(--primary);
  background: var(--primary-soft);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 224px;
  overflow-y: auto;
  padding: 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.pill-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 0.79rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.pill-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #FAF8F4;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(13, 56, 52, 0.22);
}

.discovery-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.api-status-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #E8F4FC 0%, #F2F7FB 100%);
  border: 1px solid rgba(0, 78, 130, 0.2);
  font-size: 0.84rem;
  color: #0B3A5E;
  justify-content: space-between;
  flex-wrap: wrap;
}

.api-status-strip svg { color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }

.map-container {
  height: 380px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Data Tables, Doctor Avatars & Toolbars
   ========================================================================== */

.table-toolbar {
  padding: 15px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-surface-subtle);
}

.table-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }

.search-input-wrap {
  position: relative;
  min-width: 230px;
  flex: 1;
  max-width: 340px;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input-wrap .form-input {
  padding-left: 36px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.85rem;
}

.filter-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 0.83rem;
  color: var(--ink-primary);
  outline: none;
}

.filter-select:focus { border-color: var(--primary); }

.bulk-action-bar {
  padding: 12px 22px;
  background: #004E82;
  color: #FAF8F4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.table-wrap { width: 100%; overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.data-table th {
  text-align: left;
  padding: 13px 18px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover { background: #FAF9F5; }
.data-table tbody tr:last-child td { border-bottom: none; }

.doc-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(13, 56, 52, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.doc-cell-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.91rem;
  color: var(--ink-primary);
  display: block;
}

.doc-cell-sub {
  font-size: 0.77rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--ink-primary);
}

.rating-star { color: #C98622; }
.rating-count { font-weight: 400; color: var(--ink-muted); font-size: 0.76rem; }

/* ==========================================================================
   WhatsApp Outreach Studio & Titanium Phone Mockup
   ========================================================================== */

.outreach-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.var-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }

.var-chip {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px dashed rgba(13, 56, 52, 0.35);
  background: var(--bg-surface-subtle);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--primary);
  transition: all var(--transition-fast);
}

.var-chip:hover {
  background: var(--primary-soft);
  border-style: solid;
}

.wa-phone-frame {
  background: linear-gradient(155deg, #2A3433 0%, #141C1B 100%);
  border-radius: 34px;
  padding: 13px;
  box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  max-width: 392px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.wa-phone-frame::before {
  content: '';
  display: block;
  width: 84px;
  height: 18px;
  background: #0F1514;
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.wa-phone-screen {
  border-radius: 23px;
  overflow: hidden;
  background: var(--wa-wallpaper);
  display: flex;
  flex-direction: column;
}

.wa-header {
  background: #075E54;
  color: #FFFFFF;
  padding: 26px 15px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #DFBE82 0%, #A97D38 100%);
  color: #061C34;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
}

.wa-header-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.wa-header-status { font-size: 0.72rem; opacity: 0.85; }

.wa-chat-body {
  padding: 16px 13px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-bubble {
  background: #FFFFFF;
  border-radius: 12px;
  border-top-left-radius: 3px;
  padding: 9px;
  max-width: 95%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.11);
}

.wa-bubble-img {
  width: 100%;
  height: 146px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 9px;
}

.wa-bubble-text {
  font-size: 0.81rem;
  line-height: 1.5;
  color: #1A2422;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0 3px;
}

.wa-bubble-time { font-size: 0.68rem; color: #728588; text-align: right; margin-top: 6px; }

/* ==========================================================================
   Seminar Cards & Split Live Editor
   ========================================================================== */

.seminar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.seminar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm), var(--shadow-card-inner);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.seminar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 56, 52, 0.2);
}

.seminar-card-cover {
  position: relative;
  height: 204px;
  background: #004E82;
  overflow: hidden;
}

.seminar-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seminar-card:hover .seminar-card-cover img { transform: scale(1.03); }

.seminar-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 34, 32, 0.32) 0%, transparent 45%, rgba(9, 34, 32, 0.18) 100%);
  pointer-events: none;
}

.seminar-cover-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.seminar-cover-badges .badge {
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.seminar-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.seminar-card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.seminar-card-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.seminar-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 13px 15px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.seminar-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-secondary);
}

.seminar-meta-item svg { width: 15px; height: 15px; color: var(--accent-brass); flex-shrink: 0; }

.seminar-card-footer {
  padding: 15px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-split {
  display: grid;
  grid-template-columns: 1.42fr 0.88fr;
  gap: 24px;
  align-items: start;
}

.sticky-preview { position: sticky; top: 88px; }

/* ==========================================================================
   Public Portal — Boutique Medical Editorial Design
   ========================================================================== */

.public-shell {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  background-image: var(--bg-canvas-glow);
  display: flex;
  flex-direction: column;
  animation: viewFadeUp 260ms ease both;
}

.public-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
}

.public-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-nav-links { display: flex; align-items: center; gap: 24px; }

.public-nav-links a {
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: color var(--transition-fast);
}

.public-nav-links a:hover,
.public-nav-links a.active { color: var(--primary); }

.public-hero {
  background: radial-gradient(780px 440px at 86% 14%, rgba(79, 179, 232, 0.24), transparent 64%),
              radial-gradient(560px 340px at 10% 94%, rgba(143, 29, 91, 0.22), transparent 60%),
              linear-gradient(150deg, #061A30 0%, #0A325A 54%, #0E4B82 100%);
  color: #F7FAFD;
  padding: 76px 24px 72px;
  border-bottom: 1px solid rgba(79, 179, 232, 0.24);
}

.public-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.public-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.public-hero-kicker {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8FD2F6;
  margin-bottom: 16px;
}

.public-hero h1 {
  font-family: var(--font-serif);
  font-size: 3.65rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.public-hero-lead {
  font-size: 1.03rem;
  color: rgba(247, 250, 253, 0.86);
  line-height: 1.68;
  max-width: 560px;
  margin-bottom: 28px;
}

.external-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ext-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(79, 179, 232, 0.34);
  color: #F7FAFD;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.ext-link-pill svg { width: 14px; height: 14px; color: #8FD2F6; }

.ext-link-pill:hover {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

.ext-link-pill:hover svg { color: var(--primary); }

.public-hero-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(5, 20, 38, 0.38);
  border: 1px solid rgba(79, 179, 232, 0.3);
}

.clinical-focus-strip {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
}

.clinical-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.clinical-focus-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.clinical-focus-num {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-brass);
  padding-top: 2px;
  flex-shrink: 0;
}

.clinical-focus-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--ink-primary);
  margin-bottom: 3px;
}

.clinical-focus-item span:last-child {
  display: block;
  font-size: 0.81rem;
  color: var(--ink-muted);
  line-height: 1.48;
}

.public-section { padding: 64px 24px; }

.public-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.public-section-head h2 {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.register-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.social-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 78, 130, 0.3);
}

/* Online Classroom Slide Viewer */
.classroom-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.slide-stage {
  background: radial-gradient(480px 260px at 90% 10%, rgba(79, 179, 232, 0.2), transparent 60%),
              linear-gradient(155deg, #061D36 0%, #0A3762 100%);
  color: #F7FAFD;
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(79, 179, 232, 0.25);
}

.slide-stage h2 {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: 2.15rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.slide-bullets {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(247, 250, 253, 0.9);
  font-size: 0.98rem;
  line-height: 1.58;
}

.public-footer {
  margin-top: auto;
  background: #061A30;
  color: rgba(247, 250, 253, 0.78);
  padding: 40px 24px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(79, 179, 232, 0.22);
}

.public-footer a { color: #8FD2F6; font-weight: 500; }
.public-footer a:hover { color: #FFFFFF; }

/* ==========================================================================
   Modal & Toast
   ========================================================================== */

.modal-root {
  position: fixed;
  inset: 0;
  background: rgba(9, 24, 22, 0.58);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-root.open { display: flex; }

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-body { padding: 22px 24px; overflow-y: auto; }

.modal-foot {
  padding: 15px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 120;
  pointer-events: none;
}

.toast {
  background: #061C34;
  color: #FAF8F4;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(215, 180, 115, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  max-width: 400px;
  animation: toastIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.success { border-left: 4px solid #22C55E; }
.toast.info    { border-left: 4px solid #D7B473; }
.toast.warn    { border-left: 4px solid #F59E0B; }

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

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 24, 22, 0.52);
  backdrop-filter: blur(2px);
  z-index: 35;
}

/* Utility Helpers */
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 18px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.text-muted { color: var(--ink-muted); font-size: 0.83rem; }
.empty-state { text-align: center; padding: 44px 20px; color: var(--ink-muted); }
.empty-state h4 { color: var(--ink-primary); margin-bottom: 6px; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1140px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid,
  .discovery-builder,
  .outreach-grid,
  .editor-split,
  .public-hero-grid,
  .register-grid,
  .classroom-grid { grid-template-columns: 1fr; }
  .sticky-preview { position: static; }
  .seminar-grid, .social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    width: 276px;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .mobile-menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 18px 16px 44px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .public-hero { padding: 52px 18px; }
  .public-hero h1 { font-size: 2.55rem; }
  .public-nav-links { display: none; }
}

@media (max-width: 540px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .welcome-banner { padding: 22px; }
  .welcome-banner h1 { font-size: 1.85rem; }
  .mode-switch { display: none; }
}

/* ==========================================================================
   Official Doctor Logo & Framed Portrait Styles
   ========================================================================== */

.sidebar-brand-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sidebar-logo-plate {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(79, 179, 232, 0.32);
}

.sidebar-logo-plate img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.public-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.public-logo-img {
  height: 46px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

.footer-logo-plate {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 4px;
}

.footer-logo-plate img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.welcome-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.doctor-portrait-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 2.5px solid rgba(143, 210, 246, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  background: #0A2C50;
}

.doctor-portrait-card {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid rgba(0, 78, 130, 0.28);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.hero-instructor-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(143, 210, 246, 0.34);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

.hero-instructor-chip img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid #8FD2F6;
  flex-shrink: 0;
}

.hero-instructor-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  color: #FFFFFF;
  line-height: 1.2;
}

.hero-instructor-role {
  font-size: 0.77rem;
  color: rgba(247, 250, 253, 0.8);
  margin-top: 2px;
}

.wa-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

/* Academic Biography & Timeline */
.bio-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: start;
}

.bio-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bio-stat-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
}

.bio-stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
}

.bio-stat-box span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.bio-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--primary-soft);
}

.bio-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bio-timeline-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--primary-soft);
  position: absolute;
  left: -22px;
  top: 4px;
}

.bio-year {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-brass);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bio-timeline-item strong {
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--ink-primary);
}

@media (max-width: 900px) {
  .clinical-focus-grid, .bio-grid { grid-template-columns: 1fr; gap: 16px; }
  .bio-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .welcome-profile { flex-direction: column; align-items: flex-start; gap: 14px; }
  .public-logo-img { height: 36px; max-width: 185px; }
}

/* ==========================================================================
   Motion & Micro-Interaction Choreography System
   ========================================================================== */

/* Top Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #004E82 0%, #4FB3E8 55%, #8F1D5B 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
  transition: transform 80ms linear;
}

/* Living Ambient Light Orbs inside Hero, Welcome Banner & Slide Stage */
.welcome-banner,
.public-hero,
.slide-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.welcome-banner::before,
.public-hero::before,
.slide-stage::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  top: -170px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 179, 232, 0.34) 0%, rgba(79, 179, 232, 0) 68%);
  pointer-events: none;
  z-index: -1;
  animation: ambientOrbFloat 13s ease-in-out infinite alternate;
}

.welcome-banner::after,
.public-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 36, 108, 0.28) 0%, rgba(168, 36, 108, 0) 70%);
  pointer-events: none;
  z-index: -1;
  animation: ambientOrbFloat2 16s ease-in-out infinite alternate;
}

@keyframes ambientOrbFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.72; }
  50%  { transform: translate(-48px, 32px) scale(1.12); opacity: 0.96; }
  100% { transform: translate(-20px, -18px) scale(0.95); opacity: 0.78; }
}

@keyframes ambientOrbFloat2 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.65; }
  50%  { transform: translate(55px, -28px) scale(1.15); opacity: 0.92; }
  100% { transform: translate(22px, 16px) scale(0.96); opacity: 0.72; }
}

/* Specular Light Sweep Across Primary & CTA Buttons */
.btn-primary,
.btn-whatsapp,
.btn-on-dark {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-whatsapp::after,
.btn-on-dark::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 48%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-24deg);
  transition: left 560ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-whatsapp:hover::after,
.btn-on-dark:hover::after {
  left: 135%;
}

.btn:active:not(:disabled) {
  transform: scale(0.975) translateY(0);
}

/* Cursor-Tracking Glass Spotlight on Tactile Cards */
.kpi-card,
.seminar-card,
.social-card,
.public-hero-card {
  position: relative;
}

.kpi-card::after,
.social-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 179, 232, 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.kpi-card:hover::after,
.social-card:hover::after {
  opacity: 1;
}

/* Gentle Floating Levitation on Featured Public Hero Card */
.public-hero-card {
  animation: heroCardFloat 6.5s ease-in-out infinite;
}

.public-hero-card:hover {
  animation-play-state: paused;
  transform: translateY(-6px);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Breathing Portrait Halo */
.doctor-portrait-ring,
.hero-instructor-chip img {
  animation: portraitHalo 4.8s ease-in-out infinite;
}

@keyframes portraitHalo {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(143, 210, 246, 0.42); }
  50%      { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 0 7px rgba(143, 210, 246, 0); }
}

/* Springy Micro-Physics for Pills & Nav Items */
.pill-btn {
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 180ms ease;
}

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

.pill-btn.selected {
  animation: pillPop 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pillPop {
  0%   { transform: scale(0.9); }
  65%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.nav-item {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-item:hover {
  transform: translateX(3px);
}

.nav-item.active {
  transform: translateX(0);
}

.kpi-card:hover .kpi-icon {
  transform: scale(1.1) rotate(-4deg);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kpi-icon {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Staggered Route Entrance Animation */
.m-stagger-in {
  opacity: 0;
  animation: staggerRise 440ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes staggerRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scroll-Triggered Reveals on Public Portal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Message Pop-In & Online Slide Cross-Glide */
.wa-pop {
  animation: waPopIn 360ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

.slide-glide {
  animation: slideGlide 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideGlide {
  from { opacity: 0.45; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Live Google Maps Radar Scan Panel */
.radar-scan-banner {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #E8F4FC 0%, #F4F8FC 100%);
  border: 1px solid rgba(0, 78, 130, 0.22);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: staggerRise 260ms ease both;
}

.radar-pulse {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 78, 130, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.radar-pulse span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  display: block;
}

.radar-pulse::before,
.radar-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: radarRing 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

.radar-pulse::after {
  animation-delay: 0.65s;
}

@keyframes radarRing {
  0%   { transform: scale(0.45); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

.radar-shimmer-track {
  margin-top: 9px;
  height: 6px;
  width: 100%;
  background: rgba(0, 78, 130, 0.12);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.radar-shimmer-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #004E82, #4FB3E8, transparent);
  animation: radarSweep 1.15s ease-in-out infinite;
}

@keyframes radarSweep {
  0%   { left: -45%; }
  100% { left: 105%; }
}

/* Keep animations active across both mobile and desktop viewports */

/* ==========================================================================
   Larger Crisp Circular Doctor Avatar & drhasandogan.com "Bizi Takip Edin" Feed
   ========================================================================== */

.hero-instructor-chip {
  padding: 10px 24px 10px 10px;
  gap: 16px;
}

.hero-instructor-chip img {
  width: 86px;
  height: 86px;
  border: 2.5px solid #8FD2F6;
  object-position: center 30%;
}

.hero-instructor-name {
  font-size: 1.08rem;
}

.hero-instructor-role {
  font-size: 0.8rem;
}

.doctor-portrait-ring {
  width: 96px;
  height: 96px;
  object-position: center 30%;
}

/* Bizi Takip Edin — drhasandogan.com Style Header & Profiles */
.follow-heading-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.follow-heading-row h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.follow-heading-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

/* Live Official Social Media Embeds (Instagram + Facebook) & YouTube Archive */
.live-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.live-social-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.live-social-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.live-social-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface-subtle);
}

.live-social-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--ink-primary);
  line-height: 1.2;
}

.live-social-head span {
  display: block;
  font-size: 0.77rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.live-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-social-icon svg { width: 20px; height: 20px; }

.live-social-icon.ig {
  background: linear-gradient(135deg, #FBEBF3 0%, #FFE7D9 100%);
  color: #B41D68;
}

.live-social-icon.fb {
  background: #E6F2FC;
  color: #1665C0;
}

.live-embed-frame-wrap {
  width: 100%;
  height: 540px;
  background: #FFFFFF;
  position: relative;
  display: flex;
  justify-content: center;
}

.live-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.live-social-foot {
  padding: 11px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.live-social-foot a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* YouTube Lite Playable Video Archive */
.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.yt-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.yt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.yt-player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #061A30;
  cursor: pointer;
  overflow: hidden;
}

.yt-player-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.yt-card:hover .yt-player-box img {
  transform: scale(1.05);
  filter: brightness(0.86);
}

.yt-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(6, 26, 48, 0.76);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.yt-play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.yt-card:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #004E82;
}

.yt-iframe-active {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.yt-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.yt-card-body h4 {
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink-primary);
}

.yt-card-body span {
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .yt-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .live-social-grid { grid-template-columns: 1fr; }
  .live-embed-frame-wrap { height: 500px; }
}

@media (max-width: 600px) {
  .hero-instructor-chip img { width: 70px; height: 70px; }
  .yt-video-grid { grid-template-columns: 1fr; }
}








/* ==========================================================================
   v4 — Social Icon Alignment Fix, Premium Checkout & Seminar Pass
   ========================================================================== */

/* Fix: `.live-social-head span { display:block }` was overriding the icon
   badge's flex centering, pushing the glyph to the top-left corner. */
.live-social-head .live-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 0;
  border-radius: 14px;
  line-height: 0;
  color: #FFFFFF;
  box-shadow: 0 8px 18px -8px rgba(7, 30, 56, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.live-social-head .live-social-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.live-social-head .live-social-icon.ig {
  background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  color: #FFFFFF;
}

.live-social-head .live-social-icon.fb {
  background: linear-gradient(160deg, #2A8CFF 0%, #1877F2 55%, #0F5FD0 100%);
  color: #FFFFFF;
}

.live-social-head .row-gap { flex-wrap: nowrap; gap: 12px; }

.btn svg,
.ext-link-pill svg { display: block; vertical-align: middle; }

/* --------------------------------------------------------------------------
   Checkout (Step 2)
   -------------------------------------------------------------------------- */
.checkout-card { overflow: hidden; }

.checkout-head {
  position: relative;
  padding: 24px 26px 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(79, 179, 232, 0.28) 0%, transparent 55%),
    linear-gradient(135deg, #062A4C 0%, #004E82 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkout-eyebrow,
.confirm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FD2F6;
}

.checkout-eyebrow svg { width: 13px; height: 13px; }

.checkout-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 6px 0 4px;
  color: #FFFFFF;
}

.checkout-sub { font-size: 0.84rem; color: rgba(247, 250, 253, 0.78); }

.checkout-stepper {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.checkout-stepper li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(247, 250, 253, 0.6);
  flex: 1;
}

.checkout-stepper li:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  margin: 0 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.checkout-stepper li.done::after { background: #4FB3E8; }
.checkout-stepper li:last-child { flex: 0 0 auto; }

.checkout-stepper li > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.checkout-stepper li > span svg { width: 13px; height: 13px; }
.checkout-stepper li.done { color: #FFFFFF; }
.checkout-stepper li.done > span { background: #4FB3E8; border-color: #4FB3E8; color: #062A4C; }
.checkout-stepper li.active { color: #FFFFFF; }
.checkout-stepper li.active > span { background: #FFFFFF; border-color: #FFFFFF; color: var(--primary); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16); }

.order-summary {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-surface-subtle) 100%);
  overflow: hidden;
}

.order-summary-row {
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: center;
}

.order-thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.order-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-info strong { font-family: var(--font-display); font-size: 0.96rem; line-height: 1.25; color: var(--ink-primary); }
.order-info span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.79rem; color: var(--ink-muted); }
.order-info svg { width: 13px; height: 13px; color: var(--accent-brass); flex-shrink: 0; }

.order-lines {
  padding: 4px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.order-lines > div { display: flex; justify-content: space-between; gap: 10px; }
.order-free { color: var(--status-success); font-weight: 600; }

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px;
  border-top: 1px dashed var(--border-strong);
  background: var(--primary-soft);
}

.order-total span { font-family: var(--font-display); font-weight: 700; color: var(--ink-secondary); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.order-total strong { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--primary); }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  font: inherit;
  color: inherit;
}

.pay-method:hover { border-color: rgba(0, 78, 130, 0.45); transform: translateY(-1px); }

.pay-method.active {
  border-color: var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--primary-soft) 100%);
  box-shadow: 0 0 0 4px var(--primary-tint), var(--shadow-sm);
}

.pay-method-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-muted);
  color: var(--primary);
  flex-shrink: 0;
}

.pay-method.active .pay-method-icon { background: var(--primary); color: #FFFFFF; }
.pay-method-icon svg { width: 19px; height: 19px; }
.pay-method-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pay-method-text strong { font-family: var(--font-display); font-size: 0.88rem; color: var(--ink-primary); }
.pay-method-text small { font-size: 0.74rem; color: var(--ink-muted); }

.pay-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition-fast);
}

.pay-method.active .pay-radio { border-color: var(--primary); }
.pay-method.active .pay-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.pay-panel { display: flex; flex-direction: column; gap: 14px; animation: viewFadeUp 0.35s ease both; }
.pay-panel[hidden] { display: none; }

.virtual-card {
  position: relative;
  aspect-ratio: 1.72 / 1;
  max-height: 220px;
  width: 100%;
  border-radius: 18px;
  padding: 20px 22px;
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(79, 179, 232, 0.55) 0%, transparent 55%),
    radial-gradient(80% 90% at 0% 100%, rgba(143, 29, 91, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, #04182E 0%, #0A3A66 100%);
  box-shadow: 0 22px 40px -18px rgba(4, 24, 46, 0.65);
}

.virtual-card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
  animation: cardSheen 5.5s ease-in-out infinite;
}

@keyframes cardSheen {
  0%, 60% { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}

.vc-top { display: flex; justify-content: space-between; align-items: center; position: relative; }

.vc-chip {
  width: 42px;
  height: 31px;
  border-radius: 7px;
  background: linear-gradient(135deg, #F3D99A 0%, #C9A04F 55%, #EBCF85 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.vc-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.vc-number { font-family: var(--font-mono); font-size: 1.12rem; letter-spacing: 0.12em; position: relative; }
.vc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; position: relative; }
.vc-bottom small { display: block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; margin-bottom: 2px; }
.vc-bottom span { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; }
.vc-amount { text-align: right; }
.vc-amount span { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; }

.pay-note { font-size: 0.82rem; color: var(--ink-secondary); line-height: 1.6; margin: 0; }

.btn-pay { width: 100%; justify-content: center; min-height: 52px; }

.bank-sheet {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-subtle);
}

.bank-row {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  color: var(--ink-primary);
}

.bank-row + .bank-row { border-top: 1px solid var(--border-subtle); }
.bank-row small { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.bank-row code { font-size: 0.92rem; color: var(--primary); font-weight: 600; letter-spacing: 0.03em; }
.bank-row-copy { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.bank-row-copy > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.copy-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 78, 130, 0.22);
  background: #FFFFFF;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.copy-chip svg { width: 14px; height: 14px; display: block; }
.copy-chip:hover { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.copy-chip.copied { background: var(--status-success); border-color: var(--status-success); color: #FFFFFF; }

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 4px;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; color: var(--status-success); }

/* --------------------------------------------------------------------------
   Confirmation & Seminar Pass (Step 3)
   -------------------------------------------------------------------------- */
.confirm-card { overflow: hidden; scroll-margin-top: 90px; }

.confirm-hero {
  position: relative;
  text-align: center;
  padding: 34px 26px 74px;
  color: #FFFFFF;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(79, 179, 232, 0.35) 0%, transparent 70%),
    linear-gradient(160deg, #062A4C 0%, #004E82 100%);
}

.confirm-card.is-pending .confirm-hero {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(240, 180, 90, 0.32) 0%, transparent 70%),
    linear-gradient(160deg, #062A4C 0%, #0A3A66 100%);
}

.confirm-seal {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
}

.seal-svg {
  position: relative;
  width: 84px;
  height: 84px;
  display: block;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  animation: sealPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.seal-circle {
  fill: none;
  stroke: #1F9D5C;
  stroke-width: 2.4;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  transform-origin: center;
  transform: rotate(-90deg);
  animation: sealDraw 0.7s 0.25s ease-out forwards;
}

.seal-check {
  fill: none;
  stroke: #1F9D5C;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: sealDraw 0.45s 0.8s ease-out forwards;
}

.confirm-card.is-pending .seal-circle,
.confirm-card.is-pending .seal-check { stroke: #C77B12; }

.seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(143, 210, 246, 0.7);
  animation: sealRipple 2.4s 0.9s ease-out infinite;
}

.seal-ring.r2 { animation-delay: 1.7s; }

@keyframes sealPop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes sealDraw { to { stroke-dashoffset: 0; } }

@keyframes sealRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

.confirm-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 8px 0 8px;
}

.confirm-sub {
  max-width: 400px;
  margin: 0 auto;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(247, 250, 253, 0.82);
}

.seminar-pass {
  position: relative;
  margin: -50px 20px 4px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 48px -24px rgba(6, 26, 48, 0.4), var(--shadow-sm);
  animation: viewFadeUp 0.6s 0.2s ease both;
}

.pass-main { padding: 20px 22px 18px; }

.pass-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.pass-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 78, 130, 0.25);
  flex-shrink: 0;
}

.pass-brand > div { flex: 1; min-width: 0; }
.pass-brand small { display: block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.pass-brand strong { font-family: var(--font-display); font-size: 0.92rem; color: var(--ink-primary); }

.pass-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.pass-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pass-status.ok { background: var(--status-success-soft); color: var(--status-success); }
.pass-status.wait { background: var(--status-warn-soft); color: var(--status-warn); }

.pass-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  margin: 14px 0 14px;
}

.pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.pass-grid small { display: block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-bottom: 2px; }
.pass-grid span { font-size: 0.85rem; color: var(--ink-primary); font-weight: 500; line-height: 1.35; }
.pass-grid .mono { font-family: var(--font-mono); font-weight: 600; color: var(--accent-brass); }

.pass-perforation {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--border-strong);
  margin: 0 18px;
}

.pass-perforation::before,
.pass-perforation::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface-subtle, #F3F6FA);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.pass-perforation::before { left: -30px; }
.pass-perforation::after { right: -30px; }

.pass-stub { padding: 18px 22px 20px; }

.pass-stub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.pass-stub-head svg { width: 16px; height: 16px; }

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

.cred-box {
  position: relative;
  padding: 12px 46px 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--primary-soft) 0%, #FFFFFF 100%);
  border: 1px solid rgba(0, 78, 130, 0.16);
}

.cred-box small { display: block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-bottom: 4px; }
.cred-box code { font-size: 1.12rem; font-weight: 600; color: var(--ink-primary); letter-spacing: 0.06em; }

.cred-box .copy-chip {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
}

.pass-hint { font-size: 0.78rem; color: var(--ink-muted); line-height: 1.55; margin: 12px 0 0; }

.pending-track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }

.pending-track li {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
}

.pending-track li:last-child { padding-bottom: 0; }

.pending-track li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
}

.pending-track li.done:not(:last-child)::before { background: var(--status-success); }

.pending-track li > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-strong);
  background: #FFFFFF;
}

.pending-track li > span svg { width: 12px; height: 12px; }
.pending-track li.done > span { background: var(--status-success); border-color: var(--status-success); color: #FFFFFF; }
.pending-track li.current > span { border-color: var(--status-warn); box-shadow: 0 0 0 4px var(--status-warn-soft); }
.pending-track li.current > span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--status-warn); animation: pulseDot 1.4s ease-in-out infinite; }

@keyframes pulseDot { 50% { transform: scale(0.55); opacity: 0.5; } }

.pending-track strong { display: block; font-family: var(--font-display); font-size: 0.86rem; color: var(--ink-primary); }
.pending-track small { font-size: 0.76rem; color: var(--ink-muted); }

.confirm-actions { padding-top: 18px; }

.confirm-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

@media (max-width: 560px) {
  .pay-methods,
  .cred-grid,
  .pass-grid { grid-template-columns: 1fr; }
  .checkout-title,
  .confirm-title { font-size: 1.6rem; }
  .seminar-pass { margin-left: 12px; margin-right: 12px; }
  .vc-number { font-size: 0.95rem; }
}

@media print {
  .public-nav,
  .public-footer,
  .register-grid > .stack-md,
  .confirm-actions,
  .scroll-progress,
  #toast-root { display: none !important; }
  .register-grid { display: block !important; }
  .confirm-card { box-shadow: none !important; border: 0 !important; }
  .confirm-hero, .virtual-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .copy-chip { display: none !important; }
}
