/* ============================================================
   NextGen Professional Associates — Main Design System
   Palette: Midnight Black + Sky Blue
   Fonts: Plus Jakarta Sans (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  /* Colours */
  --bg:           #07080F;
  --surface:      #0E1118;
  --surface-2:    #151922;
  --surface-3:    #1C2230;
  --border:       #1E2636;
  --border-2:     #28334A;

  --sky:          #0f62df;
  --sky-deep:     #0156D7;
  --sky-dim:      rgba(56, 189, 248, 0.08);
  --sky-glow:     rgba(56, 189, 248, 0.20);
  --sky-border:   rgba(56, 189, 248, 0.30);

  --text:         #EEF2F8;
  --text-2:       #8896A8;
  --text-3:       #4A5568;

  --success:      #34D399;
  --warning:      #FBBF24;
  --danger:       #F87171;
  --purple:       #A78BFA;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing scale */
  --space-1:  4px;   --space-2: 8px;   --space-3: 12px;
  --space-4:  16px;  --space-5: 20px;  --space-6: 24px;
  --space-8:  32px;  --space-10:40px;  --space-12:48px;
  --space-16: 64px;  --space-20:80px;

  /* Radii */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-sky: 0 0 30px rgba(56,189,248,0.12);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 400ms var(--ease);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-deep); }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container-sm  { max-width: 800px; }
.container-lg  { max-width: 1400px; }

.section      { padding-block: var(--space-20); }
.section-sm   { padding-block: var(--space-12); }
.section-lg   { padding-block: 100px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ─── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.display-1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; }
.display-2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; }
.h1        { font-size: clamp(28px, 3.5vw, 42px); }
.h2        { font-size: clamp(22px, 2.5vw, 32px); }
.h3        { font-size: clamp(18px, 2vw, 24px); }
.h4        { font-size: 18px; }
.h5        { font-size: 16px; }

.text-sky     { color: var(--sky); }
.text-muted   { color: var(--text-2); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 11px; }
.text-lg      { font-size: 17px; }
.font-mono    { font-family: var(--font-mono); }
.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }
.text-center  { text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--space-3);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 24px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--sky-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.30);
}
.btn-primary:hover {
  background: var(--sky);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.40);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255);
  border: 1.5px solid var(--sky-border);
  color: var(--sky);
}
.btn-outline:hover {
  background: var(--sky-dim);
  border-color: var(--sky);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }

.btn-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
}
.btn-success:hover { background: rgba(52, 211, 153, 0.2); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-xl { padding: 16px 40px; font-size: 17px; }
.btn-icon { padding: 10px; border-radius: var(--r-sm); }
.btn-full { width: 100%; }

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-free    { background: rgba(52,211,153,0.12); color: var(--success);  border: 1px solid rgba(52,211,153,0.25); }
.badge-paid    { background: rgba(56,189,248,0.12); color: var(--sky);      border: 1px solid rgba(56,189,248,0.25); }
.badge-ican    { background: rgba(14,165,233,0.12); color: #38BDF8; border: 1px solid rgba(14,165,233,0.25); }
.badge-acca    { background: rgba(139,92,246,0.12); color: var(--purple);   border: 1px solid rgba(139,92,246,0.25); }
.badge-cipm    { background: rgba(16,185,129,0.12); color: var(--success);  border: 1px solid rgba(16,185,129,0.25); }
.badge-locked  { background: rgba(107,114,128,0.12); color: var(--text-3);  border: 1px solid rgba(107,114,128,0.25); }
.badge-new     { background: rgba(251,191,36,0.12); color: var(--warning);  border: 1px solid rgba(251,191,36,0.25); }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
}
.card:hover {
  border-color: var(--sky-border);
  box-shadow: var(--shadow-sky);
  transform: translateY(-2px);
}
.card-body { padding: var(--space-6); }

/* Course card — signature left-border accent */
.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sky-deep);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  border-color: var(--sky-border);
  border-left-color: var(--sky);
  box-shadow: var(--shadow-sky);
  transform: translateY(-3px);
}
.course-card .course-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--surface-2);
}
.course-card .course-thumb-placeholder {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.course-card .card-content {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.course-card .course-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.course-card .course-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--text-2);
}
.course-card .course-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--sky);
}
.course-card .course-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.03em;
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus {
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; cursor: pointer; }

.form-hint { font-size: 12px; color: var(--text-3); }
.form-error { font-size: 12px; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.nav-logo-mark {
  width: 42px;
  height: 42px;
  background-image: url("/assets/logo-icon.jpeg");
  background-size: cover;      /* Ensures the image fills the space */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.nav-logo-tagline {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-fast);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-member { display: none; align-items: center; gap: var(--space-3); }
.nav-user-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
}
.nav-user-chip:hover { border-color: var(--sky-border); color: var(--text); }
.nav-avatar {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--sky-deep), var(--sky));
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--t-base);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 10px 14px; }

/* ─── Certification ticker ───────────────────────────────── */
.cert-ticker {
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--sky-dim) 20%, var(--sky-dim) 80%, transparent);
  border-top: 1px solid var(--sky-border);
  border-bottom: 1px solid var(--sky-border);
  margin-top: 10px;
  padding-top: 15px;
  padding-bottom: 15px;
  overflow: hidden;
  position: relative;
}
.cert-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
  margin-top: 0;
  padding-bottom: 5px;
}
.cert-ticker-track:hover { animation-play-state: paused; }
.cert-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  white-space: nowrap;
}
.cert-item::after {
  content: '·';
  color: var(--sky-deep);
  font-size: 18px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Hero ───────────────────────────────────────────────── */
.page-top { margin-top: 5px; }

/* ─── Stats strip ────────────────────────────────────────── */
.stats-strip {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-10) 0;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── Section headers ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  gap: var(--space-6);
}
.section-header-left { max-width: 600px; }
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-subtitle {
  margin-top: var(--space-3);
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t-base);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 18px; font-weight: 700; font-family: var(--font-display); }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--surface-3); color: var(--text); }
.modal-body { padding: var(--space-6); }
.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ─── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
}
.tab-btn {
  flex: 1;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border-radius: 6px;
  transition: all var(--t-fast);
}
.tab-btn:hover { color: var(--text); background: var(--surface-3); }
.tab-btn.active {
  background: var(--sky-deep);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Progress bar ───────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky-deep), var(--sky));
  border-radius: var(--r-full);
  transition: width 0.6s var(--ease);
}

/* ─── Dividers ───────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-block: var(--space-6);
}

/* ─── Empty states ───────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  gap: var(--space-4);
  text-align: center;
}
.empty-icon { font-size: 48px; opacity: 0.4; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text-2); }
.empty-desc  { font-size: 14px; color: var(--text-3); max-width: 360px; line-height: 1.6; }

/* ─── Toast ──────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  animation: toast-in 0.3s var(--ease);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-icon {
  width: 20px; height: 20px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.toast-success { border-color: rgba(52,211,153,0.3); }
.toast-success .toast-icon { background: rgba(52,211,153,0.15); color: var(--success); }
.toast-error   { border-color: rgba(248,113,113,0.3); }
.toast-error   .toast-icon { background: rgba(248,113,113,0.15); color: var(--danger); }
.toast-warning { border-color: rgba(251,191,36,0.3); }
.toast-warning .toast-icon { background: rgba(251,191,36,0.15); color: var(--warning); }
.toast-info    { border-color: var(--sky-border); }
.toast-info    .toast-icon { background: var(--sky-dim); color: var(--sky); }
.toast-msg     { flex: 1; line-height: 1.5; color: var(--text); }
.toast-close   { background: none; color: var(--text-3); font-size: 18px; line-height: 1; padding: 0; flex-shrink: 0; }
.toast-close:hover { color: var(--text); }

/* ─── App Loader ─────────────────────────────────────────── */
#app-loader {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 15, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.ng-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 14px; color: var(--text-2); }

/* ─── Video embed ────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ─── PDF Viewer ─────────────────────────────────────────── */
.pdf-viewer-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.pdf-viewer-wrap iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}
/* Transparent overlay to discourage right-click save */
.pdf-viewer-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pdf-locked-overlay {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  text-align: center;
  padding: var(--space-8);
  z-index: 5;
}
.lock-icon {
  width: 60px; height: 60px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 2px solid var(--border-2);
}

/* ─── Accordion ──────────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast);
}
.accordion-header:hover { background: var(--surface-2); }
.accordion-header.open { background: var(--surface-2); }
.accordion-toggle {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: transform var(--t-base);
}
.accordion-header.open .accordion-toggle { transform: rotate(180deg); color: var(--sky); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.accordion-body.open { max-height: 9999px; }
.accordion-content { padding: var(--space-5) var(--space-6); border-top: 1px solid var(--border); }

/* ─── Topic list item ────────────────────────────────────── */
.topic-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
}
.topic-item:hover { background: var(--surface-2); color: var(--text); }
.topic-item.active { background: var(--sky-dim); color: var(--sky); border: 1px solid var(--sky-border); }
.topic-item .topic-icon { font-size: 16px; flex-shrink: 0; }
.topic-item .topic-name { flex: 1; }
.topic-item .topic-lock { font-size: 12px; opacity: 0.5; }

/* ─── Tag list ───────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag {
  padding: 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 12px;
  color: var(--text-2);
}

/* ─── Enrollment CTA box ─────────────────────────────────── */
.enroll-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  position: sticky;
  top: 84px;
}
.enroll-price-tag {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
  margin-bottom: var(--space-5);
}
.enroll-price-tag small { font-size: 14px; color: var(--text-2); font-family: var(--font-body); }
.enroll-features { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.enroll-feature {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: 14px; color: var(--text-2);
}
.enroll-feature .feat-check { color: var(--success); flex-shrink: 0; font-size: 15px; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-10);
  margin-top: var(--space-20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}
.footer-about p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-top: var(--space-4); max-width: 280px; }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-5);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { font-size: 14px; color: var(--text-2); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--sky); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  font-size: 13px;
  color: var(--text-3);
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-2); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb-sep { color: var(--text-3); }
.breadcrumb-current { color: var(--text-2); }

/* ─── Alert / Notice ─────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.alert-info    { background: var(--sky-dim); border: 1px solid var(--sky-border); color: #b3e4fc; }
.alert-success { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25); color: var(--success); }
.alert-warning { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25); color: var(--warning); }
.alert-danger  { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25); color: var(--danger); }

/* ─── Table ──────────────────────────────────────────────── */
.ng-table { width: 100%; border-collapse: collapse; }
.ng-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.ng-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}
.ng-table tr:last-child td { border-bottom: none; }
.ng-table tbody tr { transition: background var(--t-fast); }
.ng-table tbody tr:hover { background: var(--surface-2); }
.ng-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ng-table-wrap .table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

/* ─── Search input ───────────────────────────────────────── */
.search-wrap {
  position: relative;
}
.search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
}
.search-wrap .form-control { padding-left: 38px; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding-inline: var(--space-5); }
  .nav-links, .nav-actions .nav-guest { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-12); }
  .section-header { flex-direction: column; align-items: flex-start; }
  .stats-strip { gap: var(--space-6); flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  #toast-container { right: var(--space-4); left: var(--space-4); max-width: 100%; }
}
@media (max-width: 480px) {
  .btn-xl { padding: 14px 24px; font-size: 15px; }
  .display-1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .cert-ticker-track { animation: none; }
}

/* ── iOS-Style Dropdown Notifications ── */
#ios-notification-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 90%;
  max-width: 420px;
  pointer-events: none; /* Lets clicks pass through the invisible container */
}

.ios-notif-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-left: 4px solid var(--sky);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.6);
  pointer-events: auto; /* Re-enables clicks for the card itself */
  animation: slideDownFade 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ios-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ios-notif-body {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.ios-notif-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--t-fast);
}

.ios-notif-close:hover {
  color: var(--text);
  background: var(--surface-3);
}

.ios-notif-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.ios-notif-links a {
  color: var(--sky);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ios-notif-links a:hover {
  color: var(--sky-deep);
  text-decoration: underline;
}

@keyframes slideDownFade {
  0% { opacity: 0; transform: translateY(-30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* ── Floating WhatsApp Button ── */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9998; /* Stays above everything except the cart drawer (9999) */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
  animation: pulse-wa 2s infinite;
}

.floating-wa-btn:hover {
  background-color: #1EBE57;
  transform: scale(1.1) translateY(-4px);
  color: white;
  animation: none; /* Stops pulsing when they hover over it */
}

.floating-wa-btn svg {
  width: 34px;
  height: 34px;
}

/* Subtle glowing pulse effect */
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Slightly smaller on mobile so it doesn't block content */
@media (max-width: 768px) {
  .floating-wa-btn {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .floating-wa-btn svg {
    width: 30px;
    height: 30px;
  }
}