/* =========================================================
   Inner pages: modules, blog, academy, auth, checkout, learn
   ========================================================= */
:root { --green: #16A34A; --wa: #25D366; }

.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.center-cta { text-align: center; margin-top: 2.5rem; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; text-align: right; max-width: none; margin-bottom: 2rem; }
.section__head--row .section__title { margin-bottom: 0; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa svg, .btn--outline-light svg { font-size: 1.2em; }
.btn:disabled { opacity: .7; cursor: progress; }
.grad-light { background: linear-gradient(90deg, #3DE0B8, #7FD3F2 45%, #F5A3C7 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Mega: academy + current state ---------- */
.nav__link.is-current { color: var(--purple); font-weight: 700; }
.header.on-dark .nav__link.is-current { color: #fff; }
.mega--academy { width: min(900px, 94vw); right: -160px; }
.mega__cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.2rem; }
.mega__title { margin: 0 0 .6rem; font-size: .85rem; color: var(--muted); font-weight: 700; }
.mega__tracks { display: grid; gap: .3rem; }
.mega__track { display: flex; align-items: center; gap: .7rem; padding: .45rem; border-radius: 12px; transition: background .2s; }
.mega__track:hover { background: var(--bg-soft); }
.mega__track .app-ico { width: 38px; height: 38px; border-radius: 11px; font-size: 1.05rem; }
.mega__track b { display: block; font-size: .92rem; line-height: 1.35; }
.mega__track small { color: var(--teal); font-weight: 700; }
.mega__mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: .1rem .6rem; }
.mega__mod { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem; border-radius: 8px; font-size: .9rem; transition: background .2s, color .2s; }
.mega__mod:hover { background: var(--bg-soft); color: var(--purple); }
.mega__mod i, .fchip i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex-shrink: 0; }

/* ---------- Account menu ---------- */
.account { position: relative; }
.acct { display: flex; align-items: center; gap: .5rem; padding: .25rem .35rem; border-radius: 99px; transition: background .2s; }
.acct:hover { background: var(--purple-50); }
.header.on-dark .acct { color: #fff; }
.acct__av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--purple), var(--teal)); }
.acct__n { font-weight: 700; }
.acct__menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; padding: .5rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease); z-index: 5; color: var(--text); }
.account.is-open .acct__menu { opacity: 1; visibility: visible; transform: none; }
.acct__head { padding: .5rem .6rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.acct__head b { display: block; }
.acct__head small { color: var(--muted); }
.acct__menu a, .acct__menu button { display: block; width: 100%; text-align: right; padding: .55rem .6rem; border-radius: 8px; font-weight: 500; }
.acct__menu a:hover, .acct__menu button:hover { background: var(--bg-soft); }
.acct__menu [data-logout] { color: var(--pink); }

/* ---------- Floating contact ---------- */
.fab { position: fixed; left: 18px; bottom: 18px; z-index: 150; display: flex; flex-direction: column; gap: .7rem; }
.fab__btn { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.55rem; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.fab__btn:hover { transform: scale(1.08) translateY(-2px); }
.fab__btn--wa { background: var(--wa); font-size: 1.8rem; }
.fab__btn--call { background: var(--purple); width: 50px; height: 50px; margin-inline: 3px; }
.fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ripple 2.2s ease-out infinite; pointer-events: none; }
.fab__tip { position: absolute; left: calc(100% + 10px); top: 50%; translate: 0 -50%; white-space: nowrap; font-size: .85rem; font-weight: 700; padding: .35em .8em; border-radius: 8px; background: var(--text); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateX(-6px); }
.fab__btn:hover .fab__tip { opacity: 1; transform: none; }

/* ---------- Notifications ---------- */
.notify-box { position: fixed; top: 90px; left: 50%; translate: -50% 0; z-index: 300; display: grid; gap: .5rem; pointer-events: none; }
.notify { padding: .75rem 1.2rem; border-radius: 12px; font-weight: 700; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px); transition: all .35s var(--ease); }
.notify.is-in { opacity: 1; transform: none; }
.notify--ok { background: var(--teal); color: #fff; }
.notify--err { background: var(--pink); color: #fff; }

/* ---------- Page hero (dark) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; margin-top: -72px; padding: calc(72px + 3.5rem) 0 4.5rem; background: #140B14; color: #F6EEF4; }
.page-hero .hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, rgba(20, 11, 20, .6)); }
.page-hero__inner { position: relative; }
.page-hero__title { font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 900; line-height: 1.25; margin: .6rem 0 .8rem; max-width: 900px; }
.page-hero__kicker { display: block; font-size: .42em; font-weight: 700; color: #3DE0B8; margin-bottom: .4rem; letter-spacing: 0; }
.page-hero__sub, .page-hero__lead { color: #CDBFCA; font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 760px; margin: 0 0 1.5rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .9rem; color: #CDBFCA; }
.crumbs a:hover { color: #fff; }
.crumbs i { opacity: .5; font-style: normal; }
.crumbs span { color: #fff; }
.crumbs--dark { color: var(--muted); margin-bottom: 1rem; }
.crumbs--dark a:hover, .crumbs--dark span { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; padding: .3em .9em; border-radius: 99px; font-size: .85rem; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #F6EEF4; }
.chip--light:hover { background: rgba(255, 255, 255, .16); }
.post-meta .chip { background: rgba(61, 224, 184, .15); border-color: rgba(61, 224, 184, .35); color: #3DE0B8; }

.mod-hero .page-hero__inner { padding-inline-start: 0; }
.mod-hero__ico .app-ico { width: 84px; height: 84px; border-radius: 24px; font-size: 2.3rem; margin-bottom: 1.2rem; box-shadow: 0 0 60px -6px var(--c), 0 0 0 1px rgba(255,255,255,.2) inset; animation: bob 5s ease-in-out infinite; }
.mod-hero .mod-hero__ico { position: absolute; left: 0; top: 50%; translate: 0 -60%; }
.mod-hero .mod-hero__ico .app-ico { width: clamp(120px, 16vw, 200px); height: clamp(120px, 16vw, 200px); border-radius: 30%; font-size: clamp(3rem, 6vw, 5.5rem); opacity: .95; }
.page-hero .hero__ctas { justify-content: flex-start; }

/* ---------- Module page ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.hl-card { position: relative; padding: 1.8rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.hl-card::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--c); transform: scaleX(.25); transform-origin: right; transition: transform .5s var(--ease); }
.hl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 35%, var(--border)); }
.hl-card:hover::before { transform: scaleX(1); }
.hl-card__n { font-size: 2.2rem; font-weight: 900; color: color-mix(in srgb, var(--c) 30%, transparent); line-height: 1; }
.hl-card h3 { margin: .7rem 0 .4rem; font-size: 1.2rem; }
.hl-card p { margin: 0; color: var(--muted); }

.ksa-band { position: relative; }
.ksa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.ksa-card { padding: 1.8rem 1.5rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.ksa-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(22, 163, 74, .14), transparent 70%); top: -40px; left: -40px; }
.ksa-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ksa-card__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: var(--green); background: rgba(22, 163, 74, .1); margin-bottom: 1rem; }
.ksa-card h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.ksa-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.split--top { align-items: start; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.2rem; }
.tl::before { content: ""; position: absolute; right: 22px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--purple), var(--teal)); opacity: .3; }
.tl__step { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.2rem 1.4rem 1.2rem 1.2rem; padding-inline-start: 0; }
.tl__dot { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--purple), var(--teal)); box-shadow: 0 0 0 6px var(--bg); position: relative; }
.tl__step h3 { margin: .5rem 0 .3rem; font-size: 1.15rem; }
.tl__step p { margin: 0; color: var(--muted); }

.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.use-card { padding: 1.5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--teal); }
.use-card:nth-child(2) { border-top-color: var(--purple); }
.use-card:nth-child(3) { border-top-color: var(--pink); }
.use-card:nth-child(4) { border-top-color: var(--yellow); }
.use-card b { font-size: 1.1rem; }
.use-card p { margin: .5rem 0 0; color: var(--muted); }

.lesson-list { display: grid; gap: .8rem; }
.lesson-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.lesson-row:hover { transform: translateX(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--purple) 35%, var(--border)); }
.lesson-row__play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; font-size: 1rem; }
.lesson-row__play svg, .player__play svg { fill: currentColor; transform: scaleX(-1); }
.lesson-row b { display: block; }
.lesson-row small { color: var(--muted); }
.lesson-row__dur { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .9rem; direction: ltr; }
.lvl { display: inline-block; padding: .15em .7em; border-radius: 99px; font-size: .78rem; font-weight: 800; white-space: nowrap; background: rgba(33, 183, 153, .14); color: #12866F; }
.lvl--1 { background: rgba(251, 177, 48, .18); color: #A86A00; }
.lvl--2 { background: rgba(228, 110, 120, .16); color: #C0414E; }
:root[data-theme="dark"] .lvl { color: #3DE0B8; }
:root[data-theme="dark"] .lvl--1 { color: #FBB130; }
:root[data-theme="dark"] .lvl--2 { color: #F59AA3; }

.upsell { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: center; margin-top: 3rem; padding: 2rem; border-radius: 28px; background: linear-gradient(135deg, var(--purple-50), var(--surface)); border: 1px solid var(--border); }
.upsell h3 { font-size: 1.6rem; margin: .2rem 0 .5rem; }
.upsell p { color: var(--muted); margin: 0; }
.upsell__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.faq { display: grid; gap: .8rem; }
.faq__item { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: box-shadow .25s; }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary, .cur-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.05rem; }
.faq__item summary::-webkit-details-marker, .cur-group summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; margin-inline-start: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--purple-50); flex-shrink: 0; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; background: var(--purple); translate: -50% -50%; transition: transform .3s; }
.faq__plus::after { transform: rotate(90deg); }
details[open] > summary .faq__plus::after { transform: rotate(0); }
.faq__item p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

.apps-grid--3 { grid-template-columns: repeat(3, 1fr); }
.app-card__more { position: relative; font-size: .85rem; font-weight: 700; color: var(--c); opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); }
.app-card:hover .app-card__more { opacity: 1; transform: none; }

/* ---------- Course cards ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.cc { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.cc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--border)); }
.cc[hidden] { display: none; }
.cc__cover { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); }
.cc__cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px); background-size: 14px 14px; opacity: .5; }
.cc__cover .app-ico { width: 72px; height: 72px; border-radius: 22px; font-size: 2rem; background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 20px 30px -10px rgba(0,0,0,.35); backdrop-filter: blur(6px); transition: transform .5s var(--ease); }
.cc:hover .cc__cover .app-ico { transform: scale(1.1) rotate(-6deg); }
.cc__badge { position: absolute; top: 12px; right: 12px; padding: .2em .8em; border-radius: 99px; background: var(--yellow); color: #3a2a00; font-weight: 800; font-size: .8rem; }
.cc__kind { position: absolute; bottom: 12px; left: 12px; padding: .2em .8em; border-radius: 99px; font-weight: 800; font-size: .78rem; background: rgba(0, 0, 0, .35); color: #fff; backdrop-filter: blur(6px); }
.my-card .cc__kind { position: static; display: inline-block; }
.cc__kind--free { background: #12866F; color: #fff; }
.cc__kind--paid { background: var(--purple); color: #fff; }
.cc__body { padding: 1.3rem 1.3rem .8rem; flex: 1; }
.cc__body h3 { margin: 0 0 .35rem; font-size: 1.15rem; line-height: 1.45; }
.cc__body p { margin: 0 0 .9rem; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.cc__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .84rem; }
.cc__meta span, .course-hero__meta span, .pc__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.cc__foot { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.3rem; border-top: 1px solid var(--border); }
.cc__price { font-size: 1.35rem; font-weight: 900; color: var(--purple); }
:root[data-theme="dark"] .cc__price { color: #E7C9DE; }
.cc__price small { font-size: .6em; }
.cc__price--free { color: #12866F; }
:root[data-theme="dark"] .cc__price--free { color: #3DE0B8; }
.cc__old { color: var(--muted); font-size: .9rem; }
.cc__go { margin-inline-start: auto; font-weight: 700; color: var(--c); font-size: .92rem; }

/* ---------- Academy catalog ---------- */
.acad-hero .page-hero__inner { text-align: center; }
.acad-hero .page-hero__title, .acad-hero .page-hero__sub { margin-inline: auto; }
.acad-hero .crumbs { justify-content: center; }
.search { display: flex; align-items: center; gap: .6rem; max-width: 560px; margin: 0 auto 2rem; padding: .3rem .4rem .3rem 1.2rem; padding-inline-start: 1.2rem; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); font-size: 1.2rem; color: #CDBFCA; }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 1.05rem; padding: .7rem 0; outline: none; }
.search input::placeholder { color: #CDBFCA; }
.acad-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 3rem; }
.acad-stats div { display: grid; }
.acad-stats b { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1.2; }
.acad-stats span { color: #CDBFCA; font-size: .9rem; }

.acad-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.seg { display: inline-flex; padding: .3rem; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--border); }
.seg button { padding: .5em 1.3em; border-radius: 10px; font-weight: 700; color: var(--muted); transition: all .25s; }
.seg button.is-active { background: var(--purple); color: #fff; box-shadow: 0 6px 16px -6px var(--purple); }
.acad-count { color: var(--muted); font-weight: 700; }
.fchips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.fchips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.fchip { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .45em 1em; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; font-size: .92rem; transition: all .2s; }
.fchip:hover { border-color: var(--purple); color: var(--purple); }
.fchip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.acad-block { margin-bottom: 3.5rem; }
.acad-block[hidden] { display: none; }
.empty { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 3rem 0; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: s; }
.how__step { padding: 2rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.how__step b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
.how__step h3 { margin: 0 0 .4rem; }
.how__step p { margin: 0; color: var(--muted); }

/* ---------- Course page ---------- */
.course-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: #CDBFCA; }
.course-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.course-main { display: grid; gap: 1.4rem; min-width: 0; }
.box { padding: 1.8rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.box h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: 1.4rem; }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; }
.outcomes li { display: flex; gap: .6rem; align-items: flex-start; }
.outcomes svg { flex-shrink: 0; margin-top: .3rem; color: var(--teal); stroke-width: 3; }
.bullets { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .5rem; color: var(--muted); }
.cur-group { border: 1px solid var(--border); border-radius: 16px; margin-top: .7rem; overflow: hidden; }
.cur-group summary { padding: .9rem 1.1rem; background: var(--bg-soft); }
.cur-group summary .app-ico { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; }
.cur-group summary small { color: var(--muted); font-weight: 500; }
.cur-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: .8rem; align-items: center; padding: .8rem 1.1rem; border-top: 1px solid var(--border); transition: background .2s; }
.cur-row:hover { background: var(--bg-soft); }
.cur-row__ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-50); color: var(--purple); font-size: .8rem; }
.cur-row__ico svg { fill: none; }
.cur-row__t { font-weight: 500; }
.preview { font-style: normal; font-size: .75rem; font-weight: 800; color: #12866F; background: rgba(33, 183, 153, .14); padding: .1em .6em; border-radius: 99px; margin-inline-start: .5rem; }
.cur-row__d { color: var(--muted); font-size: .88rem; direction: ltr; }
.instructor { display: flex; align-items: center; gap: 1rem; }
.instructor b { display: block; }
.instructor small { color: var(--muted); }

.buy { position: sticky; top: 90px; padding: 1.2rem; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: grid; gap: .8rem; margin-top: -9rem; z-index: 2; }
.buy__cover { position: relative; height: 170px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); }
.buy__cover .app-ico { width: 84px; height: 84px; border-radius: 24px; font-size: 2.3rem; background: rgba(255,255,255,.18); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: .3rem .2rem; }
.buy__price b { font-size: 2.2rem; font-weight: 900; }
.buy__price b small { font-size: .5em; }
.buy__price s { color: var(--muted); }
.buy__price > small { width: 100%; color: var(--muted); }
.buy__inc { list-style: none; margin: .3rem 0 0; padding: .8rem .2rem 0; border-top: 1px solid var(--border); display: grid; gap: .6rem; }
.buy__inc li { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.buy__inc svg { color: var(--purple); }
.buy__help { display: flex; align-items: center; justify-content: center; gap: .4rem; color: #128C4A; font-weight: 700; padding: .4rem; }
.buy__help svg { font-size: 1.3rem; }
.buy__progress small { color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin: .4rem 0; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--teal-400)); transition: width .6s var(--ease); }

/* ---------- Blog ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pc { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s; }
.pc[hidden] { display: none; }
.pc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pc__cover { position: relative; height: 180px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #000), var(--c) 55%, color-mix(in srgb, var(--c) 40%, #fff)); }
.pc__pattern { position: absolute; inset: -20%; background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 18px); transition: transform 1.2s var(--ease); }
.pc:hover .pc__pattern { transform: translateX(-30px); }
.pc__cover .app-ico { width: 76px; height: 76px; border-radius: 22px; font-size: 2.1rem; background: rgba(255,255,255,.2); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; position: relative; }
.pc__cat { position: absolute; bottom: 12px; right: 12px; padding: .25em .8em; border-radius: 99px; background: rgba(0,0,0,.35); color: #fff; font-size: .8rem; font-weight: 700; backdrop-filter: blur(6px); }
.pc__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.pc__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .85rem; }
.pc__body h3 { margin: .6rem 0 .4rem; font-size: 1.2rem; line-height: 1.5; }
.pc__body p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.pc__more { margin-top: auto; font-weight: 700; color: var(--purple); }
:root[data-theme="dark"] .pc__more { color: #E7C9DE; }
.pc--big { display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 2.5rem; }
.pc--big .pc__cover { height: auto; min-height: 320px; }
.pc--big .pc__cover .app-ico { width: 120px; height: 120px; font-size: 3.4rem; border-radius: 34px; }
.pc--big .pc__body { padding: 2.2rem; justify-content: center; }
.pc--big h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.post-hero .page-hero__title { font-size: clamp(1.8rem, 4vw, 3rem); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; color: #CDBFCA; }
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.article { font-size: 1.12rem; line-height: 2; }
.article h2 { font-size: 1.65rem; line-height: 1.4; margin: 2.4rem 0 .8rem; scroll-margin-top: 100px; }
.article h2::before { content: ""; display: inline-block; width: 8px; height: 1.1em; border-radius: 4px; margin-inline-end: .6rem; vertical-align: -.15em; background: linear-gradient(var(--purple), var(--teal)); }
.article p { margin: 0 0 1.2rem; }
.article ul { margin: 0 0 1.4rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.article li { position: relative; padding-inline-start: 1.8rem; }
.article li::before { content: ""; position: absolute; right: 0; top: .75em; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); transform: rotate(45deg); }
.tip { margin: 1.8rem 0; padding: 1.3rem 1.5rem; border-radius: 18px; background: color-mix(in srgb, var(--yellow) 14%, var(--surface)); border-inline-start: 5px solid var(--yellow); }
.tip b { display: block; color: #A86A00; margin-bottom: .3rem; }
:root[data-theme="dark"] .tip b { color: var(--yellow); }
.tip p { margin: 0; }
.article blockquote { margin: 1.8rem 0; padding: 1.2rem 1.6rem; font-size: 1.3rem; font-weight: 700; border-radius: 18px; background: var(--purple-50); border-inline-start: 5px solid var(--purple); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 1rem; }
.share a { padding: .35em 1em; border-radius: 99px; border: 1px solid var(--border); font-weight: 700; transition: all .2s; }
.share a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.article-side { position: sticky; top: 90px; display: grid; gap: 1rem; }
.side-box { padding: 1.3rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.side-box h4 { margin: 0 0 .8rem; }
.toc { display: grid; gap: .2rem; }
.toc a { padding: .4rem .7rem; border-radius: 8px; color: var(--muted); font-size: .93rem; border-inline-start: 2px solid transparent; transition: all .2s; }
.toc a:hover, .toc a.is-active { color: var(--purple); background: var(--purple-50); border-color: var(--purple); }
.side-app { display: flex; align-items: center; gap: .7rem; padding: .5rem; border-radius: 12px; transition: background .2s; }
.side-app:hover { background: var(--bg-soft); }
.side-app .app-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
.side-app b { display: block; font-size: .95rem; }
.side-app small { color: var(--muted); }
.side-box--cta { background: linear-gradient(135deg, var(--purple), #4E3047); color: #fff; border: 0; }
.side-box--cta p { opacity: .85; margin: 0 0 1rem; }

/* ---------- Auth ---------- */
.page-auth .footer, .page-auth .topbar { display: none; }
.auth { padding: 2rem 0 4rem; background: var(--bg-soft); min-height: calc(100vh - 72px); }
.auth__wrap { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 30px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.auth__side { position: relative; overflow: hidden; isolation: isolate; padding: 3rem; color: #F6EEF4; background: #140B14; display: flex; flex-direction: column; justify-content: center; }
.auth__side .hero__bg { z-index: -1; }
.auth__side h2 { font-size: 2.4rem; margin: 1.5rem 0 .5rem; }
.auth__side p { color: #CDBFCA; font-size: 1.1rem; }
.auth__side ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.auth__side li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.auth__side li svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(61, 224, 184, .2); color: #3DE0B8; stroke-width: 3; }
.auth__form { padding: 3rem clamp(1.5rem, 4vw, 3.5rem); display: grid; gap: 1rem; align-content: center; }
.auth__form h1 { margin: 0; font-size: 2rem; }
.auth__form .muted a, .row-between a { color: var(--purple); font-weight: 700; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .phone select, .coupon input {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: .75rem 1rem; transition: border-color .2s, box-shadow .2s; outline: none;
}
.field input:focus, .field select:focus, .coupon input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 15%, transparent); }
.field input[dir="ltr"] { text-align: left; }
.field.has-err input { border-color: var(--pink); }
.err { color: var(--pink); font-weight: 500; min-height: 0; }
.hint { color: var(--muted); }
.phone { display: grid; grid-template-columns: 120px 1fr; gap: .5rem; direction: ltr; }
.phone select { order: -1; }
.phone input { direction: ltr; }
.phone select { direction: ltr; padding-inline: .6rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--purple); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demo-note { margin: 0; padding: .7rem 1rem; border-radius: 12px; font-size: .85rem; color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--border); }

/* ---------- Checkout ---------- */
.page-light .header { background: color-mix(in srgb, var(--bg) 85%, transparent); }
.checkout { background: var(--bg-soft); padding-top: 2rem; }
.checkout__wrap { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; }
.checkout__form { display: grid; gap: 1.2rem; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-size: .95rem; }
.pay-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.pay-tab { display: grid; gap: .3rem; justify-items: center; padding: .9rem .5rem; border-radius: 14px; border: 1.5px solid var(--border); font-weight: 700; transition: all .2s; }
.pay-tab.is-active { border-color: var(--purple); background: var(--purple-50); color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 15%, transparent); }
:root[data-theme="dark"] .pay-tab.is-active { color: #E7C9DE; }
.pay-logos { display: flex; gap: .25rem; }
.pay-logos i { font-style: normal; font-size: .7rem; font-weight: 900; padding: .1em .45em; border-radius: 4px; background: var(--text); color: var(--bg); direction: ltr; }
.pay-panel { display: none; gap: 1rem; }
.pay-panel.is-active { display: grid; animation: pop .4s var(--ease); }
.apple-btn { width: 100%; padding: .9rem; border-radius: 12px; background: #000; color: #fff; font-size: 1.2rem; font-weight: 700; direction: ltr; }
.bank { display: grid; gap: .6rem; padding: 1rem; border-radius: 14px; background: var(--bg-soft); }
.bank small { display: block; color: var(--muted); }
.upload { display: grid; place-items: center; padding: 1.4rem; border-radius: 14px; border: 2px dashed var(--border); cursor: pointer; font-weight: 700; color: var(--purple); }
.upload input { display: none; }
.upload span { display: inline-flex; align-items: center; gap: .5rem; }
.summary { position: sticky; top: 90px; display: grid; gap: 1rem; }
.summary h2 { margin: 0; }
.sum-item { display: flex; align-items: center; gap: .8rem; }
.sum-item .app-ico { width: 52px; height: 52px; border-radius: 15px; font-size: 1.4rem; }
.sum-item b { display: block; line-height: 1.4; }
.sum-item small { display: block; color: var(--muted); }
.coupon { display: flex; gap: .5rem; }
.sum-lines { margin: 0; display: grid; gap: .5rem; }
.sum-lines div { display: flex; justify-content: space-between; color: var(--muted); }
.sum-lines dd { margin: 0; font-weight: 700; color: var(--text); }
.sum-lines .disc dd { color: var(--teal); }
.sum-lines .total { padding-top: .7rem; border-top: 1px solid var(--border); font-size: 1.25rem; color: var(--text); font-weight: 900; }
.sum-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; color: var(--muted); font-size: .9rem; }
.sum-trust li { display: flex; align-items: center; gap: .5rem; }
.sum-trust svg { color: var(--teal); stroke-width: 3; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.success { max-width: 620px; margin: 2rem auto; text-align: center; padding: 3rem 2rem; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.success__ico { width: 90px; height: 90px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-400)); stroke-width: 3; animation: pop .6s var(--ease); box-shadow: 0 0 0 12px color-mix(in srgb, var(--teal) 15%, transparent); }
.success h2 { font-size: 2rem; margin: 0 0 .6rem; }
.success p { color: var(--muted); margin: 0 0 1.8rem; }

/* ---------- Learn ---------- */
.page-learn .footer, .page-learn .topbar, .page-learn .fab__btn--call { display: none; }
.learn { background: var(--bg-soft); }
.learn__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: calc(100vh - 72px); }
.learn__main { padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem; display: grid; gap: 1.5rem; align-content: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #140B14; box-shadow: var(--shadow-lg); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__ph, .player__lock { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .7rem; text-align: center; padding: 1.5rem; color: #F6EEF4;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c, #714B67) 60%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, rgba(1, 126, 132, .5), transparent 50%), #140B14; }
.player__ph > .app-ico { position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem; }
.player__play { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: var(--purple); background: #fff; box-shadow: 0 0 0 14px rgba(255,255,255,.12); transition: transform .3s var(--ease); }
.player__play:hover { transform: scale(1.08); }
.player__ph b { font-size: clamp(1.1rem, 2.4vw, 1.6rem); }
.player__ph small, .player__lock p { color: #CDBFCA; }
.player__lock > svg { font-size: 3rem; color: var(--yellow); }
.player__lock h2 { margin: 0; }
.lesson-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.lesson-head h1 { margin: .4rem 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; }
.done-toggle { flex-shrink: 0; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; transition: all .25s; }
.done-toggle input { display: none; }
.done-toggle span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; border: 2px solid var(--border); color: transparent; stroke-width: 3; transition: all .25s; }
.done-toggle:has(input:checked) { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, var(--surface)); color: var(--teal); }
.done-toggle input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: .8rem; }
.steps li { counter-increment: st; position: relative; padding: .9rem 1.1rem; padding-inline-start: 3.6rem; border-radius: 14px; background: var(--bg-soft); line-height: 1.8; }
.steps li::before { content: counter(st); position: absolute; right: 1rem; top: .85rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--purple); }
.lesson-nav { display: flex; justify-content: space-between; gap: 1rem; }
.learn__side { background: var(--surface); border-inline-start: 1px solid var(--border); position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.side-head { padding: 1.3rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.side-head__t { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.side-head__t .app-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
.side-head small { color: var(--muted); }
.side-list { list-style: none; margin: 0; padding: .6rem; }
.side-list a { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem; border-radius: 12px; transition: background .2s; }
.side-list a:hover { background: var(--bg-soft); }
.side-list a.is-current { background: var(--purple-50); box-shadow: inset -3px 0 0 var(--purple); }
.sl__ico { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); font-size: .8rem; }
.is-done .sl__ico { background: var(--teal); color: #fff; stroke-width: 3; }
.sl__t { font-weight: 500; font-size: .95rem; line-height: 1.5; }
.sl__t small { display: block; color: var(--muted); font-weight: 400; }

.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1rem; background: rgba(20, 11, 20, .7); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal__box { width: min(560px, 100%); padding: 1.5rem; border-radius: 26px; background: var(--surface); display: grid; gap: 1.2rem; animation: pop .5s var(--ease); }
.modal__box .hero__ctas { justify-content: center; }
.cert { text-align: center; padding: 2.5rem 1.5rem; border-radius: 18px; border: 3px double var(--yellow); background: linear-gradient(135deg, #FFF9EC, #fff); color: #1F1B24; }
.cert__seal { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 2rem; background: var(--yellow); color: #fff; margin-bottom: .5rem; }
.cert h3 { font-size: 2rem; margin: .3rem 0; color: var(--purple); }
.cert small { color: #6B6472; }

/* ---------- Dashboard ---------- */
.dash { background: var(--bg-soft); padding-top: 2.5rem; min-height: 70vh; }
.dash__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 2rem; border-radius: 28px; background: linear-gradient(135deg, var(--purple), #3E2438); color: #fff; }
.profile { display: flex; align-items: center; gap: 1.2rem; }
.profile__av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 900; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.35); }
.profile h1 { margin: 0; font-size: 1.8rem; }
.profile .muted { color: #E4D5E0; margin: 0; }
.profile__c { margin: .2rem 0 0; font-size: .9rem; opacity: .8; }
.dash__stats { display: flex; gap: 1rem; }
.dash__stats div { display: grid; text-align: center; padding: .8rem 1.4rem; border-radius: 16px; background: rgba(255,255,255,.1); }
.dash__stats b { font-size: 1.8rem; font-weight: 900; }
.dash__stats span { font-size: .85rem; opacity: .85; }
.dash__h { font-size: 1.6rem; margin: 2.5rem 0 1.2rem; }
.my-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.my-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s; }
.my-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.my-card > .app-ico { width: 58px; height: 58px; border-radius: 17px; font-size: 1.5rem; }
.my-card__b { flex: 1; min-width: 0; }
.my-card h3 { margin: .3rem 0; font-size: 1.05rem; line-height: 1.45; }
.my-card small { color: var(--muted); }
.my-card__go { font-weight: 700; color: var(--c); white-space: nowrap; }
.empty-box { text-align: center; padding: 3rem 1rem; border-radius: 24px; background: var(--surface); border: 2px dashed var(--border); }
.empty-box > svg { font-size: 2.6rem; color: var(--purple); }
.empty-box p { color: var(--muted); }

/* ---------- Footer additions ---------- */
.footer__grid--wide { grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer__contact { display: grid; gap: .6rem; margin-top: 1.2rem; }
.footer__contact a { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; transition: color .2s; }
.footer__contact a:hover { color: #fff; }
.footer__contact svg { font-size: 1.15rem; color: #3DE0B8; }

/* =========================================================
   Laravel additions (dynamic pages, forms, rich content blocks)
   ========================================================= */
.skip-link { position: absolute; top: -60px; right: 12px; z-index: 500; padding: .6rem 1rem; border-radius: 10px; background: var(--purple); color: #fff; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
.logo img { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.footer .logo img { height: 44px; }
.footer__col .footer__h { color: #fff; margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 700; }
.side-box__h { margin: 0 0 .8rem; font-size: 1.05rem; font-weight: 700; }
.footer__addr { display: inline-flex; align-items: center; gap: .6rem; }
.footer__addr svg { font-size: 1.15rem; color: #3DE0B8; flex-shrink: 0; }
.footer__socials { margin-top: 1.2rem; flex-wrap: wrap; }
.acct__menu form { margin: 0; }
.section--flush { padding-top: 0; margin-top: -2rem; }
.mod-shot { display: block; width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.prose-intro, .blog-intro { max-width: 860px; margin: 0 auto 2.5rem; }
.blog-intro { margin-top: 3rem; }
.empty { grid-column: 1 / -1; }
.post-meta a.chip:hover { background: rgba(61, 224, 184, .25); }
.pc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fchips a.fchip { color: inherit; }
.fchips a.fchip.is-active { color: var(--bg); }

/* Article body extras */
.article__cover { display: block; width: 100%; border-radius: 22px; margin: 0 0 2rem; aspect-ratio: 16 / 9; object-fit: cover; }
.article h3 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.article p a:not(.btn), .article li a, .article td a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article img { max-width: 100%; height: auto; border-radius: 16px; }
.article ol { margin: 0 0 1.4rem; padding-inline-start: 1.4rem; display: grid; gap: .5rem; }
.article ol li { padding: 0; }
.article ol li::before { display: none; }
.article blockquote p { margin: 0; }
.article blockquote p + p { margin-top: .6rem; }
/* "Practical tip" stored as <blockquote><p><strong>نصيحة عملية:</strong> …</p></blockquote> */
.article blockquote:has(> p:first-child > strong:first-child) { font-size: 1.05rem; font-weight: 400; background: color-mix(in srgb, var(--yellow) 14%, var(--surface)); border-inline-start-color: var(--yellow); }
.article blockquote > p:first-child > strong:first-child { color: #A86A00; }
:root[data-theme="dark"] .article blockquote > p:first-child > strong:first-child { color: var(--yellow); }
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border-radius: 16px; border: 1px solid var(--border); }
.article table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.7; min-width: 520px; }
.article th, .article td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
.article thead th, .article tr:first-child th { background: var(--purple-50); font-weight: 800; }
.article tbody tr:nth-child(even) td { background: var(--bg-soft); }
.article tr:last-child td { border-bottom: 0; }
.article iframe { max-width: 100%; border: 0; border-radius: 16px; }

/* Rich custom blocks (admin editor) */
.rb-cta { margin: 2rem 0; text-align: center; }
.article a.btn, .article .rb-cta a { text-decoration: none; }
.article .rb-cta a.btn--primary, .article a.btn--primary { color: #fff; }
.rb-cta a:not(.btn) { display: inline-flex; padding: .7em 1.4em; border-radius: 12px; background: var(--purple); color: #fff; font-weight: 800; }
.rb-faq { margin: 2rem 0; }
.article .faq__item p { margin: 0; }
.article .faq__item summary { font-size: 1.02rem; line-height: 1.6; }
.rb-video { position: relative; margin: 2rem 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #140B14; box-shadow: var(--shadow-lg); }
.rb-video iframe, .rb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.rb-video figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: .5rem 1rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.rb-quote { margin: 2rem 0; padding: 1.6rem 1.8rem; border-radius: 22px; background: var(--purple-50); border-inline-start: 5px solid var(--purple); }
.rb-quote blockquote { margin: 0; padding: 0; background: none; border: 0; font-size: 1.3rem; font-weight: 700; }
.rb-quote figcaption, .rb-quote cite { display: block; margin-top: .6rem; color: var(--muted); font-style: normal; font-size: .95rem; }
.rb-case { margin: 2rem 0; padding: 1.6rem 1.8rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--teal); box-shadow: var(--shadow); }
.rb-case h3, .rb-case h4 { margin: 0 0 .5rem; }
.rb-case ul { margin: .8rem 0 0; }
.rb-case dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin: 1rem 0 0; }
.rb-case dt { color: var(--muted); font-size: .85rem; }
.rb-case dd { margin: 0; font-weight: 800; font-size: 1.2rem; color: var(--teal); }

/* Article footer: CTA, author, tags */
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin: 2.5rem 0 0; padding: 1.5rem 1.7rem; border-radius: 22px; background: linear-gradient(135deg, var(--purple-50), var(--surface)); border: 1px solid var(--border); }
.cta-box b { font-size: 1.2rem; }
.cta-box p { margin: .3rem 0 0; color: var(--muted); font-size: 1rem; }
.author-box { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.3rem 1.5rem; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--border); line-height: 1.6; }
.author-box small { display: block; color: var(--muted); font-size: .85rem; }
.author-box b { font-size: 1.1rem; }
.author-box p { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.8rem; font-size: .95rem; color: var(--muted); }
.tags a { padding: .25em .9em; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); }
.tags a:hover { border-color: var(--purple); color: var(--purple); }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: 3rem; }
.pager__n, .pager__btn { min-width: 42px; height: 42px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; transition: all .2s; }
.pager a:hover { border-color: var(--purple); color: var(--purple); }
.pager .is-current { background: var(--purple); border-color: var(--purple); color: #fff; }
.pager .is-disabled { opacity: .45; }

/* Reviews + projects */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.review { margin: 0; padding: 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.review blockquote { margin: 0; flex: 1; font-size: 1.05rem; line-height: 1.9; }
.review__stars { color: var(--border); letter-spacing: 2px; font-size: 1.1rem; }
.review__stars .is-on { color: var(--yellow); }
.review .author b { direction: rtl; }
.review .avatar { width: 48px; height: 48px; object-fit: cover; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.project { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.project__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project__body { padding: 1.4rem 1.5rem; display: grid; gap: .5rem; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; color: var(--muted); font-size: .88rem; }
.project__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.project__tag { padding: .15em .8em; border-radius: 99px; background: var(--purple-50); color: var(--purple); font-weight: 700; }
.project h3 { margin: 0; font-size: 1.2rem; }
.project p { margin: 0; color: var(--muted); }
.project p.project__client { font-weight: 700; color: var(--text); }
.project__results { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .35rem; }
.project__results li { display: flex; gap: .5rem; align-items: flex-start; }
.project__results svg { color: var(--teal); stroke-width: 3; flex-shrink: 0; margin-top: .35rem; }
.project__apps { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.project__apps a { padding: .15em .8em; border-radius: 99px; font-size: .85rem; font-weight: 700; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--border)); }

/* Lead form */
.lead-box { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: start; padding: clamp(1.5rem, 4vw, 2.8rem); border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); scroll-margin-top: 100px; }
.lead-box__intro .section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lead-box__points { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.lead-box__points li { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
.lead-box__points svg { color: var(--teal); stroke-width: 3; }
.lead-box__direct { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.lead-form { display: grid; gap: 1rem; }
.field label em { color: var(--pink); font-style: normal; }
.field textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: .75rem 1rem; resize: vertical; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 15%, transparent); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--pink); }
.err { font-size: .88rem; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-ok, .form-err { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-radius: 14px; font-weight: 700; }
.form-ok { background: color-mix(in srgb, var(--teal) 12%, var(--surface)); color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); }
.form-ok svg { stroke-width: 3; }
.form-err { background: color-mix(in srgb, var(--pink) 12%, var(--surface)); color: #C0414E; border: 1px solid color-mix(in srgb, var(--pink) 35%, transparent); }
.lead-form__note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; color: var(--muted); font-size: .88rem; }

/* Contact cards, cities, map */
.contact-cards { display: grid; gap: .8rem; }
.contact-cards--row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2.5rem; }
.contact-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card b { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.contact-card__ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: var(--purple); background: var(--purple-50); }
.contact-card__ico--wa { color: #fff; background: var(--wa); }
.page-body { margin-bottom: 2rem; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.city-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s; }
.city-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.city-card__ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.city-card h2 { margin: .3rem 0 0; font-size: 1.25rem; line-height: 1.45; }
.city-card p { margin: 0; color: var(--muted); }
.city-card__more { margin-top: auto; font-weight: 700; color: var(--purple); }
.city-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.city-side { position: sticky; top: 90px; }
.map-band { line-height: 0; }
.map-band iframe { width: 100%; height: 380px; border: 0; }

/* 404 */
.nf { text-align: center; padding: 2rem 0 1rem; }
.nf .page-hero__title, .nf .page-hero__sub { margin-inline: auto; }
.nf .hero__ctas { justify-content: center; }
.nf__code { margin: 0; font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; direction: ltr; background: linear-gradient(90deg, #3DE0B8, #7FD3F2 45%, #F5A3C7 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf__code .logo__o { color: transparent; }

@media (max-width: 1024px) {
  .lead-box, .city-wrap { grid-template-columns: 1fr; }
  .city-side { position: static; }
}
@media (max-width: 600px) {
  .map-band iframe { height: 300px; }
  .reviews, .projects { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hl-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .ksa-grid, .use-grid { grid-template-columns: repeat(2, 1fr); }
  .course-wrap, .checkout__wrap, .article-wrap { grid-template-columns: 1fr; }
  .buy { position: static; margin-top: 0; order: -1; }
  .summary, .article-side { position: static; }
  .upsell { grid-template-columns: 1fr; }
  .mod-hero .mod-hero__ico { position: static; translate: none; }
  .mod-hero .mod-hero__ico .app-ico { width: 84px; height: 84px; font-size: 2.3rem; border-radius: 24px; }
  .learn__wrap { grid-template-columns: 1fr; }
  .learn__side { position: static; height: auto; border: 0; border-top: 1px solid var(--border); }
  .footer__grid--wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mega--academy { width: 100%; }
  .mega__cols { grid-template-columns: 1fr; }
  .auth__wrap { grid-template-columns: 1fr; }
  .auth__side { padding: 2rem; }
  .auth__side ul { display: none; }
  .how { grid-template-columns: 1fr; }
  .apps-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pc--big { grid-template-columns: 1fr; }
  .pc--big .pc__cover { min-height: 200px; }
  .account .acct__menu { position: fixed; top: 76px; left: 16px; right: 16px; min-width: 0; }
}
@media (max-width: 600px) {
  .hl-grid, .posts-grid, .ksa-grid, .use-grid, .upsell__list, .apps-grid--3, .outcomes, .grid-2 { grid-template-columns: 1fr; }
  .lesson-row { grid-template-columns: auto 1fr; }
  .lesson-row .lvl, .lesson-row__dur { grid-column: 2; justify-self: start; }
  .cur-row { grid-template-columns: auto 1fr auto; }
  .cur-row .lvl { display: none; }
  .box { padding: 1.3rem; }
  .pay-tabs { grid-template-columns: 1fr; }
  .lesson-head { flex-direction: column; }
  .dash__stats { width: 100%; }
  .dash__stats div { flex: 1; padding: .7rem .5rem; }
  .my-grid { grid-template-columns: 1fr; }
  .acad-stats b { font-size: 1.5rem; }
  .fab { left: 12px; bottom: 12px; }
  .fab__btn { width: 52px; height: 52px; }
  .fab__btn--call { width: 46px; height: 46px; }
  .fab__tip { display: none; }
  .footer__grid--wide { grid-template-columns: 1fr; }
  .page-hero { padding-bottom: 3rem; }
}
@media print {
  body * { visibility: hidden; }
  .cert, .cert * { visibility: visible; }
  .cert { position: fixed; inset: 0; margin: auto; height: fit-content; }
}
