@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #1c2141;
  --muted: #737895;
  --line: #e8e8f4;
  --surface: #ffffff;
  --page: #f7f7fc;
  --purple: #6d45e8;
  --purple-2: #8b60f3;
  --purple-soft: #f0ebff;
  --nav: #15172d;
  --teal: #3bbcb1;
  --green: #20b779;
  --shadow: 0 12px 32px rgba(46, 38, 99, .08);
  --shadow-sm: 0 5px 18px rgba(46, 38, 99, .06);
  font-family: 'Be Vietnam Pro', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(109, 69, 232, .25); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 258px; display: flex; flex-direction: column; padding: 30px 18px 20px; color: #fff; background: var(--nav); overflow-y: auto; }
.sidebar::before { content: ''; position: absolute; width: 240px; height: 240px; top: -90px; right: -100px; border-radius: 50%; background: rgba(118, 89, 246, .23); filter: blur(3px); pointer-events: none; }
.sidebar-brand { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 10px 28px; }
.brand-mark, .modal-app-icon { display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, #9e70ff, #5c35db); box-shadow: 0 8px 18px rgba(83, 45, 216, .3); }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; font-size: 25px; font-weight: 800; }
.sidebar-brand strong { display: block; font-size: 18px; letter-spacing: -.5px; line-height: 1.1; }
.sidebar-brand strong span { color: #bda8ff; }
.sidebar-brand small { display: block; margin-top: 5px; color: #8589aa; font-size: 7px; font-weight: 800; letter-spacing: 1.1px; }
.version-badge { align-self: flex-start; margin: 1px 0 0 auto; padding: 3px 5px; border-radius: 5px; color: #c9baff; background: rgba(139, 96, 243, .22); font-size: 9px; font-weight: 800; }
.research-badge { position: relative; display: flex; gap: 9px; align-items: center; margin: 0 4px 28px; padding: 12px 10px; border: 1px solid rgba(173, 156, 255, .2); border-radius: 13px; background: linear-gradient(110deg, rgba(109, 69, 232, .23), rgba(109, 69, 232, .08)); }
.research-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #7be1c1; box-shadow: 0 0 0 4px rgba(123, 225, 193, .11); }
.research-badge strong, .research-badge small { display: block; }
.research-badge strong { color: #e7e3ff; font-size: 10px; line-height: 1.4; }
.research-badge small { margin-top: 2px; color: #989ab7; font-size: 9px; }
.nav-label { margin: 0 12px 9px; color: #6f7395; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.nav-label-spaced { margin-top: 28px; }
.sidebar-nav { position: relative; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; margin: 3px 0; padding: 12px 13px; border: 0; border-radius: 10px; color: #9396b1; background: transparent; text-align: left; font-size: 12px; font-weight: 600; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, #7149eb, #673fda); box-shadow: 0 7px 15px rgba(73, 41, 177, .3); }
.nav-item .icon { width: 18px; height: 18px; }
.sidebar-bottom { position: relative; margin-top: auto; }
.streak-card { display: flex; align-items: center; gap: 9px; margin: 34px 2px 18px; padding: 12px 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.05); }
.streak-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff3a4; background: rgba(255, 200, 81, .17); }
.streak-card strong, .streak-card span { display: block; }
.streak-card strong { color: #e8e8fa; font-size: 10px; }
.streak-card span { margin-top: 3px; color: #8f93af; font-size: 9px; }
.sidebar-footer { color: #656985; text-align: center; font-size: 9px; }

.main-content { width: calc(100% - 258px); min-height: 100vh; margin-left: 258px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 5.3%; border-bottom: 1px solid #ededf5; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions, .breadcrumb, .user-chip { display: flex; align-items: center; }
.topbar-left { gap: 20px; }
.breadcrumb { gap: 10px; color: #9b9cb1; font-size: 11px; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.breadcrumb-divider { color: #d4d4e0; }
.icon-button { position: relative; display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 1px solid #ececf4; border-radius: 10px; color: #676b8a; background: #fff; }
.icon-button:hover { color: var(--purple); border-color: #d7cffb; background: #faf9ff; }
.menu-button { display: none; }
.topbar-actions { gap: 14px; }
.install-button { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid #ddd4ff; border-radius: 10px; color: var(--purple); background: #f8f6ff; font-size: 11px; font-weight: 800; transition: .2s ease; }
.install-button:hover { color: #fff; border-color: var(--purple); background: var(--purple); }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: #ff6075; }
.user-chip { gap: 8px; color: #555a78; font-size: 11px; font-weight: 700; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: linear-gradient(140deg, #ffc4a7, #8d60ed); font-size: 13px; font-weight: 800; }
.chevron { width: 13px; height: 13px; color: #a6a8bc; }
.page-wrap { max-width: 1520px; margin: 0 auto; padding: 40px 5.3% 60px; }
.view { display: none; animation: fade-up .3s ease both; }
.view.active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.compact-heading { margin-bottom: 30px; }
.eyebrow, .section-kicker { color: #9496ad; font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
h1, h2, p { margin: 0; }
h1 { color: var(--ink); font-size: clamp(25px, 2.4vw, 34px); line-height: 1.22; letter-spacing: -1.1px; }
h2 { font-size: 16px; line-height: 1.3; letter-spacing: -.35px; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.wave { display: inline-block; margin-left: 4px; font-size: .75em; transform-origin: 70% 70%; animation: wave 2.2s ease-in-out 1; }
@keyframes wave { 0%,100% { transform: rotate(0); } 15% { transform: rotate(15deg); } 30% { transform: rotate(-9deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(0); } }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.primary-button { color: #fff; background: linear-gradient(135deg, #8053f0, #6137d6); box-shadow: 0 8px 18px rgba(109, 69, 232, .23); }
.primary-button:hover { box-shadow: 0 10px 22px rgba(109, 69, 232, .32); }
.light-button { color: #5f36d9; background: #fff; box-shadow: 0 5px 14px rgba(63, 37, 150, .12); }
.soft-button { min-height: 33px; color: var(--purple); background: var(--purple-soft); }
.outline-button { color: var(--purple); border-color: #d9d0fb; background: #fff; }
.outline-button:hover { background: #f9f7ff; }
.danger-button { min-height: 34px; color: #d64d61; border-color: #f4cbd3; background: #fff7f8; }
.full-button { width: 100%; }
.text-button, .mini-link { display: inline-flex; align-items: center; gap: 7px; border: 0; color: var(--purple); background: transparent; font-size: 10px; font-weight: 800; }
.text-button:hover, .mini-link:hover { color: #4120b9; }

.hero-banner { position: relative; min-height: 240px; display: flex; align-items: center; overflow: hidden; margin-bottom: 37px; padding: 28px 35px; border-radius: 20px; color: #fff; background: linear-gradient(110deg, #7551e8 0%, #8a62ee 47%, #9c7bf0 100%); box-shadow: 0 14px 30px rgba(103, 63, 218, .2); }
.hero-banner::after { content: ''; position: absolute; right: -4%; bottom: -56%; width: 63%; height: 120%; border-radius: 50%; background: rgba(255,255,255,.08); transform: rotate(-13deg); }
.hero-copy { position: relative; z-index: 3; }
.hero-kicker { color: #d8cdfd; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.hero-copy h2 { margin: 10px 0 8px; color: #fff; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.18; letter-spacing: -1px; }
.hero-copy h2 span { color: #f3edff; }
.hero-copy p { margin-bottom: 18px; color: #e4ddff; font-size: 11px; }
.hero-stats { position: relative; z-index: 3; display: flex; align-self: flex-end; gap: 29px; margin: 0 0 12px 6%; }
.hero-stat { display: flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.26); }
.hero-stat strong { font-size: 22px; }
.hero-stat span { color: #e5ddff; font-size: 9px; line-height: 1.35; }
.hero-sparkles { position: absolute; z-index: 2; right: 40%; top: 22px; color: #e2d6ff; font-size: 15px; }
.hero-sparkles b { display: inline-block; margin: 0 10px; font-weight: 400; }
.hero-sparkles b:nth-child(2) { font-size: 27px; }
.student-art { position: absolute; z-index: 4; right: 6%; bottom: -5px; width: 260px; height: 225px; }
.student-hair { position: absolute; left: 67px; top: 4px; width: 105px; height: 128px; border-radius: 52% 48% 44% 46%; background: #4a2b39; box-shadow: inset -9px -2px rgba(45,24,38,.3); transform: rotate(5deg); }
.student-hair::before, .student-hair::after { content: ''; position: absolute; top: 66px; width: 39px; height: 74px; border-radius: 50%; background: #4a2b39; }
.student-hair::before { left: -12px; transform: rotate(13deg); }.student-hair::after { right: -11px; transform: rotate(-13deg); }
.student-head { position: absolute; z-index: 2; left: 80px; top: 20px; width: 78px; height: 92px; border-radius: 48% 48% 45% 45%; background: #ffd9bd; box-shadow: inset 7px 0 rgba(235,167,138,.18); }
.student-head::before { content: ''; position: absolute; top: -3px; left: 9px; width: 63px; height: 24px; border-radius: 50%; background: #4a2b39; transform: rotate(-5deg); }
.eye { position: absolute; top: 47px; width: 9px; height: 13px; border-radius: 50%; background: #2b1d30; }.eye::after { content: ''; position: absolute; top: 2px; left: 2px; width: 3px; height: 4px; border-radius: 50%; background: white; }.eye.left { left: 20px; }.eye.right { right: 20px; }
.smile { position: absolute; left: 34px; top: 69px; width: 13px; height: 7px; border-bottom: 2px solid #cf6f70; border-radius: 50%; }
.student-body { position: absolute; z-index: 1; left: 47px; bottom: 30px; width: 142px; height: 100px; border-radius: 50px 50px 16px 16px; background: linear-gradient(135deg, #c79bff, #6842ce); box-shadow: inset -10px 0 rgba(66, 37, 143,.18); }
.student-body::before { content: ''; position: absolute; left: 52px; top: 8px; width: 39px; height: 64px; border-radius: 0 0 28px 28px; border: 2px solid rgba(255,255,255,.35); border-top: 0; }.hoodie-string { position: absolute; top: 5px; width: 2px; height: 38px; background: #e8d5ff; }.hoodie-string.left { left: 56px; transform: rotate(4deg); }.hoodie-string.right { left: 85px; transform: rotate(-4deg); }
.laptop { position: absolute; z-index: 5; left: 42px; bottom: 8px; width: 164px; transform: rotate(-3deg); }.laptop-screen { height: 81px; border: 5px solid #7b61a8; border-bottom-width: 7px; border-radius: 9px 9px 4px 4px; background: linear-gradient(135deg, #dce8ff, #aebef1); box-shadow: 0 3px 0 #503f80; }.laptop-screen span { display: grid; place-items: center; height: 100%; color: #6746d9; font-size: 40px; font-weight: 800; }.laptop-base { height: 10px; margin: 0 -9px; border-radius: 0 0 11px 11px; background: #8475bb; }
.plant { position: absolute; z-index: 5; bottom: 12px; width: 45px; height: 70px; }.plant-left { left: 8px; }.plant-right { right: 0; bottom: 25px; }.plant em { position: absolute; bottom: 0; left: 11px; width: 25px; height: 19px; border-radius: 3px 3px 8px 8px; background: #dc9e7b; }.plant i { position: absolute; bottom: 15px; width: 23px; height: 35px; border-radius: 4px 24px 4px 24px; background: #63bf9a; transform-origin: bottom; }.plant i:nth-child(1) { left: 8px; transform: rotate(-31deg); }.plant i:nth-child(2) { left: 19px; transform: rotate(9deg); }.plant i:nth-child(3) { left: 0; bottom: 25px; transform: rotate(-55deg) scale(.65); }

.section-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-heading { margin-bottom: 17px; }.section-heading h2, .panel-heading h2 { margin-top: 5px; }.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; }
.feature-card { position: relative; min-height: 136px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; text-align: left; background: var(--surface); transition: .2s ease; }.feature-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }.feature-card::after { content: ''; position: absolute; right: -18px; bottom: -24px; width: 70px; height: 70px; border-radius: 50%; background: var(--feature-soft); opacity: .55; }.feature-purple { --feature: #7954e8; --feature-soft: #eee7ff; }.feature-blue { --feature: #4d95ec; --feature-soft: #e6f1ff; }.feature-teal { --feature: #38b6ad; --feature-soft: #e2fbf8; }.feature-gold { --feature: #ecaa4e; --feature-soft: #fff3dd; }.feature-pink { --feature: #ed6b9f; --feature-soft: #ffe8f2; }.feature-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 11px; color: var(--feature); background: var(--feature-soft); }.feature-card strong { position: relative; z-index: 1; max-width: 120px; font-size: 11px; line-height: 1.35; }.feature-card small { position: relative; z-index: 1; margin-top: 5px; color: #9294aa; font-size: 8.5px; line-height: 1.35; }.card-arrow { position: absolute; z-index: 2; right: 12px; top: 18px; color: var(--feature); font-size: 17px; opacity: 0; transition: .2s ease; }.feature-card:hover .card-arrow { opacity: 1; }
.dashboard-grid { display: grid; grid-template-columns: 1.12fr 1.16fr .78fr; gap: 14px; }.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }.project-panel, .chart-panel, .tip-panel { min-height: 297px; padding: 20px; }.panel-heading { align-items: flex-start; }.project-list { margin-top: 17px; }.project-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f1f0f7; }.project-row:last-child { border-bottom: 0; }.project-thumb { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #9a78f4, #5e3bd3); }.project-thumb.orange { background: linear-gradient(145deg, #ffbd70, #ef8952); }.project-info { min-width: 0; flex: 1; }.project-info strong, .project-info span { display: block; }.project-info strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.project-info span { margin-top: 4px; color: #9a9cb1; font-size: 8px; }.project-percent { color: #6b43dc; font-size: 9px; font-weight: 800; }.project-progress { width: 46px; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 10px; background: #eeedf5; }.project-progress span { display: block; height: 100%; border-radius: inherit; background: var(--purple); }.add-project-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; padding: 10px; border: 1px dashed #d6cef7; border-radius: 9px; color: var(--purple); background: #fbfaff; font-size: 10px; font-weight: 800; }.add-project-button:hover { background: var(--purple-soft); }
.chart-legend { display: flex; gap: 14px; margin-top: 12px; color: #8b8da3; font-size: 8px; }.chart-legend.vertical { flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 0; }.chart-legend span { display: flex; align-items: center; gap: 5px; }.legend-line { display: inline-block; width: 18px; height: 3px; border-radius: 4px; }.legend-line.purple { background: var(--purple); }.legend-line.blue { background: #4a9eea; }.legend-dash { width: 18px; height: 0; border-top: 2px dashed #9a9bb6; }.dashboard-chart { display: block; width: 100%; height: 137px; margin-top: 3px; }.chart-result { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid #f0eff6; color: #8b8da1; font-size: 8px; }.chart-result strong { color: #2ca985; font-size: 11px; }.tip-panel { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff, #fbfaff); }.tip-panel::after { content: '✦'; position: absolute; right: 20px; bottom: 30px; color: #e8defe; font-size: 54px; }.tip-illustration { position: absolute; right: 20px; top: 18px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; background: #fff3d5; font-size: 20px; }.tip-panel h2 { margin-top: 24px; font-size: 13px; }.tip-panel p { position: relative; z-index: 1; margin: 15px 0 18px; color: #6e718c; font-size: 10px; line-height: 1.9; }.tip-panel p strong { color: var(--ink); }.learning-strip { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; border: 1px solid #e6e1fb; border-radius: 15px; background: linear-gradient(100deg, #f9f7ff, #fff); }.learning-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 13px; color: #fff; background: var(--purple); }.learning-strip strong { font-size: 11px; }.learning-strip p { margin-top: 4px; color: #85879c; font-size: 9px; }.learning-strip p b { color: var(--purple); }.learning-progress { width: 190px; margin-left: auto; }.learning-progress > div:first-child { display: flex; justify-content: space-between; color: #9092a5; font-size: 8px; }.learning-progress strong { color: var(--purple); font-size: 9px; }.progress-track { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 8px; background: #e9e6f8; }.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7650e9, #a47fff); }

.goal-summary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 19px; }.summary-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }.summary-icon, .lesson-icon, .report-icon { display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; }.summary-icon { width: 42px; height: 42px; }.summary-card small, .summary-card strong { display: block; }.summary-card small { color: #9294aa; font-size: 9px; }.summary-card strong { margin-top: 6px; font-size: 14px; }.purple-bg { color: #7650e8; background: #f0ebff; }.blue-bg { color: #468ddf; background: #e8f3ff; }.green-bg, .teal-bg { color: #20a988; background: #e3faf4; }.gold-bg { color: #d78b24; background: #fff3db; }.goals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }.goal-card { position: relative; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }.goal-card::before { content: ''; position: absolute; left: 0; top: 19px; bottom: 19px; width: 4px; border-radius: 0 4px 4px 0; background: var(--goal-color, var(--purple)); }.goal-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.goal-title { display: flex; align-items: center; gap: 10px; }.goal-emoji { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--goal-soft, #f0ebff); font-size: 19px; }.goal-title strong { display: block; font-size: 13px; }.goal-title span { display: block; margin-top: 4px; color: #9698ac; font-size: 9px; }.goal-status { padding: 5px 7px; border-radius: 6px; color: #20a477; background: #e7faf2; font-size: 8px; font-weight: 800; }.goal-amount { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 7px; }.goal-amount strong { font-size: 19px; }.goal-amount span { color: #989aad; font-size: 10px; }.wide-progress { height: 8px; overflow: hidden; border-radius: 10px; background: #eeeef6; }.wide-progress span { display: block; height: 100%; border-radius: inherit; background: var(--goal-color, var(--purple)); }.goal-footer { display: flex; justify-content: space-between; margin-top: 10px; color: #9698ab; font-size: 9px; }.goal-footer strong { color: var(--goal-color, var(--purple)); }

.simulation-layout { display: grid; grid-template-columns: minmax(350px, .83fr) minmax(450px, 1.17fr); gap: 18px; align-items: start; }.simulation-form { padding: 24px; }.step-badge { padding: 5px 8px; border-radius: 6px; color: #6c49d8; background: #f0ebff; font-size: 9px; font-weight: 800; }.field-label { display: block; margin: 20px 0 8px; color: #696c87; font-size: 10px; font-weight: 700; }.text-input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #e2e2ef; border-radius: 10px; color: var(--ink); background: #fcfcff; font-size: 11px; transition: .2s ease; }.text-input:focus { border-color: #ac96f5; background: #fff; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 13px; }.input-with-unit { position: relative; }.input-with-unit .text-input { padding-right: 27px; }.input-with-unit span { position: absolute; right: 12px; top: 12px; color: #a0a2b3; font-size: 11px; }.range-row { display: flex; align-items: center; gap: 13px; }.range-row input { flex: 1; accent-color: var(--purple); }.range-row output { min-width: 74px; padding: 8px 9px; border-radius: 8px; color: var(--purple); background: var(--purple-soft); text-align: center; font-size: 10px; font-weight: 800; }.math-note { display: flex; gap: 8px; margin: 21px 0; padding: 11px; border-radius: 9px; color: #84869d; background: #faf9ff; font-size: 9px; line-height: 1.55; }.math-note .icon { flex: 0 0 auto; color: var(--purple); }.simulation-result { min-width: 0; }.result-topline { display: flex; align-items: flex-start; justify-content: space-between; margin: 4px 2px 16px; }.result-topline h2 { margin-top: 5px; font-size: 20px; }.share-button { border: 0; background: transparent; }.result-highlight { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; padding: 18px 22px; border: 1px solid #e6e0fd; border-radius: 15px; background: linear-gradient(110deg, #faf8ff, #f2edff); }.result-highlight small { display: block; color: #8d8fa7; font-size: 9px; }.result-highlight strong { display: block; margin-top: 6px; color: #5732ce; font-size: 23px; letter-spacing: -.6px; }.result-highlight strong span { color: #8587a0; font-size: 11px; font-weight: 600; }.success-mark { position: absolute; right: 20px; top: 18px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: var(--green); font-size: 19px; }.result-chart-card { padding: 18px 19px 10px; }.result-chart-card .panel-heading { align-items: flex-start; }.simulation-chart { display: block; width: 100%; height: 225px; margin-top: 12px; }.chart-axis-label { margin-top: -2px; color: #8b8da2; text-align: center; font-size: 9px; }.detail-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.detail-card div { display: flex; flex-direction: column; gap: 6px; }.detail-card span { color: #9294a8; font-size: 9px; }.detail-card strong { font-size: 11px; }.result-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }

.knowledge-score { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #f5dfaa; border-radius: 10px; color: #d38d26; background: #fff9e9; }.knowledge-score .icon { color: #e5a634; }.knowledge-score strong { font-size: 15px; }.knowledge-score small { color: #9e916e; font-size: 9px; }.lesson-feature { position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden; min-height: 215px; margin-bottom: 36px; padding: 30px 36px; border-radius: 18px; color: #fff; background: linear-gradient(110deg, #222445, #35346d 65%, #504397); }.lesson-feature::after { content: ''; position: absolute; right: -40px; bottom: -100px; width: 300px; height: 300px; border: 45px solid rgba(167, 142, 255, .14); border-radius: 50%; }.lesson-tag { color: #c2b7ff; font-size: 9px; font-weight: 800; letter-spacing: 1.1px; }.lesson-feature h2 { max-width: 580px; margin: 12px 0 8px; font-size: clamp(20px, 2.6vw, 28px); }.lesson-feature p { max-width: 530px; margin-bottom: 17px; color: #c7c7e2; font-size: 11px; }.lesson-equation { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 9px; margin-right: 8%; color: #dcd3ff; }.lesson-equation span { font-size: 34px; font-weight: 500; }.lesson-equation small { color: #a7a8c7; text-align: center; font-size: 9px; }.lesson-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }.lesson-card { position: relative; min-height: 199px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; text-align: left; transition: .2s ease; }.lesson-card:hover { border-color: #cec2fa; box-shadow: var(--shadow); transform: translateY(-3px); }.lesson-number { align-self: flex-end; color: #a4a5b6; font-size: 10px; font-weight: 800; }.lesson-icon { width: 42px; height: 42px; margin: 10px 0 17px; }.lesson-card strong { font-size: 12px; }.lesson-card small { margin-top: 5px; color: #9395aa; font-size: 9px; line-height: 1.45; }.lesson-card em { margin-top: auto; color: #8f91a6; font-size: 9px; font-style: normal; }.lesson-card.done em { color: #26a981; }

.report-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }.report-card, .evidence-card { padding: 25px; }.report-icon { width: 49px; height: 49px; margin-bottom: 20px; }.report-card h2, .evidence-card h2 { margin-top: 8px; font-size: 21px; }.report-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 30px 0 24px; padding: 18px 0; border-top: 1px solid #efeff6; border-bottom: 1px solid #efeff6; }.report-metrics small, .report-metrics strong { display: block; }.report-metrics small { color: #9698ab; font-size: 9px; }.report-metrics strong { margin-top: 7px; color: var(--purple); font-size: 13px; }.evidence-list { display: grid; gap: 14px; margin: 25px 0; padding: 0; list-style: none; }.evidence-list li { display: flex; align-items: center; gap: 9px; color: #686b86; font-size: 10px; }.evidence-list .icon { width: 17px; height: 17px; padding: 3px; border-radius: 50%; color: #1aab7b; background: #e1faf0; }.privacy-note { display: flex; align-items: center; gap: 8px; padding: 11px; border-radius: 9px; color: #7e819a; background: #f8f8fc; font-size: 9px; }.privacy-note .icon { color: #8f74df; }
.settings-panel { max-width: 760px; padding: 5px 22px; }.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; border-bottom: 1px solid #f0eff6; }.settings-row:last-child { border-bottom: 0; }.settings-row strong, .settings-row span { display: block; }.settings-row strong { font-size: 12px; }.settings-row span { margin-top: 5px; color: #9698ab; font-size: 9px; }.switch { position: relative; display: block; width: 40px; height: 23px; flex: 0 0 auto; }.switch input { opacity: 0; width: 0; height: 0; }.switch span { position: absolute; inset: 0; border-radius: 20px; background: #d9d9e6; cursor: pointer; transition: .2s; }.switch span::before { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.14); }.switch input:checked + span { background: var(--purple); }.switch input:checked + span::before { transform: translateX(17px); }

.mobile-nav { display: none; }.toast { position: fixed; z-index: 60; right: 25px; bottom: 25px; display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 30px); padding: 12px 16px 12px 12px; border-radius: 11px; color: #fff; background: #262543; box-shadow: 0 10px 30px rgba(26, 23, 60, .25); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(15px); transition: .25s ease; }.toast.show { opacity: 1; transform: translateY(0); }.toast-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: #27b785; font-size: 12px; }.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(17, 16, 39, .48); backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.install-modal { position: relative; width: min(410px, 100%); padding: 30px; border-radius: 22px; background: #fff; box-shadow: 0 22px 60px rgba(23, 19, 65, .26); text-align: center; }.modal-close { position: absolute; right: 16px; top: 12px; border: 0; color: #989aae; background: transparent; font-size: 25px; }.modal-app-icon { width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 17px; font-size: 34px; }.install-modal h2 { font-size: 20px; }.install-modal > p { margin: 9px 0 21px; color: #777a94; font-size: 10px; line-height: 1.6; }.install-steps { display: grid; gap: 10px; margin-bottom: 20px; text-align: left; }.install-steps > div { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 10px; color: #73768e; background: #faf9ff; font-size: 9px; line-height: 1.5; }.install-steps b { display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--purple); }.install-steps strong { color: var(--ink); }
.icon { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: 0 0 auto; }.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.public-survey-link { width: 100%; margin-top: 15px; text-align: center; text-decoration: none; }

@media (max-width: 1180px) { .feature-grid { grid-template-columns: repeat(3, 1fr); }.dashboard-grid { grid-template-columns: 1fr 1fr; }.tip-panel { grid-column: 1 / -1; min-height: auto; }.student-art { right: 2%; }.hero-stats { margin-left: 4%; } }
@media (max-width: 920px) { .sidebar { width: 235px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 12px 0 30px rgba(16, 15, 39, .18); }.sidebar.open { transform: translateX(0); }.main-content { width: 100%; margin-left: 0; }.menu-button { display: grid; }.topbar { padding: 0 4%; }.page-wrap { padding: 32px 4% 70px; }.hero-banner { min-height: 275px; }.student-art { right: 1%; opacity: .85; }.hero-stats { display: none; }.simulation-layout { grid-template-columns: 1fr; }.simulation-result { order: -1; }.lesson-grid { grid-template-columns: repeat(2, 1fr); }.lesson-equation { margin-right: 3%; } }
@media (max-width: 640px) { .topbar { height: 64px; }.breadcrumb span:first-child, .breadcrumb-divider { display: none; }.topbar-actions { gap: 7px; }.install-button { padding: 8px 9px; font-size: 9px; }.user-chip > span:not(.chevron) { display: none; }.page-wrap { padding: 25px 16px 88px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 22px; }.page-heading .button { align-self: stretch; }.hero-banner { min-height: 355px; align-items: flex-start; padding: 26px 22px; }.hero-copy h2 { font-size: 25px; }.student-art { right: 50%; bottom: -8px; width: 250px; transform: translateX(50%) scale(.9); transform-origin: bottom center; }.hero-sparkles { right: 14%; top: 20px; }.feature-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }.feature-card { min-height: 130px; padding: 13px 11px; }.feature-card strong { font-size: 10px; }.dashboard-grid, .goal-summary-row, .goals-grid, .report-grid { grid-template-columns: 1fr; }.project-panel, .chart-panel, .tip-panel { min-height: 0; }.learning-strip { align-items: flex-start; flex-wrap: wrap; }.learning-progress { width: 100%; margin-left: 55px; }.goal-summary-row { gap: 9px; }.summary-card { padding: 13px 15px; }.simulation-form { padding: 18px; }.form-grid { grid-template-columns: 1fr; }.result-highlight { padding: 17px 14px; }.result-highlight strong { font-size: 20px; }.result-chart-card { padding: 15px 11px 8px; }.simulation-chart { height: 190px; }.detail-card { grid-template-columns: 1fr; gap: 9px; }.detail-card div { flex-direction: row; justify-content: space-between; }.result-actions { justify-content: stretch; }.result-actions .button { flex: 1; padding-inline: 8px; }.lesson-feature { align-items: flex-start; min-height: 330px; padding: 24px 22px; }.lesson-equation { position: absolute; right: 24px; bottom: 30px; margin: 0; }.lesson-equation span { font-size: 25px; }.lesson-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.lesson-card { min-height: 180px; padding: 13px; }.report-card, .evidence-card { padding: 19px; }.report-metrics { grid-template-columns: 1fr; gap: 10px; margin: 20px 0; }.report-metrics div { display: flex; justify-content: space-between; }.mobile-nav { position: fixed; z-index: 30; right: 10px; bottom: 10px; left: 10px; display: flex; justify-content: space-around; padding: 7px 4px 5px; border: 1px solid #e8e5f6; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 7px 25px rgba(42, 34, 103, .16); backdrop-filter: blur(12px); }.mobile-nav-item { display: flex; min-width: 52px; flex-direction: column; align-items: center; gap: 4px; padding: 4px 7px; border: 0; border-radius: 10px; color: #a1a2b6; background: transparent; font-size: 17px; }.mobile-nav-item small { font-size: 8px; font-weight: 700; }.mobile-nav-item.active { color: var(--purple); background: var(--purple-soft); }.toast { right: 15px; bottom: 78px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Authentication and research controls */
.login-button { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 8px 11px; border: 1px solid #e7e7f2; border-radius: 10px; color: #4e5271; background: #fff; font-size: 10px; font-weight: 800; }.login-button:hover { border-color: #cbbef8; color: var(--purple); background: #fbfaff; }.google-mark { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #ececf4; border-radius: 50%; color: #4285f4; background: #fff; font-size: 11px; font-weight: 800; }.logout-button { display: grid; place-items: center; width: 17px; height: 17px; margin-left: 1px; padding: 0; border: 0; border-radius: 50%; color: #8e90a4; background: #f2f2f8; font-size: 14px; line-height: 1; }.logout-button:hover { color: #d64d61; background: #fff0f3; }.user-chip[hidden], .login-button[hidden] { display: none; }

/* Finance lab tabs and advanced calculators */
.lab-tabs { display: flex; gap: 8px; margin: 0 0 18px; padding: 6px; overflow-x: auto; border: 1px solid #e9e6f7; border-radius: 13px; background: #fbfaff; }.lab-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: max-content; padding: 10px 13px; border: 0; border-radius: 9px; color: #888aa1; background: transparent; font-size: 10px; font-weight: 800; transition: .2s ease; }.lab-tab:hover { color: var(--purple); background: #f0ebff; }.lab-tab.active { color: #fff; background: linear-gradient(135deg, #8053f0, #6137d6); box-shadow: 0 6px 13px rgba(109,69,232,.18); }.lab-panel { display: none; animation: fade-up .24s ease both; }.lab-panel.active { display: block; }.lab-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 4px 0 18px; padding: 18px 20px; border: 1px solid #e7e2fb; border-radius: 15px; background: linear-gradient(110deg,#fbf9ff,#fff); }.lab-intro h2 { margin-top: 5px; font-size: 20px; }.lab-intro p { margin-top: 5px; color: #85879c; font-size: 10px; }.formula-pill, .budget-balance { padding: 11px 14px; border: 1px solid #ded4fc; border-radius: 10px; color: #6543cf; background: #f4f0ff; font-size: 11px; font-weight: 800; white-space: nowrap; }.formula-pill sup { font-size: 8px; }.loan-layout, .budget-layout, .compound-layout { display: grid; grid-template-columns: minmax(320px,.78fr) minmax(440px,1.22fr); gap: 17px; align-items: start; }.debt-form, .budget-form, .compound-form { padding: 22px; }.debt-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 13px; }.debt-metric { min-height: 92px; padding: 15px; border: 1px solid #e7e4f1; border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }.debt-metric small, .debt-metric strong { display:block; }.debt-metric small { color:#9294aa; font-size:8px; line-height:1.35; }.debt-metric strong { margin-top: 10px; color:#5c3bd1; font-size:15px; line-height:1.2; }.debt-metric:nth-child(2) strong { color:#db8a36; }.debt-metric:nth-child(3) strong { color:#25a87e; }.debt-chart-card { padding: 18px 19px 12px; }.saving-badge { padding: 5px 8px; border-radius: 6px; color: #2ba57e; background: #e6faf2; font-size: 8px; font-weight: 800; }.loan-chart { display:block; width:100%; height:205px; margin-top:10px; }.debt-note { margin-top: 2px; padding: 10px; border-radius: 9px; color:#7f8197; background:#faf9ff; font-size:9px; line-height:1.5; }.schedule-card { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:13px; padding:15px 17px; border:1px solid var(--line); border-radius:14px; background:#fff; }.schedule-card span,.schedule-card strong { display:block; }.schedule-card span { color:#9294a8; font-size:8px; }.schedule-card strong { margin-top:6px; color:#313451; font-size:11px; }.schedule-card div:nth-child(1) strong { color:#2ca985; }.budget-layout { grid-template-columns: minmax(300px,.7fr) minmax(440px,1.3fr); }.budget-total { color:var(--purple); font-size:15px; font-weight:800; }.budget-bars { display:grid; gap:22px; margin:24px 0 20px; }.budget-bar-row > div:first-child { display:flex; justify-content:space-between; align-items:center; color:#6d708b; font-size:10px; }.budget-bar-row > div:first-child span { display:flex; align-items:center; gap:7px; }.budget-bar-row strong { color:var(--ink); font-size:11px; }.budget-dot { display:inline-block; width:9px; height:9px; border-radius:50%; }.budget-dot.essential { background:#7250e5; }.budget-dot.flexible { background:#4c9dde; }.budget-dot.saving { background:#37b8a2; }.budget-track { height:12px; margin-top:9px; overflow:hidden; border-radius:10px; background:#eeeeF6; }.budget-track span { display:block; height:100%; border-radius:inherit; transition:width .25s ease; }.budget-track span.essential { background:#7954e8; }.budget-track span.flexible { background:#4e9ee4; }.budget-track span.saving { background:#3bb9a8; }.budget-coach { display:flex; align-items:flex-start; gap:10px; padding:13px; border-radius:11px; color:#6f718a; background:#f9f7ff; font-size:9px; line-height:1.55; }.budget-coach span { font-size:20px; }.budget-coach p { padding-top:2px; }.compound-layout { grid-template-columns:minmax(350px,.75fr) minmax(440px,1.25fr); }.compound-highlight { padding:15px 17px; border-radius:12px; background:linear-gradient(110deg,#f7f3ff,#f1edff); }.compound-highlight small,.compound-highlight strong,.compound-highlight span { display:block; }.compound-highlight small { color:#898ba2; font-size:9px; }.compound-highlight strong { margin-top:7px; color:#5c37d0; font-size:25px; letter-spacing:-.7px; }.compound-highlight span { margin-top:5px; color:#2ba57e; font-size:10px; font-weight:700; }.compound-result { padding:18px; }.compound-chart { display:block; width:100%; height:218px; margin-top:12px; }

/* Research dashboard */
.demo-label { display:inline-flex; align-items:center; gap:7px; padding:9px 11px; border:1px solid #f2d7a2; border-radius:9px; color:#aa7623; background:#fff8e9; font-size:9px; font-weight:800; letter-spacing:.8px; }.research-warning { display:flex; gap:12px; align-items:flex-start; margin-bottom:17px; padding:15px 17px; border:1px solid #f1d5a2; border-radius:14px; color:#855d20; background:#fff9eb; }.research-warning > .icon { width:22px; height:22px; flex:0 0 auto; color:#c58925; }.research-warning strong { display:block; font-size:11px; }.research-warning p { margin-top:6px; color:#927b56; font-size:9px; line-height:1.55; }.research-controls { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:19px; margin-bottom:15px; }.research-controls h2 { margin-top:5px; }.research-controls p { margin-top:5px; color:#9294aa; font-size:9px; }.research-control-actions { display:flex; align-items:flex-end; flex-wrap:wrap; justify-content:flex-end; gap:8px; }.research-control-actions label:not(.file-button) { display:flex; flex-direction:column; gap:5px; color:#85879c; font-size:8px; font-weight:700; }.research-control-actions label input { width:80px; height:37px; padding:8px; border:1px solid #e2e1ee; border-radius:9px; color:var(--ink); background:#fff; font-size:10px; font-weight:700; }.file-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:9px 11px; border:1px dashed #d3c8f5; border-radius:10px; color:#6d48d7; background:#fbfaff; font-size:9px; font-weight:800; cursor:pointer; }.file-button:hover { background:#f0ebff; }.file-button input { display:none; }.research-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:15px; }.research-metric { display:flex; align-items:center; gap:10px; padding:14px 15px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); }.research-metric small,.research-metric strong { display:block; }.research-metric small { color:#9294aa; font-size:8px; }.research-metric strong { margin-top:5px; font-size:16px; }.research-chart-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:15px; }.research-chart-card { padding:18px 19px 11px; }.chart-legend-text { color:#9698ad; font-size:8px; }.research-chart { display:block; width:100%; height:265px; margin-top:10px; }.class-table-card { padding:18px 19px; }.badge.demo-badge { color:#aa7623; background:#fff8e9; }.class-table { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-top:15px; }.class-cell { display:flex; flex-direction:column; gap:6px; padding:11px; border:1px solid #efedf6; border-radius:10px; background:#fcfcff; }.class-cell strong { font-size:10px; }.class-cell span { color:#9294a8; font-size:8px; }.class-cell i { display:block; height:5px; overflow:hidden; border-radius:8px; background:#eceaf5; }.class-cell i::after { content:''; display:block; width:var(--class-width,50%); height:100%; border-radius:inherit; background:linear-gradient(90deg,#7954e8,#48b7a5); }

@media (max-width: 1180px) { .research-controls { align-items:flex-start; flex-direction:column; }.research-control-actions { justify-content:flex-start; }.research-metrics { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 920px) { .loan-layout,.budget-layout,.compound-layout { grid-template-columns:1fr; }.debt-result { order:-1; }.research-chart-grid { grid-template-columns:1fr; }.class-table { grid-template-columns:repeat(3,1fr); } }
@media (max-width: 640px) { .login-button { padding:8px; }.login-button > span:last-child { display:none; }.user-chip { font-size:10px; }.lab-tabs { margin-inline:-3px; }.lab-tab { padding:9px 10px; font-size:9px; }.lab-intro { align-items:flex-start; flex-direction:column; padding:15px; }.formula-pill,.budget-balance { white-space:normal; }.debt-metrics { grid-template-columns:1fr; }.debt-metric { min-height:0; display:flex; align-items:center; justify-content:space-between; gap:10px; }.debt-metric strong { margin-top:0; text-align:right; }.schedule-card { grid-template-columns:1fr; gap:9px; }.schedule-card div { display:flex; justify-content:space-between; }.research-metrics { grid-template-columns:1fr 1fr; }.research-control-actions { width:100%; }.research-control-actions .button,.research-control-actions .file-button { flex:1; }.research-control-actions label:not(.file-button) { flex:1; }.research-control-actions label input { width:100%; }.class-table { grid-template-columns:repeat(2,1fr); }.demo-label { align-self:stretch; justify-content:center; } }
