/* ==========================================================================
   Intellects Energy - "Blueprint" theme
   Deep engineering navy + electric amber, technical grid, mono readouts.
   ========================================================================== */
:root {
  --navy-950: #050f1f;
  --navy-900: #071426;
  --navy-800: #0b1f3a;
  --navy-700: #12305a;
  --navy-600: #1f3b63;
  --navy-400: #5d7aa3;
  --ink: #142235;
  --ink-2: #3c4b61;
  --muted: #66758c;
  --line: #e2e8f1;
  --bg: #f5f7fb;
  --card: #ffffff;
  --amber: #ffb020;
  --amber-600: #e89400;
  --amber-100: #fff4dc;
  --cyan: #22d3ee;
  --cyan-700: #0e7490;
  --green: #16a34a;
  --green-100: #dcfce7;
  --red: #dc2626;
  --red-100: #fee2e2;
  --blue-100: #e0ecff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 25, 50, .06), 0 6px 24px rgba(10, 25, 50, .06);
  --shadow-lg: 0 20px 60px rgba(5, 15, 31, .25);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0v32' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--cyan-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; color: var(--navy-800); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
input, select, textarea, button { font: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.grow { flex: 1; }
.mt { margin-top: 2rem; } .mt-sm { margin-top: .75rem; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem 1rem; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.ic { flex-shrink: 0; vertical-align: -4px; }
.ic-sm { width: 14px; height: 14px; }

.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(560px, 100% - 2.5rem); margin-inline: auto; }
.narrow-lg { width: min(980px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section-alt { background: #eef2f8; }
.section-dark { background: var(--navy-900) var(--grid); color: #dbe5f3; }
.section-dark h2 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head.center { justify-content: center; text-align: center; }
.row { display: flex; align-items: center; } .row.wrap { flex-wrap: wrap; gap: 1rem; }
.between { justify-content: space-between; }
.gap { gap: 1rem; } .gap-sm { gap: .5rem; } .gap-xs { gap: .25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.grid-5 { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr auto; gap: .75rem; align-items: end; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; }

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: transform .08s, background .15s, box-shadow .15s; line-height: 1.2; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-amber { background: var(--amber); color: var(--navy-900); box-shadow: 0 6px 18px rgba(255, 176, 32, .35); }
.btn-amber:hover { background: #ffbd42; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-dark { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--navy-400); }
.btn-danger { background: var(--red); color: #fff; }
.btn-done { background: var(--green-100); color: var(--green); border-color: #bbf7d0; }
.btn-wa { background: #25d366; color: #fff; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .85rem; font-size: .9rem; }
.btn-xs { padding: .3rem .6rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn-icon { background: transparent; border: 1px solid var(--line); border-radius: 6px; width: 32px; height: 32px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.btn-icon:hover { background: #fff; color: var(--navy-800); }
.btn-icon.danger:hover { color: var(--red); border-color: var(--red); }
.btn-icon .ic { width: 16px; height: 16px; }
.link { background: none; border: 0; color: var(--cyan-700); font-weight: 600; cursor: pointer; padding: 0; }

/* ---------- Pills, chips, status */
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--blue-100); color: var(--navy-700); }
.pill-amber { background: var(--amber-100); color: #8a5a00; }
.pill-green { background: var(--green-100); color: var(--green); }
.kicker { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan-700); font-weight: 600; }
.kicker-amber { color: var(--amber); }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 6px; font-size: .78rem; font-weight: 600; font-family: var(--mono); text-transform: uppercase; background: #eef2f8; color: var(--ink-2); }
.status-published, .status-success { background: var(--green-100); color: var(--green); }
.status-pending { background: var(--amber-100); color: #8a5a00; }
.status-failed, .status-archived, .status-refunded { background: var(--red-100); color: var(--red); }
.lvl { font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 5px; background: #eef2f8; color: var(--ink-2); }
.lvl-beginner { background: #e6f7ef; color: #0f766e; } .lvl-intermediate { background: var(--amber-100); color: #8a5a00; } .lvl-advanced { background: #fde8ef; color: #be123c; }
.lang-pill { font-family: var(--mono); font-size: .7rem; padding: .1rem .4rem; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }

/* ---------- Top bar */
.topbar { background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-in { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.brand-txt { font-family: var(--display); font-size: 1.15rem; line-height: 1.05; color: #fff; }
.brand-txt b { color: var(--amber); }
.brand-txt small { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #93a4bd; margin-top: 3px; }
.search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 0 .9rem; color: #93a4bd; }
.search:focus-within { border-color: var(--amber); background: rgba(255,255,255,.1); }
.search input { flex: 1; border: 0; background: transparent; color: #fff; padding: .6rem 0; outline: none; font-size: .92rem; }
.search input::placeholder { color: #8094b0; }
.nav { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.nav > a { color: #c9d6e8; font-weight: 500; font-size: .95rem; }
.nav > a:hover, .nav > a.on { color: #fff; text-decoration: none; }
.nav > a.on { box-shadow: inset 0 -2px 0 var(--amber); padding-bottom: 2px; }
.nav > a.btn { color: var(--navy-900); box-shadow: 0 6px 18px rgba(255,176,32,.25); }
.switches { display: flex; gap: .4rem; }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; overflow: hidden; }
.seg a { padding: .22rem .5rem; font-size: .78rem; font-family: var(--mono); color: #93a4bd; font-weight: 600; }
.seg a.on { background: var(--amber); color: var(--navy-900); }
.seg a:hover { text-decoration: none; color: #fff; } .seg a.on:hover { color: var(--navy-900); }
.seg-light { border-color: var(--line); background: #fff; } .seg-light a { color: var(--ink-2); padding: .35rem .75rem; font-size: .8rem; text-transform: capitalize; }
.seg-dark a { color: #93a4bd; }
.burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; margin-left: auto; padding: .4rem; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; } .usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 230px; padding: .4rem; z-index: 60; }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; padding: .55rem .8rem; border-radius: 6px; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: .92rem; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--bg); text-decoration: none; }
.menu-head { padding: .6rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; } .menu-head small { display: block; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: .85rem; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar.initials { background: linear-gradient(135deg, var(--amber), #ff7a1a); color: var(--navy-900); font-weight: 700; font-family: var(--display); }

/* ---------- Flash & notices */
.flashes { margin-top: 1rem; }
.flash { position: relative; padding: .85rem 2.5rem .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: .5rem; border: 1px solid; font-size: .95rem; transition: opacity .5s; }
.flash.fade { opacity: 0; }
.flash-success { background: var(--green-100); border-color: #bbf7d0; color: #14532d; }
.flash-error { background: var(--red-100); border-color: #fecaca; color: #7f1d1d; }
.flash-info { background: var(--blue-100); border-color: #c7dbff; color: var(--navy-700); }
.flash-x { position: absolute; right: .6rem; top: .5rem; background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .6; }
.notice-bar { background: var(--amber-100); color: #7a4f00; text-align: center; padding: .6rem 1rem; font-size: .92rem; }
.notice-amber { border-radius: var(--radius-sm); margin-bottom: 1rem; }

/* ---------- Hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 80% -10%, rgba(34,211,238,.18), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgba(255,176,32,.12), transparent 60%), var(--navy-900); color: #dbe5f3; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background: var(--grid); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; padding: 4.5rem 0 5rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: .6rem 0 1rem; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--amber); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .12em; background: var(--cyan); opacity: .6; border-radius: 2px; }
.hero .lead { font-size: 1.15rem; color: #b7c6da; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 2.4rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 2rem; justify-content: start; }
.hero-stats b { display: block; font-family: var(--mono); font-size: 1.7rem; color: #fff; }
.hero-stats span { font-size: .8rem; color: #93a4bd; text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; }
.hero-frame { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,.03); background: var(--navy-800); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.hero-frame-bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: #0a1b33; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: .72rem; color: #8094b0; }
.hero-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .hero-frame-bar i:nth-child(2) { background: var(--amber); } .hero-frame-bar i:nth-child(3) { background: #34d399; }
.hero-frame-bar span { margin-left: .5rem; }
.hero-frame iframe { width: 100%; height: 430px; border: 0; display: block; }
.hero-badge { position: absolute; left: -28px; bottom: -22px; display: flex; gap: .7rem; align-items: center; background: #fff; color: var(--ink); padding: .8rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-badge .ic { color: var(--amber-600); width: 30px; height: 30px; }
.hero-badge b { display: block; font-size: .9rem; } .hero-badge small { font-family: var(--mono); color: var(--muted); font-size: .72rem; }

/* ---------- Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.cat { display: flex; align-items: center; gap: .9rem; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat:hover { text-decoration: none; border-color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat b { display: block; font-size: .95rem; line-height: 1.3; } .cat small { color: var(--muted); font-size: .8rem; }
.cat-ic, .why-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-800); color: var(--amber); flex-shrink: 0; }
.why-ic.big { width: 64px; height: 64px; margin: 0 auto 1rem; } .why-ic.big .ic { width: 32px; height: 32px; }

/* ---------- Course cards */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.course-grid.grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ccard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ccard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd7e6; }
.ccard-img { position: relative; aspect-ratio: 16/9; background: var(--navy-800); }
.ccard-img img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 6px; font-size: .72rem; font-weight: 600; backdrop-filter: blur(6px); }
.chip .ic { width: 14px; height: 14px; }
.chip-sim { left: .6rem; top: .6rem; background: rgba(7, 20, 38, .8); color: var(--cyan); }
.chip-prac { right: .6rem; top: .6rem; background: rgba(255, 176, 32, .95); color: var(--navy-900); }
.ccard-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.ccard-body .kicker { font-size: .66rem; }
.ccard h3 { font-size: 1.02rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-body p { margin: 0; }
.ccard-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.ccard-meta .ic { width: 14px; height: 14px; }
.rating { display: inline-flex; align-items: center; gap: .25rem; color: #8a5a00; }
.rating b { color: #8a5a00; }
.star { width: 14px; height: 14px; fill: var(--amber); stroke: var(--amber); }
.stars { display: inline-flex; gap: 2px; } .stars .star { width: 16px; height: 16px; }
.stars.sm .star { width: 12px; height: 12px; }
.ccard-price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.ccard-price b { font-family: var(--mono); font-size: 1.1rem; color: var(--navy-800); }
.ccard-price s { font-size: .85rem; }
.ccard-price .lang-pill { margin-left: auto; }

/* ---------- Why / quotes / CTA */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.why::before { content: ""; position: absolute; top: -1px; left: 1.5rem; width: 40px; height: 3px; background: var(--amber); border-radius: 0 0 3px 3px; }
.why h3 { margin-top: 1rem; } .why p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.quote blockquote { margin: .7rem 0 1rem; color: var(--ink-2); }
.quote figcaption b { display: block; } .quote figcaption small { color: var(--muted); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--navy-800) var(--grid); color: #c9d6e8; border-radius: 18px; padding: 2.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; } .cta-band p { margin: 0; }
.toolbox-teaser { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.toolbox-teaser .lead { color: #b7c6da; }
.tool-list { display: grid; gap: .6rem; }
.tool-row { display: flex; flex-direction: column; padding: .9rem 1.1rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #dbe5f3; transition: background .15s, border-color .15s; }
.tool-row:hover { text-decoration: none; background: rgba(255,255,255,.08); border-color: var(--amber); }
.tool-row b { color: #fff; } .tool-row span { font-size: .88rem; color: #93a4bd; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tool-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-card h3 { margin-top: 1rem; }

/* ---------- Page heads */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 2.2rem 0 1.8rem; }
.page-head .lead { color: var(--ink-2); max-width: 760px; margin: 0; }
.page-head-dark { background: var(--navy-900) var(--grid); border: 0; color: #c9d6e8; }
.page-head-dark h1 { color: #fff; } .page-head-dark .lead { color: #b7c6da; }
.crumbs { font-size: .85rem; margin-bottom: .6rem; color: #93a4bd; } .crumbs a { color: var(--cyan); }

/* ---------- Catalog */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0 4rem; align-items: start; }
.filters { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.filters h3 { display: flex; align-items: center; gap: .4rem; font-size: 1rem; }
.filters label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: .8rem; }
.filters select { width: 100%; margin-top: .3rem; }
.pager { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; }
.empty { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed #cdd7e6; border-radius: var(--radius); color: var(--muted); }
.empty > .ic { width: 40px; height: 40px; color: var(--navy-400); margin-bottom: .5rem; }

/* ---------- Forms */
.form label, label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.form label { margin-bottom: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input:not([type]), select, textarea {
  width: 100%; margin-top: .3rem; padding: .65rem .8rem; border: 1px solid #d3dce8; border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,176,32,.2); }
.topbar .search input { margin: 0; width: auto; border: 0; box-shadow: none; background: transparent; color: #fff; padding: .6rem 0; }
textarea { resize: vertical; }
textarea.code, .code { font-family: var(--mono); font-size: .82rem; background: var(--navy-900); color: #d8e3f3; border-color: var(--navy-600); }
pre.code { padding: .8rem 1rem; border-radius: var(--radius-sm); overflow-x: auto; }
textarea.code-ish { font-family: var(--mono); font-size: .85rem; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
label.check input { width: auto; margin: 0; accent-color: var(--navy-800); }
input[type=file] { margin-top: .3rem; font-size: .88rem; }
input[type=radio], input[type=checkbox] { accent-color: var(--navy-800); }
.inline-form { display: inline-flex; gap: .3rem; align-items: center; }
.inline-form select { width: auto; margin: 0; padding: .3rem .5rem; font-size: .85rem; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.box h3 .ic { color: var(--amber-600); }

/* ---------- Course detail */
.course-hero { background: var(--navy-900) var(--grid); color: #c9d6e8; padding: 2.5rem 0 2.8rem; }
.course-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; }
.course-hero h1 { color: #fff; }
.course-hero .lead { font-size: 1.12rem; color: #b7c6da; }
.course-hero .muted { color: #93a4bd; } .course-hero a { color: var(--cyan); }
.course-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; margin-bottom: .6rem; font-size: .92rem; }
.course-meta .rating, .course-meta .rating b { color: var(--amber); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; padding: 2rem 0 4rem; align-items: start; }
.course-side { margin-top: -15rem; position: sticky; top: 88px; }
.buy-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.buy-media { aspect-ratio: 16/9; background: var(--navy-800); }
.buy-media img, .buy-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.buy-body { padding: 1.4rem; }
.buy-price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; }
.buy-price b { font-family: var(--mono); font-size: 2rem; color: var(--navy-800); }
.buy-price s { color: var(--muted); }
.includes { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--ink-2); }
.includes li { display: flex; gap: .55rem; padding: .3rem 0; } .includes .ic { width: 17px; color: var(--navy-400); }
.practical-note { margin-top: 1rem; display: flex; gap: .6rem; background: var(--amber-100); color: #7a4f00; padding: .8rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; }
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
.outcomes li { display: flex; gap: .55rem; font-size: .95rem; } .outcomes .ic { color: var(--green); margin-top: 3px; }
.bullets { padding-left: 1.2rem; } .bullets li { margin-bottom: .3rem; }
.curriculum { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cur-sec + .cur-sec { border-top: 1px solid var(--line); }
.cur-sec summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: #f8fafd; cursor: pointer; font-weight: 600; list-style: none; }
.cur-sec summary::-webkit-details-marker { display: none; }
.cur-sec summary .ic { transition: transform .2s; } .cur-sec[open] summary .ic { transform: rotate(180deg); }
.cur-sec summary small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.cur-sec ul { list-style: none; margin: 0; padding: .3rem 0; }
.cur-l { display: flex; align-items: center; gap: .7rem; padding: .5rem 1.1rem; font-size: .93rem; }
.cur-l > span:nth-child(2), .cur-l > a:nth-child(2) { flex: 1; }
.cur-ic { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; background: #eef2f8; color: var(--navy-700); flex-shrink: 0; }
.cur-ic .ic { width: 15px; height: 15px; }
.cur-ic.t-simulation { background: #e0f7fb; color: var(--cyan-700); } .cur-ic.t-quiz { background: var(--amber-100); color: #8a5a00; } .cur-ic.t-video { background: #e8ecff; color: #3b4fd8; } .cur-ic.t-resource { background: var(--green-100); color: var(--green); }
h1 .cur-ic { width: 38px; height: 38px; vertical-align: middle; }
.prose { line-height: 1.75; color: var(--ink-2); }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); margin: 1rem 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; } .prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; }
.prose code { font-family: var(--mono); background: #eef2f8; padding: .1rem .35rem; border-radius: 4px; font-size: .88em; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-sm); }
.instructor { display: flex; gap: 1rem; align-items: center; }
.instructor h3 { margin: 0; }
.rating-summary { display: flex; gap: 2rem; align-items: center; margin-bottom: 1.5rem; }
.rating-big b { font-family: var(--mono); font-size: 3rem; color: #8a5a00; line-height: 1; }
.bars { flex: 1; max-width: 420px; }
.bar-row { display: grid; grid-template-columns: 30px 1fr 40px; gap: .6rem; align-items: center; font-size: .85rem; }
.bar { height: 8px; background: #eef2f8; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--amber); }
.reviews { display: grid; gap: 1rem; margin-top: 1rem; }
.review { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review p { margin: .3rem 0 0; color: var(--ink-2); }
.review-form { margin: 1rem 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; margin-bottom: .6rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.8rem; color: #d3dce8; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--amber); }

/* ---------- Progress */
.progress { height: 8px; border-radius: 99px; background: #e5ebf3; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), #ffcf5c); border-radius: 99px; transition: width .5s; }
.progress.sm { height: 5px; width: 90px; }

/* ---------- Checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; }
.pay-opt { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt:has(input:checked) { border-color: var(--amber); background: #fffbf2; }
.pay-opt input { width: 20px; height: 20px; margin: 0; }
.pay-opt-body { flex: 1; } .pay-opt-body b { display: block; color: var(--navy-800); } .pay-opt-body small { color: var(--muted); }
.pay-logo { font-family: var(--display); font-weight: 700; color: #0ba4db; font-size: 1.05rem; } .pay-logo-stripe { color: #635bff; }
.sum-course { display: flex; gap: .8rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.sum-course img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.sum-course small { display: block; }
.sum-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .95rem; }
.sum-row.green { color: var(--green); font-weight: 600; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .8rem; font-weight: 700; font-size: 1.15rem; font-family: var(--mono); }
.coupon-form { display: flex; gap: .5rem; margin-top: 1rem; } .coupon-form input { margin: 0; text-transform: uppercase; }

/* ---------- Auth */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.auth-card { padding: 3rem clamp(1.5rem, 6vw, 5rem); max-width: 560px; width: 100%; margin: auto; }
.auth-card.solo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.auth-art { background: var(--navy-900) var(--grid); color: #c9d6e8; display: grid; place-items: center; padding: 3rem; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px dashed rgba(255,176,32,.3); right: -120px; bottom: -120px; }
.auth-art-in { max-width: 380px; } .auth-art-in .ic { width: 48px; height: 48px; color: var(--amber); } .auth-art h2 { color: #fff; margin-top: 1rem; }

/* ---------- Dashboard */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.stat b { display: block; font-family: var(--mono); font-size: 1.6rem; color: var(--navy-800); }
.stat span { font-size: .82rem; color: var(--muted); }
.stat-amber { background: var(--navy-800); border-color: var(--navy-800); } .stat-amber b { color: var(--amber); } .stat-amber span { color: #b7c6da; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.dash aside .box + .box { margin-top: 1rem; }
.my-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.my-course { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.my-course:hover { text-decoration: none; box-shadow: var(--shadow); }
.my-course img { aspect-ratio: 16/9; object-fit: cover; background: var(--navy-800); }
.my-course-body { padding: 1rem; display: grid; gap: .4rem; }
.cert-row { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.cert-row:last-child { border: 0; } .cert-row small { display: block; color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.ann { padding: .5rem 0; border-bottom: 1px solid var(--line); } .ann small { display: block; }

/* ---------- Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8fafd; }
.table th, .table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.dim td { opacity: .5; }
.box .table { font-size: .88rem; }
.list { display: grid; gap: .5rem; }
.list-row { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem 1rem; color: var(--ink); }
.box .list-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .55rem 0; }

/* ---------- Learn (player) */
.learn-body { background: #0b1626; }
.learn { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.side-closed .learn { grid-template-columns: 0 minmax(0, 1fr); }
.learn-side { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; height: calc(100vh - 68px); position: sticky; top: 68px; transition: transform .2s; }
.side-closed .learn-side { overflow: hidden; border: 0; }
.learn-side-head { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.learn-side-head h2 { font-size: 1rem; margin: .4rem 0 .7rem; }
.learn-cur details summary { padding: .75rem 1.2rem; font-weight: 600; font-size: .9rem; background: #f8fafd; border-bottom: 1px solid var(--line); cursor: pointer; }
.lc { display: flex; gap: .7rem; padding: .65rem 1.2rem; color: var(--ink); border-bottom: 1px solid #f0f3f8; font-size: .9rem; border-left: 3px solid transparent; }
.lc:hover { background: #f8fafd; text-decoration: none; }
.lc.on { background: var(--amber-100); border-left-color: var(--amber); }
.lc.locked { color: var(--muted); pointer-events: none; }
.lc-check { color: var(--navy-400); } .lc.done .lc-check { color: var(--green); }
.lc-t small { display: block; color: var(--muted); font-size: .76rem; }
.learn-main { background: var(--bg); min-width: 0; padding-bottom: 4rem; }
.learn-bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 5; }
.learn-bar h1 { font-size: 1.1rem; margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
.video-wrap { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-lg); }
.video-wrap iframe, .video-wrap video, .video-wrap > div { width: 100%; height: 100%; border: 0; display: block; }
.video-empty { display: grid !important; place-items: center; align-content: center; color: #93a4bd; background: var(--navy-900) var(--grid); }
.video-empty .ic { width: 48px; height: 48px; color: var(--amber); }
.sim-wrap { background: var(--navy-900); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--navy-600); box-shadow: var(--shadow-lg); }
.sim-wrap:fullscreen { border-radius: 0; display: flex; flex-direction: column; } .sim-wrap:fullscreen iframe { flex: 1; height: auto !important; }
.sim-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem .9rem; color: #93a4bd; font-size: .85rem; border-bottom: 1px solid var(--navy-600); font-family: var(--mono); }
.sim-bar .ic { color: var(--cyan); }
.sim-wrap iframe { width: 100%; border: 0; display: block; background: var(--navy-900); }
.lesson-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 2rem; margin-top: 1.5rem; }
.learn-actions { display: flex; gap: .75rem; justify-content: flex-end; padding: 0 1.5rem; max-width: 1200px; margin: 0 auto; }
.cert-banner { display: flex; align-items: center; gap: .8rem; max-width: 1200px; margin: 1.2rem auto 0; width: calc(100% - 3rem); background: var(--navy-800) var(--grid); color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); }
.cert-banner .ic { color: var(--amber); width: 28px; height: 28px; } .cert-banner span { flex: 1; font-weight: 600; }
.tabs { max-width: 1200px; margin: 2rem auto 0; padding: 0 1.5rem; }
.tab-heads { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tab-heads button { background: none; border: 0; padding: .75rem 1rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; }
.tab-heads button.on { color: var(--navy-800); border-bottom-color: var(--amber); }
.tab-body { display: none; } .tab-body.on { display: block; }
.section .tabs { padding: 0; max-width: none; }
.discuss-form { display: grid; gap: .5rem; justify-items: end; margin-bottom: 1.5rem; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.post p { margin: .4rem 0 0; white-space: pre-wrap; }
.post-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.post.reply { margin: .8rem 0 0 2rem; background: #f8fafd; }
.reply-box { margin-top: .6rem; } .reply-box form { display: grid; gap: .4rem; justify-items: end; margin-top: .4rem; }
.reply-box summary { list-style: none; cursor: pointer; display: inline; }
#notes { min-height: 220px; }

/* Quiz */
.quiz .q { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1rem; }
.quiz legend { font-weight: 600; padding: 0 .3rem; color: var(--navy-800); }
.qn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--navy-800); color: var(--amber); font-family: var(--mono); font-size: .8rem; margin-right: .3rem; }
.opt { display: flex !important; gap: .7rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: .5rem; cursor: pointer; font-weight: 400 !important; }
.opt:hover { background: #f8fafd; }
.opt input { width: 18px; height: 18px; margin: 0; }
.opt.correct { border-color: var(--green); background: var(--green-100); }
.q.ok { border-color: #86efac; } .q.bad { border-color: #fca5a5; }
.q-feedback { font-size: .88rem; margin-top: .5rem; color: var(--ink-2); }
.q.ok .q-feedback { color: var(--green); } .q.bad .q-feedback { color: var(--red); }
.quiz-result { margin-top: 1rem; } .quiz-result.ok h3 { color: var(--green); } .quiz-result.bad h3 { color: var(--red); }
.resource-box { text-align: center; } .resource-box > .ic { width: 48px; height: 48px; color: var(--green); margin: 0 auto .5rem; }

/* ---------- Instructor & admin */
.backnav { background: #fff; border-bottom: 1px solid var(--line); }
.backnav-in { display: flex; gap: .3rem; overflow-x: auto; }
.backnav a { display: inline-flex; gap: .4rem; align-items: center; padding: .85rem .9rem; color: var(--ink-2); font-weight: 500; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.backnav a.on { color: var(--navy-800); border-bottom-color: var(--amber); }
.backnav a:hover { text-decoration: none; color: var(--navy-800); }
.sec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; background: #f8fafd; border-bottom: 1px solid var(--line); }
.sec-title-form { display: flex; gap: .5rem; align-items: center; flex: 1; }
.sec-title-form input { margin: 0; max-width: 340px; font-weight: 600; }
.sec-title-form span { white-space: nowrap; font-size: .8rem; font-family: var(--mono); }
.les-list { list-style: none; margin: 0; padding: 0; }
.les-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-bottom: 1px solid #f0f3f8; }
.les-list form { margin: 0; }
.add-lesson, .add-section { display: flex; gap: .5rem; padding: .8rem 1rem; align-items: center; flex-wrap: wrap; }
.add-lesson input, .add-lesson select, .add-section input { margin: 0; flex: 1; min-width: 180px; }
.add-lesson select { flex: 0 1 260px; }
.thumb-preview { max-width: 240px; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.seg-radio { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg-radio label { display: flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.seg-radio label:has(input:checked) { border-color: var(--amber); background: #fffbf2; }
.dev-note { margin-top: 1rem; background: #f8fafd; border-radius: var(--radius-sm); padding: .8rem 1rem; } .dev-note summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.q-admin { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.q-admin ol { margin: .4rem 0; font-size: .9rem; } .q-admin li.correct { color: var(--green); font-weight: 600; }
.correct-pick { border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; gap: .8rem; padding: .6rem .9rem; }
.correct-pick legend { font-size: .9rem; color: var(--ink-2); }
.danger-zone { border-color: #fecaca; }
.barchart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 1rem; }
.bc-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bc-col i { width: 100%; min-height: 2px; background: linear-gradient(180deg, var(--amber), #ffcf5c); border-radius: 4px 4px 0 0; }
.bc-col small { font-size: .65rem; color: var(--muted); font-family: var(--mono); }
.unread { border-left: 3px solid var(--amber); }
.cloud-upload { margin-top: .5rem; padding: 1rem; border: 1px dashed #cdd7e6; border-radius: var(--radius-sm); }

/* ---------- Verify & certificate */
.verify-form { display: flex; gap: .5rem; margin: 1.5rem 0; } .verify-form input { margin: 0; text-transform: uppercase; }
.verify-ok { text-align: left; background: var(--green-100); border-radius: var(--radius); padding: 1.2rem 1.5rem; }
.verify-ok h3 { color: var(--green); } .verify-ok dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 .8rem; } .verify-ok dt { color: var(--muted); }
.cert-actions { display: flex; gap: .6rem; justify-content: center; margin-bottom: 1.5rem; }
.certificate { background: #fff; max-width: 1050px; margin: 0 auto; aspect-ratio: 1.414/1; padding: 2.2%; box-shadow: var(--shadow-lg); position: relative; }
.cert-border { height: 100%; border: 3px solid var(--navy-800); outline: 1px solid var(--amber); outline-offset: -10px; padding: 5% 7%; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(circle at 50% 0%, #fff8e6, transparent 50%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M28 0H0v28' fill='none' stroke='%230b1f3a' stroke-opacity='.04'/%3E%3C/svg%3E"); }
.cert-top { display: flex; align-items: center; gap: .8rem; text-align: left; }
.cert-top b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--navy-800); letter-spacing: .12em; }
.cert-top small { font-family: var(--mono); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.certificate h1 { font-size: clamp(1.4rem, 3.6vw, 2.6rem); margin: 4% 0 2%; letter-spacing: .04em; }
.cert-small { color: var(--muted); margin: .3rem 0; font-size: clamp(.75rem, 1.4vw, 1rem); }
.cert-name { font-family: var(--display); font-size: clamp(1.6rem, 4.6vw, 3.2rem); color: var(--navy-800); border-bottom: 2px solid var(--amber); padding: 0 1.5rem .2rem; margin: .5rem 0 1rem; }
.cert-course { font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.6rem); color: var(--ink); max-width: 80%; }
.cert-foot { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; width: 100%; gap: 1rem; }
.cert-foot > div { display: flex; flex-direction: column; align-items: center; }
.cert-foot .sig { font-family: var(--display); font-size: clamp(.8rem, 1.5vw, 1.05rem); border-top: 1px solid var(--ink); padding-top: .3rem; min-width: 70%; }
.cert-foot small { color: var(--muted); font-size: .75rem; }
.cert-seal { width: 84px; height: 84px; border-radius: 50%; background: var(--navy-800); display: grid !important; place-items: center; box-shadow: 0 0 0 5px var(--amber-100), 0 0 0 7px var(--amber); }
.cert-seal .ic { width: 40px; height: 40px; color: var(--amber); }
.cert-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.8rem; margin-top: 4%; font-size: clamp(.65rem, 1.2vw, .82rem); color: var(--muted); }
.err-code { font-family: var(--mono); font-size: 5rem; font-weight: 700; color: var(--amber); line-height: 1; }

/* ---------- Footer */
.footer { background: var(--navy-950); color: #93a4bd; padding: 3.5rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.footer a { display: block; color: #b7c6da; padding: .2rem 0; font-size: .92rem; }
.footer a.brand { display: flex; margin-bottom: 1rem; }
.footer p a { display: inline; }
.footer .muted { color: #8094b0; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .85rem; }
.footer-base .seg a { display: inline-block; padding: .25rem .6rem; }
.pay-note { display: flex; gap: .4rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 40; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Responsive */
@media (max-width: 1100px) {
  .hide-md { display: none; }
  .course-hero-in, .course-layout { grid-template-columns: 1fr; }
  .course-side { margin-top: 0; position: static; order: -1; }
  .course-hero-in > div:last-child { display: none; }
}
@media (max-width: 980px) {
  .topbar-in { gap: .75rem; }
  .search { display: none; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: .2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-open .nav { display: flex; }
  .nav > a { padding: .6rem 0; }
  .nav > a.on { box-shadow: none; color: var(--amber); }
  .switches { padding: .5rem 0; }
  .usermenu .menu { position: static; box-shadow: none; margin-top: .5rem; }
  .hide-md { display: block; }
  .hero-in { grid-template-columns: 1fr; padding: 3rem 0 3.5rem; }
  .hero-frame { transform: none; } .hero-frame iframe { height: 380px; }
  .hero-badge { left: 10px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 1.2rem 2.5rem; }
  .why-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .toolbox-teaser { grid-template-columns: 1fr; gap: 1.5rem; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .dash, .checkout, .grid-2-1 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .learn { grid-template-columns: 1fr; }
  .learn-side { position: fixed; z-index: 30; left: 0; top: 68px; width: min(340px, 88vw); box-shadow: var(--shadow-lg); }
  .side-closed .learn-side { transform: translateX(-105%); }
  .side-closed .learn { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; }
  .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 1.5rem); }
  .section { padding: 2.5rem 0; }
  .brand-txt small { display: none; }
  .why-grid, .quote-grid, .grid-2, .grid-3, .bi, .outcomes, .footer-grid, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .stage { padding: .75rem; }
  .learn-bar { padding: .6rem .75rem; } .learn-bar h1 { font-size: .95rem; }
  .lesson-body { padding: 1.2rem; }
  .cta-band { padding: 1.6rem; }
  .sec-head, .sec-title-form { flex-wrap: wrap; }
  .rating-summary { flex-direction: column; align-items: flex-start; }
  .certificate { aspect-ratio: auto; } .cert-border { padding: 2rem 1rem; }
}

/* ---------- Print (certificates) */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  .topbar, .footer, .no-print, .flashes, .wa-float, .skip { display: none !important; }
  .section { padding: 0; }
  .container { width: 100%; }
  .certificate { box-shadow: none; max-width: none; width: 297mm; height: 210mm; aspect-ratio: auto; padding: 8mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
