/*!
 * Learnly – Online Courses & LMS HTML Template
 * Copyright (c) 2026 DesignVersa. All rights reserved. https://designversa.com
 */
:root {
    --violet: #6c4cf5;
    --violet-600: #5a38e8;
    --violet-700: #4424c4;
    --violet-soft: #efeaff;
    --sun: #ffc83d;
    --sun-dark: #e0a410;
    --sun-soft: #fff4d1;
    --mint: #2fd4a4;
    --mint-dark: #0e9f75;
    --mint-soft: #dcf9ef;
    --coral: #ff6f61;
    --coral-soft: #ffe6e3;
    --sky: #38b6ff;
    --sky-soft: #e1f3ff;
    --pink: #ff6fb1;
    --stk: #1b1340;
    --ink: #1b1340;
    --text: #4a4466;
    --muted: #7c7796;
    --line: #e9e5f7;
    --bg: #ffffff;
    --bg-soft: #f7f5ff;
    --panel: #ffffff;
    --shadow: 0 14px 40px rgba(46, 26, 120, .09);
    --shadow-lg: 0 30px 70px rgba(46, 26, 120, .16);
    --radius: 22px;
    --head: "Outfit", system-ui, sans-serif;
    --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
    --ink: #f3f0ff;
    --text: #cfc9ea;
    --muted: #9690b8;
    --line: #2e2656;
    --bg: #110b2b;
    --bg-soft: #181036;
    --panel: #1d1540;
    --violet-soft: #2a1f5e;
    --sun-soft: #3a3016;
    --mint-soft: #123a33;
    --coral-soft: #3f1e26;
    --sky-soft: #132e47;
    --shadow: 0 14px 40px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
code { font-family: Consolas, Menlo, monospace; font-size: .9em; background: var(--violet-soft); color: var(--violet); padding: 2px 6px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 12px; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 16px; }
.container { width: min(1220px, 100% - 40px); margin-inline: auto; }
.section { padding: 100px 0; }
.soft { background: var(--bg-soft); }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); padding: 7px 14px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 35%, transparent); }
[data-theme="dark"] .eyebrow { color: #c9bcff; }
.head { max-width: 700px; margin-bottom: 48px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(32px, 4vw, 50px); margin-top: 16px; }
.head p { font-size: 18px; color: var(--muted); margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-row .head { margin-bottom: 0; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .32em; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13C50 4 120 2 197 9' stroke='%23ffc83d' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.hl { color: var(--violet); }
[data-theme="dark"] .hl { color: #a996ff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 16px; font-family: var(--head); font-weight: 700; font-size: 16px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s, color .2s, border-color .2s; white-space: nowrap; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violet-700); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--violet-700); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--violet-700); }
.btn-sun { background: var(--sun); color: #1b1340; box-shadow: 0 4px 0 var(--sun-dark); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sun-dark); }
.btn-sun:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--sun-dark); }
.btn-mint { background: var(--mint); color: #073a2c; box-shadow: 0 4px 0 var(--mint-dark); }
.btn-mint:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--mint-dark); }
.btn-line { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--violet); color: var(--violet); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--violet); }
.btn-white { background: #fff; color: #1b1340; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn-white:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 13px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Stickers, pills and badges */
.stk { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--stk); box-shadow: 3px 3px 0 var(--stk); color: #1b1340; background: #fff; transform: rotate(-3deg); line-height: 1.2; }
.stk svg { width: 15px; height: 15px; }
.stk-sun { background: var(--sun); }
.stk-mint { background: var(--mint); }
.stk-coral { background: var(--coral); color: #fff; }
.stk-sky { background: var(--sky); color: #fff; }
.stk-violet { background: var(--violet); color: #fff; }
.stk-pink { background: var(--pink); color: #fff; }
.stk.r { transform: rotate(3deg); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
[data-theme="dark"] .pill { color: #c9bcff; }
.pill.sun { background: var(--sun-soft); color: #a07000; }
.pill.mint { background: var(--mint-soft); color: var(--mint-dark); }
.pill.coral { background: var(--coral-soft); color: #d9483a; }
.pill.sky { background: var(--sky-soft); color: #1486c9; }
[data-theme="dark"] .pill.sun { color: var(--sun); }
[data-theme="dark"] .pill.mint { color: var(--mint); }
[data-theme="dark"] .pill.sky { color: var(--sky); }
[data-theme="dark"] .pill.coral { color: #ff9a90; }
.stars { display: inline-flex; gap: 1px; color: var(--sun); }
.stars svg { width: 16px; height: 16px; }
.ava { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; color: #fff; font-family: var(--head); font-weight: 700; font-size: 15px; background: linear-gradient(135deg, hsl(var(--h, 260) 80% 64%), hsl(calc(var(--h, 260) + 40) 75% 52%)); }
.ava.xs { width: 26px; height: 26px; font-size: 10px; }
.ava.sm { width: 36px; height: 36px; font-size: 13px; }
.ava.lg { width: 72px; height: 72px; font-size: 24px; }
.avatars { display: flex; }
.avatars .ava { border: 3px solid var(--bg); margin-left: -8px; }
.avatars .ava:first-child { margin-left: 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(46, 26, 120, .05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 27px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.logo svg { flex: none; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: 15px; }
.nav-links a { padding: 9px 14px; border-radius: 12px; color: var(--text); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { background: var(--violet-soft); color: var(--violet); }
[data-theme="dark"] .nav-links a.active { color: #c9bcff; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; position: relative; flex: none; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--violet); color: var(--violet); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .pip { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid var(--panel); }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; padding: 60px 0 100px; overflow: hidden; background: radial-gradient(900px 500px at 85% 10%, var(--violet-soft), transparent 70%), radial-gradient(600px 400px at 0% 90%, var(--sun-soft), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--violet) 18%, transparent) 1.2px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.8vw, 78px); margin: 22px 0 20px; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 2px solid var(--line); border-radius: 22px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow); max-width: 580px; transition: border-color .2s; }
.search-box:focus-within { border-color: var(--violet); }
.search-box > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 10px 0; }
.search-box select { border: 0; border-left: 1.5px solid var(--line); background: transparent; font: inherit; font-weight: 700; color: var(--text); padding: 8px 12px; outline: 0; cursor: pointer; }
.search-box select option { color: #1b1340; }
.popular-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 700; }
.popular-tags a { padding: 5px 12px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--line); color: var(--text); transition: border-color .2s, color .2s; }
.popular-tags a:hover { border-color: var(--violet); color: var(--violet); }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 14px; color: var(--muted); }
.hero-trust b { color: var(--ink); }
.hero-visual { position: relative; min-height: 580px; }
.hero-blob { position: absolute; inset: 30px 10px 20px 40px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: linear-gradient(145deg, var(--violet), #9b7bff 60%, #b9a2ff); box-shadow: var(--shadow-lg); }
.hero-blob::before { content: ""; position: absolute; width: 140px; height: 40px; left: 12%; top: 16%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M4 15Q18 2 32 15T60 15T88 15T116 15' fill='none' stroke='white' stroke-opacity='.5' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.hero-blob::after { content: ""; position: absolute; width: 120px; height: 120px; right: 8%; bottom: 10%; background-image: radial-gradient(rgba(255,255,255,.45) 2px, transparent 2.4px); background-size: 16px 16px; border-radius: 50%; }
.hero-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-2deg); width: 340px; background: var(--panel); border-radius: 26px; padding: 14px; box-shadow: var(--shadow-lg); z-index: 2; }
.hero-card .cover { aspect-ratio: 16 / 10.5; }
.hero-card .hc-body { padding: 16px 6px 6px; }
.hero-card h3 { font-size: 19px; margin: 8px 0 12px; }
.hc-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.float { position: absolute; z-index: 3; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); line-height: 1.35; animation: bob 5s ease-in-out infinite; }
.float b { display: block; color: var(--ink); font-family: var(--head); font-size: 15px; }
.float .f-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.float .f-ico svg { width: 20px; height: 20px; }
.float.f1 { left: -20px; top: 40px; }
.float.f2 { right: -16px; top: 150px; animation-delay: -1.6s; }
.float.f3 { left: 30px; bottom: -6px; animation-delay: -3s; }
.hero-stk { position: absolute; z-index: 4; }
.hero-stk.s1 { right: 40px; top: 30px; }
.hero-stk.s2 { right: 30px; bottom: 90px; }
.sparkle { position: absolute; width: 34px; height: 34px; z-index: 1; color: var(--sun); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Logo strip */
.strip { padding: 34px 0; border-block: 1px solid var(--line); }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.strip-in p { margin: 0; font-weight: 800; color: var(--muted); font-size: 14px; max-width: 200px; line-height: 1.4; }
.brands { display: flex; gap: 44px; flex-wrap: wrap; align-items: center; color: color-mix(in srgb, var(--ink) 55%, transparent); font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brands span { display: inline-flex; align-items: center; gap: 8px; }
.brands i { width: 20px; height: 20px; border-radius: 6px; background: currentColor; opacity: .7; }
.brands span:nth-child(2) i { border-radius: 50%; }
.brands span:nth-child(3) i { transform: rotate(45deg); border-radius: 4px; }
.brands span:nth-child(4) i { border-radius: 50% 50% 4px 4px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1.5px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none; transform: rotate(-6deg); transition: transform .3s; }
.cat:hover .cat-ico { transform: rotate(4deg) scale(1.05); }
.cat-ico svg { width: 26px; height: 26px; }
.cat b { display: block; font-family: var(--head); font-size: 18px; color: var(--ink); }
.cat small { color: var(--muted); font-weight: 600; }
.t-violet { background: var(--violet-soft); color: var(--violet); }
.t-sun { background: var(--sun-soft); color: #c68a00; }
.t-mint { background: var(--mint-soft); color: var(--mint-dark); }
.t-coral { background: var(--coral-soft); color: var(--coral); }
.t-sky { background: var(--sky-soft); color: #1b95dd; }
.t-pink { background: color-mix(in srgb, var(--pink) 16%, transparent); color: #e0458e; }
[data-theme="dark"] .t-violet { color: #b7a6ff; }
[data-theme="dark"] .t-sun { color: var(--sun); }
[data-theme="dark"] .t-mint { color: var(--mint); }
[data-theme="dark"] .t-sky { color: var(--sky); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button, .chips a { border: 1.5px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.chips button:hover, .chips a:hover { border-color: var(--violet); color: var(--violet); }
.chips .active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Course cover art */
.cover { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.22) 0 16%, transparent 16.5%), linear-gradient(135deg, var(--c1, #6c4cf5), var(--c2, #a58bff)); isolation: isolate; }
.cover::before { content: ""; position: absolute; left: 7%; top: 12%; width: 34%; height: 42%; background-image: radial-gradient(rgba(255,255,255,.42) 1.7px, transparent 2px); background-size: 13px 13px; z-index: -1; }
.cover::after { content: ""; position: absolute; width: 58%; aspect-ratio: 1; right: -14%; bottom: -34%; border-radius: 50%; border: 22px solid rgba(255,255,255,.16); z-index: -1; }
.cover.v2::before { left: auto; right: 8%; top: 14%; width: 38%; height: 18%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M4 15Q18 2 32 15T60 15T88 15T116 15' fill='none' stroke='white' stroke-opacity='.55' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.cover.v2::after { right: auto; left: -12%; bottom: -30%; border: 0; background: rgba(255,255,255,.14); border-radius: 36%; transform: rotate(18deg); }
.cover.v3::before { left: auto; right: 6%; top: 10%; width: 30%; height: 60%; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 6px, transparent 6px 16px); border-radius: 16px; }
.cover.v3::after { width: 30%; right: auto; left: 6%; bottom: -12%; border: 0; background: var(--sun); opacity: .9; }
.cv-badge { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 24px; background: #fff; color: var(--c1, #6c4cf5); display: grid; place-items: center; transform: rotate(-8deg); box-shadow: 0 14px 30px rgba(20, 8, 70, .25); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.cv-badge svg { width: 36px; height: 36px; }
.cover .stk { position: absolute; left: 12px; top: 12px; font-size: 12px; padding: 4px 10px; box-shadow: 2px 2px 0 var(--stk); }
.cover .cv-time { position: absolute; right: 12px; bottom: 12px; background: rgba(20, 10, 60, .55); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 9px; backdrop-filter: blur(6px); }
.cover.lg .cv-badge { width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 32px; }
.cover.lg .cv-badge svg { width: 52px; height: 52px; }

/* Course cards */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.courses.three { grid-template-columns: repeat(3, 1fr); }
.ccard { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; min-width: 0; }
.ccard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ccard:hover .cv-badge { transform: rotate(6deg) scale(1.08); }
.cbody { padding: 14px 8px 6px; display: flex; flex-direction: column; flex: 1; }
.cmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.lvl { font-size: 12.5px; font-weight: 800; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.lvl::before { content: ""; width: 13px; height: 11px; --b2: var(--line); --b3: var(--line); background: linear-gradient(var(--mint-dark), var(--mint-dark)) 0 100% / 3px 45% no-repeat, linear-gradient(var(--b2), var(--b2)) 5px 100% / 3px 72% no-repeat, linear-gradient(var(--b3), var(--b3)) 10px 100% / 3px 100% no-repeat; }
.lvl.mid::before { --b2: var(--mint-dark); }
.lvl.adv::before { --b2: var(--mint-dark); --b3: var(--mint-dark); }
.ccard h3 { font-size: 18.5px; line-height: 1.25; margin: 0 0 10px; }
.ccard h3 a:hover { color: var(--violet); }
.by { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.cstats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.cstats span { display: inline-flex; align-items: center; gap: 5px; }
.cstats svg { width: 15px; height: 15px; }
.cstats .rate { color: var(--ink); }
.cstats .rate svg { color: var(--sun); }
.cstats small { color: var(--muted); font-weight: 600; }
.cfoot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.price { font-family: var(--head); font-size: 22px; font-weight: 800; color: var(--ink); }
.price s { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.price.free { color: var(--mint-dark); }
[data-theme="dark"] .price.free { color: var(--mint); }
.go { width: 40px; height: 40px; border-radius: 13px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.go svg { width: 18px; height: 18px; }
.ccard:hover .go { background: var(--violet); color: #fff; transform: rotate(-8deg); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 48px; border-top: 3px dashed color-mix(in srgb, var(--violet) 35%, transparent); }
.step { position: relative; text-align: center; padding: 0 16px; }
.step-num { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 30px; display: grid; place-items: center; position: relative; transform: rotate(-6deg); border: 2px solid var(--stk); box-shadow: 5px 5px 0 var(--stk); }
.step:nth-child(2) .step-num { transform: rotate(5deg); }
.step-num svg { width: 40px; height: 40px; }
.step-num em { position: absolute; top: -12px; right: -12px; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); border: 2px solid var(--stk); font-style: normal; font-family: var(--head); font-weight: 800; color: var(--ink); display: grid; place-items: center; font-size: 15px; }
.step h3 { font-size: 23px; }
.step p { color: var(--muted); margin: 0; }

/* Instructors */
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.teacher { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 14px 22px; text-align: center; transition: transform .25s, box-shadow .25s; }
.teacher:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.portrait { position: relative; aspect-ratio: 1 / 1.02; border-radius: 18px; overflow: hidden; margin-bottom: 16px; background: linear-gradient(160deg, hsl(var(--h) 90% 88%), hsl(calc(var(--h) + 30) 85% 76%)); }
[data-theme="dark"] .portrait { background: linear-gradient(160deg, hsl(var(--h) 45% 30%), hsl(calc(var(--h) + 30) 45% 22%)); }
.portrait svg { position: absolute; left: 50%; bottom: 0; width: 78%; transform: translateX(-50%); }
.portrait .stk { position: absolute; right: 10px; top: 10px; font-size: 12px; padding: 4px 9px; box-shadow: 2px 2px 0 var(--stk); }
.teacher h3 { font-size: 20px; margin: 0 0 2px; }
.teacher p { color: var(--muted); margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.t-stats { display: flex; justify-content: center; gap: 14px; font-size: 13px; font-weight: 800; color: var(--text); }
.t-stats span { display: inline-flex; align-items: center; gap: 4px; }
.t-stats svg { width: 14px; height: 14px; color: var(--sun); }

/* Stats band */
.band { position: relative; overflow: hidden; border-radius: 34px; background: linear-gradient(135deg, #2a1880, #5a38e8 60%, #7d5cff); color: #e6e0ff; padding: 64px 56px; }
.band::before { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -150px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); }
.band::after { content: ""; position: absolute; left: 30%; bottom: -30px; width: 220px; height: 80px; background-image: radial-gradient(rgba(255,255,255,.25) 2px, transparent 2.4px); background-size: 16px 16px; }
.band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.band-stat b { display: block; font-family: var(--head); font-size: clamp(40px, 4.6vw, 58px); color: #fff; line-height: 1; letter-spacing: -.03em; }
.band-stat b em { font-style: normal; color: var(--sun); }
.band-stat > span { font-weight: 700; font-size: 15px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.quote { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.quote:nth-child(2) { background: var(--sun-soft); border-color: transparent; margin-top: 30px; }
.quote:nth-child(3) { background: var(--mint-soft); border-color: transparent; }
.quote .qmark { font-family: var(--head); font-size: 72px; line-height: .6; color: var(--violet); height: 30px; display: block; }
.quote p { font-size: 17px; color: var(--ink); line-height: 1.6; margin: 10px 0 22px; font-weight: 600; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.who b { display: block; color: var(--ink); font-family: var(--head); font-size: 16px; }
.quote .stk { position: absolute; right: 22px; top: -14px; }

/* Pricing */
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px; font-weight: 800; color: var(--ink); }
.switch { width: 60px; height: 32px; border-radius: 999px; background: var(--line); border: 2px solid var(--stk); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--stk); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.switch.on { background: var(--mint); }
.switch.on::after { transform: translateX(27px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--panel); border: 1.5px solid var(--line); border-radius: 28px; padding: 34px; display: flex; flex-direction: column; position: relative; }
.plan.pop { background: linear-gradient(160deg, #3a22a8, #6c4cf5); border-color: transparent; color: #ddd5ff; box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.plan.pop h3, .plan.pop .amount { color: #fff; }
.plan.pop .checks li::before { background: var(--sun); color: #1b1340; }
.plan .stk { position: absolute; top: -16px; right: 26px; }
.plan-ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 18px; }
.plan-ico svg { width: 26px; height: 26px; }
.plan h3 { font-size: 24px; margin: 0 0 4px; }
.plan .desc { font-size: 15px; opacity: .85; margin: 0; }
.amount { font-family: var(--head); font-size: 54px; font-weight: 800; color: var(--ink); margin: 20px 0 2px; letter-spacing: -.03em; line-height: 1; }
.amount small { font-size: 16px; font-weight: 600; opacity: .7; letter-spacing: 0; }
.plan .note { font-size: 13px; opacity: .75; margin-bottom: 22px; min-height: 20px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 8px; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%230e9f75' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px; }
.plan.pop .checks li::before { background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%231b1340' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px; }
.checks li.no { opacity: .5; }
.checks li.no::before { background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' fill='none' stroke='%239690b8' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 14px; }
.team-plan { margin-top: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--panel); border: 1.5px solid var(--line); border-radius: 30px; padding: 40px; }
.team-plan h3 { font-size: 30px; }
.team-calc { background: var(--bg-soft); border-radius: 22px; padding: 26px; }
.team-calc label { display: flex; justify-content: space-between; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.range { width: 100%; accent-color: var(--violet); height: 6px; }
.team-out { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; gap: 16px; flex-wrap: wrap; }
.team-out b { font-family: var(--head); font-size: 42px; color: var(--ink); line-height: 1; }
.team-out small { color: var(--muted); font-weight: 700; display: block; }
.compare-wrap { overflow-x: auto; margin-top: 70px; border: 1.5px solid var(--line); border-radius: 24px; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 700; color: var(--ink); }
.compare thead th { font-family: var(--head); font-size: 18px; color: var(--ink); background: var(--bg-soft); }
.compare tr:last-child td { border-bottom: 0; }
.compare .y { color: var(--mint-dark); font-weight: 900; }
.compare .n { color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 34px; padding: 70px 60px; background: var(--sun); color: #3b2f0a; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.3); }
.cta::after { content: ""; position: absolute; left: -46px; bottom: -58px; width: 130px; height: 130px; border-radius: 38px; background: var(--violet); transform: rotate(18deg); opacity: .95; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #1b1340; font-size: clamp(32px, 4vw, 50px); font-weight: 800; }
.cta p { font-size: 18px; margin: 0; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-line { background: #fff; border-color: #1b1340; color: #1b1340; }

/* Page hero */
.page-hero { position: relative; overflow: hidden; padding: 80px 0 60px; text-align: center; background: radial-gradient(700px 360px at 50% 0%, var(--violet-soft), transparent 75%); }
.page-hero::before { content: ""; position: absolute; left: 6%; top: 40px; width: 110px; height: 110px; background-image: radial-gradient(color-mix(in srgb, var(--violet) 30%, transparent) 2px, transparent 2.4px); background-size: 15px 15px; }
.page-hero::after { content: ""; position: absolute; right: 7%; top: 70px; width: 70px; height: 70px; border-radius: 22px; background: var(--sun); transform: rotate(16deg); opacity: .9; }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 66px); margin: 18px 0 14px; font-weight: 800; letter-spacing: -.03em; }
.page-hero .x-lead, .page-hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; margin-inline: auto; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--muted); }
.crumbs a:hover { color: var(--violet); }
.crumbs span { opacity: .5; }

/* Catalog */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: 104px; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.filters h4 { font-size: 15px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.fgroup { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.fgroup:first-of-type { padding-top: 0; }
.fgroup:last-of-type { border-bottom: 0; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 600; font-size: 15px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--violet); margin: 0; flex: none; }
.opt small { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 12px; background: var(--bg-soft); padding: 1px 8px; border-radius: 999px; }
.clear { border: 0; background: none; color: var(--violet); font-weight: 800; font-size: 13px; cursor: pointer; padding: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .search-box { box-shadow: none; flex: 1; min-width: 240px; max-width: 420px; padding: 4px 6px 4px 16px; border-radius: 16px; }
.toolbar .search-box input { font-size: 15px; padding: 8px 0; }
.tb-right { display: flex; gap: 10px; align-items: center; }
.select { border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 14px; padding: 11px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.view-btns { display: flex; background: var(--bg-soft); border-radius: 14px; padding: 4px; gap: 2px; }
.view-btns button { width: 38px; height: 36px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.view-btns button svg { width: 18px; height: 18px; }
.view-btns button.active { background: var(--panel); color: var(--violet); box-shadow: 0 2px 8px rgba(46,26,120,.1); }
.result-count { font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.result-count b { color: var(--ink); }
#catalog-grid { grid-template-columns: repeat(3, 1fr); }
#catalog-grid.list { grid-template-columns: 1fr; }
#catalog-grid.list .ccard { flex-direction: row; gap: 10px; }
#catalog-grid.list .cover { width: 280px; flex: none; aspect-ratio: auto; min-height: 180px; }
#catalog-grid.list .cbody { padding: 12px 16px 8px; }
.empty-state { display: none; text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-state.show { display: block; }
.empty-state .stk { margin-bottom: 16px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a { width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 800; background: var(--panel); }
.pager a.active { background: var(--violet); border-color: var(--violet); color: #fff; }
.filter-toggle { display: none; }

/* Course detail */
.c-hero { background: #1b1340; color: #cbc4ec; padding: 44px 0 70px; position: relative; overflow: hidden; }
.c-hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 76, 245, .55), transparent 70%); }
.c-hero::after { content: ""; position: absolute; left: 40%; bottom: 24px; width: 180px; height: 60px; background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2.4px); background-size: 15px 15px; }
.c-hero .crumbs { color: #a79fd0; }
.c-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; margin: 18px 0 14px; letter-spacing: -.03em; }
.c-hero .lead { font-size: 19px; max-width: 680px; }
.c-hero-in { position: relative; z-index: 1; max-width: calc(100% - 410px); }
.c-facts { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-weight: 700; font-size: 15px; margin-top: 18px; }
.c-facts span { display: inline-flex; align-items: center; gap: 7px; }
.c-facts svg { width: 17px; height: 17px; }
.c-facts .rate { color: var(--sun); }
.c-facts .rate b { color: #fff; }
.c-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; }
.c-author a { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }
.c-layout { display: grid; grid-template-columns: 1fr 370px; gap: 40px; align-items: start; }
.c-main { min-width: 0; padding-top: 50px; }
.enroll { position: sticky; top: 100px; margin-top: -330px; background: var(--panel); border-radius: 28px; padding: 12px; box-shadow: var(--shadow-lg); border: 1.5px solid var(--line); z-index: 5; }
.preview { position: relative; display: block; border: 0; padding: 0; width: 100%; cursor: pointer; border-radius: 20px; overflow: hidden; }
.preview .cover { border-radius: 20px; aspect-ratio: 16 / 10; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--sun); color: #1b1340; display: grid; place-items: center; border: 3px solid #1b1340; box-shadow: 4px 4px 0 #1b1340; z-index: 2; transition: transform .2s; }
.play svg { width: 28px; height: 28px; margin-left: 3px; }
.preview:hover .play { transform: scale(1.08); }
.preview .cap { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-weight: 800; font-size: 14px; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.enroll-body { padding: 20px 14px 14px; }
.e-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.e-price b { font-family: var(--head); font-size: 42px; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.e-price s { color: var(--muted); font-weight: 700; font-size: 18px; }
.e-timer { display: flex; align-items: center; gap: 6px; color: var(--coral); font-weight: 800; font-size: 14px; margin: 10px 0 18px; }
.e-timer svg { width: 16px; height: 16px; }
.enroll .btn { margin-bottom: 10px; }
.e-guarantee { text-align: center; font-size: 13px; color: var(--muted); font-weight: 700; margin: 4px 0 16px; }
.e-list { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1.5px dashed var(--line); display: grid; gap: 10px; font-size: 14.5px; font-weight: 600; }
.e-list li { display: flex; align-items: center; gap: 10px; }
.e-list svg { width: 18px; height: 18px; color: var(--violet); flex: none; }
.e-share { display: flex; justify-content: space-between; margin-top: 16px; font-weight: 800; font-size: 14px; }
.e-share a { color: var(--violet); }
.c-block { margin-bottom: 54px; }
.c-block > h2 { font-size: 30px; margin-bottom: 20px; }
.learn-box { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-soft); }
.learn-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.learn-grid li { display: flex; gap: 11px; font-weight: 600; color: var(--ink); }
.learn-grid li svg { width: 20px; height: 20px; flex: none; color: var(--mint-dark); margin-top: 2px; }
.incl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.incl div { background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; font-weight: 700; font-size: 14px; }
.incl svg { width: 24px; height: 24px; color: var(--violet); margin-bottom: 8px; }
.incl b { display: block; font-family: var(--head); font-size: 22px; color: var(--ink); }
.curr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-weight: 700; color: var(--muted); font-size: 15px; }
.curr-head button { border: 0; background: none; color: var(--violet); font-weight: 800; cursor: pointer; }
.acc { border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.acc-item + .acc-item { border-top: 1.5px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 0; background: var(--bg-soft); cursor: pointer; text-align: left; color: var(--ink); }
.acc-btn .num { width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--violet); color: #fff; font-family: var(--head); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.acc-btn b { font-family: var(--head); font-size: 17px; flex: 1; }
.acc-btn small { color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.acc-btn .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .3s; flex: none; }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-panel { display: none; padding: 6px 22px 14px; }
.acc-item.open .acc-panel { display: block; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; font-weight: 600; border-bottom: 1px dashed var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.lesson-row .lt { flex: 1; min-width: 0; }
.lesson-row a.prev-link { color: var(--violet); font-weight: 800; font-size: 13px; }
.lesson-row time { color: var(--muted); font-size: 13px; font-weight: 700; }
.req { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.prose p { font-size: 17px; }
.readmore { max-height: 170px; overflow: hidden; position: relative; transition: max-height .4s; }
.readmore::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.readmore.open { max-height: 1000px; }
.readmore.open::after { display: none; }
.link-btn { border: 0; background: none; color: var(--violet); font-weight: 800; cursor: pointer; padding: 6px 0; }
.inst-box { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--panel); }
.inst-box .portrait { width: 130px; margin: 0; }
.inst-box h3 { font-size: 24px; margin: 0; }
.inst-box h3 a:hover { color: var(--violet); }
.inst-meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
.inst-meta span { display: inline-flex; gap: 6px; align-items: center; }
.inst-meta svg { width: 16px; height: 16px; color: var(--violet); }
.rating-sum { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center; margin-bottom: 30px; }
.rating-big { text-align: center; background: var(--sun-soft); border-radius: var(--radius); padding: 24px; }
.rating-big b { font-family: var(--head); font-size: 64px; color: var(--ink); line-height: 1; display: block; }
.rating-big .stars { display: flex; justify-content: center; margin: 8px 0 4px; }
.rating-big small { font-weight: 700; color: var(--muted); }
.rbars { display: grid; gap: 10px; }
.rbar { display: grid; grid-template-columns: 56px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; font-weight: 700; }
.rbar .track { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.rbar .fill { height: 100%; background: var(--sun); border-radius: 999px; }
.rbar span:last-child { color: var(--muted); text-align: right; }
.reviews { display: grid; gap: 16px; }
.review { border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; background: var(--panel); }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-top b { display: block; color: var(--ink); font-family: var(--head); }
.review-top small { color: var(--muted); font-weight: 600; }
.review-top .stars { margin-left: auto; }
.review p { margin: 0 0 10px; }
.helpful { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.helpful button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: 13px; color: var(--text); cursor: pointer; }
.helpful button.on { border-color: var(--mint); background: var(--mint-soft); color: var(--mint-dark); }

/* Modal (video preview) */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(12, 6, 36, .72); display: none; place-items: center; padding: 20px; backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal-card { width: min(860px, 100%); background: #0f0a26; border-radius: 26px; overflow: hidden; position: relative; }
.modal-card .player { border-radius: 0; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }

/* Instructor profile */
.prof-hero { padding: 60px 0 40px; background: linear-gradient(180deg, var(--violet-soft), transparent); }
.prof { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.prof-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: 28px; padding: 14px 14px 24px; box-shadow: var(--shadow); text-align: center; position: sticky; top: 100px; }
.prof-card .portrait { margin-bottom: 18px; }
.prof-card .btn { margin-top: 10px; }
.prof-links { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.prof-links a { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--text); }
.prof-links a:hover { color: var(--violet); border-color: var(--violet); }
.prof-links svg { width: 18px; height: 18px; }
.prof h1 { font-size: clamp(38px, 4.6vw, 58px); font-weight: 800; margin: 14px 0 6px; letter-spacing: -.03em; }
.prof .role { font-size: 19px; color: var(--muted); font-weight: 700; margin-bottom: 26px; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.pstat { border-radius: 20px; padding: 20px; }
.pstat b { display: block; font-family: var(--head); font-size: 30px; color: var(--ink); line-height: 1.1; }
.pstat span { font-size: 14px; font-weight: 700; color: var(--muted); }
.skills { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.skills span { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; background: var(--panel); }

/* Become instructor */
.teach-hero { padding: 70px 0 90px; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--mint-soft), transparent 90%); }
.teach-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.teach-hero h1 { font-size: clamp(42px, 5.4vw, 70px); font-weight: 800; letter-spacing: -.035em; margin: 20px 0; line-height: 1.03; }
.teach-hero .lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.earn { background: var(--panel); border-radius: 30px; padding: 32px; box-shadow: var(--shadow-lg); border: 1.5px solid var(--line); position: relative; }
.earn > .stk { position: absolute; top: -16px; left: 28px; }
.earn h3 { font-size: 22px; margin-top: 8px; }
.earn-row { margin: 22px 0; }
.earn-row label { display: flex; justify-content: space-between; font-weight: 800; color: var(--ink); margin-bottom: 10px; font-size: 15px; }
.earn-row label span { color: var(--violet); }
.earn-out { background: var(--ink); color: #cfc9ea; border-radius: 22px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
[data-theme="dark"] .earn-out { background: #0b0720; }
.earn-out b { font-family: var(--head); font-size: 44px; color: var(--sun); display: block; line-height: 1; }
.earn-out small { font-weight: 700; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.perk { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px; }
.perk h3 { font-size: 21px; margin-top: 18px; }
.perk p { color: var(--muted); margin: 0; }
.perk .cat-ico { width: 56px; height: 56px; }
.apply { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.apply-side { position: sticky; top: 110px; }
.apply-side h2 { font-size: clamp(32px, 3.8vw, 46px); }
.apply-form { background: var(--panel); border: 1.5px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; font: inherit; background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--panel); }
.field textarea { min-height: 130px; resize: vertical; }
.field .error { display: none; color: #e0413a; font-size: 13px; font-weight: 700; margin-top: 5px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #e0413a; }
.field.invalid .error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: none; background: var(--mint-soft); color: var(--mint-dark); padding: 14px 16px; border-radius: 14px; font-weight: 800; margin-bottom: 18px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards label { margin: 0; cursor: pointer; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards span { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 8px; font-weight: 800; font-size: 14px; background: var(--bg-soft); transition: all .2s; }
.radio-cards input:checked + span { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); }

/* About */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 210px 210px; gap: 16px; }
.tile { border-radius: 26px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; font-family: var(--head); font-weight: 700; }
.tile b { font-size: 40px; line-height: 1; }
.tile.t1 { grid-row: span 2; background: linear-gradient(160deg, var(--violet), #a58bff); }
.tile.t2 { background: var(--sun); color: #1b1340; }
.tile.t3 { background: var(--mint); color: #073a2c; }
.tile svg.big { position: absolute; right: -10px; top: -10px; width: 120px; height: 120px; opacity: .25; }
.tile.t1 svg.big { width: 200px; height: 200px; right: -30px; top: 30px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { border-radius: var(--radius); padding: 28px; }
.value h3 { font-size: 21px; margin-top: 16px; }
.value p { margin: 0; color: var(--text); }
.value .cat-ico { background: var(--panel); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.tline { display: grid; gap: 22px; position: relative; padding-left: 40px; }
.tline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; border-left: 3px dashed var(--line); }
.tline > div { position: relative; }
.tline > div::before { content: ""; position: absolute; left: -40px; top: 2px; width: 28px; height: 28px; border-radius: 10px; background: var(--sun); border: 2px solid var(--stk); transform: rotate(-8deg); }
.tline > div:nth-child(2)::before { background: var(--mint); }
.tline > div:nth-child(3)::before { background: var(--sky); }
.tline > div:nth-child(4)::before { background: var(--coral); }
.tline b { font-family: var(--head); color: var(--violet); font-size: 18px; }
.tline h3 { font-size: 20px; margin: 2px 0 4px; }
.tline p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: start; }
.cinfo { display: grid; gap: 16px; }
.cinfo-card { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; }
.cinfo-card .cat-ico { width: 50px; height: 50px; border-radius: 16px; }
.cinfo-card .cat-ico svg { width: 22px; height: 22px; }
.cinfo-card b { display: block; font-family: var(--head); font-size: 18px; color: var(--ink); }
.cinfo-card p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.cinfo-card a { color: var(--violet); font-weight: 800; }

/* Footer */
.footer { background: #150e35; color: #aea6d6; padding: 70px 0 30px; margin-top: 60px; position: relative; overflow: hidden; }
.footer .logo { color: #fff; }
.footer-news { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; background: linear-gradient(120deg, #2a1880, #5a38e8); border-radius: 28px; padding: 36px 40px; margin-bottom: 60px; }
.footer-news h3 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.footer-news p { margin: 0; color: #d6ceff; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.news-form .field { flex: 1; min-width: 200px; margin: 0; }
.news-form .field input { background: #fff; border-color: transparent; color: #1b1340; padding: 14px 16px; }
.news-form .field .error { color: #ffd0cc; }
.news-form .form-success { flex-basis: 100%; margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-about { margin: 16px 0 20px; max-width: 330px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 600; }
.footer ul a:hover { color: var(--sun); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s; }
.socials a:hover { background: var(--violet); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.footer-bottom a { color: var(--sun); font-weight: 700; }

/* ---------- Student area (app layout) ---------- */
.app-body { background: var(--bg-soft); }
.app-shell { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
.sidebar { background: var(--panel); border-right: 1.5px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sidebar .logo { padding: 0 8px 16px; font-size: 25px; }
.side-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-weight: 700; font-size: 15px; color: var(--text); transition: background .2s, color .2s; }
.side-link svg { width: 19px; height: 19px; flex: none; }
.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.side-link.active { background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violet-700); }
.side-link .count { margin-left: auto; font-size: 12px; background: var(--sun); color: #1b1340; border-radius: 999px; padding: 1px 8px; font-weight: 800; }
.side-card { margin-top: auto; background: var(--sun); color: #3b2f0a; border-radius: 20px; padding: 18px; font-size: 14px; font-weight: 600; position: relative; margin-top: 24px; }
.side-card-ico { width: 38px; height: 38px; border-radius: 12px; background: #1b1340; color: var(--sun); display: grid; place-items: center; margin-bottom: 10px; }
.side-card b { display: block; font-family: var(--head); font-size: 18px; color: #1b1340; margin-bottom: 4px; }
.side-card a { display: block; width: fit-content; margin-top: 12px; background: #1b1340; color: #fff; padding: 7px 14px; border-radius: 11px; font-weight: 800; }
.app-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 30px; background: color-mix(in srgb, var(--bg-soft) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1.5px solid var(--line); }
.topbar .search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; color: var(--muted); margin: 0; }
.topbar .search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; }
.me { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-left: auto; }
.me b { display: block; color: var(--ink); line-height: 1.2; font-family: var(--head); }
.me small { color: var(--muted); font-weight: 700; }
.streak-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--coral-soft); color: var(--coral); font-weight: 900; font-family: var(--head); padding: 9px 12px; border-radius: 13px; }
.side-toggle { display: none; }
.content { padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.content > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-main > * { min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; margin: 0 0 4px; font-weight: 800; }
.page-head p { margin: 0; color: var(--muted); font-weight: 600; }
.panel { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-size: 21px; margin: 0; }
.panel-head a { color: var(--violet); font-weight: 800; font-size: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-main { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: start; }
.welcome { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 34px; background: linear-gradient(120deg, #3a22a8, #6c4cf5 65%, #8f73ff); color: #ddd5ff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.welcome::before { content: ""; position: absolute; right: 220px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(255,255,255,.07); }
.welcome h1 { color: #fff; font-size: 32px; margin: 0 0 6px; font-weight: 800; }
.welcome p { margin: 0 0 18px; font-weight: 600; max-width: 480px; }
.welcome > * { position: relative; }
.week-streak { background: rgba(255,255,255,.12); border-radius: 20px; padding: 18px 20px; min-width: 300px; }
.week-streak .top { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--head); font-weight: 700; margin-bottom: 14px; }
.week-streak .top svg { width: 26px; height: 26px; color: var(--sun); }
.week-streak .top b { font-size: 28px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 11px; font-weight: 800; }
.days span i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 4px; border-radius: 11px; background: rgba(255,255,255,.14); font-style: normal; }
.days span.on i { background: var(--sun); color: #1b1340; }
.days span.today i { background: #fff; color: var(--violet); box-shadow: 0 0 0 3px rgba(255,200,61,.8); }
.days svg { width: 16px; height: 16px; }
.kpi { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; }
.kpi .cat-ico { width: 52px; height: 52px; border-radius: 16px; transform: none; }
.kpi .cat-ico svg { width: 24px; height: 24px; }
.kpi b { display: block; font-family: var(--head); font-size: 28px; color: var(--ink); line-height: 1.1; }
.kpi span { font-size: 14px; color: var(--muted); font-weight: 700; }
.cont { display: grid; gap: 14px; }
.cont-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 12px; border-radius: 20px; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.cont-item:hover { border-color: var(--violet); box-shadow: var(--shadow); }
.cont-item .cover { aspect-ratio: 4 / 3; border-radius: 14px; }
.cont-item .cv-badge { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 14px; }
.cont-item .cv-badge svg { width: 22px; height: 22px; }
.cont-item h3 { font-size: 17px; margin: 0 0 4px; }
.cont-item small { color: var(--muted); font-weight: 700; display: block; margin-bottom: 10px; }
.prog { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--ink); }
.prog .track, .prog .fill { display: block; }
.prog .track { flex: 1; height: 9px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.prog .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), #a58bff); }
.prog .fill.mint { background: linear-gradient(90deg, var(--mint-dark), var(--mint)); }
.prog .fill.sun { background: linear-gradient(90deg, var(--sun-dark), var(--sun)); }
.play-sm { width: 46px; height: 46px; border-radius: 15px; background: var(--violet); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 var(--violet-700); }
.play-sm svg { width: 18px; height: 18px; margin-left: 2px; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.ring { position: relative; width: 100%; max-width: 120px; margin: 0 auto 8px; }
.ring svg { width: 100%; height: auto; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .rt { stroke: var(--bg-soft); }
.ring .rv { transition: stroke-dasharray 1.2s ease; }
.ring > b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-size: 22px; color: var(--ink); }
.rings small { font-weight: 800; color: var(--muted); font-size: 13px; }
.goal-note { margin-top: 18px; background: var(--mint-soft); color: var(--mint-dark); border-radius: 14px; padding: 12px 14px; font-weight: 800; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.goal-note svg { width: 18px; height: 18px; flex: none; }
.bars-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; height: 190px; padding-top: 10px; }
.bars-chart div { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; font-size: 12px; font-weight: 800; color: var(--muted); }
.bars-chart i { width: 100%; max-width: 38px; border-radius: 12px 12px 6px 6px; background: var(--violet-soft); position: relative; }
.bars-chart i.hi { background: var(--violet); }
.bars-chart i.today { background: repeating-linear-gradient(-45deg, var(--sun) 0 6px, #ffd970 6px 12px); }
.bars-chart i em { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-style: normal; color: var(--ink); font-size: 12px; white-space: nowrap; }
.sched { display: grid; gap: 12px; }
.sched-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg-soft); }
.sched-date { text-align: center; background: var(--panel); border-radius: 14px; padding: 6px 0; font-family: var(--head); line-height: 1.1; border: 1.5px solid var(--line); }
.sched-date small { display: block; font-size: 11px; font-weight: 800; color: var(--coral); text-transform: uppercase; }
.sched-date b { font-size: 22px; color: var(--ink); }
.sched-item b.t { display: block; color: var(--ink); font-size: 15px; }
.sched-item span.s { font-size: 13px; color: var(--muted); font-weight: 700; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert { position: relative; border-radius: 20px; padding: 22px; background: var(--panel); border: 2px solid var(--line); overflow: hidden; }
.cert::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--line); border-radius: 14px; pointer-events: none; }
.cert .seal { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #1b1340; border: 2px solid var(--stk); box-shadow: 3px 3px 0 var(--stk); margin-bottom: 14px; }
.cert .seal svg { width: 26px; height: 26px; }
.cert h3 { font-size: 17px; margin: 0 0 4px; }
.cert small { color: var(--muted); font-weight: 700; display: block; margin-bottom: 12px; }
.cert a { color: var(--violet); font-weight: 800; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; position: relative; }
.cert a svg { width: 16px; height: 16px; }
.cert.locked { background: var(--bg-soft); }
.cert.locked .seal { background: var(--line); color: var(--muted); box-shadow: none; border-color: var(--line); }
.leader { display: grid; gap: 10px; }
.leader div { display: grid; grid-template-columns: 24px auto 1fr auto; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 14px; }
.leader div.me-row { background: var(--violet-soft); }
.leader em { font-style: normal; font-family: var(--head); font-weight: 800; color: var(--muted); }
.leader b { color: var(--ink); }
.leader span { color: var(--violet); font-weight: 900; font-family: var(--head); }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 5px; border-radius: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; font-weight: 800; font-size: 14px; padding: 9px 15px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--panel); color: var(--ink); box-shadow: 0 2px 8px rgba(46,26,120,.08); }

/* Lesson player */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(255,200,61,.25), transparent 30%), linear-gradient(135deg, #1b1340, #3a22a8 55%, #6c4cf5); color: #fff; }
.player::before { content: ""; position: absolute; left: 6%; top: 10%; width: 150px; height: 110px; background-image: radial-gradient(rgba(255,255,255,.22) 2px, transparent 2.4px); background-size: 16px 16px; }
.player-code { position: absolute; left: 7%; top: 47%; transform: translateY(-50%); width: min(54%, 500px); background: rgba(10, 5, 35, .7); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px 20px; font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 14px; line-height: 1.7; color: #d8d2ff; backdrop-filter: blur(8px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.player-code .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.player-code .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.player-code .dots i:nth-child(2) { background: var(--sun); }
.player-code .dots i:nth-child(3) { background: var(--mint); }
.player-code .k { color: #ff8fc7; }
.player-code .f { color: var(--sun); }
.player-code .s { color: var(--mint); }
.player-code .c { color: #8c84b8; }
.player-big { position: absolute; left: 77%; top: 46%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 3px solid #1b1340; background: var(--sun); color: #1b1340; display: grid; place-items: center; cursor: pointer; box-shadow: 5px 5px 0 #1b1340; z-index: 3; transition: transform .2s, opacity .3s; }
.player-big svg { width: 32px; height: 32px; margin-left: 4px; }
.player.playing .player-big { opacity: 0; pointer-events: none; transform: scale(.8); }
.player-title { position: absolute; left: 22px; top: 18px; right: 22px; display: flex; justify-content: space-between; gap: 12px; font-weight: 800; font-size: 14px; z-index: 2; }
.player-title span { background: rgba(0,0,0,.3); padding: 5px 11px; border-radius: 10px; backdrop-filter: blur(6px); }
.controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; background: linear-gradient(to top, rgba(8,4,28,.85), transparent); display: grid; gap: 10px; z-index: 2; }
.scrub { height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); cursor: pointer; position: relative; }
.scrub i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--sun); width: 0; }
.scrub i::after { content: ""; position: absolute; right: -7px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ctrl-row { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 800; }
.ctrl-row button { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; }
.ctrl-row button svg { width: 16px; height: 16px; }
.ctrl-row .sp { margin-left: auto; display: flex; gap: 8px; }
.ctrl-row .sp button { width: auto; padding: 0 10px; font-weight: 800; font-size: 12px; }
.lesson-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lesson-bar h1 { font-size: 28px; margin: 4px 0 0; font-weight: 800; }
.lesson-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.done { background: var(--mint); color: #073a2c; box-shadow: 0 4px 0 var(--mint-dark); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.notes-list { display: grid; gap: 10px; margin-top: 16px; }
.note-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--sun-soft); font-weight: 600; }
.note-item time { font-family: var(--head); font-weight: 800; color: #a07000; background: var(--panel); padding: 2px 8px; border-radius: 8px; font-size: 13px; }
[data-theme="dark"] .note-item time { color: var(--sun); }
.note-item button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.note-add { display: flex; gap: 10px; }
.note-add input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; background: var(--bg-soft); color: var(--ink); }
.note-add input:focus { outline: none; border-color: var(--violet); }
.res-list { display: grid; gap: 10px; }
.res-list a { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; font-weight: 700; }
.res-list a:hover { border-color: var(--violet); }
.res-list a small { margin-left: auto; color: var(--muted); }
.res-list .cat-ico { width: 42px; height: 42px; border-radius: 13px; transform: none; }
.res-list .cat-ico svg { width: 20px; height: 20px; }
.qa { display: grid; gap: 14px; }
.qa-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.qa-item b { color: var(--ink); }
.qa-item p { margin: 4px 0 0; }
.qa-item .ans { margin-top: 10px; background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.curr { position: sticky; top: 90px; padding: 0; overflow: hidden; }
.curr-top { padding: 20px 20px 16px; border-bottom: 1.5px solid var(--line); }
.curr-top h2 { font-size: 18px; margin: 0 0 12px; }
.curr-list { max-height: calc(100vh - 250px); overflow-y: auto; }
.curr-sec { padding: 12px 20px 6px; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--muted); background: var(--bg-soft); display: flex; justify-content: space-between; }
.l-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px 20px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--text); font-weight: 700; font-size: 14px; border-left: 4px solid transparent; }
.l-item:hover { background: var(--bg-soft); }
.l-item .tick { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; }
.l-item .tick svg { width: 14px; height: 14px; }
.l-item.done .tick { background: var(--mint); border-color: var(--mint); color: #073a2c; }
.l-item.current { background: var(--violet-soft); border-left-color: var(--violet); color: var(--ink); }
.l-item.current .tick { border-color: var(--violet); }
.l-item time { font-size: 12px; color: var(--muted); }
.l-item.locked { opacity: .55; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 120px); background: #1b1340; color: #fff; padding: 14px 20px; border-radius: 16px; font-weight: 800; z-index: 120; display: flex; gap: 10px; align-items: center; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); box-shadow: var(--shadow-lg); }
.toast svg { width: 20px; height: 20px; color: var(--sun); }
.toast.show { transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
    .nav-links { display: none; }
    .menu-toggle { display: grid; }
    .mobile-menu { display: none; flex-direction: column; padding: 10px 20px 20px; border-top: 1px solid var(--line); background: var(--bg); }
    .mobile-menu.open { display: flex; }
    .mobile-menu a { padding: 12px 4px; font-weight: 700; border-bottom: 1px dashed var(--line); }
    .courses { grid-template-columns: repeat(3, 1fr); }
    .cats { grid-template-columns: repeat(2, 1fr); }
    #catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .c-hero-in { max-width: none; }
    .c-layout { grid-template-columns: 1fr; }
    .enroll { position: static; margin-top: 30px; max-width: 520px; order: -1; }
    .c-main { padding-top: 20px; }
    .lesson-layout { grid-template-columns: 1fr; }
    .curr { position: static; }
    .curr-list { max-height: none; }
}
@media (max-width: 1024px) {
    .hero-grid, .teach-grid, .about-hero, .story, .apply, .contact-grid, .prof, .team-plan, .cta, .grid-main, .footer-news { grid-template-columns: 1fr; }
    .hero-visual { min-height: 500px; max-width: 560px; width: 100%; margin: 0 auto; }
    .courses, .courses.three { grid-template-columns: repeat(2, 1fr); }
    .teachers, .values, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .quotes, .perks, .plans { grid-template-columns: repeat(2, 1fr); }
    .plan.pop { transform: none; }
    .quote:nth-child(2) { margin-top: 0; }
    .band-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta .actions { justify-content: flex-start; }
    .catalog { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.open { display: block; }
    .filter-toggle { display: inline-flex; }
    .prof-card { position: static; max-width: 360px; }
    .apply-side { position: static; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: 272px; transform: translateX(-100%); transition: transform .3s; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .side-toggle { display: grid; }
    .welcome { grid-template-columns: 1fr; }
    .certs { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
}
@media (max-width: 680px) {
    .section { padding: 70px 0; }
    .hide-sm { display: none; }
    .hero { padding: 40px 0 70px; }
    .hero-visual { min-height: 460px; }
    .hero-card { width: 290px; }
    .float.f1 { left: -6px; top: 20px; }
    .float.f2 { right: -6px; top: auto; bottom: 6px; }
    .float.f3 { display: none; }
    .hero-stk.s1 { right: 10px; top: 0; }
    .hero-stk.s2 { display: none; }
    .search-box select { display: none; }
    .courses, .courses.three, #catalog-grid, .teachers, .values, .quotes, .perks, .plans, .steps, .grid-4, .grid-3, .grid-2, .form-row, .learn-grid, .certs, .mosaic, .footer-grid { grid-template-columns: 1fr; }
    .mosaic { grid-template-rows: 200px 150px 150px; }
    .tile.t1 { grid-row: auto; }
    .incl, .pstats, .content > .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cat { padding: 14px; gap: 12px; }
    .cat-ico { width: 46px; height: 46px; border-radius: 14px; }
    .cat b { font-size: 16px; }
    .kpi { padding: 16px; gap: 12px; flex-direction: column; align-items: flex-start; }
    .band { padding: 44px 26px; border-radius: 26px; }
    .band-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cta { padding: 44px 26px; border-radius: 26px; }
    .cta::after { display: none; }
    .team-plan, .apply-form, .footer-news { padding: 26px; }
    .rating-sum { grid-template-columns: 1fr; }
    .inst-box { grid-template-columns: 1fr; }
    #catalog-grid.list .ccard { flex-direction: column; }
    #catalog-grid.list .cover { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
    .toolbar .search-box { max-width: none; }
    .content { padding: 20px 16px; }
    .topbar { padding: 12px 16px; }
    .topbar .search, .me-name, .me .icon-btn:not([data-theme-toggle]) { display: none; }
    .welcome { padding: 26px 22px; }
    .week-streak { min-width: 0; }
    .days span i { width: 28px; height: 28px; }
    .cont-item { grid-template-columns: 84px 1fr; }
    .cont-item .play-sm { display: none; }
    .player-code { width: 62%; left: 5%; font-size: 10px; padding: 10px; }
    .player-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; left: 82%; }
    .player-big svg { width: 24px; height: 24px; }
    .player-title span:last-child { display: none; }
    .radio-cards { grid-template-columns: 1fr; }
    .page-hero::after { width: 44px; height: 44px; right: 4%; top: 30px; }
    .x-legal { gap: 20px; }
}

/* ------------------------------------------------------------------
   Shared page components (blog, auth, FAQ, team, gallery, legal, 404…)
   Colours come from the --x-* variables mapped above for this template.
   Copyright (c) 2026 DesignVersa. All rights reserved.
------------------------------------------------------------------- */
.x-center { text-align: center; }
.x-narrow { max-width: 760px; margin-inline: auto; }
.x-mt { margin-top: 40px; }
.x-muted { color: var(--x-muted); }
.x-grid-2, .x-grid-3, .x-grid-4 { display: grid; gap: 24px; }
.x-grid-2 { grid-template-columns: repeat(2, 1fr); }
.x-grid-3 { grid-template-columns: repeat(3, 1fr); }
.x-grid-4 { grid-template-columns: repeat(4, 1fr); }
.x-card { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 28px; }
.x-card h3 { font-size: 22px; margin-bottom: 8px; }
.x-card p:last-child { margin-bottom: 0; }
.x-icon { width: 52px; height: 52px; border-radius: calc(var(--x-radius) * .7); display: grid; place-items: center; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-accent); margin-bottom: 18px; font-size: 22px; font-weight: 800; }
.x-title { font-size: clamp(30px, 4vw, 48px); margin: 10px 0 14px; }
.x-lead { font-size: 18px; color: var(--x-muted); max-width: 640px; }
.x-center .x-lead { margin-inline: auto; }
.x-head { margin-bottom: 44px; }

/* Placeholder artwork (swap for your own images) */
.x-art { position: relative; border-radius: var(--x-radius); overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, hsl(var(--h, 240) 80% 62%), hsl(calc(var(--h, 240) + 45) 75% 48%)); }
.x-art::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -12%; top: -20%; border: 28px solid rgba(255, 255, 255, .18); }
.x-art::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 24%; left: 8%; bottom: -12%; background: rgba(255, 255, 255, .16); transform: rotate(14deg); }
.x-art.tall { aspect-ratio: 3 / 4; }
.x-art.wide { aspect-ratio: 21 / 9; }
.x-art.square { aspect-ratio: 1; }
.x-art span { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

/* Blog */
.x-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.x-post { display: flex; flex-direction: column; gap: 12px; }
.x-post .x-meta { font-size: 13px; color: var(--x-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.x-post h3 { font-size: 22px; line-height: 1.25; margin: 0; }
.x-post p { color: var(--x-muted); margin: 0; }
.x-post .x-more { color: var(--x-accent); font-weight: 700; }
.x-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-accent); }
.x-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.x-featured h2 { font-size: clamp(28px, 3.4vw, 42px); }
.x-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.x-cats a, .x-cats button { border: 1px solid var(--x-line); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; background: transparent; color: var(--x-text); cursor: pointer; }
.x-cats .active { background: var(--x-accent); border-color: var(--x-accent); color: var(--x-on-accent); }

/* Article / prose */
.x-article { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.8; }
.x-article h2 { font-size: 30px; margin: 44px 0 14px; }
.x-article h3 { font-size: 23px; margin: 32px 0 10px; }
.x-article p { margin: 0 0 1.2em; }
.x-article ul, .x-article ol { padding-left: 22px; margin: 0 0 1.2em; }
.x-article li { margin-bottom: 8px; }
.x-article blockquote { margin: 32px 0; padding: 20px 26px; border-left: 4px solid var(--x-accent); background: var(--x-soft); border-radius: 0 var(--x-radius) var(--x-radius) 0; font-size: 21px; color: var(--x-ink); }
.x-article .x-art { margin: 30px 0; }
.x-author { display: flex; gap: 14px; align-items: center; margin: 22px 0 34px; }
.x-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; background: linear-gradient(135deg, hsl(var(--h, 240) 75% 55%), hsl(calc(var(--h, 240) + 50) 70% 42%)); }
.x-avatar.lg { width: 110px; height: 110px; font-size: 34px; }
.x-share { display: flex; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--x-line); align-items: center; flex-wrap: wrap; }
.x-share a { border: 1px solid var(--x-line); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* FAQ (no JavaScript needed) */
.x-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.x-faq details { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 20px 24px; }
.x-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; color: var(--x-ink); display: flex; justify-content: space-between; gap: 16px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; color: var(--x-accent); font-size: 24px; line-height: 1; }
.x-faq details[open] summary::after { content: "–"; }
.x-faq details p { margin: 12px 0 0; color: var(--x-muted); }
.x-faq-group { margin-bottom: 44px; }
.x-faq-group h2 { font-size: 26px; margin-bottom: 16px; max-width: 860px; margin-inline: auto; }

/* Auth pages */
.x-auth { min-height: 72vh; display: grid; place-items: center; padding: 60px 20px; }
.x-auth-card { width: min(460px, 100%); background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 40px; box-shadow: 0 20px 50px rgba(0, 0, 0, .08); }
.x-auth-card h1 { font-size: 32px; margin: 0 0 6px; }
.x-auth-card form { display: grid; gap: 16px; margin-top: 26px; }
.x-field label { display: block; font-size: 14px; font-weight: 600; color: var(--x-ink); margin-bottom: 7px; }
.x-field input, .x-field select, .x-field textarea { width: 100%; border: 1px solid var(--x-line); background: var(--x-soft); color: var(--x-ink); border-radius: calc(var(--x-radius) * .6); padding: 13px 15px; font: inherit; }
.x-field input:focus, .x-field select:focus, .x-field textarea:focus { outline: none; border-color: var(--x-accent); }
.x-field .error { display: none; color: #dc2626; font-size: 13px; margin-top: 5px; }
.x-field.invalid input { border-color: #dc2626; }
.x-field.invalid .error { display: block; }
.x-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.x-row a, .x-link { color: var(--x-accent); font-weight: 600; }
.x-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.x-divider { display: flex; align-items: center; gap: 12px; color: var(--x-muted); font-size: 13px; margin: 6px 0; }
.x-divider::before, .x-divider::after { content: ""; flex: 1; height: 1px; background: var(--x-line); }
.x-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-social button { border: 1px solid var(--x-line); background: transparent; color: var(--x-ink); border-radius: calc(var(--x-radius) * .6); padding: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.x-full { width: 100%; }
.form-success.x-success, .x-success { display: none; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-ink); padding: 12px 14px; border-radius: calc(var(--x-radius) * .6); font-weight: 600; }

/* 404 */
.x-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.x-404 .code { font-size: clamp(110px, 22vw, 240px); font-weight: 800; line-height: .9; color: var(--x-accent); letter-spacing: -.05em; font-family: var(--x-heading); }
.x-404 h1 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0 10px; }
.x-404 .x-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Team / people */
.x-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.x-member { text-align: center; }
.x-member .x-art { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.x-member h3 { font-size: 20px; margin: 0 0 2px; }
.x-member p { color: var(--x-muted); margin: 0; font-size: 14px; }
.x-profile { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }
.x-profile .x-art { aspect-ratio: 4 / 5; }
.x-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.x-stats div { background: var(--x-soft); border-radius: calc(var(--x-radius) * .8); padding: 18px; text-align: center; }
.x-stats b { display: block; font-size: 28px; color: var(--x-ink); font-family: var(--x-heading); }
.x-stats span { font-size: 13px; color: var(--x-muted); }

/* Lists, timeline, values */
.x-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.x-list li { display: flex; gap: 12px; align-items: flex-start; }
.x-list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: color-mix(in srgb, var(--x-accent) 18%, transparent); color: var(--x-accent); }
.x-timeline { position: relative; display: grid; gap: 28px; padding-left: 34px; max-width: 760px; }
.x-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--x-line); }
.x-timeline div { position: relative; }
.x-timeline div::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--x-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--x-accent) 20%, transparent); }
.x-timeline b { display: block; color: var(--x-accent); font-family: var(--x-heading); font-size: 20px; }
.x-timeline h3 { font-size: 20px; margin: 2px 0 4px; }
.x-timeline p { margin: 0; color: var(--x-muted); }
.x-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.x-kpi { text-align: center; padding: 26px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-card); }
.x-kpi b { display: block; font-size: 40px; color: var(--x-ink); font-family: var(--x-heading); line-height: 1.1; }
.x-kpi span { color: var(--x-muted); font-size: 14px; }

/* Gallery */
.x-gallery { columns: 3; column-gap: 20px; }
.x-gallery .x-art { break-inside: avoid; margin-bottom: 20px; }

/* Jobs / list rows */
.x-rows { display: grid; gap: 12px; }
.x-rowcard { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 22px 26px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-card); transition: border-color .2s; }
.x-rowcard:hover { border-color: var(--x-accent); }
.x-rowcard h3 { font-size: 20px; margin: 0 0 2px; }
.x-rowcard small { color: var(--x-muted); }

/* Pricing packages */
.x-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.x-plan { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 32px; display: flex; flex-direction: column; }
.x-plan.hot { border: 2px solid var(--x-accent); }
.x-plan .x-price { font-size: 44px; font-weight: 800; color: var(--x-ink); font-family: var(--x-heading); margin: 12px 0; }
.x-plan .x-price small { font-size: 15px; color: var(--x-muted); font-weight: 500; }
.x-plan .x-list { flex: 1; }

/* Calculator */
.x-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.x-calc-out { background: var(--x-soft); border-radius: var(--x-radius); padding: 30px; text-align: center; }
.x-calc-out b { display: block; font-size: 52px; color: var(--x-accent); font-family: var(--x-heading); line-height: 1.1; margin: 8px 0; }
.x-range { width: 100%; accent-color: var(--x-accent); }

/* Legal */
.x-legal { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; }
.x-toc { position: sticky; top: 110px; display: grid; gap: 8px; font-size: 14px; }
.x-toc a { color: var(--x-muted); }
.x-toc a:hover { color: var(--x-accent); }
.x-legal .x-article { margin: 0; font-size: 16px; }

/* Logo / partner row */
.x-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.x-logos div { border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 18px 26px; font-weight: 800; font-size: 18px; color: var(--x-ink); background: var(--x-card); min-width: 150px; text-align: center; }

/* Call to action band */
.x-cta { border-radius: var(--x-radius); padding: 56px; text-align: center; background: var(--x-soft); border: 1px solid var(--x-line); }
.x-cta h2 { font-size: clamp(28px, 3.6vw, 42px); }

@media (max-width: 1024px) {
    .x-grid-4, .x-team, .x-kpis { grid-template-columns: repeat(2, 1fr); }
    .x-grid-3, .x-posts, .x-plans { grid-template-columns: repeat(2, 1fr); }
    .x-featured, .x-profile, .x-calc, .x-legal { grid-template-columns: 1fr; }
    .x-toc { position: static; }
    .x-gallery { columns: 2; }
}
@media (max-width: 640px) {
    .x-grid-2, .x-grid-3, .x-grid-4, .x-posts, .x-team, .x-plans, .x-kpis { grid-template-columns: 1fr; }
    .x-gallery { columns: 1; }
    .x-rowcard { grid-template-columns: 1fr; }
    .x-auth-card, .x-cta { padding: 28px 22px; }
    .x-stats { grid-template-columns: 1fr 1fr; }
}
.page-hero .x-lead { margin-inline: auto; }
.x-center .x-author { justify-content: center; }
.x-center .x-author > div { text-align: left; }

/* Shared component colours for Learnly */
:root { --x-accent: var(--violet); --x-on-accent: #fff; --x-ink: var(--ink); --x-text: var(--text); --x-muted: var(--muted); --x-line: var(--line); --x-card: var(--panel); --x-soft: var(--bg-soft); --x-radius: 22px; --x-heading: var(--head); }
.x-auth { background: radial-gradient(600px 400px at 15% 20%, var(--violet-soft), transparent 70%), radial-gradient(500px 360px at 90% 90%, var(--sun-soft), transparent 70%); }
.x-auth-card { box-shadow: var(--shadow-lg); border-width: 1.5px; border-radius: 28px; position: relative; }
.x-auth-card::before { content: "Welcome!"; position: absolute; top: -16px; right: 26px; font-family: var(--head); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 12px; border: 2px solid var(--stk); box-shadow: 3px 3px 0 var(--stk); background: var(--sun); color: #1b1340; transform: rotate(4deg); }
.x-auth-card h1 { font-weight: 800; }
.x-field label { font-weight: 800; }
.x-field input, .x-field select, .x-field textarea { border-width: 1.5px; border-radius: 14px; }
.x-social button { border-width: 1.5px; border-radius: 14px; font-weight: 800; }
.x-faq details { border-width: 1.5px; }
.x-faq summary { font-family: var(--head); font-weight: 700; }
.x-faq summary::after { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--violet-soft); display: grid; place-items: center; font-size: 20px; }
.x-cta { background: var(--sun-soft); border: 0; border-radius: 30px; }
.x-cta h2 { font-weight: 800; }
.x-art { border-radius: 22px; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.22) 0 14%, transparent 14.5%), linear-gradient(135deg, hsl(var(--h, 255) 88% 64%), hsl(calc(var(--h, 255) + 40) 90% 68%)); }
.x-art::before { width: 30%; height: 44%; aspect-ratio: auto; border: 0; border-radius: 0; left: 7%; top: 12%; right: auto; background-image: radial-gradient(rgba(255,255,255,.45) 1.8px, transparent 2.1px); background-size: 14px 14px; }
.x-art::after { width: 34%; left: auto; right: -6%; bottom: -14%; border-radius: 30%; background: rgba(255,255,255,.2); }
.x-post { background: var(--panel); border: 1.5px solid var(--line); border-radius: 22px; padding: 10px 10px 20px; transition: transform .25s, box-shadow .25s; }
.x-post > :not(.x-art) { padding-inline: 10px; }
.x-post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.x-post h3 { font-family: var(--head); font-weight: 700; }
.x-pill { font-weight: 800; }
.x-cats .active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.x-cats button { border-width: 1.5px; font-weight: 700; }
.x-article blockquote { border-left-color: var(--sun); background: var(--sun-soft); font-family: var(--head); font-weight: 600; }
.x-404 .code { font-weight: 800; background: linear-gradient(135deg, var(--violet), #b39cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-toc { background: var(--panel); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; }
.x-avatar { font-family: var(--head); }
