/* =====================================================================
   TUSP — brand design system
   Gold (from logo) · Deep ink · Warm cream
   ===================================================================== */
:root {
  --gold: #C9A14A;
  --gold-2: #E2B961;
  --gold-3: #F3DFAE;
  --gold-soft: #FBF3DF;
  --ink: #14151C;
  --ink-2: #1E2030;
  --ink-3: #2C2F45;
  --cream: #FBF7EE;
  --paper: #FFFFFF;
  --text: #2B2D3A;
  --muted: #6B6E7E;
  --line: #ECE6D8;
  --success: #2E8B57;
  --danger: #C0392B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20,21,28,.06);
  --shadow: 0 10px 34px rgba(20,21,28,.09);
  --shadow-lg: 0 24px 60px rgba(20,21,28,.16);
  --gold-grad: linear-gradient(135deg, #B88A2E 0%, #E2B961 45%, #F6DC9A 70%, #C9A14A 100%);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-primary: #C9A14A;
  --bs-primary-rgb: 201,161,74;
  --bs-link-color: #A9822F;
  --bs-link-hover-color: #7d5f1f;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display-font { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h4, h5, h6 { font-weight: 700; color: var(--ink); }
a { color: #A9822F; text-decoration: none; }
a:hover { color: #7d5f1f; }
::selection { background: var(--gold-3); color: var(--ink); }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--muted) !important; }
.bg-ink { background: var(--ink) !important; color: #E9E6DD; }
.bg-cream { background: var(--cream) !important; }
.bg-paper { background: var(--paper) !important; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small-caps { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .62rem 1.35rem; transition: all .22s ease; }
.btn-sm { padding: .38rem .9rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.02rem; }
.btn-gold { background: var(--gold-grad); background-size: 160% 160%; color: var(--ink); border: 0; box-shadow: 0 8px 22px rgba(201,161,74,.32); }
.btn-gold:hover, .btn-gold:focus { color: var(--ink); background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(201,161,74,.42); }
.btn-ink { background: var(--ink); color: #fff; border: 0; }
.btn-ink:hover { background: var(--ink-3); color: #fff; }
.btn-outline-gold { border: 1.5px solid var(--gold); color: #8E6C22; background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }
.btn-outline-light-gold { border: 1.5px solid rgba(226,185,97,.55); color: var(--gold-2); }
.btn-outline-light-gold:hover { background: rgba(226,185,97,.12); color: var(--gold-3); }
.btn-primary { --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-hover-bg: #B58E3B; --bs-btn-hover-border-color: #B58E3B; --bs-btn-color: var(--ink); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: #A98431; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: #E3DCCB; padding: .65rem .95rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--gold); box-shadow: 0 0 0 .22rem rgba(201,161,74,.18); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink-3); }

/* ---------- top bar & navbar ---------- */
.topbar { background: var(--ink); color: #CFCAB9; font-size: .82rem; }
.topbar a { color: #E9DDBF; }
.site-nav { background: rgba(255,255,255,.94); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
.site-nav .navbar-brand img { height: 44px; width: auto; }
.site-nav .nav-link { font-weight: 600; color: var(--ink-3); padding: .5rem .8rem !important; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.site-nav .navbar-brand { flex-shrink: 0; margin-right: 1.25rem; }
.site-nav .nav-actions { flex-shrink: 0; white-space: nowrap; }
.site-nav .nav-actions .btn { white-space: nowrap; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #8E6C22; background: var(--gold-soft); }
.nav-search { position: relative; }
@media (min-width: 1200px) {
  .site-nav .navbar-nav { flex-wrap: nowrap; gap: .1rem; }
  .nav-search { flex: 0 1 230px; min-width: 150px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .site-nav .nav-link { padding: .5rem .6rem !important; font-size: .9rem; }
  .site-nav .navbar-brand { margin-right: .75rem; }
  .nav-search { flex-basis: 215px; }
}
@media (max-width: 1199px) {
  .site-nav .navbar-collapse { padding: .75rem 0 1rem; }
  .site-nav .navbar-nav .nav-link { padding: .6rem .9rem !important; }
  .nav-search { width: 100%; }
}
.nav-search input { border-radius: 999px; padding-left: 2.4rem; background: var(--cream); border-color: transparent; }
.nav-search .bi-search { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 1050; overflow: hidden; display: none; }
.suggest-box a { display: flex; gap: .7rem; align-items: center; padding: .6rem .9rem; color: var(--text); border-bottom: 1px solid var(--line); }
.suggest-box a:hover { background: var(--gold-soft); }
.suggest-box img { width: 54px; height: 34px; object-fit: cover; border-radius: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 520px at 85% -10%, rgba(226,185,97,.30), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(201,161,74,.18), transparent 60%), var(--ink); color: #E9E6DD; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(226,185,97,.18) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent); opacity: .5; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.06; }
.hero h1 em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #C8C4B6; font-size: 1.12rem; max-width: 560px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(226,185,97,.12); color: var(--gold-2); border: 1px solid rgba(226,185,97,.3); padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.hero-search { background: #fff; border-radius: 999px; padding: .4rem; display: flex; box-shadow: var(--shadow-lg); max-width: 560px; }
.hero-search input { border: 0; flex: 1; padding: .6rem 1.1rem; border-radius: 999px; outline: none; min-width: 0; }
.hero-art { position: relative; aspect-ratio: 1/1; max-width: 480px; margin-left: auto; }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(226,185,97,.25); }
.hero-art .ring.r2 { inset: 12%; border-style: dashed; animation: spin 60s linear infinite; }
.hero-art .ring.r3 { inset: 26%; background: radial-gradient(circle, rgba(226,185,97,.18), transparent 70%); }
.hero-art .emblem { position: absolute; inset: 22%; display: grid; place-items: center; }
.hero-art .emblem img { width: 100%; filter: drop-shadow(0 20px 40px rgba(226,185,97,.35)); }
.hero-art .float-card { position: absolute; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: .75rem 1rem; box-shadow: var(--shadow-lg); font-size: .85rem; display: flex; gap: .6rem; align-items: center; animation: bob 5s ease-in-out infinite; }
.hero-art .float-card i { font-size: 1.35rem; color: var(--gold); }
.hero-art .fc1 { top: 8%; left: 0; } .hero-art .fc2 { bottom: 16%; right: 0; animation-delay: -2s; } .hero-art .fc3 { bottom: 2%; left: 6%; animation-delay: -3.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero .carousel-indicators [data-bs-target] { background: var(--gold-2); width: 26px; height: 4px; border-radius: 4px; }
.hero-banner-img { border-radius: 28px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- stats strip ---------- */
.stats-strip { margin-top: -46px; position: relative; z-index: 5; }
.stats-strip .inner { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 1.4rem; }
.stat { display: flex; gap: .9rem; align-items: center; }
.stat .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--gold-soft); color: #A9822F; display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.stat strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { margin-bottom: 2.6rem; }
.section-head .kicker { color: #A9822F; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .35rem 0 .5rem; }
.section-head p { color: var(--muted); max-width: 620px; }
.divider-gold { width: 64px; height: 3px; border-radius: 3px; background: var(--gold-grad); }

/* ---------- course card ---------- */
.course-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s; position: relative; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,161,74,.5); }
.course-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--ink-2); }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.course-card:hover .thumb img { transform: scale(1.06); }
.course-card .badge-off { position: absolute; top: 12px; left: 12px; background: var(--gold-grad); color: var(--ink); font-weight: 800; font-size: .75rem; border-radius: 999px; padding: .3rem .65rem; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.course-card .badge-cat { position: absolute; bottom: 12px; left: 12px; background: rgba(20,21,28,.78); color: #F3DFAE; font-size: .72rem; border-radius: 999px; padding: .28rem .7rem; backdrop-filter: blur(6px); }
.course-card .wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); border: 0; display: grid; place-items: center; color: var(--ink); transition: transform .2s; }
.course-card .wish:hover { transform: scale(1.1); }
.course-card .wish.on i { color: #D9534F; }
.course-card .body { padding: 1.1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.course-card .title { font-family: var(--font-body); font-weight: 750; font-size: 1.05rem; line-height: 1.35; color: var(--ink); margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .title a { color: inherit; }
.course-card .desc { font-size: .87rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .7rem; }
.course-card .instructor { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-3); font-weight: 600; margin-bottom: .6rem; }
.course-card .rating { display: flex; align-items: center; gap: .35rem; font-size: .85rem; }
.course-card .rating b { color: #8E6C22; }
.course-card .meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: var(--muted); margin: .55rem 0 .8rem; }
.course-card .meta i { color: var(--gold); margin-right: .2rem; }
.course-card .price-row { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .7rem; border-top: 1px dashed var(--line); }
.price-now { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.price-was { text-decoration: line-through; color: #A3A3AE; font-size: .92rem; }
.price-off { color: var(--success); font-weight: 700; font-size: .82rem; }
.course-card .actions { display: flex; gap: .5rem; margin-top: .85rem; }
.course-card .actions .btn { flex: 1; padding: .55rem .6rem; font-size: .88rem; }
.stars { color: #E0A92B; letter-spacing: 1px; font-size: .82rem; white-space: nowrap; }

/* ---------- category tiles ---------- */
.cat-tile { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: all .25s; height: 100%; }
.cat-tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font-size: 1.4rem; flex: none; transition: all .25s; }
.cat-tile:hover .ic { background: var(--gold-grad); color: var(--ink); }
.cat-tile h6 { margin: 0; font-size: 1rem; }
.cat-tile small { color: var(--muted); }

/* ---------- why / benefits ---------- */
.feature { padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; transition: all .25s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--gold-soft); color: #A9822F; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.feature h5 { font-size: 1.08rem; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.dark-band { background: var(--ink); color: #D9D5C8; position: relative; overflow: hidden; }
.dark-band h2, .dark-band h5 { color: #fff; }
.dark-band .section-head p { color: #A9A598; }
.dark-band .feature { background: rgba(255,255,255,.04); border-color: rgba(226,185,97,.16); }
.dark-band .feature p { color: #A9A598; }
.dark-band .feature .ic { background: rgba(226,185,97,.12); color: var(--gold-2); }

/* ---------- founders corner ---------- */
.founders { background: linear-gradient(180deg, var(--cream), #F5EEDC); }
.founder-card { background: #fff; border-radius: 26px; padding: 2rem; box-shadow: var(--shadow); position: relative; height: 100%; border: 1px solid var(--line); overflow: hidden; }
.founder-card::before { content: "\201C"; position: absolute; top: -32px; right: 18px; font-family: var(--font-display); font-size: 10rem; color: var(--gold-soft); line-height: 1; pointer-events: none; }
.founder-photo { width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: var(--gold-grad); flex: none; }
.founder-photo img, .founder-photo .avatar-initials { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; border: 3px solid #fff; font-size: 2rem !important; }
.founder-quote { font-family: var(--font-display); font-style: italic; font-size: 1.32rem; color: var(--ink); line-height: 1.4; position: relative; }
.founder-msg { color: var(--muted); position: relative; }
.founder-sign { font-family: var(--font-display); font-size: 1.1rem; color: #8E6C22; }

/* ---------- testimonials ---------- */
.testi-card { background: #fff; border-radius: 22px; padding: 1.8rem; height: 100%; border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.testi-card .q { font-size: 2.6rem; line-height: 1; color: var(--gold); font-family: var(--font-display); }
.testi-card p { font-size: 1rem; color: var(--ink-3); flex: 1; }
.testi-card .who { display: flex; gap: .8rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.sample-ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: #6B6E7E; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .14em; padding: .2rem 2.6rem; z-index: 3; }
.testi-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; scrollbar-width: thin; }
.testi-track > * { scroll-snap-align: start; }
@media (max-width: 991px) { .testi-track { grid-auto-columns: 75%; } }
@media (max-width: 575px) { .testi-track { grid-auto-columns: 90%; } }

/* ---------- instructors ---------- */
.inst-card { text-align: center; background: #fff; border-radius: var(--radius); padding: 1.8rem 1.2rem; border: 1px solid var(--line); height: 100%; transition: all .25s; display: block; color: var(--text); }
.inst-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--text); }
.inst-card .ph { width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%; padding: 3px; background: var(--gold-grad); }
.inst-card .ph img, .inst-card .ph .avatar-initials { width: 100% !important; height: 100% !important; border-radius: 50%; border: 3px solid #fff; object-fit: cover; font-size: 1.8rem !important; }

/* ---------- faq ---------- */
.accordion-item { border: 1px solid var(--line) !important; border-radius: 16px !important; margin-bottom: .8rem; overflow: hidden; background: #fff; }
.accordion-button { font-weight: 650; color: var(--ink); padding: 1.1rem 1.3rem; background: #fff; }
.accordion-button:not(.collapsed) { background: var(--gold-soft); color: var(--ink); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button::after { filter: sepia(1) saturate(4) hue-rotate(5deg); }

/* ---------- newsletter / cta ---------- */
.cta-box { background: var(--ink); border-radius: 30px; padding: 3.2rem; color: #D9D5C8; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; width: 380px; height: 380px; right: -100px; top: -140px; background: radial-gradient(circle, rgba(226,185,97,.35), transparent 65%); }
.cta-box h2 { color: #fff; }
.cta-box form { position: relative; display: flex; gap: .5rem; background: rgba(255,255,255,.07); border: 1px solid rgba(226,185,97,.3); padding: .4rem; border-radius: 999px; }
.cta-box input { background: transparent; border: 0; color: #fff; flex: 1; padding: .55rem 1rem; outline: none; min-width: 0; }
.cta-box input::placeholder { color: #8F8B80; }

/* ---------- footer ---------- */
.site-footer { background: #0E0F14; color: #A9A598; padding-top: 72px; font-size: .93rem; }
.site-footer h6 { color: #fff; font-family: var(--font-body); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1.1rem; }
.site-footer a { color: #C8C4B6; } .site-footer a:hover { color: var(--gold-2); }
.site-footer .logo-foot { height: 52px; }
.site-footer ul { list-style: none; padding: 0; } .site-footer li { margin-bottom: .55rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(226,185,97,.25); display: inline-grid; place-items: center; margin-right: .35rem; }
.social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.3rem 0; margin-top: 3rem; font-size: .84rem; }

/* ---------- page header ---------- */
.page-hero { background: radial-gradient(900px 300px at 80% 0, rgba(226,185,97,.22), transparent 60%), var(--ink); color: #D9D5C8; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero .breadcrumb a { color: var(--gold-2); } .page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #8F8B80; }

/* ---------- course detail ---------- */
.course-hero { background: var(--ink); color: #D9D5C8; padding: 56px 0; }
.course-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.course-hero .sub { color: #C8C4B6; font-size: 1.1rem; }
.course-hero .meta span { margin-right: 1.2rem; font-size: .92rem; } .course-hero .meta i { color: var(--gold-2); }
.buy-box { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; position: sticky; top: 96px; border: 1px solid var(--line); }
.buy-box .media { aspect-ratio: 16/9; background: #000; position: relative; }
.buy-box .media img, .buy-box .media iframe, .buy-box .media video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.buy-box .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 3.4rem; background: linear-gradient(transparent, rgba(0,0,0,.45)); cursor: pointer; }
.buy-box ul li { margin-bottom: .45rem; font-size: .92rem; } .buy-box ul i { color: var(--gold); margin-right: .5rem; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.6rem; margin-bottom: 1.5rem; }
.panel h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: .6rem; break-inside: avoid; }
.check-list li::before { content: "\F26B"; font-family: bootstrap-icons; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 767px) { .check-list { columns: 1; } }
.syllabus .accordion-button { font-size: .98rem; }
.syllabus .lesson-row { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.syllabus .lesson-row:last-child { border-bottom: 0; }
.syllabus .lesson-row i { color: var(--gold); }
.rating-big { font-family: var(--font-display); font-size: 3.5rem; color: var(--ink); line-height: 1; }

/* ---------- avatar ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { display: inline-grid; place-items: center; background: var(--ink); color: var(--gold-2); font-weight: 700; border-radius: 50%; font-family: var(--font-body); }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: radial-gradient(700px 400px at 20% 10%, rgba(226,185,97,.28), transparent 60%), var(--ink); color: #D9D5C8; padding: 4rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 2.4rem; }
.auth-side .emblem { position: absolute; right: -80px; bottom: -60px; width: 380px; opacity: .14; }
.auth-form { padding: 3.5rem; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.auth-card { width: 100%; max-width: 440px; }
@media (max-width: 991px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-form { padding: 2rem 1rem; } }

/* ---------- portal shell ---------- */
.portal { display: flex; min-height: 100vh; background: #F6F3EC; }
.sidebar { width: 268px; background: var(--ink); color: #A9A598; flex: none; position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 1040; transition: transform .25s; }
.sidebar .brand { padding: 1.3rem 1.4rem; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar .brand img { height: 34px; }
.sidebar .brand span { color: var(--gold-2); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; border: 1px solid rgba(226,185,97,.35); border-radius: 999px; padding: .12rem .5rem; }
.sidebar .nav-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #6E6B62; padding: 1.2rem 1.5rem .4rem; font-weight: 700; }
.sidebar a.side-link { display: flex; align-items: center; gap: .75rem; color: #C8C4B6; padding: .6rem 1.5rem; margin: 1px .7rem; border-radius: 12px; font-size: .92rem; font-weight: 500; }
.sidebar a.side-link i { font-size: 1.05rem; width: 20px; color: #8F8B80; }
.sidebar a.side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar a.side-link.active { background: linear-gradient(90deg, rgba(226,185,97,.2), rgba(226,185,97,.04)); color: var(--gold-3); }
.sidebar a.side-link.active i { color: var(--gold-2); }
.portal-main { flex: 1; margin-left: 268px; min-width: 0; }
.portal-top { background: #fff; border-bottom: 1px solid var(--line); padding: .8rem 1.6rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1030; }
.portal-content { padding: 1.8rem; }
.portal-content h1.page-title { font-size: 1.75rem; margin-bottom: .2rem; }
@media (max-width: 991px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: none; box-shadow: var(--shadow-lg); } .portal-main { margin-left: 0; } .portal-content { padding: 1.1rem; } }
.kpi { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.3rem; border: 1px solid var(--line); height: 100%; position: relative; overflow: hidden; }
.kpi .lbl { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .val { font-family: var(--font-display); font-size: 1.85rem; color: var(--ink); font-weight: 650; line-height: 1.2; margin-top: .25rem; }
.kpi .ic { position: absolute; right: 1rem; top: 1rem; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: #A9822F; display: grid; place-items: center; font-size: 1.2rem; }
.kpi.dark { background: var(--ink); border-color: var(--ink); } .kpi.dark .val { color: #fff; } .kpi.dark .ic { background: rgba(226,185,97,.15); color: var(--gold-2); }
.card-x { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.card-x .card-x-head { padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card-x .card-x-head h5 { margin: 0; font-size: 1.02rem; }
.card-x .card-x-body { padding: 1.3rem; }
.table-x { margin: 0; font-size: .9rem; }
.table-x th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: #FBF9F4; border-bottom: 1px solid var(--line); white-space: nowrap; padding: .8rem 1rem; }
.table-x td { padding: .8rem 1rem; vertical-align: middle; border-color: var(--line); }
.table-x tbody tr:hover { background: #FDFBF6; }
.thumb-sm { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; }
.status-badge { font-weight: 600; font-size: .72rem; padding: .35em .75em; }
.text-bg-warning { color: #5a4300 !important; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.6rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.progress { height: 8px; border-radius: 99px; background: #EEE8DA; }
.progress-bar { background: var(--gold-grad); }
.sortable-ghost { opacity: .4; background: var(--gold-soft); }
.drag-handle { cursor: grab; color: var(--muted); }
.section-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .6rem; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 10px; }
.chart-bars .bar { flex: 1; background: var(--gold-grad); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; transition: opacity .2s; }
.chart-bars .bar:hover { opacity: .8; }
.chart-bars .bar span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: .66rem; color: var(--muted); white-space: nowrap; }
.chart-bars .bar b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .66rem; color: var(--ink); font-weight: 600; white-space: nowrap; opacity: 0; }
.chart-bars .bar:hover b { opacity: 1; }
.secret-mask { font-family: ui-monospace, monospace; letter-spacing: .05em; }

/* ---------- learning player ---------- */
.player-wrap { display: grid; grid-template-columns: 1fr 380px; min-height: calc(100vh - 64px); background: #0E0F14; }
.player-top { background: var(--ink); color: #fff; padding: .7rem 1.2rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 20; }
.player-top img { height: 30px; }
.player-main { background: #fff; overflow: auto; }
.player-stage { background: #000; aspect-ratio: 16/9; max-height: 72vh; width: 100%; }
.player-stage video, .player-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-body { padding: 1.8rem; max-width: 980px; }
.player-side { background: #fff; border-left: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - 54px); position: sticky; top: 54px; }
.player-side .ch-head { padding: .9rem 1.1rem; background: #FBF9F4; font-weight: 700; font-size: .9rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.player-side a.ls { display: flex; gap: .7rem; padding: .7rem 1.1rem; border-bottom: 1px solid #F3EFE6; color: var(--text); font-size: .88rem; align-items: flex-start; }
.player-side a.ls:hover { background: #FDFBF6; }
.player-side a.ls.active { background: var(--gold-soft); border-left: 3px solid var(--gold); }
.player-side a.ls .st { font-size: 1.05rem; color: #CFC8B6; } .player-side a.ls .st.done { color: var(--success); }
.lesson-content img { max-width: 100%; border-radius: 12px; }
.doc-frame { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 991px) { .player-wrap { grid-template-columns: 1fr; } .player-side { position: static; max-height: none; border-left: 0; } }

/* ---------- quiz ---------- */
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.q-opt { display: flex; gap: .8rem; align-items: center; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: .5rem; cursor: pointer; transition: all .15s; }
.q-opt:hover { border-color: var(--gold-2); background: var(--gold-soft); }
.q-opt input { accent-color: var(--gold); width: 18px; height: 18px; }
.q-opt.correct { border-color: var(--success); background: #EAF6EF; } .q-opt.wrong { border-color: var(--danger); background: #FBECEA; }
.timer-pill { background: var(--ink); color: var(--gold-2); border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- certificate ---------- */
.cert { width: 1123px; height: 794px; background: #fff; position: relative; margin: 0 auto; font-family: var(--font-body); color: var(--ink); overflow: hidden; }
.cert .frame { position: absolute; inset: 22px; border: 2px solid var(--acc, #C9A14A); }
.cert .frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--acc, #C9A14A); opacity: .5; }
.cert .corner { position: absolute; width: 180px; height: 180px; background: var(--ink); }
.cert .c1 { top: -90px; left: -90px; transform: rotate(45deg); } .cert .c2 { bottom: -90px; right: -90px; transform: rotate(45deg); }
.cert .inner { position: absolute; inset: 60px 90px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cert .logo { height: 62px; }
.cert .heading { font-family: var(--font-display); font-size: 46px; margin-top: 14px; letter-spacing: .02em; }
.cert .name { font-family: var(--font-display); font-style: italic; font-size: 52px; color: #8E6C22; border-bottom: 1px solid #E5DCC5; padding: 0 40px 6px; margin: 10px 0 12px; }
.cert .course { font-size: 26px; font-weight: 700; margin-top: 6px; }
.cert .foot { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; }
.cert .sig { text-align: center; min-width: 210px; }
.cert .sig .line { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 6px; font-weight: 700; font-size: 14px; }
.cert .sig img { height: 54px; }
.cert .seal { width: 112px; height: 112px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--acc, #C9A14A); }
.cert .seal img { width: 70%; }
.cert .qr { width: 96px; height: 96px; }
@media print { body { background: #fff !important; } .no-print { display: none !important; } .cert { box-shadow: none !important; } @page { size: A4 landscape; margin: 0; } }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.toast-stack { position: fixed; top: 86px; right: 18px; z-index: 2000; max-width: 380px; }
.alert { border-radius: 14px; border: 0; }
.alert-success { background: #E8F5EE; color: #1D6B40; } .alert-danger { background: #FBECEA; color: #8E2A1F; } .alert-warning { background: #FFF6DE; color: #6B5100; } .alert-info { background: #EAF2FB; color: #1E4D7B; }
.pagination .page-link { border-radius: 10px !important; margin: 0 3px; color: var(--ink); border-color: var(--line); }
.pagination .active > .page-link { background: var(--ink); border-color: var(--ink); color: var(--gold-2); }
.filter-chip { display: inline-flex; padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; font-weight: 600; margin: 0 .35rem .5rem 0; }
.filter-chip.active, .filter-chip:hover { background: var(--ink); color: var(--gold-3); border-color: var(--ink); }
.prose { font-size: 1.02rem; line-height: 1.75; } .prose h2, .prose h3 { margin-top: 1.6rem; } .prose img { max-width: 100%; border-radius: 12px; }
.ql-container { min-height: 260px; font-size: 1rem; border-radius: 0 0 12px 12px; } .ql-toolbar { border-radius: 12px 12px 0 0; background: #FBF9F4; }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 1000; border: 0; }
.back-top.show { opacity: 1; pointer-events: auto; }
.maint { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: #D9D5C8; text-align: center; padding: 2rem; }
@media (min-width: 992px) { .buy-col { margin-top: -270px; position: relative; z-index: 3; } }

/* ---------- Pay Later ---------- */
.paylater-box { border: 1px dashed var(--gold, #C9A14A); background: var(--cream, #FBF7EE); border-radius: 14px; padding: .9rem 1rem; }
.paylater-box.blocked { border: 1px solid #e7b4b4; background: #fff5f5; color: #7a1f1f; }
.course-locked { position: relative; }
.course-locked::after { content: ""; position: absolute; inset: 0; background: rgba(20,21,28,.55); border-radius: inherit; }
.course-locked .lock-tag { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #fff; color: #7a1f1f; border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .85rem; white-space: nowrap; }

/* =====================================================================
   v3 — payment method picker, UPI QR checkout, approvals, auth extras
   ===================================================================== */
.method-card { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; margin: 0; }
.method-card:hover { border-color: var(--gold-3); }
.method-card input { margin-top: .3rem; accent-color: var(--gold); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.method-card:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(201,161,74,.15); }
.pay-logos { display: flex; flex-wrap: wrap; gap: .35rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.pay-logos > * { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .1rem .45rem; }
.pay-logos i { font-size: .85rem; }

.qr-panel { border: 1.5px solid var(--gold-3); background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.qr-box { width: 236px; max-width: 100%; aspect-ratio: 1; padding: 12px; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; object-fit: contain; border-radius: 8px; }
.qr-box > div { width: 100%; }
.qr-amount-tag { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: .35rem 1rem; font-size: .9rem; }
.qr-amount-tag strong { color: var(--gold-2); }
.upi-chip { display: flex; align-items: center; justify-content: center; gap: .5rem; width: fit-content; max-width: 100%; border: 1px dashed var(--gold); background: #fff; border-radius: 10px; padding: .35rem .8rem; font-weight: 700; font-size: .9rem; color: var(--ink); cursor: pointer; }
.upi-chip span { overflow: hidden; text-overflow: ellipsis; }
.upi-chip i { color: #A9822F; }
.step-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.drop-zone { display: block; position: relative; border: 2px dashed var(--gold-3); border-radius: 14px; background: #fff; padding: 1.1rem; cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 0; }
.drop-zone:hover, .drop-zone.has-file { border-color: var(--gold); background: var(--gold-soft); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; color: var(--muted); }
.dz-empty i { font-size: 2rem; color: var(--gold); }
.dz-empty strong { color: var(--ink); }
.dz-file { display: flex; align-items: center; gap: .8rem; }
.dz-file img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.dz-file > span { display: flex; flex-direction: column; min-width: 0; }
.dz-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-file small { color: var(--muted); }
.qr-steps { display: grid; gap: .5rem; background: var(--cream); border-radius: 12px; padding: .9rem 1rem; }
.qr-steps i { color: var(--gold); margin-right: .35rem; }

/* payment status */
.status-orb { width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2.4rem; }
.status-orb.warning { background: #FFF4D6; color: #B7791F; box-shadow: 0 0 0 10px #FFFAEB; }
.status-orb.danger { background: #FDE8E6; color: var(--danger); box-shadow: 0 0 0 10px #FFF5F4; }
.status-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; position: relative; }
.status-track > div { display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .82rem; color: var(--muted); position: relative; }
.status-track > div > i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F1EEE6; font-size: 1.05rem; z-index: 1; }
.status-track > div:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 2px; background: var(--line); }
.status-track .done > i { background: var(--success); color: #fff; }
.status-track .done::after { background: var(--success) !important; }
.status-track .now > i { background: var(--gold); color: var(--ink); animation: tuspPulse 1.8s infinite; }
.status-track span { font-weight: 600; color: var(--ink); }
@keyframes tuspPulse { 0% { box-shadow: 0 0 0 0 rgba(201,161,74,.55); } 70% { box-shadow: 0 0 0 12px rgba(201,161,74,0); } 100% { box-shadow: 0 0 0 0 rgba(201,161,74,0); } }

/* admin: approvals */
.qr-review { overflow: hidden; }
.qr-review.waiting { border-left: 4px solid var(--gold); }
.qr-proof { background: #F6F3EC; min-height: 220px; }
.qr-proof a, .qr-proof .none { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 220px; position: relative; color: var(--muted); text-decoration: none; gap: .3rem; }
.qr-proof img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; padding: .6rem; }
.qr-proof .zoom { position: absolute; bottom: .6rem; right: .6rem; background: rgba(20,21,28,.75); color: #fff; font-size: .75rem; border-radius: 999px; padding: .2rem .6rem; }
.qr-proof .pdf i, .qr-proof .none i { font-size: 2.4rem; color: var(--gold); }
.qr-amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 650; color: var(--ink); line-height: 1.1; }
code.utr { cursor: pointer; background: var(--gold-soft); color: var(--ink); padding: .15rem .45rem; border-radius: 6px; }
.qr-thumb { width: 120px; height: 120px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.qr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.qr-thumb i { font-size: 3rem; color: var(--line); }
.qr-pay-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.qr-pay-head { text-align: center; font-weight: 600; }
.qr-pay-head i { color: var(--gold); }

/* auth extras */
.auth-icon { width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; background: var(--gold-soft); color: #A9822F; display: grid; place-items: center; font-size: 2.1rem; }
.auth-icon.danger { background: #FDE8E6; color: var(--danger); }
.pw-meter { height: 6px; background: #EFEBE2; border-radius: 99px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; background: #ccc; }
.pw-meter .weak { background: var(--danger); } .pw-meter .ok { background: #E0A526; } .pw-meter .good { background: #7FB24A; } .pw-meter .strong { background: var(--success); }
.text-uppercase::placeholder { text-transform: none; }

/* =====================================================================
   v4 — homepage image slider, menu control, Pay Later deadlines
   ===================================================================== */
.hero-slider { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-slider .carousel-item { position: relative; overflow: hidden; }
.hero-slider.h-small .carousel-item { min-height: 420px; }
.hero-slider.h-medium .carousel-item { min-height: 560px; }
.hero-slider.h-large .carousel-item { min-height: 680px; }
.hero-slider.h-full .carousel-item { min-height: calc(100vh - 110px); min-height: calc(100svh - 110px); }
.hs-bg, .hs-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-bg img { object-fit: cover; object-position: center; }
.kenburns .carousel-item.active .hs-bg img { animation: hsZoom 14s ease-out both; }
@keyframes hsZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hs-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,16,calc(var(--ov) + .25)) 0%, rgba(10,11,16,var(--ov)) 45%, rgba(10,11,16,calc(var(--ov) * .45)) 100%); }
.align-center .hs-shade { background: radial-gradient(ellipse at center, rgba(10,11,16,calc(var(--ov) + .15)), rgba(10,11,16,calc(var(--ov) * .7))); }
.align-right .hs-shade { background: linear-gradient(270deg, rgba(10,11,16,calc(var(--ov) + .25)) 0%, rgba(10,11,16,var(--ov)) 45%, rgba(10,11,16,calc(var(--ov) * .45)) 100%); }
.theme-dark .hs-shade { background: linear-gradient(90deg, rgba(255,255,255,calc(var(--ov) + .2)), rgba(255,255,255,calc(var(--ov) * .4))); }
.hs-content { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; padding-top: 3.5rem; padding-bottom: 7.5rem; }
.hs-text { max-width: 640px; width: 100%; min-width: 0; }
.align-center .hs-content { justify-content: center; text-align: center; }
.align-center .hs-text { max-width: 780px; }
.align-center .hs-btns, .align-center .hero-search { justify-content: center; margin-left: auto; margin-right: auto; }
.align-right .hs-content { justify-content: flex-end; }
.hs-title { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.07; margin: .9rem 0 1.1rem; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hs-title em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slider .lead { color: rgba(255,255,255,.86); font-size: 1.12rem; margin-bottom: 1.6rem; }
.hero-slider .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(226,185,97,.16); color: var(--gold-2); border: 1px solid rgba(226,185,97,.38); padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); }
.theme-dark .hs-title, .theme-dark .lead { color: var(--ink); text-shadow: none; }
.theme-dark .lead { color: #3b3b45; }
.theme-dark .eyebrow { color: #8a6a22; background: rgba(255,255,255,.7); }
.theme-dark .btn-outline-light-gold { color: var(--ink); border-color: var(--ink); }
/* staggered text entrance */
.hero-slider .carousel-item .hs-text > * { opacity: 0; transform: translateY(18px); }
.hero-slider .carousel-item.active .hs-text > * { animation: hsUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-slider .carousel-item.active .hs-text > *:nth-child(2) { animation-delay: .1s; } .hero-slider .carousel-item.active .hs-text > *:nth-child(3) { animation-delay: .2s; }
.hero-slider .carousel-item.active .hs-text > *:nth-child(4) { animation-delay: .3s; } .hero-slider .carousel-item.active .hs-text > *:nth-child(5) { animation-delay: .4s; }
@keyframes hsUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slider .carousel-item .hs-text > * { opacity: 1; transform: none; animation: none !important; } .kenburns .carousel-item.active .hs-bg img { animation: none; } }
.hs-arrow { width: 52px; height: 52px; top: 50%; transform: translateY(-50%); bottom: auto; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s, background .2s; margin: 0 1.2rem; font-size: 1.3rem; color: #fff; }
.hero-slider:hover .hs-arrow, .hs-arrow:focus-visible { opacity: 1; }
.hs-arrow:hover { background: var(--gold); color: var(--ink); }
.hs-dots-wrap { position: absolute; left: 0; right: 0; bottom: 4.6rem; z-index: 3; pointer-events: none; }
.hs-dots.carousel-indicators { position: static; margin: 0; padding: 0; justify-content: flex-start; gap: .5rem; pointer-events: auto; }
.align-center .hs-dots.carousel-indicators { justify-content: center; }
.hs-dots.carousel-indicators [data-bs-target] { width: 54px; height: 4px; border: 0; margin: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.28); opacity: 1; text-indent: 0; overflow: hidden; position: relative; }
.hs-dots [data-bs-target] span { position: absolute; inset: 0; width: 0; background: var(--gold-2); border-radius: 4px; }
.hs-dots [data-bs-target].active span { animation: hsBar var(--hs-ms) linear forwards; }
.hs-dots[style*="--hs-ms:0ms"] [data-bs-target].active span { animation: none; width: 100%; }
.hero-slider:hover .hs-dots .active span { animation-play-state: paused; }
@keyframes hsBar { to { width: 100%; } }
@media (max-width: 767px) {
  .hero-slider.h-small .carousel-item, .hero-slider.h-medium .carousel-item, .hero-slider.h-large .carousel-item { min-height: 520px; }
  .hs-shade, .align-right .hs-shade { background: linear-gradient(180deg, rgba(10,11,16,calc(var(--ov) * .6)), rgba(10,11,16,calc(var(--ov) + .3))); }
  .hs-content { align-items: flex-end; padding-bottom: 7rem; }
  .align-right .hs-content { justify-content: flex-start; }
  .hs-dots-wrap { bottom: 4.4rem; }
  .hs-dots.carousel-indicators [data-bs-target] { width: 34px; }
}

/* super/slider.php */
.slide-preview { position: relative; border-radius: 18px; overflow: hidden; min-height: 320px; display: flex; align-items: center; padding: 2rem 2.4rem; color: #fff; box-shadow: var(--shadow-sm); }
.slide-preview .sp-bg, .slide-thumb { background-size: cover; background-position: center; }
.slide-preview .sp-bg { position: absolute; inset: 0; }
.sp-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,16,calc(var(--ov) + .25)), rgba(10,11,16,calc(var(--ov) * .45))); }
.align-center .sp-overlay { background: rgba(10,11,16,var(--ov)); }
.align-right .sp-overlay { background: linear-gradient(270deg, rgba(10,11,16,calc(var(--ov) + .25)), rgba(10,11,16,calc(var(--ov) * .45))); }
.theme-dark .sp-overlay { background: linear-gradient(90deg, rgba(255,255,255,calc(var(--ov) + .2)), rgba(255,255,255,calc(var(--ov) * .4))); }
.sp-text { position: relative; max-width: 560px; }
.slide-preview.align-center { justify-content: center; text-align: center; } .slide-preview.align-center .sp-btns { justify-content: center; }
.slide-preview.align-right { justify-content: flex-end; }
.sp-text h2 { color: inherit; font-size: clamp(1.6rem, 3vw, 2.5rem); margin: .6rem 0; line-height: 1.1; }
.sp-text h2 em { font-style: italic; color: var(--gold-2); }
.sp-text p { opacity: .85; margin-bottom: 1rem; }
.sp-text .eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--gold-2); border: 1px solid rgba(226,185,97,.4); background: rgba(226,185,97,.15); border-radius: 999px; padding: .2rem .7rem; }
.slide-preview.theme-dark, .slide-thumb.theme-dark { color: var(--ink); }
.stock-pick { display: flex; gap: .7rem; flex-wrap: wrap; }
.stock-pick label { position: relative; cursor: pointer; }
.stock-pick input { position: absolute; opacity: 0; }
.stock-pick img { width: 130px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; display: block; }
.stock-pick input:checked + img { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,74,.25); }
.stock-pick span { display: block; font-size: .75rem; color: var(--muted); text-align: center; margin-top: .2rem; }
.slide-row { display: flex; overflow: hidden; }
.slide-row.is-off .slide-thumb { filter: grayscale(.8) brightness(.9); }
.slide-thumb { position: relative; width: 260px; flex-shrink: 0; min-height: 150px; display: flex; align-items: center; padding: 1rem; color: #fff; }
.slide-thumb.align-center { justify-content: center; text-align: center; } .slide-thumb.align-right { justify-content: flex-end; text-align: right; }
.st-text { position: relative; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; max-width: 85%; }
.st-text em { color: var(--gold-2); }
.st-badge { position: absolute; top: .6rem; left: .6rem; }
@media (max-width: 576px) { .slide-row { flex-direction: column; } .slide-thumb { width: 100%; } }

/* admin/menu-control.php */
.role-tabs .nav-link { border-radius: 999px; color: var(--ink); font-weight: 600; padding: .45rem 1.1rem; }
.role-tabs .nav-link.active { background: var(--ink); color: #fff; }
.menu-group-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 1rem 1.2rem .4rem; }
.menu-list { list-style: none; margin: 0; padding: 0 .8rem .6rem; }
.menu-row { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .45rem; background: #fff; transition: opacity .15s, background .15s; }
.menu-row.is-off { background: #F7F5F0; } .menu-row.is-off .mi, .menu-row.is-off .menu-label { opacity: .5; }
.menu-row.dragging { opacity: .4; border-style: dashed; }
.menu-row .grip { cursor: grab; color: var(--muted); font-size: 1.1rem; }
.menu-row .mi { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-soft); color: #A9822F; display: grid; place-items: center; flex-shrink: 0; }
.menu-row .menu-label { font-weight: 600; max-width: 280px; }
.menu-row .move { display: flex; gap: 2px; }
.menu-row .move .btn { padding: .1rem .35rem; }
.custom-link { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.menu-preview { background: var(--ink); border-radius: 18px; padding: 1.1rem .8rem 1.4rem; position: sticky; top: 90px; }
.mp-brand { display: flex; align-items: center; gap: .5rem; color: #fff; padding: 0 .5rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .4rem; }
.mp-brand img { height: 30px; } .mp-brand span { margin-left: auto; font-size: .7rem; color: var(--gold-2); border: 1px solid rgba(226,185,97,.4); border-radius: 999px; padding: .05rem .5rem; }
.mp-label { color: rgba(255,255,255,.4); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .9rem .6rem .3rem; }
.mp-link { color: rgba(255,255,255,.78); font-size: .88rem; padding: .48rem .7rem; border-radius: 10px; display: flex; align-items: center; gap: .6rem; }
.mp-link.active { background: rgba(226,185,97,.14); color: var(--gold-2); }
.min-w-0 { min-width: 0; }

/* Pay Later deadline per course */
.pl-rule { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.pl-rule-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.pl-rule-body { padding: 0 1.2rem 1.1rem; }
.pl-rule.is-off .pl-rule-body { opacity: .45; pointer-events: none; }
.pl-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.pl-opt { display: flex; gap: .6rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem; cursor: pointer; margin: 0; }
.pl-opt input[type=radio] { margin-top: .25rem; accent-color: var(--gold); }
.pl-opt:has(input[type=radio]:checked) { border-color: var(--gold); background: var(--gold-soft); }
.pl-opt strong { display: block; font-size: .9rem; } .pl-opt small { color: var(--muted); line-height: 2.1; }
@media (max-width: 575px) { .hs-btns .btn-lg { padding: .6rem 1.1rem; font-size: 1rem; } .hero-slider .lead { font-size: 1rem; } }
@media (max-width: 575px) { footer .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* =====================================================================
   v5 — messages, change password, bulk actions
   ===================================================================== */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .6rem; }
.aud-card { margin: 0; cursor: pointer; }
.aud-card input { position: absolute; opacity: 0; }
.aud-card > span { display: flex; flex-direction: column; gap: .15rem; height: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem .9rem; background: #fff; transition: border-color .15s, background .15s; }
.aud-card i { font-size: 1.3rem; color: var(--gold); margin-bottom: .2rem; }
.aud-card strong { font-size: .9rem; } .aud-card small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.aud-card:hover > span { border-color: var(--gold-3); }
.aud-card input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(201,161,74,.15); }
.aud-card input:focus-visible + span { outline: 2px solid var(--gold); }
.aud-count { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: #fff; border-radius: 999px; padding: .4rem 1rem; font-size: .9rem; }
.aud-count i { color: var(--gold-2); } .aud-count.zero { background: #F1EEE6; color: var(--muted); }
.people-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 20; overflow: hidden; }
.people-results button { display: flex; gap: .5rem; align-items: baseline; width: 100%; border: 0; background: none; padding: .55rem .8rem; text-align: left; font-size: .88rem; }
.people-results button:hover { background: var(--gold-soft); }
.people-results span { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-results em { margin-left: auto; font-style: normal; font-size: .72rem; color: #A9822F; }
.people-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pchip { display: inline-flex; align-items: center; gap: .35rem; background: var(--gold-soft); border: 1px solid var(--gold-3); border-radius: 999px; padding: .2rem .3rem .2rem .75rem; font-size: .85rem; font-weight: 600; }
.pchip small { color: var(--muted); font-weight: 400; }
.pchip button { border: 0; background: rgba(0,0,0,.06); width: 22px; height: 22px; border-radius: 50%; line-height: 1; }
.mail-preview { background: #f4f1ea; border-radius: 18px; padding: 1rem; position: sticky; top: 90px; }
.mail-preview .mp-head { background: var(--ink); border-radius: 12px 12px 0 0; padding: .9rem 1.2rem; border-bottom: 3px solid var(--gold); }
.mail-preview .mp-head img { height: 30px; }
.mail-preview .mp-body { background: #fff; padding: 1.3rem 1.3rem .8rem; }
.mail-preview h4 { font-size: 1.15rem; margin-bottom: .8rem; }
.mail-preview .mp-foot { background: #fff; border-top: 1px solid #efeae0; border-radius: 0 0 12px 12px; padding: .7rem 1.3rem; font-size: .75rem; color: var(--muted); }
.mp-text { font-size: .93rem; line-height: 1.65; word-wrap: break-word; } .mp-text p { margin-bottom: .8rem; } .mp-text a { color: #9a7a2e; }
.inbox-list a { display: flex; gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.inbox-list a:last-child { border-bottom: 0; }
.inbox-list a i { color: var(--muted); margin-top: .15rem; }
.inbox-list a.unread strong { font-weight: 700; } .inbox-list a.unread i { color: var(--gold); }
.inbox-list a.active { background: var(--gold-soft); }
.inbox-list a small { color: var(--muted); }
.msg-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.msg-avatar img { width: 28px; }
.bulk-bar { position: sticky; top: 74px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--ink); color: #fff; border-radius: 14px; padding: .6rem 1rem; margin-bottom: .8rem; box-shadow: var(--shadow-lg); }
.pw-rules li { color: var(--muted); margin-bottom: .15rem; } .pw-rules li.ok { color: var(--success); }

/* =====================================================================
   v6 — points, levels & pathways, new student dashboard
   ===================================================================== */
/* level badges */
.lv-badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.lv-basic { background: #E7F5EC; color: #1F7A45; } .lv-mid { background: #E8F0FB; color: #2559A8; } .lv-adv { background: #F6E9FB; color: #7B2FA1; } .lv-all { background: #F1EEE6; color: #6b6b75; }

/* rings */
.ring, .lv-ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); position: relative; }
.ring::before, .lv-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink); }
.ring span, .lv-ring span { position: relative; font-weight: 800; color: #fff; font-size: 1rem; }
.lv-ring { width: 58px; height: 58px; background: conic-gradient(var(--gold) calc(var(--p) * 1%), #EFEBE2 0); }
.lv-ring::before { inset: 6px; background: #fff; } .lv-ring span { color: var(--ink); font-size: .82rem; }
.lv-ring.sm { width: 50px; height: 50px; } .lv-ring.sm span { font-size: .76rem; }

/* dashboard stat tiles */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ds-tile { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.ds-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); }
.ds-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.ds-dark .ds-label { color: rgba(255,255,255,.6); } .ds-dark .ds-sub { color: var(--gold-2); font-weight: 600; }
.ds-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: #A9822F; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.ds-ic.gem { background: linear-gradient(135deg, #FFF3D6, #F5DFA8); }
.ds-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.ds-val { font-family: var(--font-display); font-size: 1.7rem; font-weight: 650; line-height: 1.1; }
.ds-sub { font-size: .85rem; }
.ds-chip { display: inline-block; margin-top: .25rem; background: #E7F5EC; color: #1F7A45; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; }
.mini-bar { height: 6px; background: #EFEBE2; border-radius: 99px; overflow: hidden; margin-top: .4rem; }
.mini-bar span { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }
.mini-bar.light { background: rgba(255,255,255,.15); }
@media (max-width: 1199px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) {
  .dash-stats { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .ds-tile { flex-direction: column; justify-content: center; text-align: center; gap: .3rem; padding: .75rem .4rem; }
  .ds-tile .ds-ic { width: 34px; height: 34px; font-size: 1rem; border-radius: 10px; }
  .ds-tile .ds-val { font-size: 1.35rem; } .ds-tile .ds-label { font-size: .7rem; } .ds-tile .ds-note, .ds-tile .mini-bar { display: none; }
  .ds-tile .ds-chip { font-size: .62rem; padding: .05rem .4rem; }
  .ds-dark { grid-column: 1 / -1; flex-direction: row; text-align: left; gap: 1rem; padding: 1rem; }
}

.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.sec-head h5 { margin: 0; } .sec-head a { font-size: .85rem; }
.learn-row { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; margin-bottom: .6rem; }
.learn-row img { width: 92px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.lr-bar { height: 7px; background: #EFEBE2; border-radius: 99px; overflow: hidden; }
.lr-bar span { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }
@media (max-width: 575px) {
  .learn-row { display: grid; grid-template-columns: 64px 1fr; gap: .4rem .8rem; }
  .learn-row img { width: 64px; align-self: start; }
  .learn-row .btn { grid-column: 1 / -1; width: 100%; }
}

.next-card { background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; }
.next-card.open { border: 1.5px solid var(--gold); background: linear-gradient(160deg, #fff 40%, var(--gold-soft)); }
.nc-path { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; }
.nc-state { font-size: .75rem; font-weight: 700; color: var(--muted); }
.next-card.open .nc-state { color: #1F7A45; }
.nc-title { font-weight: 700; margin: .6rem 0 .4rem; line-height: 1.3; }
.nc-bar { position: relative; height: 10px; background: #EFEBE2; border-radius: 99px; }
.nc-bar span { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }

.rec-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; height: 100%; transition: transform .15s, box-shadow .15s; }
.rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--ink); }
.rc-img { position: relative; } .rc-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.rc-why { position: absolute; left: .6rem; bottom: .6rem; right: .6rem; background: rgba(20,21,28,.78); color: #fff; font-size: .72rem; border-radius: 8px; padding: .25rem .55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.rc-title { font-weight: 700; font-size: .93rem; line-height: 1.3; margin: .45rem 0 .6rem; min-height: 2.6em; }

.points-card { background: radial-gradient(circle at 85% 0%, rgba(226,185,97,.35), transparent 55%), var(--ink); color: #fff; border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.points-card .small-caps { color: var(--gold-2); } .points-card > div > .bi-gem { color: var(--gold-2); font-size: 1.3rem; }
.pc-val { font-family: var(--font-display); font-size: 2.8rem; font-weight: 650; line-height: 1; margin: .5rem 0 .6rem; }
.pc-earn { display: flex; gap: .5rem; margin: 1rem 0 .6rem; }
.pc-earn span { flex: 1; background: rgba(255,255,255,.08); border-radius: 10px; padding: .45rem; text-align: center; font-weight: 700; font-size: .85rem; }
.pc-earn i { display: block; color: var(--gold-2); font-size: 1rem; margin-bottom: .1rem; }
.note-row { display: block; padding: .7rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.note-row:last-child { border-bottom: 0; } .note-row.unread { background: var(--cream); }

/* my points page */
.points-hero { background: radial-gradient(circle at 90% 10%, rgba(226,185,97,.4), transparent 50%), var(--ink); color: #fff; border-radius: 20px; padding: 2rem; }
.ph-label { color: var(--gold-2); font-weight: 600; font-size: .85rem; }
.ph-value { font-family: var(--font-display); font-size: 3.4rem; line-height: 1.05; font-weight: 650; } .ph-value i { color: var(--gold-2); font-size: 2.4rem; }
.ph-deal { background: var(--gold-grad); color: var(--ink); border-radius: 16px; padding: .6rem 1rem; text-align: center; line-height: 1.1; }
.ph-deal strong { display: block; font-size: 1.6rem; } .ph-deal span { font-size: .75rem; font-weight: 700; }
.ph-bar { height: 10px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; } .ph-bar span { display: block; height: 100%; background: var(--gold-grad); }
.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.earn-tile { display: flex; flex-direction: column; align-items: center; gap: .15rem; background: var(--cream); border-radius: 14px; padding: .9rem .5rem; text-align: center; margin: 0; }
.earn-tile i { font-size: 1.4rem; color: var(--gold); } .earn-tile strong { font-size: 1.3rem; } .earn-tile span { font-size: .75rem; color: var(--muted); }
.earn-tile.edit input { max-width: 80px; font-weight: 700; }
.redeem-rule { background: var(--gold-soft); border-radius: 12px; padding: .7rem 1rem; } .redeem-rule i { color: #A9822F; }
.redeem-edit input { width: 76px; text-align: center; font-weight: 700; }
.rule-example { background: var(--cream); border-radius: 12px; padding: .7rem 1rem; font-size: .88rem; } .rule-example i { color: var(--gold); }
.pt-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.2rem; border-bottom: 1px solid var(--line); }
.pt-row:last-child { border-bottom: 0; }
.pt-ic { width: 36px; height: 36px; border-radius: 10px; background: #E7F5EC; color: #1F7A45; display: grid; place-items: center; flex-shrink: 0; }
.pt-ic.neg { background: var(--gold-soft); color: #A9822F; }
.pt-row .rank { width: 22px; text-align: center; font-weight: 800; color: var(--muted); }

/* checkout points */
.points-use { display: flex; align-items: center; gap: .7rem; border: 1.5px solid var(--gold-3); background: var(--gold-soft); border-radius: 14px; padding: .65rem .8rem; cursor: pointer; }
.pu-gem { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: #A9822F; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }

/* course page: level lock + path */
.level-lock { text-align: center; border: 1.5px dashed var(--line); border-radius: 16px; padding: 1.2rem; background: #FAF8F3; }
.ll-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; margin: 0 auto .6rem; font-size: 1.3rem; }
.ll-bar { height: 8px; background: #EFEBE2; border-radius: 99px; overflow: hidden; } .ll-bar span { display: block; height: 100%; background: var(--gold-grad); }
.level-path { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; background: var(--cream); border-radius: 12px; padding: .6rem .7rem; }
.lp-step { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); text-decoration: none; max-width: 100%; }
.lp-step.now { color: var(--ink); font-weight: 700; } .lp-arrow { color: var(--gold); font-size: .7rem; }

/* levels & passing */
.path-row { display: flex; align-items: center; flex-wrap: nowrap; gap: .5rem; padding: .4rem 0 .6rem; overflow-x: auto; }
.path-row + .path-row { border-top: 1px dashed var(--line); padding-top: .9rem; margin-top: .5rem; }
.path-node { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: .6rem .8rem; color: var(--ink); text-decoration: none; width: 190px; flex-shrink: 0; }
.path-node:hover { border-color: var(--gold); color: var(--ink); } .path-node strong { font-size: .85rem; line-height: 1.25; }
.path-link { display: flex; flex-direction: column; align-items: center; color: var(--gold); font-size: .75rem; font-weight: 700; min-width: 54px; position: relative; }
.path-link::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 2px dashed var(--gold-3); z-index: 0; }
.path-link i, .path-link span { position: relative; background: var(--cream); padding: 0 .3rem; }
.card-x .path-link i, .card-x .path-link span { background: #fff; }
.lv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; scroll-margin-top: 90px; }
.lv-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,74,.2); }
.lv-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.lv-head img { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.lv-stats { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--muted); margin-top: .2rem; } .lv-stats i { color: var(--gold); }
.lv-body { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: .9rem; padding: 1rem 1.2rem 0; align-items: stretch; }
.lv-field > label:first-child { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .45rem; }
.lv-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.lv-pills label { margin: 0; cursor: pointer; } .lv-pills input { position: absolute; opacity: 0; }
.lv-pills span { display: inline-block; padding: .3rem .7rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 600; }
.lv-pills input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.lv-num { width: 64px; text-align: center; font-weight: 700; }
.lv-save { align-self: end; }
.lv-unlock .form-range { flex: 1; }
@media (max-width: 1199px) { .lv-body { grid-template-columns: 1fr 1fr; } .lv-body .lv-box:last-child { grid-column: 1 / -1; } }
@media (max-width: 575px) { .lv-body { grid-template-columns: 1fr; } .lv-head img { display: none; } }

/* teacher dashboard progress */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tp-item { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.tp-meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .76rem; color: var(--muted); margin-top: .25rem; } .tp-meta i { color: var(--gold); }

/* v6.1 — teacher dashboard progress table */
.ds-note { font-size: .76rem; color: var(--muted); margin-top: .1rem; }
.progress-table .pt-thumb { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.progress-table .pt-title { line-height: 1.3; margin-top: .2rem; max-width: 280px; }
.progress-table th { white-space: nowrap; }
.pill-stat { display: inline-block; min-width: 52px; padding: .2rem .55rem; border-radius: 999px; background: #F1EEE6; font-weight: 700; font-size: .82rem; }
.pill-stat.good { background: #E7F5EC; color: #1F7A45; }

@media (max-width: 767px) {
  .progress-table thead { display: none; }
  .progress-table, .progress-table tbody, .progress-table tr, .progress-table td { display: block; width: 100%; }
  .progress-table tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
  .progress-table td { border: 0 !important; padding: 0 !important; text-align: left !important; font-size: .85rem; }
  .progress-table td.pt-course { grid-column: 1 / -1; }
  .progress-table td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: .15rem; }
  .progress-table td[data-label="Avg progress"] { grid-column: 1 / -1; }
  .progress-table .pt-title { max-width: none; }
}
@media (max-width: 575px) { .learn-row strong.text-truncate { white-space: normal; overflow: visible; line-height: 1.3; } .learn-row .d-flex.align-items-center.gap-2 { flex-wrap: wrap; gap: .3rem !important; } }
@media (max-width: 767px) { .progress-table td.pt-course { order: 0; } .progress-table td[data-label="Avg progress"] { order: 1; } .progress-table td[data-label]:not([data-label="Avg progress"]) { order: 2; } }

/* v6.2 — Levels & Passing polish (admin + teacher + course form) */
.lv-box { background: #FAF8F3; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; }
.lv-box-h { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .88rem; margin-bottom: .65rem; }
.lv-box-h small { font-weight: 500; color: var(--muted); font-size: .74rem; }
.lv-box-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--gold-soft); color: #A9822F; display: grid; place-items: center; font-size: .9rem; }
.lv-foot { display: flex; justify-content: flex-end; padding: .8rem 1.2rem 1rem; }
.lv-card .lv-pills span { background: #fff; }
.lv-range, .lv-form .form-range { accent-color: var(--gold); }
.lv-range::-webkit-slider-thumb { background: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,74,.25); }
.lv-range::-moz-range-thumb { background: var(--gold); border: 0; }
.lv-range::-webkit-slider-runnable-track { background: #E9E3D6; }
.lv-range:disabled::-webkit-slider-thumb { background: #C9C4B8; box-shadow: none; }
.lv-card input[type=checkbox], .lv-form input[type=checkbox] { accent-color: var(--gold); width: 15px; height: 15px; vertical-align: -2px; }
.lv-num:disabled { background: #F1EEE6; }
.lv-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.lv-overview > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; }
.lv-overview .lvo-ic { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: #A9822F; display: grid; place-items: center; font-size: 1.15rem; }
.lv-overview strong { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.lv-overview small { color: var(--muted); font-size: .76rem; }
.lv-overview > div:first-child { background: var(--ink); border-color: var(--ink); color: #fff; } .lv-overview > div:first-child small { color: rgba(255,255,255,.6); }
.lv-overview > div:first-child .lvo-ic { background: rgba(226,185,97,.18); color: var(--gold-2); }
@media (max-width: 991px) { .lv-overview { grid-template-columns: 1fr 1fr; } }
.lv-form .lv-box { height: 100%; }

.push-row { display: flex; gap: .8rem; align-items: center; padding: .75rem 1.2rem; border-bottom: 1px solid var(--line); }
.push-row:last-child { border-bottom: 0; }

/* ---------- v7: pictures / videos / documents in quizzes ---------- */
.qm-list { display: flex; flex-direction: column; gap: .6rem; margin: .7rem 0; }
.qm-img img { max-width: 100%; max-height: 360px; border-radius: 12px; border: 1px solid var(--line); background: #fff; object-fit: contain; display: block; }
.qm-option .qm-img img { max-height: 200px; }
.qm-video, .qm-embed { width: 100%; max-width: 640px; border-radius: 12px; background: #000; }
.qm-option .qm-video, .qm-option .qm-embed { max-width: 420px; }
.qm-audio { width: 100%; max-width: 420px; }
.qm-doc { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-width: 100%; flex-wrap: wrap; }
.qm-doc > i { font-size: 1.4rem; color: var(--gold); }
.qm-doc-name { font-weight: 600; font-size: .9rem; word-break: break-word; }
.qm-doc-name small { color: var(--ink-3); font-weight: 400; }
.qm-small { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .3rem 0 0 1.4rem; }
.qm-thumb img { height: 54px; width: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.qm-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .8rem; color: var(--ink-3); max-width: 100%; }
.qm-chip img { height: 26px; width: 34px; object-fit: cover; border-radius: 5px; }
.qm-chip button { border: 0; background: none; color: var(--danger); font-size: 1rem; line-height: 1; padding: 0 .1rem; }
.qm-chip.qm-pending { border-style: dashed; border-color: var(--gold-2); }
.qm-box { border: 1px dashed var(--line); border-radius: 12px; padding: .6rem; background: #FCFAF5; }
.qm-box .qm-existing, .qm-box .qm-new, .opt-media, .opt-new { display: flex; flex-wrap: wrap; gap: .35rem; }
.qm-box .qm-existing:not(:empty), .qm-box .qm-new:not(:empty) { margin-bottom: .45rem; }
.qm-box .qm-new:not(:empty) { margin: .45rem 0 0; }
.qm-link { max-width: 340px; flex: 1 1 200px; }
.opt-row { margin-bottom: .6rem; }
.opt-row .opt-letter { font-weight: 700; min-width: 2.2rem; justify-content: center; }
.opt-extra { padding-left: 2.6rem; }
.opt-extra > *:not(:empty):not(.d-none) { margin-top: .35rem; }
.q-opt-media { align-items: flex-start; }
.q-opt-body { flex: 1; min-width: 0; }
.q-opt-letter { font-weight: 700; color: var(--ink-3); }
.q-explain { background: var(--gold-soft); border-radius: 10px; padding: .6rem .8rem; color: var(--ink-3); }

/* ---------- v7: teacher course access ---------- */
.access-badge { font-weight: 600; padding: .35em .6em; }
.access-edit { background: #E7F5EC; color: #1F7A45; }
.access-view { background: #EAF0FB; color: #2D5BA8; }
.access-owner { background: var(--gold-soft); color: var(--ink); }
.access-choice { display: grid; gap: .5rem; }
.access-choice label { display: flex; gap: .7rem; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.access-choice label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.access-choice input { accent-color: var(--gold); margin-top: .25rem; }
.access-choice small { display: block; color: var(--ink-3); }
