/* ---------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --color-bg: #0b1120;
  --color-bg-alt: #0f172a;
  --color-surface: #111827;
  --color-surface-2: #1a2333;
  --color-border: #253148;
  --color-text: #e5edf7;
  --color-text-muted: #93a4c3;
  --color-text-faint: #64748b;

  --color-accent: #5eead4;
  --color-accent-strong: #2dd4bf;
  --color-accent-ink: #062621;
  --color-indigo: #818cf8;

  --color-success-bg: #0f2e22;
  --color-success-text: #6ee7b7;
  --color-error-bg: #2e1414;
  --color-error-text: #fca5a5;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.4);

  --container-width: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #f7f9fc;
    --color-bg-alt: #eef2f9;
    --color-surface: #ffffff;
    --color-surface-2: #f1f5fb;
    --color-border: #e1e7f2;
    --color-text: #101828;
    --color-text-muted: #475467;
    --color-text-faint: #94a3b8;
    --color-accent-ink: #ecfeff;
    --shadow-md: 0 12px 32px -16px rgba(16, 24, 40, 0.25);
    --shadow-sm: 0 4px 14px -8px rgba(16, 24, 40, 0.18);
  }
}

/* Explicit theme override (from the header toggle), takes precedence over
   the OS-preference media query above regardless of which way it goes. */
:root[data-theme="light"] {
  --color-bg: #f7f9fc;
  --color-bg-alt: #eef2f9;
  --color-surface: #ffffff;
  --color-surface-2: #f1f5fb;
  --color-border: #e1e7f2;
  --color-text: #101828;
  --color-text-muted: #475467;
  --color-text-faint: #94a3b8;
  --color-accent-ink: #ecfeff;
  --shadow-md: 0 12px 32px -16px rgba(16, 24, 40, 0.25);
  --shadow-sm: 0 4px 14px -8px rgba(16, 24, 40, 0.18);
}
:root[data-theme="dark"] {
  --color-bg: #0b1120;
  --color-bg-alt: #0f172a;
  --color-surface: #111827;
  --color-surface-2: #1a2333;
  --color-border: #253148;
  --color-text: #e5edf7;
  --color-text-muted: #93a4c3;
  --color-text-faint: #64748b;
  --color-accent-ink: #062621;
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------------
   Reset & base
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
@media (prefers-color-scheme: light) {
  .site-header { background: rgba(247, 249, 252, 0.85); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}
.primary-nav a.cta-link {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 8px 16px;
  border-radius: 999px;
  border-bottom: none;
  font-weight: 600;
}
.primary-nav a.cta-link:hover { background: var(--color-accent-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .primary-nav a.cta-link { margin-top: 10px; text-align: center; }
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-faint);
  font-size: 0.9rem;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--color-text-faint); }
.footer-nav a:hover { color: var(--color-text); }

/* ---------------------------------------------------------------------
   Sections & typography
--------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.01em; }
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.section-header-row .section-title { margin-bottom: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.link-arrow { color: var(--color-accent); font-weight: 600; font-size: 0.94rem; }
.link-arrow:hover { color: var(--color-accent-strong); }

.empty-state { color: var(--color-text-muted); padding: 32px 0; }

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 15% 20%, rgba(94, 234, 212, 0.14), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(129, 140, 248, 0.14), transparent 40%);
}
.hero-inner { max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 8px; }
.hero-title { font-size: 1.15rem; color: var(--color-accent); font-weight: 600; margin-bottom: 18px; }
.hero-tagline { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.hero-subtitle { font-size: 1.05rem; color: var(--color-text-muted); max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-meta { color: var(--color-text-faint); font-size: 0.9rem; }

.page-hero { padding-top: 72px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-strong); }
.btn-secondary { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

.link-button {
  background: none;
  border: none;
  color: var(--color-accent);
  font-weight: 600;
  padding: 0;
}
.link-button.danger { color: #f87171; }
.link-button:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Feature / course cards
--------------------------------------------------------------------- */
.feature-grid, .course-grid, .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card, .course-card, .skill-card, .stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.94rem; }

.course-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.course-card:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.course-card h3 { font-size: 1.15rem; }
.course-card p { color: var(--color-text-muted); font-size: 0.94rem; flex-grow: 1; }
.course-level {
  align-self: flex-start;
  background: var(--color-surface-2);
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.course-price { font-weight: 700; }
.course-duration { color: var(--color-text-faint); font-weight: 400; }
.course-detail-meta { display: flex; gap: 10px; color: var(--color-text-muted); margin: 14px 0 22px; font-weight: 600; }
.course-description { max-width: 760px; }
.course-description p { color: var(--color-text-muted); margin-bottom: 16px; }

/* ---------------------------------------------------------------------
   About page
--------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-summary p { color: var(--color-text-muted); margin-bottom: 16px; }
.about-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.about-facts {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.about-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.about-facts dt { color: var(--color-text-faint); font-size: 0.85rem; }
.about-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.skill-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.skill-card h3 { font-size: 1rem; }
.skill-level {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-text-faint);
}
.skill-level-Expert { color: var(--color-accent); background: rgba(94, 234, 212, 0.12); }
.skill-level-Advanced { color: var(--color-indigo); background: rgba(129, 140, 248, 0.12); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags li {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 32px; }
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-dates { color: var(--color-text-faint); font-size: 0.88rem; font-weight: 600; }
.timeline-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline-company { color: var(--color-accent); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.timeline-body ul { display: flex; flex-direction: column; gap: 8px; }
.timeline-body li {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  padding-left: 18px;
  position: relative;
}
.timeline-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
@media (max-width: 640px) { .timeline-item { grid-template-columns: 1fr; gap: 6px; } }

.education-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.education-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; }
.education-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.education-item p { color: var(--color-text-muted); font-size: 0.92rem; }
.education-years { color: var(--color-text-faint); margin-top: 4px; }

/* ---------------------------------------------------------------------
   CTA
--------------------------------------------------------------------- */
.cta-section { text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-inner h2 { font-size: 1.7rem; margin-bottom: 12px; }
.cta-inner p { color: var(--color-text-muted); margin-bottom: 24px; }

/* ---------------------------------------------------------------------
   Booking
--------------------------------------------------------------------- */
.days-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.day-column {
  flex: 0 0 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.day-column h3 { font-size: 0.88rem; margin-bottom: 12px; color: var(--color-text-muted); }
.slot-list { display: flex; flex-direction: column; gap: 8px; }
.slot-btn {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.slot-btn:hover:not(:disabled) { border-color: var(--color-accent); }
.slot-btn.selected { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.slot-btn.disabled, .slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.booking-contact {
  max-width: 460px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.booking-contact[hidden] { display: none; }

/* ---------------------------------------------------------------------
   Forms
--------------------------------------------------------------------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--color-text-muted); }
.optional { font-weight: 400; color: var(--color-text-faint); }
input, textarea, select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.checkbox-label { flex-direction: row; align-items: center; gap: 10px; }
.checkbox-label input { width: auto; }

.admin-form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.auth-section { display: flex; justify-content: center; padding-top: 100px; }
.auth-container { max-width: 380px; }
.auth-container h1 { margin-bottom: 24px; font-size: 1.6rem; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.92rem; }
.alert-success { background: var(--color-success-bg); color: var(--color-success-text); }
.alert-error { background: var(--color-error-bg); color: var(--color-error-text); }

/* ---------------------------------------------------------------------
   Admin
--------------------------------------------------------------------- */
.admin-nav { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.admin-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; flex-wrap: wrap; gap: 12px; }
.admin-nav-brand { font-weight: 700; }
.admin-nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.admin-nav-links a { color: var(--color-text-muted); }
.admin-nav-links a:hover { color: var(--color-text); }
.admin-logout-form { display: inline; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 48px; }
.stat-card { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--color-accent); }
.stat-label { color: var(--color-text-muted); font-size: 0.88rem; }

.admin-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.admin-table th { color: var(--color-text-faint); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table-actions { display: flex; gap: 14px; align-items: center; }
.booking-message { max-width: 240px; color: var(--color-text-muted); }

.status-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-pending { background: rgba(250, 204, 21, 0.14); color: #fde047; }
.status-confirmed { background: rgba(94, 234, 212, 0.14); color: var(--color-accent); }
.status-cancelled { background: rgba(248, 113, 113, 0.14); color: #f87171; }

/* ---------------------------------------------------------------------
   Theme toggle
--------------------------------------------------------------------- */
.theme-toggle {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--color-accent); }

/* ---------------------------------------------------------------------
   Search
--------------------------------------------------------------------- */
.search-form { display: flex; gap: 12px; max-width: 480px; margin-top: 20px; }
.search-form input { flex: 1; }
.search-results { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.search-results li { list-style: none; }
.search-results a { font-weight: 700; font-size: 1.05rem; color: var(--color-accent); }
.search-results p { color: var(--color-text-muted); margin-top: 4px; }

/* ---------------------------------------------------------------------
   Legal pages
--------------------------------------------------------------------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--color-text-muted); margin-bottom: 12px; line-height: 1.7; }
.legal-content ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.legal-content li { color: var(--color-text-muted); margin-bottom: 6px; line-height: 1.6; }
.legal-content a { color: var(--color-accent); }
.legal-content code {
  background: var(--color-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ---------------------------------------------------------------------
   Cookie banner
--------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 80;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--color-accent); }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; }

/* ---------------------------------------------------------------------
   Floating CTA, scroll progress, back-to-top
--------------------------------------------------------------------- */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  z-index: 70;
  transition: transform 0.15s ease;
}
.floating-cta:hover { transform: translateY(-2px); }
body[data-active="booking"] .floating-cta,
body[data-active="admin"] .floating-cta { display: none; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-accent);
  z-index: 100;
  transition: width 0.1s linear;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  z-index: 70;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { border-color: var(--color-accent); }

/* ---------------------------------------------------------------------
   FAQ
--------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-left: 16px;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--color-text-muted); margin-top: 12px; }
.faq-item a { color: var(--color-accent); }

/* ---------------------------------------------------------------------
   Password visibility toggle, copy buttons, loading state
--------------------------------------------------------------------- */
.password-field { position: relative; display: flex; }
.password-field input { flex: 1; padding-right: 70px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 8px;
}

.copy-btn.copied { border-color: var(--color-accent); color: var(--color-accent); }

.btn[data-loading-text][aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* ---------------------------------------------------------------------
   Paid course purchase box
--------------------------------------------------------------------- */
.purchase-box {
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.purchase-box-title { font-weight: 700; font-size: 1.1rem; }
.purchase-box-sub { color: var(--color-text-muted); font-size: 0.88rem; margin-top: -8px; }

/* ---------------------------------------------------------------------
   Print
--------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .floating-cta,
  .back-to-top, .scroll-progress, .no-print, .theme-toggle, .nav-toggle {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 16px 0; }
}
