*{box-sizing:border-box}
:root{
  --bg:#f4f6ff;
  --surface:#fff;
  --text:#172033;
  --muted:#5f6d84;
  --line:#dde4f2;
  --blue:#2f80ff;
  --blue-dark:#176cf1;
  --purple:#b23cff;
  --purple-dark:#9b2af0;
  --green:#22c55e;
  --orange:#f5a300;
  --red:#ff5b67;
  --shadow:0 2px 5px rgba(33,49,87,.08),0 10px 28px rgba(33,49,87,.06);
  --radius:14px;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:var(--bg);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;
  line-height:1.45;
}
button,a{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid rgba(47,128,255,.28);outline-offset:2px}
.app-shell{min-height:100vh}
.topbar{
  height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 18px;
  background:rgba(255,255,255,.96);
  border-bottom:2px solid #cfe0ff;
  position:sticky;
  top:0;
  z-index:30;
  backdrop-filter:blur(12px);
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;min-width:0}
.brand-logo{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto}
.brand-logo svg{width:36px;height:36px}
.brand-copy{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.brand-copy strong{font-size:14px;font-weight:700}
.brand-copy small{font-size:10px;color:var(--muted);white-space:nowrap}
.header-actions{display:flex;align-items:center;gap:10px}
.lang-switch{display:flex;align-items:center;padding:2px;border-radius:10px;background:#f2f4f8}
.globe-btn,.lang-btn{
  height:30px;min-width:32px;border:0;border-radius:8px;background:transparent;color:#6a7487
}
.globe-btn{display:grid;place-items:center;width:30px}
.globe-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
.lang-btn{font-size:11px;font-weight:600}
.lang-btn.is-active{background:var(--blue);color:#fff}
.top-nav{display:flex;align-items:center;gap:6px}
.nav-btn{
  border:0;border-radius:8px;background:#f2f4f8;color:#354055;
  padding:9px 13px;font-size:12px
}
.nav-btn.is-active{background:var(--blue);color:#fff}
main{padding:22px 14px 50px}
.view{max-width:1110px;margin:0 auto}
.view[hidden]{display:none!important}
.welcome-panel{
  background:var(--surface);
  border:1px solid #afd1ff;
  border-radius:14px;
  padding:22px;
  box-shadow:0 3px 0 rgba(45,125,255,.06);
}
.welcome-title{margin:0 0 7px;font-weight:600}
.welcome-text{margin:0;color:#44516a;font-size:12px}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:17px
}
.summary-card{
  min-height:80px;
  padding:15px 17px;
  border-radius:10px;
  border:1px solid;
  display:flex;
  flex-direction:column;
  justify-content:center
}
.summary-card strong{font-size:24px;font-weight:500;line-height:1;margin-bottom:7px}
.summary-card span{font-size:10px;color:#41506a}
.summary-blue{background:#eaf3ff;border-color:#9ac7ff}
.summary-green{background:#eafff0;border-color:#a1efb8}
.summary-purple{background:#f7ecff;border-color:#dfb7ff}
.dashboard-body{padding-top:20px}
.skill-list{max-width:710px}
.domain-section{margin-bottom:20px}
.domain-heading{display:flex;align-items:center;gap:9px;margin:0 0 13px}
.domain-icon{
  width:28px;height:28px;border-radius:7px;display:grid;place-items:center;
  background:linear-gradient(135deg,#ac67ff,#8e8cff);font-size:17px
}
.domain-heading h2{font-size:12px;margin:0;font-weight:500}
.domain-heading p{font-size:10px;margin:1px 0 0;color:var(--muted)}
.skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.skill-card{
  background:var(--surface);
  border:1px solid #d9deea;
  border-radius:10px;
  min-height:168px;
  padding:17px;
  box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
}
.skill-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(33,49,87,.12);border-color:#cbd6e7}
.card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.skill-icon{
  width:32px;height:32px;border-radius:8px;display:grid;place-items:center;
  background:linear-gradient(135deg,#6bb1ff,#c14cff);color:#fff
}
.skill-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.level-badge{border-radius:999px;padding:3px 9px;font-size:9px;border:1px solid;white-space:nowrap}
.level-beginner{color:#0c9f48;background:#eafff1;border-color:#54e58f}
.level-intermediate{color:#b27600;background:#fff9db;border-color:#ffc84d}
.level-advanced{color:#d53440;background:#fff0f1;border-color:#ff858d}
.skill-card h3{font-size:12px;margin:12px 0 7px;font-weight:500}
.skill-card p{font-size:10px;line-height:1.45;color:#66738a;margin:0;min-height:30px}
.progress-mini{display:flex;align-items:center;gap:8px;margin-top:9px}
.progress-mini-track{height:5px;background:#e9eef8;border-radius:999px;overflow:hidden;flex:1}
.progress-mini-fill{height:100%;background:linear-gradient(90deg,var(--blue),var(--purple));border-radius:inherit}
.progress-mini span{font-size:9px;color:#6b7486}
.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:11px}
.action-btn{
  height:34px;border:0;border-radius:7px;color:#fff;font-size:11px;font-weight:600;
  display:flex;align-items:center;justify-content:center;gap:7px
}
.action-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8}
.learn-btn{background:var(--blue)}
.learn-btn:hover{background:var(--blue-dark)}
.ar-btn{background:var(--purple)}
.ar-btn:hover{background:var(--purple-dark)}
.skill-card.is-completed{border-color:#9de8b8}
.skill-card.is-completed::after{
  content:"✓";position:absolute;right:13px;bottom:72px;width:20px;height:20px;border-radius:50%;
  display:grid;place-items:center;background:#eafff0;color:#14a44d;font-size:11px;font-weight:800
}

/* Progress */
.progress-hero{
  background:linear-gradient(135deg,#ffffff 0%,#f3efff 100%);
  border:1px solid #d7ccff;border-radius:18px;padding:26px;
  display:flex;justify-content:space-between;align-items:center;gap:24px;
  box-shadow:var(--shadow)
}
.eyebrow{
  display:inline-block;margin-bottom:8px;padding:5px 9px;border-radius:999px;
  background:#eee7ff;color:#7241d4;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em
}
.progress-hero h1{font-size:26px;margin:0 0 8px}
.progress-hero p{margin:0;color:var(--muted);max-width:600px}
.overall-ring{
  --progress:0;
  width:118px;height:118px;flex:0 0 auto;border-radius:50%;
  display:grid;place-items:center;
  background:conic-gradient(var(--purple) calc(var(--progress)*1%),#e7e9f1 0)
}
.ring-inner{
  width:92px;height:92px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;flex-direction:column
}
.ring-inner strong{font-size:22px}
.ring-inner span{font-size:10px;color:var(--muted)}
.progress-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}
.progress-stats article{
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;
  display:flex;justify-content:space-between;align-items:center
}
.progress-stats span{color:var(--muted);font-size:12px}
.progress-stats strong{font-size:20px}
.progress-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.section-heading h2{font-size:16px;margin:0}
.section-heading p{font-size:11px;color:var(--muted);margin:4px 0 0}
.ghost-danger{background:#fff;color:#d33b46;border:1px solid #ffc2c6;border-radius:8px;padding:8px 11px;font-size:11px}
.ghost-danger:hover{background:#fff4f5}
.progress-list{display:grid;gap:10px}
.progress-row{border:1px solid #e1e6f0;border-radius:11px;padding:13px 14px;display:grid;grid-template-columns:1.4fr 2fr auto;align-items:center;gap:14px}
.progress-row-title{display:flex;align-items:center;gap:10px}
.progress-row-title .mini-icon{width:30px;height:30px;border-radius:8px;background:#f1e9ff;display:grid;place-items:center}
.progress-row-title strong{display:block;font-size:12px}
.progress-row-title small{display:block;color:var(--muted);font-size:9px}
.big-track{height:8px;border-radius:999px;background:#e9edf5;overflow:hidden}
.big-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--purple))}
.row-pct{font-size:11px;color:#4e596e;min-width:36px;text-align:right}

/* Modals */
.modal-backdrop{
  position:fixed;inset:0;z-index:100;background:rgba(16,24,40,.52);
  display:grid;place-items:center;padding:20px
}
.modal-backdrop[hidden]{display:none}
.modal{
  width:min(620px,100%);max-height:min(86vh,760px);overflow:auto;background:#fff;
  border-radius:18px;box-shadow:0 24px 80px rgba(14,22,45,.25);padding:25px;position:relative
}
.modal-close{
  position:absolute;right:15px;top:13px;width:34px;height:34px;border:0;border-radius:9px;background:#f2f4f8;
  font-size:22px;color:#667085;line-height:1
}
.modal-kicker{display:inline-block;background:#e9f2ff;color:#236bd8;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:700}
.modal-kicker-purple{background:#f3e8ff;color:#8a33d4}
.modal h2{font-size:22px;margin:12px 42px 6px 0}
.modal-description{margin:0 0 16px;color:var(--muted);font-size:12px}
.lesson-steps{display:grid;gap:9px}
.lesson-step{
  display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #e3e8f1;border-radius:11px;background:#fafbfe
}
.step-num{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#edf4ff;color:#2f80ff;font-weight:700;flex:0 0 auto;font-size:11px}
.lesson-step.is-done{border-color:#a9e8bf;background:#f6fff8}
.lesson-step.is-done .step-num{background:#21bf60;color:#fff}
.lesson-step strong{display:block;font-size:12px;margin-bottom:3px}
.lesson-step p{margin:0;color:var(--muted);font-size:10px}
.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.modal-progress{font-size:11px;color:var(--muted)}
.primary-btn,.purple-btn{
  border:0;border-radius:9px;padding:10px 15px;color:#fff;font-weight:600;font-size:12px
}
.primary-btn{background:var(--blue)}
.purple-btn{background:var(--purple)}
.primary-btn:hover{background:var(--blue-dark)}
.purple-btn:hover{background:var(--purple-dark)}
.ar-stage{
  height:260px;border-radius:14px;overflow:hidden;position:relative;
  background:radial-gradient(circle at 50% 40%,#23324f,#0b1220 70%);
  display:grid;place-items:center
}
.camera-grid{
  position:absolute;inset:0;opacity:.22;
  background-image:linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px);
  background-size:38px 38px
}
.ar-target{position:absolute;width:160px;height:120px}
.ar-target span{position:absolute;width:30px;height:30px;border-color:#8be8ff;border-style:solid}
.ar-target span:nth-child(1){left:0;top:0;border-width:2px 0 0 2px}
.ar-target span:nth-child(2){right:0;top:0;border-width:2px 2px 0 0}
.ar-target span:nth-child(3){left:0;bottom:0;border-width:0 0 2px 2px}
.ar-target span:nth-child(4){right:0;bottom:0;border-width:0 2px 2px 0}
.ar-card{position:relative;z-index:2;width:220px;padding:18px;text-align:center;border-radius:15px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:#fff;backdrop-filter:blur(8px)}
.ar-card .ar-icon{display:block;font-size:30px;margin-bottom:5px}
.ar-card strong{display:block;font-size:13px}
.ar-card small{display:block;font-size:9px;line-height:1.4;color:#d7e1f3;margin-top:6px}
.ar-card.is-live{animation:floatCard 2s ease-in-out infinite}
@keyframes floatCard{50%{transform:translateY(-5px)}}
.ar-question{margin-top:15px;padding:13px;border:1px solid #e1e6f0;border-radius:12px}
.ar-question p{font-weight:600;font-size:12px;margin:0 0 10px}
.choice-grid{display:grid;gap:8px}
.choice-btn{padding:10px 12px;text-align:left;border:1px solid #d9dfeb;background:#fff;border-radius:9px;font-size:11px;color:#39445a}
.choice-btn:hover{border-color:#ad78ff;background:#fbf7ff}
.choice-btn.is-correct{border-color:#58d98b;background:#f0fff5;color:#138542}
.choice-btn.is-wrong{border-color:#ff969d;background:#fff5f6;color:#c13a44}

/* Toast */
.toast-region{position:fixed;right:18px;bottom:18px;z-index:200;display:grid;gap:8px}
.toast{background:#172033;color:#fff;border-radius:10px;padding:11px 14px;font-size:11px;box-shadow:0 12px 30px rgba(0,0,0,.18);animation:toastIn .2s ease}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}}

/* Responsive */
@media (max-width:760px){
  .topbar{height:auto;min-height:66px;padding:10px 12px;align-items:flex-start}
  .header-actions{gap:7px;align-items:flex-end;flex-direction:column}
  .top-nav{order:1}
  .lang-switch{order:0}
  .brand-copy small{white-space:normal}
  main{padding:14px 10px 36px}
  .welcome-panel{padding:16px}
  .summary-grid{gap:8px}
  .summary-card{min-height:72px;padding:12px}
  .summary-card strong{font-size:21px}
  .skill-list{max-width:none}
}
@media (max-width:610px){
  .skill-grid{grid-template-columns:1fr}
  .summary-grid{grid-template-columns:1fr 1fr}
  .summary-card:first-child{grid-column:1/-1}
  .progress-hero{align-items:flex-start;flex-direction:column}
  .progress-stats{grid-template-columns:1fr}
  .progress-row{grid-template-columns:1fr}
  .row-pct{text-align:left}
}
@media (max-width:430px){
  .topbar{align-items:center}
  .brand-copy small{display:none}
  .header-actions{flex-direction:row;align-items:center}
  .globe-btn{display:none}
  .nav-btn{padding:8px 9px}
  .modal{padding:20px 16px}
  .modal-footer{align-items:stretch;flex-direction:column}
  .modal-footer button{width:100%}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
