/* =====================================================================
   Axomtech LMS - design system
   Built on Bootstrap 5.3. Light & dark themes via [data-bs-theme].
   ===================================================================== */

:root,
[data-bs-theme="light"] {
  --ax-brand: #2563eb;               /* overridden from settings in <head> */
  --ax-brand-rgb: 37, 99, 235;
  --ax-brand-soft: rgba(var(--ax-brand-rgb), .10);
  --ax-bg: #f4f6fb;
  --ax-surface: #ffffff;
  --ax-surface-2: #f8fafc;
  --ax-border: #e6e9f0;
  --ax-text: #0f172a;
  --ax-muted: #64748b;
  --ax-sidebar-bg: #0f172a;
  --ax-sidebar-text: #cbd5e1;
  --ax-sidebar-muted: #64748b;
  --ax-sidebar-active: rgba(255, 255, 255, .08);
  --ax-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --ax-shadow: 0 4px 16px rgba(15, 23, 42, .06);
  --ax-radius: 14px;
  --ax-radius-sm: 10px;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: var(--ax-bg);
  --bs-body-color: var(--ax-text);
  --bs-border-color: var(--ax-border);
  --bs-primary: var(--ax-brand);
  --bs-primary-rgb: var(--ax-brand-rgb);
  --bs-link-color: var(--ax-brand);
  --bs-link-color-rgb: var(--ax-brand-rgb);
  --bs-link-hover-color: var(--ax-brand);
}

[data-bs-theme="dark"] {
  --ax-bg: #0b1120;
  --ax-surface: #111827;
  --ax-surface-2: #0f172a;
  --ax-border: #1f2937;
  --ax-text: #e5e7eb;
  --ax-muted: #94a3b8;
  --ax-sidebar-bg: #0a0f1c;
  --ax-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --ax-shadow: 0 4px 20px rgba(0, 0, 0, .35);
  --bs-body-bg: var(--ax-bg);
  --bs-body-color: var(--ax-text);
  --bs-border-color: var(--ax-border);
  --bs-secondary-bg: #1f2937;
  --bs-tertiary-bg: #172033;
}

html { -webkit-font-smoothing: antialiased; }
body { font-size: .925rem; background: var(--ax-bg); color: var(--ax-text); }
a { text-decoration: none; }
.text-muted, .form-text { color: var(--ax-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.small-caps { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ax-muted); }

/* ---------- buttons & forms ---------- */
.btn { border-radius: var(--ax-radius-sm); font-weight: 600; padding: .55rem 1rem; }
.btn-sm { padding: .35rem .7rem; border-radius: 8px; }
.btn-primary {
  --bs-btn-bg: var(--ax-brand); --bs-btn-border-color: var(--ax-brand);
  --bs-btn-hover-bg: color-mix(in srgb, var(--ax-brand) 88%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--ax-brand) 88%, #000);
  --bs-btn-active-bg: color-mix(in srgb, var(--ax-brand) 80%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--ax-brand) 80%, #000);
  --bs-btn-disabled-bg: var(--ax-brand); --bs-btn-disabled-border-color: var(--ax-brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--ax-brand); --bs-btn-border-color: var(--ax-brand);
  --bs-btn-hover-bg: var(--ax-brand); --bs-btn-hover-border-color: var(--ax-brand);
  --bs-btn-active-bg: var(--ax-brand); --bs-btn-active-border-color: var(--ax-brand);
}
.btn-soft { background: var(--ax-brand-soft); color: var(--ax-brand); border: 0; }
.btn-soft:hover { background: rgba(var(--ax-brand-rgb), .18); color: var(--ax-brand); }
.btn-light {
  --bs-btn-bg: var(--ax-surface-2); --bs-btn-border-color: var(--ax-border); --bs-btn-color: var(--ax-text);
  --bs-btn-hover-bg: var(--ax-border); --bs-btn-hover-border-color: var(--ax-border); --bs-btn-hover-color: var(--ax-text);
  --bs-btn-active-bg: var(--ax-border); --bs-btn-active-border-color: var(--ax-border); --bs-btn-active-color: var(--ax-text);
}
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.form-control, .form-select { border-radius: var(--ax-radius-sm); padding: .6rem .85rem; border-color: var(--ax-border); background-color: var(--ax-surface); }
.form-control:focus, .form-select:focus { border-color: rgba(var(--ax-brand-rgb), .6); box-shadow: 0 0 0 .2rem rgba(var(--ax-brand-rgb), .15); }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--ax-brand); border-color: var(--ax-brand); }
.form-switch .form-check-input { width: 2.5em; height: 1.35em; cursor: pointer; }
.input-group-text { border-color: var(--ax-border); background: var(--ax-surface-2); }
.input-group > .form-control:not(:last-child) { border-right: 0; }
.input-group .btn-pw { border: 1px solid var(--ax-border); border-left: 0; background: var(--ax-surface); color: var(--ax-muted); }
.invalid-feedback { font-weight: 500; }

/* ---------- cards ---------- */
.card { border: 1px solid var(--ax-border); border-radius: var(--ax-radius); background: var(--ax-surface); box-shadow: var(--ax-shadow-sm); }
.card-header { background: transparent; border-bottom: 1px solid var(--ax-border); padding: 1rem 1.25rem; font-weight: 700; }
.card-body { padding: 1.25rem; }
.card-footer { background: transparent; border-top: 1px solid var(--ax-border); }

.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.stat-card .stat-label { color: var(--ax-muted); font-size: .8rem; font-weight: 600; }
.tone-blue   { background: rgba(37, 99, 235, .12); color: #2563eb; }
.tone-green  { background: rgba(22, 163, 74, .12); color: #16a34a; }
.tone-amber  { background: rgba(217, 119, 6, .14); color: #d97706; }
.tone-violet { background: rgba(124, 58, 237, .12); color: #7c3aed; }
.tone-rose   { background: rgba(225, 29, 72, .12); color: #e11d48; }
.tone-slate  { background: rgba(100, 116, 139, .14); color: #64748b; }

/* ---------- tables ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-color: var(--ax-border); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ax-muted); font-weight: 700; background: var(--ax-surface-2); white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--ax-brand-rgb), .035); }

/* ---------- badges & avatars ---------- */
.badge { font-weight: 600; padding: .4em .65em; border-radius: 6px; }
.badge-soft-success { background: rgba(22, 163, 74, .12); color: #16a34a; }
.badge-soft-danger  { background: rgba(225, 29, 72, .12); color: #e11d48; }
.badge-soft-warning { background: rgba(217, 119, 6, .14); color: #b45309; }
.badge-soft-primary { background: var(--ax-brand-soft); color: var(--ax-brand); }
.badge-soft-secondary { background: rgba(100, 116, 139, .14); color: #64748b; }
[data-bs-theme="dark"] .badge-soft-warning { color: #fbbf24; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; background: var(--ax-brand-soft); color: var(--ax-brand); flex-shrink: 0; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }

/* =====================================================================
   App shell (admin / partner / learner)
   ===================================================================== */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 264px; flex-shrink: 0; background: var(--ax-sidebar-bg); color: var(--ax-sidebar-text);
  position: fixed; inset: 0 auto 0 0; z-index: 1040; display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.app-sidebar .brand { display: flex; align-items: center; gap: .65rem; padding: 1.1rem 1.25rem; color: #fff; font-weight: 800; font-size: 1.05rem; }
.app-sidebar .brand img { max-height: 34px; max-width: 150px; }
.app-sidebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ax-brand); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.app-sidebar .nav-scroll { overflow-y: auto; flex: 1; padding: .25rem .75rem 1rem; scrollbar-width: thin; }
.app-sidebar .nav-section { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-sidebar-muted); font-weight: 700; padding: 1rem .75rem .4rem; }
.app-sidebar .nav-link {
  color: var(--ax-sidebar-text); display: flex; align-items: center; gap: .75rem; padding: .58rem .75rem;
  border-radius: 10px; font-weight: 500; font-size: .875rem; margin-bottom: 2px;
}
.app-sidebar .nav-link i { font-size: 1.05rem; opacity: .85; width: 20px; text-align: center; }
.app-sidebar .nav-link:hover { background: var(--ax-sidebar-active); color: #fff; }
.app-sidebar .nav-link.active { background: var(--ax-brand); color: #fff; box-shadow: 0 4px 14px rgba(var(--ax-brand-rgb), .35); }
.app-sidebar .nav-link .badge { margin-left: auto; }
.app-sidebar .nav-link.disabled { opacity: .45; pointer-events: none; }
.app-sidebar .phase-tag { margin-left: auto; font-size: .6rem; background: rgba(255,255,255,.08); color: var(--ax-sidebar-muted); padding: .15rem .4rem; border-radius: 4px; }
.app-sidebar .sidebar-footer { padding: .9rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .75rem; color: var(--ax-sidebar-muted); }

.app-main { flex: 1; margin-left: 264px; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 1030; height: 64px; display: flex; align-items: center; gap: .75rem;
  padding: 0 1.5rem; background: color-mix(in srgb, var(--ax-surface) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--ax-border);
}
.app-topbar .page-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.app-content { padding: 1.5rem; flex: 1; }
.app-footer { padding: 1rem 1.5rem; color: var(--ax-muted); font-size: .78rem; }
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.page-header p { margin: .15rem 0 0; color: var(--ax-muted); }

.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-main { margin-left: 0; }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 1035; }
  .app-content { padding: 1rem; }
  .app-topbar { padding: 0 1rem; }
}

.dropdown-menu { border-radius: 12px; border-color: var(--ax-border); box-shadow: var(--ax-shadow); padding: .4rem; font-size: .875rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; }
.dropdown-item:active { background: var(--ax-brand); }

/* ---------- settings ---------- */
.settings-nav .nav-link { color: var(--ax-text); border-radius: 10px; padding: .6rem .85rem; display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.settings-nav .nav-link:hover { background: var(--ax-surface-2); }
.settings-nav .nav-link.active { background: var(--ax-brand-soft); color: var(--ax-brand); font-weight: 700; }
.secret-saved { font-size: .75rem; color: #16a34a; font-weight: 600; }
.color-input { width: 52px; height: 42px; padding: .25rem; }

/* ---------- empty states ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ax-muted); }
.empty-state i { font-size: 2.5rem; opacity: .5; display: block; margin-bottom: .75rem; }

/* =====================================================================
   Auth pages
   ===================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
  position: relative; overflow: hidden; color: #fff; padding: 3rem;
  background: radial-gradient(1200px 600px at -10% -10%, rgba(255,255,255,.18), transparent 60%),
              linear-gradient(135deg, var(--ax-brand) 0%, color-mix(in srgb, var(--ax-brand) 55%, #0f172a) 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; bottom: -120px; background: rgba(255,255,255,.07); }
.auth-aside h2 { font-weight: 800; font-size: 2.1rem; line-height: 1.2; max-width: 460px; }
.auth-aside .feature { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; max-width: 420px; }
.auth-aside .feature i { background: rgba(255,255,255,.15); width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: var(--ax-surface); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-weight: 800; font-size: 1.6rem; }
.auth-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; color: inherit; }
.auth-brand img { max-height: 36px; }
.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--ax-muted); font-size: .8rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--ax-border); }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 1.4rem; font-weight: 700; }
@media (max-width: 991.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ---------- toasts ---------- */
.toast-container { z-index: 1090; }
.toast { border-radius: 12px; border: 1px solid var(--ax-border); box-shadow: var(--ax-shadow); background: var(--ax-surface); }

/* ---------- misc ---------- */
.health-row { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; border-bottom: 1px dashed var(--ax-border); }
.health-row:last-child { border-bottom: 0; }
.code-chip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; background: var(--ax-surface-2); border: 1px solid var(--ax-border); padding: .15rem .45rem; border-radius: 6px; }
.qr-box svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 12px; }
.recovery-codes { columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; }
.cursor-pointer { cursor: pointer; }
.min-w-0 { min-width: 0; }
.landing-hero { min-height: 100vh; display: flex; align-items: center; background: radial-gradient(900px 500px at 80% 0%, rgba(var(--ax-brand-rgb), .15), transparent 60%), var(--ax-bg); }
.landing-hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }

/* =====================================================================
   Public website
   ===================================================================== */
body.site { background: var(--ax-surface); font-size: .95rem; }
.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--ax-surface) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--ax-border); }
.site-header .navbar { padding: .65rem 0; }
.site-header .nav-link { font-weight: 600; color: var(--ax-text); border-radius: 8px; padding: .45rem .8rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--ax-brand); background: var(--ax-brand-soft); }
.site-header .navbar-brand img { max-height: 38px; max-width: 170px; }
.brand-mark-sm { width: 36px; height: 36px; border-radius: 10px; background: var(--ax-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.site-search { position: relative; }
.site-search i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--ax-muted); }
.site-search input { padding-left: 2.1rem; border-radius: 999px; min-width: 220px; background: var(--ax-surface-2); }

.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--ax-bg); }
.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.02em; }
.section-head p { color: var(--ax-muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ax-brand); margin-bottom: .5rem; }

.hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; background:
  radial-gradient(800px 420px at 85% 10%, rgba(var(--ax-brand-rgb), .16), transparent 60%),
  radial-gradient(600px 400px at 0% 100%, rgba(124, 58, 237, .10), transparent 60%), var(--ax-surface); }
.hero h1 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; }
.hero h1 .hl { color: var(--ax-brand); }
.hero .lead { color: var(--ax-muted); font-size: 1.15rem; max-width: 560px; }
.hero-search { display: flex; gap: .5rem; background: var(--ax-surface); border: 1px solid var(--ax-border); border-radius: 16px; padding: .4rem; box-shadow: var(--ax-shadow); max-width: 560px; }
.hero-search input { border: 0; background: transparent; box-shadow: none !important; font-size: 1rem; }
.hero-search .btn { border-radius: 12px; padding: .7rem 1.3rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--ax-muted); font-size: .88rem; font-weight: 600; }
.trust-row i { color: #16a34a; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 24px; box-shadow: 0 30px 60px rgba(15, 23, 42, .18); aspect-ratio: 4/3; object-fit: cover; }
.hero-visual .float-card { position: absolute; background: var(--ax-surface); border: 1px solid var(--ax-border); border-radius: 14px; padding: .7rem .9rem; box-shadow: var(--ax-shadow); display: flex; gap: .6rem; align-items: center; font-size: .85rem; }
.hero-visual .float-card.one { left: -18px; bottom: 28px; }
.hero-visual .float-card.two { right: -14px; top: 26px; }
.hero-art { aspect-ratio: 4/3; border-radius: 24px; background: linear-gradient(135deg, var(--ax-brand), color-mix(in srgb, var(--ax-brand) 40%, #7c3aed)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 6rem; box-shadow: 0 30px 60px rgba(var(--ax-brand-rgb), .25); }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat-strip .s { text-align: center; padding: 1.1rem; border-radius: 16px; background: var(--ax-surface); border: 1px solid var(--ax-border); }
.stat-strip .n { font-size: 1.8rem; font-weight: 800; color: var(--ax-brand); line-height: 1.1; }
.stat-strip .l { color: var(--ax-muted); font-size: .85rem; font-weight: 600; }

.cat-chip { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--ax-surface); border: 1px solid var(--ax-border); color: var(--ax-text); font-weight: 700; transition: transform .15s, box-shadow .15s, border-color .15s; height: 100%; }
.cat-chip:hover { transform: translateY(-2px); box-shadow: var(--ax-shadow); border-color: rgba(var(--ax-brand-rgb), .4); color: var(--ax-text); }
.cat-chip i { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ax-brand-soft); color: var(--ax-brand); font-size: 1.2rem; flex-shrink: 0; }
.cat-chip small { display: block; color: var(--ax-muted); font-weight: 500; }

.course-card { display: flex; flex-direction: column; height: 100%; background: var(--ax-surface); border: 1px solid var(--ax-border); border-radius: 18px; overflow: hidden; color: var(--ax-text); transition: transform .18s, box-shadow .18s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); color: var(--ax-text); }
.course-thumb { position: relative; aspect-ratio: 16/9; background: var(--ax-surface-2); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-badge { position: absolute; top: .7rem; left: .7rem; background: #f59e0b; color: #111827; font-size: .7rem; font-weight: 800; padding: .25rem .55rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.course-off { position: absolute; top: .7rem; right: .7rem; background: #16a34a; color: #fff; font-size: .7rem; font-weight: 800; padding: .25rem .55rem; border-radius: 6px; }
.course-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.course-meta { font-size: .72rem; font-weight: 700; color: var(--ax-brand); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.course-title { font-size: 1.02rem; font-weight: 800; line-height: 1.35; margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-by { font-size: .8rem; color: var(--ax-muted); margin-bottom: .5rem; }
.course-facts { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .78rem; color: var(--ax-muted); margin-bottom: .85rem; }
.course-price { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; border-top: 1px dashed var(--ax-border); padding-top: .75rem; }
.course-price .now { font-size: 1.2rem; font-weight: 800; }
.course-price .was { color: var(--ax-muted); text-decoration: line-through; font-size: .85rem; }
.course-price .go { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--ax-brand); }

.feature-box { padding: 1.5rem; border-radius: 18px; background: var(--ax-surface); border: 1px solid var(--ax-border); height: 100%; }
.feature-box .ic { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 1rem; }
.feature-box h3 { font-size: 1.05rem; font-weight: 800; }
.feature-box p { color: var(--ax-muted); margin: 0; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--ax-brand); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; box-shadow: 0 8px 20px rgba(var(--ax-brand-rgb), .35); }
.testimonial { padding: 1.5rem; border-radius: 18px; background: var(--ax-surface); border: 1px solid var(--ax-border); height: 100%; display: flex; flex-direction: column; }
.testimonial .stars { color: #f59e0b; margin-bottom: .6rem; }
.testimonial blockquote { font-size: .98rem; flex: 1; }
.partner-logo-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.25rem; border-radius: 18px; border: 1px solid var(--ax-border); background: var(--ax-surface); color: var(--ax-text); height: 100%; transition: box-shadow .15s; }
.partner-logo-card:hover { box-shadow: var(--ax-shadow); color: var(--ax-text); }
.partner-logo-card img, .partner-logo-card .ph { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: var(--ax-surface-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ax-brand); font-size: 1.3rem; }
.accordion { --bs-accordion-border-color: var(--ax-border); --bs-accordion-bg: var(--ax-surface); --bs-accordion-active-bg: var(--ax-brand-soft); --bs-accordion-active-color: var(--ax-text); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 14px; }
.accordion-button { font-weight: 700; }
.cta-band { border-radius: 28px; padding: 3rem; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--ax-brand), color-mix(in srgb, var(--ax-brand) 55%, #0f172a)); }
.cta-band .form-control { border: 0; }
.site-footer { background: var(--ax-bg); border-top: 1px solid var(--ax-border); padding: 3.5rem 0 1.5rem; }
.site-footer a { display: block; color: var(--ax-muted); font-size: .9rem; padding: .2rem 0; }
.site-footer a:hover { color: var(--ax-brand); }
.site-footer .auth-brand img { max-height: 36px; }
.footer-title { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--ax-border); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; color: var(--ax-muted); }
.footer-bottom a { display: inline; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 10px 25px rgba(37, 211, 102, .45); z-index: 1040; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* course page */
.course-hero { background: #0f172a; color: #e2e8f0; padding: 2.75rem 0 2.5rem; }
.course-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.02em; }
.course-hero .sub { color: #cbd5e1; font-size: 1.1rem; }
.course-hero .crumb a { color: #93c5fd; font-size: .85rem; font-weight: 600; }
.course-hero .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: #cbd5e1; }
.course-hero .meta i { color: #93c5fd; }
.buy-card { background: var(--ax-surface); border: 1px solid var(--ax-border); border-radius: 20px; box-shadow: 0 20px 50px rgba(15, 23, 42, .15); overflow: hidden; }
@media (min-width: 992px) { .buy-col { margin-top: -15rem; } .buy-card { position: sticky; top: 90px; } }
.buy-card .media { position: relative; aspect-ratio: 16/9; background: #000; }
.buy-card .media img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.buy-card .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.45)); border: 0; width: 100%; }
.buy-card .play i { font-size: 3.2rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.price-now { font-size: 2rem; font-weight: 800; line-height: 1; }
.price-was { color: var(--ax-muted); text-decoration: line-through; }
.price-off { color: #16a34a; font-weight: 800; }
.includes li { padding: .3rem 0; font-size: .9rem; }
.includes i { color: var(--ax-brand); width: 22px; }
.learn-grid { columns: 2; column-gap: 2rem; }
.learn-grid li { break-inside: avoid; padding: .35rem 0 .35rem 1.8rem; position: relative; }
.learn-grid li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; top: .3rem; color: #16a34a; font-size: 1.1rem; }
@media (max-width: 767.98px) { .learn-grid { columns: 1; } }
.curriculum .lesson-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--ax-border); font-size: .9rem; }
.curriculum .lesson-row:last-child { border-bottom: 0; }
.mobile-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: var(--ax-surface); border-top: 1px solid var(--ax-border); padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); }
@media (min-width: 992px) { .mobile-buy-bar { display: none; } }
@media (max-width: 991.98px) { body.has-buy-bar { padding-bottom: 76px; } body.has-buy-bar .wa-float { bottom: 90px; } }
.desc-body h2, .desc-body h3 { font-size: 1.2rem; font-weight: 800; margin-top: 1.25rem; }
.store-hero { position: relative; color: #fff; padding: 4.5rem 0; background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(var(--ax-brand-rgb), .78)), var(--store-banner, linear-gradient(135deg, var(--ax-brand), #0f172a)) center/cover; }
.store-hero .logo { width: 96px; height: 96px; border-radius: 22px; background: #fff; object-fit: contain; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.store-hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.checkout-summary .row-line { display: flex; justify-content: space-between; padding: .45rem 0; }
.filter-pill { border-radius: 999px; }
.site-header .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1299.98px) { .site-header .site-search { display: none !important; } }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; }

/* ---------- Growth: conversion components ---------- */
.top-announce { background: var(--ax-brand); color: #fff; font-size: .88rem; font-weight: 600; text-align: center; padding: .45rem 0; }
.top-announce a { color: #fff; text-decoration: none; }
.top-announce a:hover { text-decoration: underline; }
.ref-banner { background: #ecfdf5; color: #065f46; border-bottom: 1px solid #a7f3d0; padding: .6rem 0; font-size: .92rem; }
[data-bs-theme="dark"] .ref-banner { background: rgba(16,185,129,.12); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
.hero-rating .bi { font-size: .85rem; }
.offer-timer { background: #fff1f2; color: #be123c; border-radius: 12px; padding: .6rem .8rem; font-size: .9rem; text-align: center; }
[data-bs-theme="dark"] .offer-timer { background: rgba(225,29,72,.12); color: #fda4af; }
.offer-timer strong { font-variant-numeric: tabular-nums; }
.guarantee { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; font-weight: 600; color: #047857; background: #ecfdf5; border-radius: 12px; padding: .55rem .75rem; }
[data-bs-theme="dark"] .guarantee { background: rgba(16,185,129,.12); color: #6ee7b7; }
.share-earn { border: 1px dashed var(--ax-border); border-radius: 12px; padding: .7rem; }
.audience-item { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--ax-border); border-radius: 12px; background: var(--ax-surface); height: 100%; }
.audience-item i { color: var(--ax-brand); font-size: 1.1rem; }
.review-item { padding: 1rem 0; border-bottom: 1px solid var(--ax-border); }
.review-item:last-child { border-bottom: 0; }
.review-reply { background: var(--ax-brand-soft); border-radius: 10px; padding: .5rem .75rem; margin-top: .4rem; }
.course-rating { font-size: .82rem; margin: -.15rem 0 .35rem; display: flex; align-items: center; gap: .3rem; }
.course-rating .fw-bold { color: #b45309; }
.course-rating .stars { color: #f59e0b; font-size: .75rem; }
.refer-promo { background: linear-gradient(135deg, #059669, #0d9488); color: #fff; border-radius: 22px; padding: 1.6rem 1.8rem; }
.refer-ic { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.post-body h2 { font-size: 1.45rem; font-weight: 800; margin: 2rem 0 .75rem; }
.post-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.post-body p, .post-body li { font-size: 1.05rem; line-height: 1.75; }
.focus-mode .site-footer { padding-top: 1rem; }
.credit-card { background: linear-gradient(135deg, var(--ax-brand), #7c3aed); color: #fff; border-radius: 20px; padding: 1.4rem; }
.credit-card .amt { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat-mini { border: 1px solid var(--ax-border); border-radius: 14px; padding: .8rem 1rem; background: var(--ax-surface); }
.stat-mini .n { font-size: 1.35rem; font-weight: 800; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.6rem; color: #d1d5db; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }

/* =====================================================================
   Learner portal: light sidebar shell, collapsible on desktop, drawer + tab bar on phones
   ===================================================================== */
.learn-shell .app-sidebar { background: var(--ax-surface); color: var(--ax-text); border-right: 1px solid var(--ax-border); width: 256px; }
.learn-shell .app-sidebar .brand { color: var(--ax-text); }
.learn-shell .app-sidebar .nav-section { color: var(--ax-muted); }
.learn-shell .app-sidebar .nav-link { color: var(--ax-text); opacity: .85; }
.learn-shell .app-sidebar .nav-link:hover { background: var(--ax-brand-soft); color: var(--ax-brand); opacity: 1; }
.learn-shell .app-sidebar .nav-link.active { background: var(--ax-brand-soft); color: var(--ax-brand); opacity: 1; box-shadow: none; font-weight: 700; }
.learn-shell .app-sidebar .sidebar-footer { border-top-color: var(--ax-border); }
.learn-shell .app-main { margin-left: 256px; }
.learn-shell .nav-course { font-size: .82rem; }
.learn-shell .ring { --p: 0; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center;
  background: conic-gradient(var(--ax-brand) calc(var(--p) * 1%), var(--ax-border) 0); }
.learn-shell .ring span { width: 20px; height: 20px; border-radius: 50%; background: var(--ax-surface); display: grid; place-items: center; font-size: .55rem; font-weight: 800; }
.sidebar-credits { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 10px; padding: .4rem .6rem; text-decoration: none; font-size: .82rem; }
[data-bs-theme="dark"] .sidebar-credits { background: rgba(245,158,11,.15); color: #fbbf24; }
.learn-content { flex: 1; min-width: 0; }
.learn-pad { padding: 1.5rem; max-width: 1400px; }
.learn-content > .section-sm:first-child, .learn-content > section:first-child { border-top: 0; }
.learn-content .container, .learn-content .container-xxl { max-width: 1400px; }
.learn-content .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.learn-content .nav-tabs::-webkit-scrollbar { display: none; }
.learn-content .nav-tabs .nav-link { white-space: nowrap; }

/* desktop: collapse sidebar to icons */
@media (min-width: 992px) {
  .learn-mini .learn-shell .app-sidebar { width: 76px; }
  .learn-mini .learn-shell .app-main { margin-left: 76px; }
  .learn-mini .learn-shell .app-sidebar .nav-link span:not(.ring):not(.badge), .learn-mini .learn-shell .nav-section,
  .learn-mini .learn-shell .sidebar-footer, .learn-mini .learn-shell .brand span { display: none; }
  .learn-mini .learn-shell .app-sidebar .nav-link { justify-content: center; padding: .65rem; }
  .learn-mini .learn-shell .app-sidebar .nav-link .badge { position: absolute; margin: -18px 0 0 22px; font-size: .55rem; }
  .learn-mini .learn-shell .brand { justify-content: center; padding-inline: .5rem; }
  .learn-shell .app-sidebar, .learn-shell .app-main { transition: width .2s ease, margin-left .2s ease; }
}

/* phones & tablets */
.learn-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: var(--ax-surface);
  border-top: 1px solid var(--ax-border); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(15,23,42,.06); }
.learn-tabbar a, .learn-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .66rem; font-weight: 600;
  color: var(--ax-muted); text-decoration: none; background: none; border: 0; padding: .25rem 0; }
.learn-tabbar i { font-size: 1.2rem; }
.learn-tabbar .active { color: var(--ax-brand); }
@media (max-width: 991.98px) {
  .learn-shell .app-main { margin-left: 0; }
  .learn-body { padding-bottom: 64px; }
  .learn-pad { padding: 1rem; }
  .learn-content .section-sm { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .learn-content h1.fw-bold { font-size: 1.5rem; }
  .learn-content .col-lg-4 .card[style*="sticky"] { position: static !important; max-height: none !important; }
  .learn-content .progress-wrap, .learn-content [style*="min-width:220px"] { min-width: 0 !important; width: 100%; }
  .app-topbar .page-title { font-size: .95rem; }
  .wa-float { bottom: 80px; }
}
@media (max-width: 575.98px) {
  .learn-content .card-body { padding: 1rem; }
  .learn-content .table { font-size: .82rem; }
  #speedBar { overflow-x: auto; }
}
