/* ============================================================
   SAGEDIVINE ACADEMY · 2027
   Marketplace, account chrome, and landing additions.
   Loaded after landing.css.
   ============================================================ */

/* ---------- layout chrome ---------- */
.landing-page .site-main { min-height: 60vh; }
.nav-account { display: inline-flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid rgba(239,225,205,.18); border-radius: 999px; background: rgba(255,255,255,.035); transition: border-color .25s, background .25s; }
.nav-account:hover { border-color: rgba(229,201,155,.5); background: rgba(255,255,255,.06); }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#ecd5a9,#b98f56); color: #17160f; font-size: .68rem; font-weight: 800; letter-spacing: .02em; flex: none; }
.nav-account-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-account-text small { font-size: .55rem; text-transform: uppercase; letter-spacing: .12em; color: #9caabf; }
.nav-account-text strong { font-size: .74rem; font-weight: 700; color: #f2e8d7; }
.mobile-nav form { margin: 0; }
.mobile-nav form .btn { width: 100%; }
.mobile-account { display: flex; align-items: center; gap: 11px; padding: 10px 4px 14px; margin-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-account-text { display: flex; flex-direction: column; line-height: 1.2; }
.mobile-account-text small { font-size: .58rem; text-transform: uppercase; letter-spacing: .13em; color: #93a4ba; }
.mobile-account-text strong { font-size: .84rem; font-weight: 650; }
.nav-logout { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: #c5cfdb; background: rgba(255,255,255,.035); transition: color .2s, border-color .2s; }
.nav-logout:hover { color: #f0dcc0; border-color: rgba(229,201,155,.5); }
.nav-logout .icon { width: 16px; height: 16px; }
.nav-actions form { margin: 0; }

/* ---------- flash messages ---------- */
.flash-stack { position: fixed; top: 98px; right: 20px; z-index: 120; display: grid; gap: 10px; width: min(365px, calc(100% - 40px)); pointer-events: none; }
.flash { pointer-events: auto; display: flex; align-items: flex-start; gap: 11px; padding: 14px 14px 14px 16px; border: 1px solid rgba(229,212,181,.24); border-radius: 12px; background: rgba(10,22,40,.94); box-shadow: 0 18px 50px rgba(0,0,0,.42); backdrop-filter: blur(18px); animation: flashIn .35s var(--ease); }
.flash-icon { color: var(--goldBright); margin-top: 2px; }
.flash-icon .icon { width: 18px; height: 18px; }
.flash-copy { min-width: 0; flex: 1; }
.flash-copy strong { display: block; font-size: .8rem; line-height: 1.4; }
.flash-copy p { margin: 3px 0 0; font-size: .73rem; line-height: 1.55; color: #aebdcd; }
.flash-close { border: 0; background: none; color: #8fa0b6; padding: 2px; margin-left: auto; align-self: flex-start; }
.flash-close:hover { color: #f4e4c7; }
.flash-close .icon { width: 15px; height: 15px; }
.flash-success { border-color: rgba(144,204,164,.35); }
.flash-success .flash-icon { color: #9de0b2; }
.flash-error { border-color: rgba(225,137,137,.4); }
.flash-error .flash-icon { color: #f1a3a3; }
.flash-info .flash-icon, .flash-warning .flash-icon { color: #e8cc9a; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- home marketplace gateway ---------- */
.market-gateway { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0; background: linear-gradient(180deg,#101d31 0%,#0a1525 54%,#07101f 100%); border-block: 1px solid var(--softline); }
.market-gateway:before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 58% 55% at 84% 20%,rgba(23,77,105,.24),transparent 72%),radial-gradient(ellipse 50% 50% at 8% 88%,rgba(74,53,112,.16),transparent 75%); }
.market-gateway-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.market-gateway-head .section-title { max-width: 760px; }
.market-gateway-copy { max-width: 390px; padding-bottom: 10px; }
.market-gateway-copy p { margin: 0 0 16px; color: #aebaca; font-size: .85rem; line-height: 1.8; }
.market-gateway-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-top: 44px; }
.market-gateway-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--softline); }
.market-gateway-foot p { margin: 0; color: #8fa0b4; font-size: .76rem; }
.market-gateway-foot p strong { color: #d8c3a0; }

/* ---------- category tiles ---------- */
.market-category { position: relative; display: flex; flex-direction: column; min-height: 202px; padding: 20px 18px 17px; border: 1px solid rgba(223,212,196,.15); border-radius: 14px; background: linear-gradient(155deg,rgba(21,36,56,.82),rgba(10,20,35,.9)); transition: transform .28s var(--ease),border-color .28s,background .28s,box-shadow .28s; overflow: hidden; }
.market-category:before { content: ""; position: absolute; right: -55px; top: -64px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle,rgba(212,178,120,.14),transparent 68%); pointer-events: none; }
.market-category:hover { transform: translateY(-6px); border-color: rgba(228,192,136,.52); background: linear-gradient(155deg,rgba(26,44,68,.94),rgba(12,23,40,.96)); box-shadow: 0 20px 46px rgba(0,0,0,.28); }
.market-category-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.market-category-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(218,188,138,.32); border-radius: 10px; color: var(--gold); background: rgba(216,189,141,.07); }
.market-category-icon .icon { width: 19px; height: 19px; }
.market-category-count { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: #d8c19a; }
.market-category strong { display: block; font-size: .94rem; font-weight: 650; letter-spacing: -.01em; }
.market-category small { display: block; margin-top: 6px; color: #92a2b7; font-size: .7rem; line-height: 1.6; }
.market-category-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: #d9bf94; font-size: .67rem; font-weight: 700; letter-spacing: .04em; }
.market-category-arrow .icon { width: 13px; height: 13px; transition: transform .2s; }
.market-category:hover .market-category-arrow .icon { transform: translate(2px,-2px); }
.market-category--consult { border-color: rgba(128,196,170,.28); background: linear-gradient(155deg,rgba(22,47,50,.82),rgba(9,24,29,.92)); }
.market-category--consult .market-category-icon { color: #a8e4c5; border-color: rgba(138,208,179,.36); background: rgba(120,206,168,.07); }
.market-category--consult .market-category-count { color: #a9dfc4; }
.market-category--consult .market-category-arrow { color: #a9dfc4; }

/* ---------- market hero ---------- */
.market-hero { position: relative; isolation: isolate; overflow: hidden; padding: 160px 0 96px; border-bottom: 1px solid var(--softline); background: radial-gradient(ellipse 62% 70% at 79% 28%,rgba(30,78,101,.25),transparent 70%),radial-gradient(ellipse 50% 60% at 12% 82%,rgba(65,48,103,.18),transparent 76%); }
.market-hero .starfield { opacity: .26; }
.market-hero:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(6,14,29,.62),transparent 55%); pointer-events: none; }
.market-hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 68px; align-items: center; }
.market-hero-copy .hero-year { margin-bottom: 24px; }
.market-hero h1 { margin: 0 0 24px; font-size: clamp(3.1rem,5.7vw,5.7rem); font-weight: 550; line-height: .99; letter-spacing: -.068em; }
.market-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.055em; background: linear-gradient(125deg,#fdf0d8 4%,#d7b882 46%,#fff0cf 84%); color: transparent; background-clip: text; -webkit-background-clip: text; }
.market-hero-desc { max-width: 620px; margin: 0 0 31px; color: #c7cfda; font-size: clamp(.98rem,1.4vw,1.12rem); line-height: 1.9; }
.market-hero-desc strong { color: #fff2d3; font-weight: 650; }
.market-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.market-proof { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(231,228,217,.18); }
.market-proof div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1px 8px; }
.market-proof b { grid-row: span 2; font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1; color: #f0d8b3; }
.market-proof span { color: #f3efe6; font-size: .7rem; font-weight: 620; }
.market-proof small { color: #94a3b7; font-size: .61rem; }
.market-hero-panel { position: relative; }
.market-spotlight { position: relative; padding: 27px 25px 24px; border: 1px solid rgba(232,214,183,.24); border-radius: 20px; background: linear-gradient(155deg,rgba(18,32,52,.9),rgba(8,17,32,.94)); box-shadow: 0 32px 85px rgba(0,0,0,.36); backdrop-filter: blur(16px); }
.market-spotlight:before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse 55% 40% at 80% 0%,rgba(217,183,125,.13),transparent 70%); }
.market-spotlight-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 19px; border-bottom: 1px solid var(--softline); }
.market-spotlight-head span { font-size: .6rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; color: #d8bc88; }
.market-spotlight-head .icon { color: #d8bc88; width: 19px; height: 19px; }
.market-spotlight-list { position: relative; display: grid; gap: 5px; margin: 12px 0 6px; }
.market-spotlight-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 10px; transition: background .2s; }
.market-spotlight-item:hover { background: rgba(255,255,255,.045); }
.market-spotlight-item img { width: 46px; height: 59px; object-fit: cover; border-radius: 5px; border: 1px solid rgba(230,215,190,.22); }
.market-spotlight-copy { min-width: 0; }
.market-spotlight-copy small { display: block; color: #91a2b7; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; }
.market-spotlight-copy strong { display: block; margin-top: 2px; font-size: .78rem; font-weight: 650; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.market-spotlight-copy span { display: block; margin-top: 3px; color: #c3ad8b; font-size: .64rem; }
.market-spotlight-item > .icon { width: 14px; height: 14px; color: #a79270; }
.market-spotlight-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 15px; border-top: 1px solid var(--softline); }
.market-spotlight-foot p { margin: 0; font-size: .63rem; color: #8fa0b4; }
.market-spotlight-foot .text-link { font-size: .69rem; }

/* ---------- order category strip ---------- */
.market-categories { position: relative; padding: 48px 0 0; background: #080f1c; border-bottom: 1px solid var(--softline); }
.market-categories-head { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 18px; }
.market-categories-head .eyebrow { margin: 0; }
.market-categories-total { color: #8fa1b6; font-size: .68rem; letter-spacing: .04em; }
.market-categories-total b { color: #d9c19a; font-weight: 700; }
.market-categories .market-category { min-height: 154px; padding: 16px 15px 14px; }
.market-categories .market-category-top { margin-bottom: 16px; }
.market-categories .market-category-icon { width: 34px; height: 34px; }
.market-categories .market-category-icon .icon { width: 16px; height: 16px; }
.market-categories .market-category-count { font-size: 1.28rem; }
.market-categories .market-category strong { font-size: .84rem; }
.market-categories .market-category small { font-size: .64rem; line-height: 1.5; }
.market-categories .market-category-arrow { padding-top: 10px; font-size: .61rem; }
.market-category-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }

/* ---------- market catalog ---------- */
.market-catalog { position: relative; isolation: isolate; padding: 98px 0 108px; background: radial-gradient(ellipse 58% 45% at 78% 9%,rgba(22,64,90,.15),transparent 72%); }
.market-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.market-head .section-title { margin: .3em 0 .2em; max-width: 760px; }
.market-head-side { max-width: 360px; padding-bottom: 9px; }
.market-head-side p { margin: 0 0 12px; color: #a9b7c8; font-size: .83rem; line-height: 1.8; }
.market-head-side span { display: inline-flex; align-items: center; gap: 7px; color: #d7bf99; font-size: .68rem; }
.market-head-side span .icon { width: 14px; height: 14px; }
.market-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.market-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.market-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 13px; border: 1px solid rgba(223,212,196,.16); border-radius: 999px; background: rgba(255,255,255,.025); color: #c4ccd7; font-size: .73rem; font-weight: 600; transition: color .2s,border-color .2s,background .2s; }
.market-chip:hover { border-color: rgba(226,191,136,.45); color: #f3dfbd; }
.market-chip.is-active { border-color: transparent; background: linear-gradient(125deg,#ecd5a9,#c49a61); color: #17160f; }
.market-chip span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .55rem; }
.market-chip.is-active span { background: rgba(23,22,15,.15); }
.market-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.market-search { position: relative; display: flex; align-items: center; }
.market-search > .icon { position: absolute; left: 13px; width: 16px; height: 16px; color: #8b9bb0; pointer-events: none; }
.market-search input { width: 250px; height: 42px; padding: 0 38px 0 38px; border: 1px solid rgba(203,218,230,.17); border-radius: 9px; background: rgba(18,32,52,.85); color: #f6f1e7; font-size: .76rem; outline: 0; transition: border-color .2s,box-shadow .2s; }
.market-search input:focus { border-color: #e2bf88; box-shadow: 0 0 0 3px rgba(214,181,124,.08); }
.market-search input::placeholder { color: #75869e; }
.market-search-clear { position: absolute; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #91a0b4; background: rgba(255,255,255,.06); }
.market-search-clear:hover { color: #f4e4c7; }
.market-search-clear .icon { width: 12px; height: 12px; }
.market-sort { display: flex; align-items: center; gap: 8px; }
.market-sort label { color: #8fa0b4; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.market-sort select { height: 42px; min-width: 150px; padding: 0 31px 0 12px; border: 1px solid rgba(203,218,230,.17); border-radius: 9px; background: #132238; color: #e9eef3; font-size: .75rem; outline: 0; background-image: linear-gradient(45deg, transparent 50%, #b8a17d 50%),linear-gradient(135deg, #b8a17d 50%, transparent 50%); background-position: calc(100% - 15px) 18px,calc(100% - 10px) 18px; background-size: 5px 5px,5px 5px; background-repeat: no-repeat; appearance: none; }
.market-sort select:focus { border-color: #e2bf88; }
.market-sort option { background: #14243a; color: #fff; }
.market-active { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; color: #8fa0b4; font-size: .7rem; }
.market-active a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid rgba(223,212,196,.17); border-radius: 999px; color: #d8c4a1; }
.market-active a .icon { width: 11px; height: 11px; }
.market-active .market-active-reset { border: 0; padding-inline: 2px; color: #a7b5c7; text-decoration: underline; text-underline-offset: 3px; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(249px,1fr)); gap: 14px; margin-top: 30px; }
.market-count-line { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; color: #8e9db0; font-size: .72rem; }
.market-count-line b { color: #d7bf99; }

/* ---------- marketplace card ---------- */
.market-card { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(223,212,196,.14); border-radius: 15px; background: linear-gradient(160deg,rgba(20,34,54,.94),rgba(9,18,33,.97)); overflow: hidden; transition: transform .3s var(--ease),border-color .3s,box-shadow .3s; }
.market-card:hover { transform: translateY(-6px); border-color: rgba(228,192,136,.46); box-shadow: 0 25px 55px rgba(0,0,0,.3); }
.market-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #0c1728; }
.market-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.market-card:hover .market-card__media img { transform: scale(1.055); }
.market-card__media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(5,12,23,.75),transparent 43%); pointer-events: none; }
.market-card__badge { position: absolute; z-index: 2; left: 11px; top: 11px; padding: 5px 9px; border: 1px solid rgba(238,218,184,.34); border-radius: 999px; background: rgba(8,17,31,.72); color: #f0dbb8; font-size: .57rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; backdrop-filter: blur(9px); }
.market-card__flag { position: absolute; z-index: 2; right: 11px; top: 11px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; background: linear-gradient(125deg,#ecd5a9,#c49a61); color: #17160f; font-size: .55rem; font-weight: 800; letter-spacing: .03em; }
.market-card__flag .icon { width: 10px; height: 10px; }
.market-card__external { position: absolute; z-index: 2; right: 11px; bottom: 11px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(238,218,184,.35); border-radius: 50%; background: rgba(8,17,31,.72); color: #ebd5b1; backdrop-filter: blur(9px); }
.market-card__external .icon { width: 13px; height: 13px; }
.market-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 9px; padding: 17px 16px 15px; }
.market-card__kicker { display: flex; align-items: center; gap: 6px; color: #92a2b6; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.market-card__kicker .icon { width: 12px; height: 12px; color: #baa47f; }
.market-card__title { margin: 0; font-size: .98rem; font-weight: 660; line-height: 1.38; letter-spacing: -.012em; }
.market-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.market-card__excerpt { margin: 0; color: #9dacbe; font-size: .73rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.market-card__meta { display: flex; flex-wrap: wrap; gap: 4px 11px; margin-top: 1px; color: #8193a9; font-size: .62rem; }
.market-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.market-card__meta .icon { width: 11px; height: 11px; color: #a79270; }
.market-card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(223,212,196,.1); }
.market-card__price { display: flex; flex-direction: column; gap: 1px; }
.market-card__price strong { font-size: .96rem; font-weight: 740; color: #f4dfbc; }
.market-card__price del { font-size: .62rem; color: #7d8ca1; }
.market-card__cta { display: inline-flex; align-items: center; gap: 5px; color: #d9bf94; font-size: .64rem; font-weight: 750; white-space: nowrap; }
.market-card__cta .icon { width: 13px; height: 13px; transition: transform .2s; }
.market-card:hover .market-card__cta .icon { transform: translateX(3px); }
.market-card__source { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; color: #aebdce; font-size: .63rem; }
.market-card__source .icon { width: 11px; height: 11px; }
.market-card__source:hover { color: #f1d9b3; }
.market-empty { padding: 76px 24px; border: 1px dashed rgba(223,212,196,.23); border-radius: 17px; background: rgba(255,255,255,.018); text-align: center; }
.market-empty-icon { display: grid; place-items: center; margin: 0 auto 18px; color: #d0b889; }
.market-empty-icon .icon { width: 34px; height: 34px; }
.market-empty h3 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 650; }
.market-empty p { max-width: 500px; margin: 0 auto 22px; color: #9fadbf; font-size: .82rem; line-height: 1.75; }
.market-empty-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }

/* ---------- syllabus explorer (new skin, existing markup) ---------- */
.syllabus-explorer { margin-top: 36px; border-top: 1px solid var(--line); }
.syllabus-item { border-bottom: 1px solid var(--line); }
.syllabus-summary { display: grid; grid-template-columns: 56px minmax(0,1fr) auto auto auto; align-items: center; gap: 17px; padding: 16px 4px; list-style: none; cursor: pointer; }
.syllabus-summary::-webkit-details-marker { display: none; }
.syllabus-thumb { display: block; width: 56px; height: 72px; border-radius: 5px; overflow: hidden; border: 1px solid rgba(230,215,190,.2); background: #0c1728; }
.syllabus-thumb img { width: 100%; height: 100%; object-fit: cover; }
.syllabus-head { min-width: 0; }
.syllabus-title { display: block; font-size: .9rem; font-weight: 650; line-height: 1.35; }
.syllabus-sub { display: block; margin-top: 4px; color: #92a2b6; font-size: .65rem; }
.syllabus-facts { display: flex; flex-wrap: wrap; gap: 5px 13px; color: #8a9bae; font-size: .63rem; }
.syllabus-fact { display: inline-flex; align-items: center; gap: 4px; }
.syllabus-fact .icon { width: 12px; height: 12px; color: #a99370; }
.syllabus-price { color: #e6cda5; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.syllabus-toggle { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(223,212,196,.16); border-radius: 50%; color: #b9a482; }
.syllabus-toggle .icon { width: 13px; height: 13px; transition: transform .25s; }
.syllabus-item[open] .syllabus-toggle .icon { transform: rotate(180deg); }
.syllabus-body { padding: 0 4px 22px 73px; }
.syllabus-body-inner { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 34px; padding: 20px 20px; border: 1px solid rgba(223,212,196,.1); border-radius: 11px; background: rgba(255,255,255,.018); }
.syllabus-label { display: block; margin-bottom: 12px; color: #bba57f; font-size: .59rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.syllabus-lessons ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 18px; margin: 0; padding: 0; list-style: none; }
.syllabus-lessons li { display: flex; gap: 7px; align-items: flex-start; color: #a8b6c7; font-size: .69rem; line-height: 1.55; }
.syllabus-lessons li .icon { width: 11px; height: 11px; margin-top: 3px; color: #a4c9a8; flex: none; }
.syllabus-side { display: flex; flex-direction: column; gap: 9px; padding-left: 20px; border-left: 1px solid var(--softline); }
.syllabus-perk { display: flex; align-items: center; gap: 7px; color: #aab8c8; font-size: .66rem; }
.syllabus-perk .icon { width: 13px; height: 13px; color: #baa47f; }
.syllabus-actions { display: grid; gap: 7px; margin-top: auto; padding-top: 9px; }
.syllabus-actions .btn { min-height: 38px; padding: 7px 12px; font-size: .65rem; }
.syllabus-actions .btn .icon { width: 12px; height: 12px; }

/* ---------- order steps ---------- */
.market-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-top: 44px; }
.market-step { position: relative; padding: 25px 22px 22px; border: 1px solid var(--softline); border-radius: 13px; background: linear-gradient(150deg,rgba(22,38,58,.9),rgba(12,23,40,.94)); overflow: hidden; }
.market-step > b { display: block; margin-bottom: 17px; font-family: var(--serif); font-size: 2.05rem; font-weight: 400; line-height: 1; color: #d7bc8e; }
.market-step .icon { width: 22px; height: 22px; margin-bottom: 15px; color: #d5ba89; }
.market-step h3 { margin: 0 0 8px; font-size: .92rem; font-weight: 650; }
.market-step p { margin: 0; color: #9fadbf; font-size: .72rem; line-height: 1.7; }

/* ---------- footer additions ---------- */
.landing-page .footer-grid { grid-template-columns: 1.35fr .72fr .72fr .86fr; gap: 38px; }
.footer-links .footer-strong { color: #d7c4a2; }
.footer-account { display: grid; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--softline); }
.footer-account a, .footer-account button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: #a9b6c9; font-size: .73rem; text-align: left; }
.footer-account a:hover, .footer-account button:hover { color: #f8e1b9; }
.footer-account .icon { width: 13px; height: 13px; color: #b8a27c; }
.footer-mini { margin-top: 13px; color: #71839a; font-size: .65rem; line-height: 1.7; }

/* ---------- market responsive ---------- */
@media (max-width: 1170px) {
    .market-hero { padding-top: 148px; }
    .market-hero-grid { gap: 42px; }
    .market-hero h1 { font-size: clamp(3rem,6.4vw,5.2rem); }
    .market-gateway-head { gap: 28px; }
    .market-gateway-copy { max-width: 330px; }
    .market-category-grid { gap: 8px; }
}

@media (max-width: 980px) {
    .nav-account { display: none; }
    .flash-stack { top: 88px; }
    .market-hero { padding: 132px 0 82px; }
    .market-hero-grid { grid-template-columns: 1fr; gap: 42px; }
    .market-hero-panel { max-width: 620px; width: 100%; }
    .market-hero h1 { font-size: clamp(3.4rem,8vw,5.8rem); }
    .market-proof { margin-top: 37px; }    .market-gateway { padding: 88px 0; }
    .market-gateway-head { display: block; }
    .market-gateway-copy { max-width: 640px; margin-top: 22px; padding-bottom: 0; }
    .market-gateway-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 30px; }
    .market-categories { padding-top: 38px; }
    .market-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .market-category:nth-child(4), .market-category:nth-child(5) { min-height: 144px; }
    .market-categories .market-category { min-height: 146px; }
    .market-head { display: block; }
    .market-head-side { max-width: 640px; margin-top: 18px; padding-bottom: 0; }
    .market-toolbar { align-items: flex-start; }
    .market-tools { width: 100%; justify-content: space-between; }
    .market-search { flex: 1; }
    .market-search input { width: 100%; }
    .market-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .landing-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .landing-page .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .flash-stack { top: 78px; right: 14px; width: min(360px, calc(100% - 28px)); }
    .market-hero { padding: 126px 0 72px; }
    .market-hero h1 { font-size: clamp(2.65rem,10.4vw,4.65rem); }
    .market-hero-desc { font-size: .92rem; }
    .market-proof { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
    .market-proof b { font-size: 1.7rem; }
    .market-spotlight { padding: 22px 18px 18px; border-radius: 16px; }
    .market-gateway { padding: 76px 0; }
    .market-gateway-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .market-gateway-foot { display: block; }
    .market-gateway-foot .btn { margin-top: 14px; }
    .market-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .market-categories .market-category { min-height: 148px; }
    .market-catalog { padding: 76px 0 84px; }
    .market-head .section-title { font-size: clamp(2.3rem,8.5vw,3.6rem); }
    .market-tools { display: grid; grid-template-columns: 1fr; }
    .market-search { width: 100%; }
    .market-sort { justify-content: space-between; }
    .market-sort select { flex: 1; width: 100%; }
    .market-grid { grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 11px; }
    .market-card__body { padding: 14px 13px 13px; }
    .market-card__title { font-size: .9rem; }
    .syllabus-summary { grid-template-columns: 50px minmax(0,1fr) auto; gap: 13px; }
    .syllabus-thumb { width: 50px; height: 65px; }
    .syllabus-facts { display: none; }
    .syllabus-body { padding-left: 4px; }
    .syllabus-body-inner { grid-template-columns: 1fr; gap: 22px; padding: 18px 16px; }
    .syllabus-side { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--softline); }
    .syllabus-lessons ul { grid-template-columns: 1fr; }
    .market-steps { gap: 9px; }
    .market-step { padding: 21px 18px 19px; }
}

@media (max-width: 560px) {
    .market-gateway-grid, .market-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .market-gateway-grid .market-category--consult, .market-category-grid .market-category--consult { grid-column: 1 / -1; }
    .market-category, .market-categories .market-category { min-height: 146px; }
    .market-category-top { margin-bottom: 14px; }
    .market-category-arrow { padding-top: 14px; }
    .market-grid { grid-template-columns: 1fr; gap: 9px; }
    .market-card { flex-direction: row; }
    .market-card__media { width: 34%; min-width: 112px; max-width: 145px; aspect-ratio: auto; align-self: stretch; }
    .market-card__media img { height: 100%; }
    .market-card__badge { left: 8px; top: 8px; padding: 4px 7px; font-size: .51rem; letter-spacing: .08em; }
    .market-card__flag, .market-card__external { display: none; }
    .market-card__body { padding: 13px 13px 12px; gap: 6px; }
    .market-card__kicker { font-size: .55rem; gap: 5px; }
    .market-card__title { font-size: .87rem; line-height: 1.32; }
    .market-card__excerpt { font-size: .68rem; line-height: 1.55; }
    .market-card__meta { gap: 3px 8px; font-size: .57rem; }
    .market-card__meta span:nth-child(n+3) { display: none; }
    .market-card__foot { padding-top: 8px; margin-top: 2px; }
    .market-card__price strong { font-size: .9rem; }
    .market-card__price del { font-size: .58rem; }
    .market-card__cta { font-size: .6rem; }
    .market-hero-actions .btn { width: 100%; }
    .market-proof { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
    .market-proof div { grid-template-columns: 1fr; gap: 3px; }
    .market-proof b { grid-row: auto; font-size: 1.65rem; }
    .market-steps { grid-template-columns: 1fr; }
    .market-sort { display: grid; grid-template-columns: auto 1fr; }
    .market-sort label { white-space: nowrap; }
    .market-active { font-size: .66rem; }
    .market-count-line { display: grid; gap: 4px; align-items: start; font-size: .68rem; }
    .landing-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
    .syllabus-summary { grid-template-columns: 1fr auto auto; gap: 10px; }
    .syllabus-thumb { display: none; }
    .syllabus-price { font-size: .73rem; }
}

@media (max-width: 380px) {
    .market-hero h1 { font-size: 2.35rem; }
    .market-gateway-grid, .market-category-grid { grid-template-columns: 1fr; }
    .market-gateway-grid .market-category--consult, .market-category-grid .market-category--consult { grid-column: auto; }
    .market-category { padding-inline: 15px; }
    .market-spotlight-copy strong { font-size: .73rem; }
    .market-chip { padding-inline: 10px; font-size: .68rem; }
    .market-card__foot { align-items: flex-start; flex-wrap: wrap; gap: 4px; }
    .market-card__price strong { font-size: .8rem; white-space: nowrap; }
    .market-card__cta { gap: 4px; margin-left: auto; font-size: .6rem; }
    .market-card__cta .icon { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .flash { animation: none; }
    .market-card, .market-category, .market-hero-panel { transition: none; }
}
