* {
  box-sizing: border-box;
}

:root {
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --ease: 0.18s ease;
}

[data-theme="light"] {
  --bg: #f5f5f8;
  --sidebar-bg: #ffffff;
  --panel: #ffffff;
  --hero-bg: #f3eef9;
  --panel-soft: #ffffff;
  --panel-soft-2: #fafafa;
  --line: #ececf1;
  --purple: #6f4cf6;
  --purple-dark: #23293a;
  --muted: #6b7285;
  --text: #252c3c;
  --shadow: 0 12px 28px rgba(18, 24, 38, 0.04);
  --overlay: rgba(30, 16, 70, 0.18);
  --rating-bg: #eefaf7;
  --rating-text: #27c7b8;
  --avatar-bg: #f2f2f5;
  --hover-bg: #f7f3ff;
  --hover-line: #d7c8ff;
  --hover-shadow: 0 14px 30px rgba(122, 77, 255, 0.1);
  --teal: #27c7b8;
  --service-line: #d7c8ff;
  --active-blue: #1565d8;
  /* Local mappings */
  --card: #ffffff;
  --border: #ececf1;
  --border-strong: #d7c8ff;
  --glass-bg: rgba(255, 255, 255, 0.94);
}

[data-theme="dark"] {
  --bg: #0f0b15;
  --sidebar-bg: #16121d;
  --panel: #1b1625;
  --hero-bg: #1b1625;
  --panel-soft: #1b1625;
  --panel-soft-2: #241e2f;
  --line: #2d263a;
  --purple: #bb94ff;
  --purple-dark: #f8f6ff;
  --muted: #a39cb5;
  --text: #f0edf5;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  --overlay: rgba(0, 0, 0, 0.6);
  --rating-bg: #223230;
  --rating-text: #46d8ca;
  --avatar-bg: #241e2f;
  --hover-bg: #2a2236;
  --hover-line: #5b4a83;
  --hover-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  --teal: #46d8ca;
  --service-line: #5b4a83;
  --active-blue: #3b82f6;
  /* Local mappings */
  --card: #1b1625;
  --border: #2d263a;
  --border-strong: #5b4a83;
  --glass-bg: rgba(22, 18, 29, 0.95);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  height: 100%;
  overflow: hidden;
  transition:
    background var(--ease),
    color var(--ease);
}
.app-shell {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.app-shell.sidebar-active .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: 294px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  padding: 18px 16px;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-top {
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 10px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7a4dff, #c26be3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  text-decoration: none;
  font-size: 13px;
  color: var(--purple-dark);
  font-weight: 700;
}

.back-link-arrow {
  font-size: 18px;
  line-height: 1;
}

.back-link:hover {
  color: var(--purple);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.nav-section-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 0;
}

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

.nav-item {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--hover-bg);
  border-color: var(--hover-line);
  box-shadow: var(--hover-shadow);
  transform: translateY(-1px);
}

.nav-item.active {
  background: var(--hover-bg);
  border-color: var(--active-blue);
  box-shadow: var(--shadow);
  color: var(--active-blue);
  transform: translateY(-1px);
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.single-link {
  justify-content: flex-start;
}

.single-link .nav-left {
  width: 100%;
}

.nav-icon {
  width: 20px;
  height: 20px;
  color: #808998;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-item:hover .nav-icon {
  color: var(--purple);
}

.helper-note {
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px 0 14px;
  line-height: 1.4;
}

.main-content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  min-width: 0;
}

.topbar {
  height: 72px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--line);
  display: flex; /* Visible on all screens */
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--purple);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #f4efff;
  transform: scale(1.04);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.search-wrap {
  display: none;
  max-width: 330px;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--text);
  border-radius: 13px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--hover-line);
  box-shadow: 0 0 0 3px rgba(122, 77, 255, 0.1);
}

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

.theme-toggle {
  height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--hover-line);
  transform: translateY(-1px);
}

.credits-box {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--sidebar-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-dark);
}

.credits-box strong {
  color: var(--purple);
  font-size: 14px;
}

.store-btn,
.primary-btn,
.institutions-btn,
.view-all-institutions-btn,
.book-now-btn {
  height: 40px;
  padding: 0 15px;
  border-radius: 13px;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, #7a4dff, #9f55ff);
  color: white;
  box-shadow: 0 10px 22px rgba(122, 77, 255, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-btn:hover,
.primary-btn:hover,
.institutions-btn:hover,
.view-all-institutions-btn:hover,
.book-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(122, 77, 255, 0.28);
}
.pricing-shell {
  min-height: 100vh;
  padding: 42px 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pricing-card {
  width: 100%;
  max-width: 660px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-top {
  position: relative;
  margin-bottom: 20px;
  padding-top: 4px;
  text-align: center;
}

.recommended-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.08);
  border: 1px solid rgba(124, 77, 255, 0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.card-top h1 {
  margin: 0 0 4px;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
}

.hero-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.currency {
  font-size: 18px;
  color: var(--muted);
  font-weight: 700;
}

.price {
  font-size: 54px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.billing {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 700;
}

.card-subtitle {
  width: 100%;
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}

.program-picker {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 22px;
  background: var(--panel-soft-2);
  border: 1px solid var(--border);
}

.section-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-align: left;
}

.program-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.program-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 20px;
  min-height: 104px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.program-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 77, 255, 0.16);
  box-shadow: 0 10px 22px rgba(36, 42, 56, 0.06);
}

.program-pill.selected {
  border-color: var(--purple);
  background: var(--hover-bg);
  box-shadow: 0 8px 18px rgba(122, 77, 255, 0.1);
  transform: translateY(-2px);
}

.pill-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a69ff;
  opacity: 0.95;
}

.pill-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pill-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.program-note {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.primary-cta {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff 0%, #6f4df6 100%);
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 12px 28px rgba(111, 77, 246, 0.18);
}

.primary-cta:hover,
.pay-button:hover {
  transform: translateY(-1px);
  opacity: 0.98;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-size: 15px;
}

.footnote {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  opacity: 0.85;
}

.checkout-panel {
  width: 100%;
  max-width: 660px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.checkout-panel.hidden {
  display: none;
}

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

.stripe-wordmark {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.secure-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(35, 191, 166, 0.1);
  color: #169d89;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(35, 191, 166, 0.14);
}

.checkout-summary {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-soft-2);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--text);
  font-size: 14px;
}

.total-row {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.payment-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.fake-input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.pay-button {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  margin-top: 16px;
  background: linear-gradient(135deg, #7c5cff 0%, #6f4df6 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(111, 77, 246, 0.16);
}

.checkout-note {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 991px) {
  .topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 900;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    width: 290px;
  }

  .app-shell.sidebar-active .sidebar {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .topbar-right .credits-box {
    display: none;
  }

  .topbar-right .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0 10px;
  }

  .pricing-card,
  .checkout-panel {
    padding: 18px;
  }

  .card-top h1 {
    font-size: 32px;
  }

  .price {
    font-size: 42px;
  }

  .program-options,
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.title-wrap p,
.page-heading p,
.info-copy p {
  font-size: 16px !important;
  color: var(--muted) !important;
  max-width: 870px !important;
}
