/* Mayoq — test natijasi, natijalar, miya xaritasi, tavsiyalar (maket: Test-natija, Natijalar, Miya-xaritasi). Batafsil kartochkalar (detail, growth, plan) result.css da. */

/* eski kartochka (.card, .card.tint) endi shisha uslubida */
.card { background: var(--glass); box-shadow: var(--glass-sh); border-radius: 22px; }
.card.tint { background: rgba(255, 255, 255, .8); box-shadow: var(--glass-sh); }
.card.soft { background: rgba(255, 255, 255, .6); }
.h2 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.link-btn { align-self: center; border: 0; background: none; padding: 10px 14px; color: #5B37D6; font: 800 15px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- test natijasi ---------- */
.s-score { padding-top: 0; align-items: stretch; }
.sc-top { position: relative; height: calc(var(--u) * 214); margin: 0 -16px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.sc-glow { position: absolute; left: 50%; bottom: 20px; width: 220px; height: 150px; margin-left: -110px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 233, 163, .85) 0%, rgba(255, 201, 60, .25) 50%, rgba(255, 233, 163, 0) 72%); animation: m-glow 2.4s ease-in-out infinite alternate; }
.sc-trophy { position: relative; display: block; width: calc(var(--u) * 250); animation: m-trophy 1s cubic-bezier(.2, .9, .3, 1.1) .2s both; }
@keyframes m-trophy { 0% { transform: translateY(46px) scale(.3); opacity: 0; } 55% { transform: translateY(-10px) scale(1.08); opacity: 1; } 78% { transform: translateY(3px) scale(.97); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
.cf { position: absolute; top: 0; width: 9px; height: 16px; border-radius: 3px; opacity: 0; animation: m-fall 3s linear infinite; }
.cf.c0 { background: #FFC93C; } .cf.c1 { background: #8E6DFA; } .cf.c2 { background: #22B04B; } .cf.c3 { background: #FF8FA3; } .cf.c4 { background: #4F8DF7; } .cf.c5 { background: #FFB35C; }
@keyframes m-fall { 0% { transform: translate(0, -20px) rotate(0); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(14px, 190px) rotate(300deg); opacity: 0; } }
.sc-h { margin: 6px 0 14px; text-align: center; font-size: 32px; line-height: 1.1; font-weight: 900; letter-spacing: -.3px; color: var(--ink); animation: m-fade-up .5s ease-out .5s both; }
.sc-card { padding: 18px 16px 16px; margin: 0 14px; text-align: center; background: rgba(255, 255, 255, .88); animation: m-score .6s ease-out .7s both; }
@keyframes m-score { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.sc-big { display: flex; align-items: baseline; justify-content: center; line-height: 1; color: #1FA34A; }
.sc-n { font-size: 84px; font-weight: 900; letter-spacing: -2px; }
.sc-big small { font-size: 44px; font-weight: 800; margin-left: 2px; }
.sc-card p { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: #3A3970; }
.sc-say { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 8px; background: rgba(255, 255, 255, .9); animation: m-rise .6s ease-out .9s both; }
.sc-boy { width: 112px; flex: none; margin: -14px 0 -10px; }
.sc-say b { display: block; font-size: 21px; font-weight: 900; }
.sc-say p { margin: 4px 0 0; font-size: 16px; line-height: 1.35; font-weight: 500; color: #3A3970; }
.sc-act { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 18px; }
.sc-act .cta { height: 56px; }
.sc-act .cta.soft .ico { stroke: var(--ink); }
.save-status { align-self: center; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; text-align: center; font-weight: 800; font-size: 14.5px; color: var(--muted); }
.save-status.saved { padding: 6px 14px; border-radius: 999px; background: #DDF5E3; color: #14702A; }
.save-status.failed { align-self: stretch; padding: 12px 16px; border-radius: 16px; background: #FFE3E1; color: #B3261E; }
.save-status .ico { width: 18px; height: 18px; }
.save-status .link { min-height: 40px; padding: 0 4px; color: #B3261E; background: none; border: 0; text-decoration: underline; font: 800 14.5px var(--font); cursor: pointer; }

/* ---------- natijalar ---------- */
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: var(--glass-sh); }
.seg3 button { height: 44px; border: 0; border-radius: 999px; background: none; color: #4B4A7E; font: 800 16px var(--font); cursor: pointer; }
.seg3 button.on { background: linear-gradient(180deg, #7A55EC, #5B37D6); color: #fff; box-shadow: 0 10px 20px -10px rgba(91, 55, 214, .8); }
.res-body { display: flex; flex-direction: column; gap: 12px; }
.sum-brain { position: relative; display: block; width: 100%; padding: 16px 16px 14px; border: 0; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; overflow: hidden; background: rgba(255, 255, 255, .85); }
.sb-l { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 62%; }
.sb-l h2 { margin: 0; font-size: 20px; font-weight: 900; }
.sb-n { font-size: 56px; line-height: 1.05; font-weight: 900; letter-spacing: -1px; }
.sb-n small { font-size: 30px; font-weight: 800; }
.sb-n.good { color: #1FA34A; } .sb-n.mid { color: #B85F00; } .sb-n.bad { color: #C2372B; } .sb-n.none { color: var(--muted); }
.sb-s { font-size: 15.5px; font-weight: 700; color: #3A3970; }
.sb-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; font-size: 14px; font-weight: 600; color: #3A3970; }
.sb-chip b { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px; font-weight: 800; font-size: 15px; }
.sb-chip.good b { background: #E4F6E9; color: #14702A; } .sb-chip.mid b { background: #FFF1D6; color: #9A5B00; } .sb-chip.bad b { background: #FFE6E3; color: #C2372B; }
.sb-chip b .ico { width: 18px; height: 18px; stroke-width: 3; }
.sb-img { position: absolute; right: -14px; top: 4px; width: 50%; animation: m-float 3.8s ease-in-out infinite alternate; }
.sb-st { position: absolute; width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: m-twinkle 2s ease-in-out infinite alternate; }
.sb-st.s1 { right: 8px; top: 18px; } .sb-st.s2 { right: 38%; bottom: 30px; animation-delay: .8s; }
.sg-box { padding: 14px 12px 12px; background: rgba(255, 255, 255, .85); }
.sg-h { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.sg-h h2 { margin: 0; font-size: 19px; font-weight: 900; }
.sg-h span { font-size: 14px; font-weight: 700; color: var(--muted); }
.sg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sg-card { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 142px; padding: 12px 4px 8px; border: 0; border-radius: 16px; background: #EEECFC; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); font-family: inherit; color: var(--ink); cursor: pointer; animation: m-tile .5s ease-out both; }
.sg-card.good { background: #E4F6E9; box-shadow: inset 0 0 0 1.5px #1FA34A; }
.sg-card.mid { background: #FFF4DC; box-shadow: inset 0 0 0 1.5px #E6A12A; }
.sg-card.bad { background: #FFE9E6; box-shadow: inset 0 0 0 1.5px #E5484D; }
.sg-mark { position: absolute; right: -5px; top: -5px; width: 22px; height: 22px; border-radius: 50%; background: #1FA34A; box-shadow: 0 0 0 2px #fff; display: flex; align-items: center; justify-content: center; }
.sg-card.mid .sg-mark { background: #E6A12A; } .sg-card.bad .sg-mark { background: #E5484D; } .sg-card.none .sg-mark { background: #A4A2C9; }
.sg-mark .ico { width: 13px; height: 13px; stroke: #fff; stroke-width: 3.4; }
.sg-ic { display: block; height: 44px; width: auto; max-width: 80%; object-fit: contain; }
.sg-card.none .sg-ic { opacity: .65; filter: saturate(.7); }
.sg-t { font-size: 13.5px; line-height: 1.15; font-weight: 800; text-align: center; overflow-wrap: anywhere; min-height: 32px; display: flex; align-items: center; }
.sg-chip { margin-top: auto; width: 100%; padding: 4px 1px; border-radius: 10px; overflow-wrap: anywhere; text-align: center; hyphens: auto; background: rgba(255, 255, 255, .6); display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 800; line-height: 1.15; color: #4B4A7E; }
.sg-chip b { font-size: 13px; } .sg-chip em { font-style: normal; font-size: 16px; font-weight: 900; }
.sg-card.good .sg-chip { background: #CDEFD7; color: #14702A; } .sg-card.mid .sg-chip { background: #FFE7B8; color: #8A5200; } .sg-card.bad .sg-chip { background: #FFD3CE; color: #B3261E; }
.stg { display: flex; flex-direction: column; gap: 8px; }
.stg-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 10px; border: 0; border-radius: 20px; font-family: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.stg-row .si { width: 46px; height: 46px; object-fit: contain; flex: none; }
.stg-row .tx { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.stg-row b { font-size: 16px; font-weight: 800; }
.stg-row small { font-size: 14px; color: var(--muted); font-weight: 600; }
.chip-tone { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; background: #EEECFC; color: #5A5B8D; }
.chip-tone.good { background: #E4F6E9; color: #14702A; } .chip-tone.mid { background: #FFF1D6; color: #9A5B00; } .chip-tone.bad { background: #FFE6E3; color: #C2372B; }
.empty-c { padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(255, 255, 255, .85); }
.empty-c .ec-art { width: 120px; }
.empty-c b { font-size: 19px; font-weight: 900; }
.empty-c p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.4; font-weight: 500; color: #3A3970; }
.plan-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 6px 0; font-size: 14px; line-height: 1.35; font-weight: 500; color: #3A3970; }
.plan-note .ico { width: 20px; height: 20px; flex: none; stroke: var(--ink-2); }
.res-body.plan { gap: 14px; margin-top: 14px; }
.res-body.plan .col { display: flex; flex-direction: column; gap: 14px; }

/* ---------- miya xaritasi ---------- */
.brain-card { margin-top: 12px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #5B4FE0 0%, #4A3CC8 55%, #3A2EA8 100%); box-shadow: 0 20px 40px -24px rgba(58, 46, 168, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.bc-stage { position: relative; height: calc(var(--u) * 300); }
.bc-halo { position: absolute; left: 50%; top: 47%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(167, 123, 247, .75) 0%, rgba(167, 123, 247, 0) 70%); animation: m-halo 3s ease-in-out infinite alternate; }
@keyframes m-halo { from { transform: translate(-50%, -50%) scale(.9); opacity: .65; } to { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } }
.bc-brain { position: absolute; left: 27%; top: 20%; width: 46%; animation: m-float 4s ease-in-out infinite alternate; filter: drop-shadow(0 18px 20px rgba(20, 10, 80, .5)); }
.pin { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #5B37D6; font: 800 15px var(--font); box-shadow: 0 6px 14px -4px rgba(10, 5, 60, .6), inset 0 0 0 2px #fff; cursor: pointer; animation: m-badge .5s ease-out backwards; }
@keyframes m-badge { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.pin.good { background: #fff; color: #14702A; box-shadow: 0 0 0 3px #4ADE80, 0 0 18px rgba(74, 222, 128, .8); }
.pin.mid { color: #8A5200; box-shadow: 0 0 0 3px #FFC24A, 0 0 16px rgba(255, 194, 74, .7); }
.pin.bad { color: #B3261E; box-shadow: 0 0 0 3px #FF8A80, 0 0 16px rgba(255, 138, 128, .7); }
.pin.on { transform: scale(1.18); box-shadow: 0 0 0 4px #A77BF7, 0 0 22px rgba(167, 123, 247, .9); }
.bc-hint { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.bc-hint .ico { width: 20px; height: 20px; stroke-width: 2; }
.bc-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px 14px 16px; border-top: 1px solid rgba(255, 255, 255, .2); }
.lg-i { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 3px 0; border: 0; background: none; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.lg-i .ln { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #5B37D6; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.lg-i b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.lg-i em { font-style: normal; font-size: 13px; font-weight: 800; color: #86F0A6; }
.lg-i.mid em { color: #FFD479; } .lg-i.bad em { color: #FFA9A3; }
.lg-i.good .ln { box-shadow: 0 0 0 2px #4ADE80; } .lg-i.mid .ln { box-shadow: 0 0 0 2px #FFC24A; } .lg-i.bad .ln { box-shadow: 0 0 0 2px #FF8A80; }
.lg-i.on b { text-decoration: underline; }
.brain-stats { margin-top: 12px; padding: 14px; background: rgba(255, 255, 255, .88); }
.bs-row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; align-items: center; text-align: center; }
.bs { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
.bs + .bs { border-left: 1px solid #E6E2F7; }
.bs b { display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 900; line-height: 1.1; }
.bs b .ico { width: 22px; height: 22px; stroke-width: 3; }
.bs.big b { font-size: 30px; }
.bs.good b { color: #1FA34A; } .bs.mid b { color: #B85F00; } .bs.bad b { color: #C2372B; }
.bs span { font-size: 14px; font-weight: 600; color: var(--muted); }
.bs-leg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bs-leg .chip-tone { flex: 1 1 40%; justify-content: center; height: 34px; font-size: 14px; }

/* batafsil kartochkalar (detailCard, growthCard, planItemCard) maket uslubiga */
.detail, .plan-item, .growth, .week { padding: 16px; }
.donut .dn-track { stroke: #fff; }
.ls-bar { background: #E9E6F5; }
.tab.on { background: var(--cta); }
