*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 15px; display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-600); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--brand); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header (mirrors iibp.com.au) ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 14px rgba(5, 26, 75, .08); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 92px; position: relative; }
.site-header .container { max-width: none; padding: 0 34px; }
@media (max-width: 860px) { .site-header .container { padding: 0 16px; } }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 66px; width: auto; }
.logo-sub { font-family: var(--font-heading); font-weight: 600; color: var(--brand); font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; border-left: 2px solid var(--accent); padding-left: 12px; line-height: 1.3; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; align-self: stretch; }
.nav > a:not(.btn) { position: relative; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--brand); font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; letter-spacing: .2px; padding: 11px 18px; border-radius: 10px; transition: color .15s, background .15s, transform .15s; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav > a:not(.btn):hover { color: var(--brand); background: var(--accent-50); transform: translateY(-1px); }
.nav > a:not(.btn):hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav > a.active { color: var(--brand); background: var(--brand-50); }
.nav > a:not(.btn):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav form { margin: 0 0 0 8px; display: flex; align-items: center; }
.nav .btn { margin-left: 8px; align-self: center; transition: transform .15s, box-shadow .15s, background .15s; }
.nav .btn:hover { box-shadow: 0 6px 16px rgba(5, 26, 75, .2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; color: var(--brand); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .logo-sub { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 20px 20px; box-shadow: 0 12px 20px rgba(5, 26, 75, .1); }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 12px 10px; border-radius: 8px; border-bottom: 1px solid var(--line); transform: none; }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a:not(.btn):hover { transform: none; }
  .nav > a.active { color: var(--accent-600); background: var(--accent-50); }
  .nav form, .nav .btn { margin: 12px 0 0; }
  .nav .btn, .nav form .btn { width: 100%; }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; padding: 14px 28px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-dark { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-light:hover { background: #fff; color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8e1d17; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .7rem; letter-spacing: 1px; border-radius: 8px; }
.btn-link { background: none; border: none; padding: 0; color: var(--accent-600); cursor: pointer; font: inherit; text-decoration: underline; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--brand); }
.field { margin-bottom: 18px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd6e2; border-radius: var(--radius); font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); cursor: pointer; }
.check input { margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; border-left: 4px solid; font-size: .93rem; }
.alert-success { background: var(--success-50); border-color: var(--success); color: #134d30; }
.alert-error { background: var(--danger-50); border-color: var(--danger); color: #7a1a14; }
.alert-info { background: var(--info-50); border-color: var(--accent); color: var(--brand); }

/* ---------- Heroes ---------- */
.hero { position: relative; color: #fff; padding: 150px 0 140px; background: var(--brand) center / cover no-repeat; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 26, 75, .35) 0%, rgba(5, 26, 75, .55) 100%); }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.9rem); letter-spacing: 2px; max-width: 900px; margin: 0 auto 18px; text-shadow: 0 3px 18px rgba(0, 0, 0, .35); }
.hero p { font-size: 1.1rem; max-width: 640px; margin: 0 auto; color: #eef3fb; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.hero .row { margin-top: 30px; justify-content: center; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.hero .eyebrow, .page-hero .eyebrow { color: #fff; }
.page-hero { position: relative; color: #fff; padding: 84px 0 76px; background: var(--brand) center / cover no-repeat; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 26, 75, .92) 0%, rgba(5, 26, 75, .72) 55%, rgba(5, 26, 75, .45) 100%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; max-width: 820px; letter-spacing: 1px; }
.page-hero p { color: #dfe7f5; margin: 12px 0 0; max-width: 680px; font-size: 1.05rem; }
.breadcrumb { font-size: .8rem; color: #b9c6de; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- Sections & cards ---------- */
.section { padding: 80px 0; position: relative; }
.section-alt, .section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head p { color: var(--muted); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-body { padding: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.panel + .panel { margin-top: 20px; }
.panel h2, .panel h3 { margin-top: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.split .media { position: relative; }
.split .media img { border-radius: 4px; box-shadow: var(--shadow-lg); position: relative; }
.split .media::before { content: ''; position: absolute; top: -18px; right: -16px; width: 70%; height: 80%; background: repeating-linear-gradient(135deg, #e6ebf3 0 2px, transparent 2px 12px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; border-radius: var(--radius-xl); transition: transform .18s, box-shadow .18s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.course-cover { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--brand), var(--brand-600)); position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, .9); font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; text-align: center; padding: 16px; }
.course-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-cover .tag { position: absolute; top: 14px; left: 14px; }
.course-card .card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 24px; }
.course-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.course-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.course-meta { display: flex; gap: 6px 14px; font-size: .76rem; color: var(--muted); flex-wrap: wrap; text-transform: uppercase; letter-spacing: .5px; }
.course-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-heading); font-weight: 600; color: var(--brand); font-size: 1.1rem; }
.tag { display: inline-block; background: var(--brand); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: 1px; padding: 5px 10px; border-radius: 6px; }
.tag-accent { background: var(--accent); }
.tag-muted { background: var(--brand-50); color: var(--brand); }
.tag-success { background: var(--success-50); color: var(--success); }
.tag-danger { background: var(--danger-50); color: var(--danger); }

.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.upcoming { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.upcoming img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.upcoming div { padding: 16px 18px 20px; }
.upcoming h3 { font-size: 1.02rem; margin-bottom: 6px; }
.upcoming p { font-size: .86rem; color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 30px 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.feature .icon { width: 54px; height: 54px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 820px) { .journey { grid-template-columns: 1fr; } }
.journey .step { background: #fff; border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow); text-align: center; }
.journey .num { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 8px var(--brand-50); }
.journey h3 { margin-bottom: 6px; }
.journey p { color: var(--muted); margin: 0 0 18px; }

.quote-band { display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(120deg, #0b2a6b 0%, var(--brand) 60%); color: #fff; }
.quote-band .quote { padding: 70px 8%; }
.quote-band blockquote { margin: 0; border-left: 4px solid var(--gold); padding-left: 26px; }
.quote-band h2 { color: #fff; }
.quote-band p { font-weight: 600; color: #e7eefb; }
.quote-band .photo { background: center / cover no-repeat; min-height: 340px; }
@media (max-width: 820px) { .quote-band { grid-template-columns: 1fr; } }

.stats-band { background: var(--brand); color: #fff; padding: 44px 0; }
.stats-band .container { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 20px; }
.stats-band strong { display: block; font-family: var(--font-heading); font-size: 2.4rem; font-weight: 600; color: #fff; }
.stats-band span { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: #b9c6de; }

.cta-band { position: relative; background: var(--brand) center / cover no-repeat; color: #fff; padding: 84px 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: rgba(5, 26, 75, .78); }
.cta-band .container { position: relative; text-align: center; max-width: 760px; }
.cta-band h2 { color: #fff; letter-spacing: 1px; }
.cta-band p { color: #dfe7f5; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-family: var(--font-heading); font-weight: 600; color: var(--brand); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--accent-600); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Footer (mirrors iibp.com.au) ---------- */
.site-footer { background: #fff; color: var(--text); padding: 64px 0 0; font-size: .86rem; border-top: 1px solid var(--line); margin-top: auto; }
.site-footer h4 { font-family: var(--font-heading); font-weight: 400; font-size: 1.55rem; color: var(--brand); margin-bottom: 18px; }
.site-footer a { color: var(--accent-600); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal a { color: var(--brand); text-decoration: underline; display: inline-block; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid .logo img { height: 52px; margin-bottom: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { margin-top: 48px; padding: 22px 0; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Course detail ---------- */
.course-layout { display: grid; grid-template-columns: 1fr 350px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .course-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 112px; }
.curriculum { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.curriculum li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.curriculum li:last-child { border-bottom: none; }
.curriculum .num { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 600; color: var(--brand); }
.prose { white-space: pre-line; }
.aside-cover { border-radius: var(--radius); margin: -6px -6px 18px; aspect-ratio: 16/10; object-fit: cover; width: calc(100% + 12px); max-width: none; }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--brand-50); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.progress.done > span { background: var(--success); }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.enrol-card .card-body > * + * { margin-top: 12px; }
.cert-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-item { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }

/* ---------- Player ---------- */
.player { display: grid; grid-template-columns: 300px 1fr; min-height: calc(100vh - 92px); background: var(--bg-soft); }
.player-side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px; overflow-y: auto; }
.player-side h2 { font-size: 1.1rem; }
.player-main { padding: 26px; min-width: 0; }
.lesson-nav { list-style: none; padding: 0; margin: 16px 0; }
.lesson-nav li a, .lesson-nav li > span { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: .88rem; }
.lesson-nav li a:hover { background: var(--bg-soft); }
.lesson-nav li.current a { background: var(--brand-50); font-weight: 600; color: var(--brand); }
.lesson-nav li.locked > span { color: var(--muted); }
.lesson-nav .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; font-size: .68rem; }
.lesson-nav li.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.lesson-nav li.current .dot { border-color: var(--accent); }
.lesson-nav .kind { margin-left: auto; font-size: .62rem; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-600); font-weight: 700; }
@media (max-width: 900px) { .player { grid-template-columns: 1fr; } .player-side { border-right: none; border-bottom: 1px solid var(--line); } }

.viewer { background: #1d2740; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.viewer-stage { position: relative; display: flex; justify-content: center; align-items: center; padding: 16px; min-height: 300px; flex: 1; }
.viewer-stage canvas { max-width: 100%; height: auto; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); background: #fff; }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--brand); color: #dfe6ee; flex-wrap: wrap; }
.viewer-bar button { background: rgba(255, 255, 255, .1); color: #fff; border: none; border-radius: var(--radius); padding: 8px 14px; cursor: pointer; font: inherit; font-size: .85rem; }
.viewer-bar button:hover:not([disabled]) { background: var(--accent); color: #fff; }
.viewer-bar button[disabled] { opacity: .4; cursor: default; }
.viewer-bar .page-info { font-size: .85rem; min-width: 90px; text-align: center; }
.viewer:fullscreen { border-radius: 0; }
.viewer:fullscreen .viewer-stage canvas { max-height: calc(100vh - 80px); width: auto; }
.viewer-loading { color: #c9d3df; }
.lesson-status { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.h5p-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; min-height: 240px; }
.h5p-box .h5p-loading { color: var(--muted); padding: 40px; text-align: center; }
.embed-frame { width: 100%; min-height: 480px; border: 0; display: block; background: #fff; }
.h5p-score { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Assessment ---------- */
.question { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.question legend { font-weight: 600; color: var(--brand); padding: 0; margin-bottom: 12px; font-family: var(--font-heading); font-size: 1.05rem; }
.question fieldset { border: none; padding: 0; margin: 0; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; font-weight: 400; color: var(--text); }
.option:hover { border-color: var(--accent); background: var(--accent-50); }
.option input { margin-top: 5px; }
.option.correct { border-color: var(--success); background: var(--success-50); }
.option.wrong { border-color: var(--danger); background: var(--danger-50); }
.q-type { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--brand-50) 0); }
.score-ring > div { width: 118px; height: 118px; background: var(--surface); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 2rem; color: var(--brand); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--brand-50); color: var(--brand); font-family: var(--font-body); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td .progress { min-width: 90px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* ---------- Admin / teaching area ---------- */
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 92px); background: var(--bg-soft); }
.admin-side { background: var(--brand); padding: 22px 14px; }
.admin-side a { display: flex; align-items: center; gap: 10px; color: #c3cfe6; text-decoration: none; padding: 10px 14px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; }
.admin-side a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-side a.active { background: var(--accent); color: #fff; }
.admin-side .label { color: #7f93b8; font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 14px 14px 6px; }
.admin-side .role { margin: 0 14px 10px; }
.admin-main { padding: 30px 34px 60px; min-width: 0; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-side { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; } .admin-side .label, .admin-side .role { display: none; } .admin-main { padding: 20px 16px 48px; } }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 1.7rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; border-top: 3px solid var(--accent); }
.kpi strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.8rem; color: var(--brand); }
.kpi span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .88rem; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--brand); border-color: var(--accent); }
.dropzone { border: 2px dashed #c9d3e3; border-radius: var(--radius-lg); padding: 30px; text-align: center; background: var(--bg-soft); transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-50); }
.dropzone input[type=file] { margin: 12px auto 0; display: block; max-width: 100%; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { padding: 6px 9px; font-size: .86rem; }
details summary { cursor: pointer; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
.upload-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.upload-grid .panel + .panel { margin-top: 0; }
@media (max-width: 1000px) { .upload-grid { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 470px; margin: 56px auto; padding: 0 20px; }
.auth-wrap .panel { padding: 36px; border-top: 4px solid var(--brand); box-shadow: var(--shadow); }
.demo-logins { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); padding: 18px 20px; }
.demo-logins h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; line-height: 1.45; }
.demo-row strong { color: var(--brand); font-size: .9rem; }

/* ---------- Verify ---------- */
.verify-result { border-radius: var(--radius-lg); padding: 24px; margin-top: 24px; }
.verify-result.valid { background: var(--success-50); border: 1px solid var(--success); }
.verify-result.invalid { background: var(--danger-50); border: 1px solid var(--danger); }

/* ---------- Admin shell (2026-10 redesign) ---------- */
.admin-side { display: flex; flex-direction: column; gap: 2px; }
.admin-side .who { display: flex; align-items: center; gap: 10px; padding: 0 14px 8px; }
.admin-side .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex: none; }
.admin-side .who-text { display: flex; flex-direction: column; min-width: 0; }
.admin-side .who-text strong { color: #fff; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-side .who-text span { color: #8fa3c9; font-size: .72rem; }
.admin-side a .ico { flex: none; opacity: .85; }
.admin-side a span:first-of-type { flex: 1 1 auto; }
.admin-side a .badge { background: var(--gold); color: var(--brand); border-radius: 999px; font-size: .62rem; font-weight: 700; padding: 2px 7px; letter-spacing: 0; white-space: nowrap; flex: none; }
.admin-side a span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-side .side-foot { margin-top: auto; padding: 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); color: #8fa3c9; font-size: .72rem; line-height: 1.5; }
.admin-side .side-foot strong { color: #fff; }
@media (max-width: 860px) { .admin-side { flex-direction: row; } .admin-side a { padding: 8px 12px; font-size: .82rem; } .admin-side .who, .admin-side .side-foot, .admin-side a .ico, .admin-side a .badge { display: none; } }

.pill { display: inline-block; border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 1px 8px; line-height: 1.6; vertical-align: middle; }
.pill-gold { background: var(--gold); color: var(--brand); }
.pill-danger, .pill-error { background: var(--danger-50); color: var(--danger); }
.pill-warning { background: #fdf3dc; color: #7a5a0f; }
.pill-notice, .pill-info { background: var(--brand-50); color: var(--brand); }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warn { color: #7a5a0f !important; }
.alert-gold { background: #fdf3dc; border-color: var(--gold); color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.panel + .panel { margin-top: 20px; }
.kpis-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kpis-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.kpi-gold { border-top-color: var(--gold); }
.kpi-success { border-top-color: var(--success); }
.kpi-danger { border-top-color: var(--danger); }
.kpi .small { margin-top: 4px; text-transform: none; letter-spacing: 0; }
.console { margin: 0; background: var(--brand-700); color: #c3cfe6; border-radius: var(--radius); padding: 16px; font-size: .8rem; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.console .ok { color: #7fd3a1; }
.console .bad { color: #ff9b94; }
.console-sm { font-size: .74rem; max-height: 180px; overflow-y: auto; }
.console-tall { max-height: 320px; overflow-y: auto; }
.commits { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.commit { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.commit code { background: var(--brand-50); color: var(--brand); padding: 2px 7px; border-radius: 4px; font-size: .78rem; white-space: nowrap; }
.log-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.log-entry { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.log-error { border-left-color: var(--danger); }
.log-warning { border-left-color: var(--gold); }
.log-notice, .log-info { border-left-color: var(--accent); }
.log-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.log-msg { font-weight: 600; word-break: break-word; }
.log-trace { font-size: .76rem; color: var(--muted); word-break: break-word; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-label { display: flex; align-items: center; gap: 6px; font-size: .86rem; margin: 0; color: var(--text); font-weight: 400; }
.inline-label select { padding: 6px 9px; font-size: .86rem; }
.btn-danger-outline { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.seg { display: inline-flex; gap: 4px; background: var(--brand-50); border-radius: var(--radius); padding: 3px; }
.seg a, .seg label { padding: 6px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; margin: 0; }
.seg a.active, .seg label.active { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 2px rgba(5, 26, 75, .08); }
.seg-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .settings-grid { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; margin: 0; color: var(--text); }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.keyset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px 4px; margin: 0 0 16px; }
.keyset legend { font-weight: 700; font-size: .84rem; color: var(--brand); padding: 0 6px; display: flex; gap: 8px; align-items: center; }
.inline-check { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-weight: 400; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--success); } .dot-bad { background: var(--danger); } .dot-muted { background: #c9d3e3; }
.gw-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; font-weight: 600; font-size: .9rem; }
.health > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.health > div:last-child { border-bottom: 0; }
.health span:first-child { color: var(--muted); }
.add-user-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.add-user-grid .field { margin: 0; }
@media (max-width: 1100px) { .add-user-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .add-user-grid { grid-template-columns: 1fr; } }
.manage-row td { background: var(--bg-soft); }
details.menu { position: relative; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu .menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px; min-width: 300px; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
details.menu .menu-body input { max-width: 190px; }

/* ---------- Toast notifications ---------- */
.toast { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; align-items: flex-start; gap: 12px; width: min(420px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px 14px 18px 16px; font-size: .93rem; overflow: hidden; animation: toast-in .3s ease-out; }
.toast-success { border-left-color: var(--success); } .toast-success .toast-icon, .toast-success .toast-bar span { color: var(--success); background: var(--success); }
.toast-error { border-left-color: var(--danger); } .toast-error .toast-icon, .toast-error .toast-bar span { color: var(--danger); background: var(--danger); }
.toast-info { border-left-color: var(--accent); } .toast-info .toast-icon, .toast-info .toast-bar span { color: var(--accent); background: var(--accent); }
.toast-icon { flex: none; margin-top: 1px; background: none !important; }
.toast-text { flex: 1 1 auto; color: var(--text); line-height: 1.45; }
.toast-close { flex: none; background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; margin: -2px -4px 0 0; }
.toast-close:hover { color: var(--brand); }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand-50); }
.toast-bar span { display: block; height: 100%; width: 100%; transform-origin: left; animation: toast-bar linear forwards; animation-play-state: paused; }
.toast-out { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 600px) { .toast { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast-out { animation: none; } }

/* ---------- Profile / avatars / activity ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle; }
.avatar-initials { background: var(--accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .5px; }
.avatar-xl { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--accent-50); }
.nav-account { display: inline-flex; align-items: center; gap: 8px; }
.admin-side .who .avatar-initials { background: var(--accent); }
.account-page { padding: 36px 20px 60px; }
.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.account-side { text-align: center; }
.account-photo .avatar-wrap { display: flex; justify-content: center; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.account-stats strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; color: var(--brand); }
.account-stats span { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.activity { list-style: none; margin: 0; padding: 0; }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.act:last-child { border-bottom: 0; }
.act-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.act-login .act-icon, .act-register .act-icon { background: var(--accent-50); color: var(--accent-600); }
.act-course_done .act-icon, .act-certificate .act-icon, .act-lesson_done .act-icon { background: var(--success-50); color: var(--success); }
.act-password .act-icon, .act-password_reset .act-icon { background: #fdf3dc; color: #7a5a0f; }
.act-body { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.act-time { flex: none; white-space: nowrap; }
.modal { position: fixed; inset: 0; z-index: 1100; background: rgba(5, 26, 75, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; width: min(520px, 100%); box-shadow: var(--shadow-lg); }
.camera-stage { margin-top: 14px; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.camera-stage video, .camera-stage canvas { width: 100%; height: 100%; object-fit: cover; }
.camera-stage video { transform: scaleX(-1); }

/* ---------- Auth pages (split layout) ---------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 92px); }
.auth-brand { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand) 55%, #0b2a6b 100%); color: #fff; display: flex; align-items: center; padding: 56px 48px; }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: blob-drift 18s ease-in-out infinite alternate; will-change: transform; }
.auth-blob.b1 { width: 420px; height: 420px; right: -140px; top: -120px; background: radial-gradient(circle at 30% 30%, #2ea3f2, transparent 70%); }
.auth-blob.b2 { width: 360px; height: 360px; left: -120px; bottom: -100px; background: radial-gradient(circle at 60% 40%, #e3b23c, transparent 68%); opacity: .35; animation-duration: 24s; animation-delay: -6s; }
.auth-blob.b3 { width: 220px; height: 220px; right: 18%; bottom: 14%; background: radial-gradient(circle at 50% 50%, #1484d0, transparent 70%); animation-duration: 15s; animation-delay: -3s; }
@keyframes blob-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.12); } }
.auth-brand-inner { position: relative; max-width: 440px; animation: rise .7s ease-out both; }
.auth-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.auth-brand-logo img { background: #fff; border-radius: 10px; padding: 6px 8px; }
.auth-brand-logo span { font-family: var(--font-heading); font-weight: 600; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; line-height: 1.25; color: #c3cfe6; }
.auth-brand-title { font-size: 2rem; line-height: 1.2; margin: 0 0 14px; color: #fff; }
.auth-brand-lead { color: #c3cfe6; font-size: 1rem; line-height: 1.65; margin: 0 0 28px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: #e8eefb; animation: rise .6s ease-out both; }
.auth-points li:nth-child(1) { animation-delay: .25s; } .auth-points li:nth-child(2) { animation-delay: .4s; } .auth-points li:nth-child(3) { animation-delay: .55s; }
.auth-point-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.auth-brand-foot { margin-top: 40px; font-size: .78rem; color: #7f93b8; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg-soft); }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px 38px; box-shadow: var(--shadow-lg); animation: rise .6s ease-out .1s both; }
.auth-h1 { font-size: 1.7rem; margin: 0 0 6px; }
.auth-sub { margin: 0 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form > * { animation: rise .5s ease-out both; }
.auth-form > :nth-child(2) { animation-delay: .15s; } .auth-form > :nth-child(3) { animation-delay: .22s; } .auth-form > :nth-child(4) { animation-delay: .29s; } .auth-form > :nth-child(5) { animation-delay: .36s; } .auth-form > :nth-child(6) { animation-delay: .43s; } .auth-form > :nth-child(7) { animation-delay: .5s; }
.auth-grid { gap: 16px; }
.auth-row { margin: -4px 0 4px; }
.auth-alt { margin-top: 22px; }
/* floating labels */
.fl { position: relative; }
.fl input { width: 100%; padding: 22px 44px 8px 14px; font-size: 1rem; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.fl input:focus { box-shadow: 0 0 0 4px var(--accent-50); outline: none; border-color: var(--accent); }
.fl label { position: absolute; left: 14px; top: 15px; margin: 0; font-weight: 400; color: var(--muted); font-size: .98rem; pointer-events: none; transition: transform .15s ease, font-size .15s ease, color .15s; transform-origin: left top; }
.fl input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--text); transition: background-color 9999s; }
.fl input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px var(--accent-50); }
.fl.filled label, .fl input:focus + label, .fl input:not(:placeholder-shown) + label, .fl input:-webkit-autofill + label { transform: translateY(-9px); font-size: .72rem; color: var(--accent-600); font-weight: 600; letter-spacing: .3px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover, .pw-toggle[aria-pressed=true] { color: var(--brand); background: var(--brand-50); }
.pw-meter { height: 5px; border-radius: 999px; background: var(--brand-50); overflow: hidden; margin-top: -8px; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .3s ease, background .3s; background: var(--danger); }
.pw-meter span.fair { background: var(--gold); } .pw-meter span.good { background: var(--accent); } .pw-meter span.strong { background: var(--success); }
.pw-hint { margin-top: -8px; }
.auth-btn { margin-top: 6px; padding: 15px 24px; display: flex; gap: 10px; transition: transform .15s, box-shadow .15s, background .15s; }
.auth-btn:hover { box-shadow: 0 10px 24px rgba(5, 26, 75, .22); }
.auth-arrow { display: inline-block; transition: transform .2s; }
.auth-btn:hover .auth-arrow { transform: translateX(4px); }
.auth-done { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600); display: flex; align-items: center; justify-content: center; margin: 4px 0 18px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.auth-card .demo-logins { margin-top: 26px; animation: rise .5s ease-out .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 28px 20px; min-height: 0; }
  .auth-brand-inner { max-width: none; }
  .auth-brand-title { font-size: 1.35rem; margin-bottom: 8px; }
  .auth-brand-lead, .auth-points, .auth-brand-foot { display: none; }
  .auth-brand-logo { margin-bottom: 14px; }
  .auth-main { padding: 24px 16px 40px; }
  .auth-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { .auth-blob, .auth-brand-inner, .auth-points li, .auth-card, .auth-form > *, .auth-done, .auth-card .demo-logins { animation: none; } }
