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

:root {
    --bg: #080d19;
    --surface: #101827;
    --surface-2: #151f33;
    --surface-3: #1b2840;
    --line: rgba(167, 185, 226, .13);
    --text: #edf3ff;
    --muted: #8491aa;
    --purple: #8b5cf6;
    --purple-2: #a78bfa;
    --cyan: #21d4d9;
    --amber: #f7b955;
    --pink: #f06daa;
    --danger: #ff6177;
    --success: #36d39a;
    --shadow: 0 24px 70px rgba(0, 0, 0, .27);
    --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 72% -20%, rgba(86, 62, 170, .18), transparent 36%), var(--bg); color: var(--text); font-family: "Noto Sans SC", system-ui, sans-serif; font-size: 14px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 18px; border-right: 1px solid var(--line); background: rgba(8, 13, 25, .89); backdrop-filter: blur(18px); display: flex; flex-direction: column; z-index: 20; }
.logo { display: flex; align-items: center; gap: 12px; padding: 0 10px 32px; }
.logo strong { display: block; font-size: 18px; letter-spacing: .08em; }
.logo small { display: block; margin-top: 2px; color: var(--muted); font-family: Rajdhani, sans-serif; font-size: 10px; letter-spacing: .24em; }
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: white; background: linear-gradient(145deg, #9d72ff, #6235d2); box-shadow: 0 0 28px rgba(139, 92, 246, .42); font-size: 20px; }
.brand-mark--large { width: 54px; height: 54px; border-radius: 17px; font-size: 28px; }
.nav-label { padding: 0 14px; margin: 12px 0 9px; color: #55627b; font-family: Rajdhani, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; margin: 3px 0; border: 1px solid transparent; border-radius: 12px; color: #8d9ab3; font-weight: 600; transition: .2s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active { color: #fff; border-color: rgba(139, 92, 246, .22); background: linear-gradient(90deg, rgba(139, 92, 246, .2), rgba(139, 92, 246, .05)); box-shadow: inset 3px 0 var(--purple); }
.nav-icon { width: 23px; text-align: center; color: currentColor; font-size: 17px; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 2px 6px; text-align: center; border-radius: 999px; background: var(--danger); color: white; font-size: 10px; }
.commander-card { margin-top: auto; padding: 13px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(33, 212, 217, .38); border-radius: 11px; background: rgba(33, 212, 217, .1); color: var(--cyan); font-weight: 800; }
.commander-card small, .commander-card strong, .commander-card span { display: block; }
.commander-card small { color: var(--muted); font-size: 9px; }
.commander-card strong { margin: 2px 0; font-size: 12px; white-space: nowrap; }
.commander-card span { color: var(--purple-2); font-family: Rajdhani, sans-serif; font-size: 10px; font-weight: 700; }
.commander-card > a { color: var(--muted); }

.main-content { min-width: 0; padding: 0 34px 56px; }
.topbar { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 3px 0 0; font-size: 25px; letter-spacing: .03em; }
.eyebrow { margin-bottom: 5px; color: #687791; font-family: Rajdhani, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); color: #aeb9ce; }
.icon-button i { position: absolute; right: 9px; top: 8px; width: 7px; height: 7px; border: 2px solid var(--bg); border-radius: 50%; background: var(--danger); }
.score-pill { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid rgba(247, 185, 85, .21); border-radius: 12px; background: rgba(247, 185, 85, .07); }
.score-pill > span { color: var(--amber); font-size: 17px; }
.score-pill small, .score-pill strong { display: block; line-height: 1.1; }
.score-pill small { color: var(--muted); font-size: 9px; }
.score-pill strong { margin-top: 3px; color: var(--amber); font-family: Rajdhani, sans-serif; font-size: 17px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.btn { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 700; transition: transform .15s ease, filter .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { background: linear-gradient(135deg, #8b5cf6, #7044dc); color: white; box-shadow: 0 8px 28px rgba(112, 68, 220, .26); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.025); color: #b4bfd3; }
.btn-small { min-height: 34px; padding: 0 13px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-disabled { border-color: var(--line); background: rgba(255,255,255,.035); color: #58657c; cursor: not-allowed; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(19, 29, 47, .92), rgba(12, 19, 32, .92)); box-shadow: var(--shadow); }
.hero-panel { min-height: 208px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 32px 42px; border: 1px solid rgba(139, 92, 246, .21); border-radius: 22px; background: radial-gradient(circle at 82% 50%, rgba(139,92,246,.28), transparent 25%), linear-gradient(120deg, #181530, #111b31 56%, #0e1929); box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; width: 510px; height: 510px; right: -175px; top: -195px; border: 1px solid rgba(139,92,246,.16); border-radius: 50%; box-shadow: 0 0 0 48px rgba(139,92,246,.035), 0 0 0 94px rgba(139,92,246,.025); }
.hero-copy { position: relative; z-index: 1; max-width: 670px; }
.hero-copy h2 { margin-bottom: 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: .04em; }
.hero-copy > p:not(.eyebrow) { margin-bottom: 27px; color: #93a0b7; }
.hero-copy p strong { color: white; }
.xp-row { display: grid; grid-template-columns: auto minmax(120px, 280px) auto; align-items: center; gap: 13px; color: #b9c4d9; font-size: 11px; }
.xp-row strong { color: var(--purple-2); font-family: Rajdhani, sans-serif; }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.progress-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--cyan)); box-shadow: 0 0 14px rgba(33,212,217,.35); }
.level-core { position: relative; z-index: 1; width: 128px; height: 128px; display: grid; place-items: center; margin-right: 45px; border: 1px solid rgba(167,139,250,.3); border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.25), rgba(13,19,38,.8) 64%); box-shadow: 0 0 45px rgba(139,92,246,.2), inset 0 0 26px rgba(139,92,246,.15); }
.level-core::after { content:""; position: absolute; inset: -9px; border: 1px dashed rgba(33,212,217,.22); border-radius: 50%; }
.level-core div { text-align: center; }
.level-core small, .level-core strong, .level-core span { display: block; font-family: Rajdhani, sans-serif; }
.level-core small { color: var(--muted); font-size: 9px; letter-spacing: .25em; }
.level-core strong { line-height: .95; font-size: 52px; }
.level-core span { color: var(--cyan); font-size: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.stat-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17, 25, 41, .87); }
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-family: Rajdhani, sans-serif; font-size: 21px; font-weight: 700; }
.stat-card small, .stat-card strong, .stat-card span { display: block; }
.stat-card small { color: var(--muted); font-size: 10px; }
.stat-card strong { margin: 2px 0; font-family: Rajdhani, sans-serif; font-size: 29px; line-height: 1; }
.stat-card span { overflow: hidden; color: #5f6d85; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.stat-card.purple .stat-icon { color: var(--purple-2); background: rgba(139,92,246,.13); }.stat-card.amber .stat-icon { color: var(--amber); background: rgba(247,185,85,.11); }.stat-card.cyan .stat-icon { color: var(--cyan); background: rgba(33,212,217,.1); }.stat-card.pink .stat-icon { color: var(--pink); background: rgba(240,109,170,.1); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(280px, .72fr); gap: 16px; }
.mission-panel { padding: 23px; }
.side-stack { display: grid; align-content: start; gap: 16px; }
.side-stack .panel { padding: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 17px; }.section-head p { margin-bottom: 3px; }.section-head > a { color: var(--purple-2); font-size: 11px; font-weight: 600; }
.muted { color: var(--muted); }
.warning-text { color: var(--amber) !important; }
.positive-text { color: var(--success) !important; }.negative-text { color: var(--danger) !important; }

.task-list { display: grid; gap: 9px; }
.task-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-left: 3px solid #42506b; border-radius: 13px; background: rgba(255,255,255,.018); transition: border-color .2s, background .2s, opacity .3s, transform .3s; }
.task-card:hover { border-color: rgba(167,185,226,.24); background: rgba(255,255,255,.03); }
.task-card.status-in-progress { border-left-color: var(--purple); }.task-card.status-near-due { border-left-color: var(--amber); }.task-card.status-overdue,.task-card.status-abandoned { border-left-color: var(--danger); }.task-card.status-completed,.task-card.status-perfect { border-left-color: var(--success); }
.task-main { min-width: 0; display: grid; grid-template-columns: 39px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 14px; }
.full .task-main { cursor: pointer; padding: 17px; }
.task-type-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(139,92,246,.2); border-radius: 11px; background: rgba(139,92,246,.08); color: var(--purple-2); font-size: 18px; }
.task-info { min-width: 0; }
.task-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: #68768f; font-size: 8px; font-weight: 600; letter-spacing: .05em; }
.task-info h3 { overflow: hidden; margin: 0 0 5px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.task-info > p { overflow: hidden; margin-bottom: 8px; color: #707e96; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-progress { display: grid; grid-template-columns: minmax(60px,180px) auto; align-items: center; gap: 10px; }
.task-progress span { color: #8f9db4; font-family: Rajdhani, sans-serif; font-size: 10px; }
.task-side { min-width: 112px; display: grid; justify-items: end; gap: 3px; }
.task-side time { color: #75829a; font-family: Rajdhani, sans-serif; font-size: 10px; }.task-side strong { color: var(--cyan); font-family: Rajdhani, sans-serif; font-size: 10px; }
.expand-button { width: 26px; height: 26px; margin-top: 3px; border: 0; border-radius: 8px; background: rgba(255,255,255,.045); color: var(--muted); cursor: pointer; transition: transform .2s; }
.task-quick-actions { display:flex; align-items:center; justify-content:flex-end; gap:5px; margin-top:4px; }.task-quick-actions form { display:flex; }.quick-complete,.quick-delete { height:26px; position:relative; overflow:hidden; border:1px solid; border-radius:8px; cursor:pointer; font-size:9px; font-weight:700; transition:transform .18s,background .18s,border-color .18s,color .18s; }.quick-complete { min-width:48px; padding:0 9px; border-color:rgba(54,211,154,.3); background:rgba(54,211,154,.09); color:var(--success); }.quick-complete:hover { transform:translateY(-1px); background:rgba(54,211,154,.18); }.quick-complete.is-done,.quick-complete:disabled { border-color:rgba(54,211,154,.18); background:rgba(54,211,154,.08); color:#6f9e8e; cursor:default; }.quick-delete { width:40px; border-color:rgba(255,97,119,.22); background:rgba(255,97,119,.06); color:#b85a68; }.quick-delete:hover { transform:translateY(-1px); border-color:rgba(255,97,119,.5); background:rgba(255,97,119,.15); color:var(--danger); }
.task-card.open .expand-button { transform: rotate(180deg); }
.badge,.difficulty { display: inline-flex; align-items: center; padding: 2px 6px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.025); font-size: 8px; white-space: nowrap; }
.badge.status-in-progress,.badge.status-started { color: var(--purple-2); border-color: rgba(139,92,246,.22); background: rgba(139,92,246,.1); }.badge.status-near-due { color: var(--amber); border-color: rgba(247,185,85,.22); background: rgba(247,185,85,.08); }.badge.status-overdue,.badge.status-abandoned { color: var(--danger); border-color: rgba(255,97,119,.22); background: rgba(255,97,119,.08); }.badge.status-completed,.badge.status-perfect { color: var(--success); border-color: rgba(54,211,154,.22); background: rgba(54,211,154,.08); }
.difficulty-hard { color: var(--amber); }.difficulty-epic { color: var(--pink); }
.task-detail { display: none; padding: 0 17px 17px 69px; border-top: 1px solid var(--line); background: rgba(0,0,0,.1); }
.task-card.open .task-detail { display: block; }
.stage-list { display: grid; gap: 7px; padding: 16px 0; }.stage-list h4 { margin: 0 0 5px; color: #8390a7; font-size: 10px; letter-spacing: .08em; }.stage-list h4 small { margin-left:8px; color:#56647c; font-weight:400; letter-spacing:0; }.stage-item { display:grid; grid-template-columns:25px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:40px; padding:6px 8px; border:1px solid transparent; border-radius:10px; transition:background .25s,border-color .25s,transform .25s; }.stage-item:hover { border-color:rgba(167,185,226,.11); background:rgba(255,255,255,.018); }.stage-symbol { width:24px; height:24px; display:grid; place-items:center; border:1px solid #35435b; border-radius:7px; color:#738097; font-family:Rajdhani,sans-serif; font-size:10px; font-weight:700; transition:.25s; }.stage-title { color:#a3aec2; font-size:11px; transition:.25s; }.stage-complete-button { min-width:86px; height:28px; position:relative; overflow:hidden; padding:0 11px; border:1px solid rgba(139,92,246,.28); border-radius:8px; background:rgba(139,92,246,.09); color:var(--purple-2); cursor:pointer; font-size:9px; font-weight:700; transition:.2s; }.stage-complete-button:hover { transform:translateY(-1px); background:rgba(139,92,246,.18); }.stage-item.is-complete { background:rgba(54,211,154,.035); }.stage-item.is-complete .stage-symbol { border-color:var(--success); background:var(--success); color:#07160f; box-shadow:0 0 16px rgba(54,211,154,.25); }.stage-item.is-complete .stage-title { color:#657a72; text-decoration:line-through; }.stage-item.is-complete .stage-complete-button { border-color:rgba(54,211,154,.16); background:rgba(54,211,154,.06); color:#638f7f; cursor:default; }
.task-edit-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; padding-top: 15px; border-top: 1px solid var(--line); }.task-edit-form .span-2 { grid-column: 1 / -1; }.task-score-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #6e7b92; font-size: 9px; }.task-score-note .btn { margin-left: auto; }

.task-progress .progress-track i { transition:width .65s cubic-bezier(.22,1,.36,1); }.task-card.is-completing { border-color:rgba(54,211,154,.56); animation:task-complete .78s cubic-bezier(.22,1,.36,1); box-shadow:0 0 0 1px rgba(54,211,154,.12),0 0 36px rgba(54,211,154,.14); }.task-card.stage-pulse { animation:stage-pulse .68s ease; }.task-card.is-deleting { pointer-events:none; animation:task-delete .5s ease forwards; }.quest-burst { position:absolute; right:84px; top:54%; width:8px; height:8px; z-index:8; pointer-events:none; }.quest-burst i { --angle:calc(var(--i) * 36deg); position:absolute; inset:0; width:6px; height:6px; border-radius:2px; background:var(--success); box-shadow:0 0 10px currentColor; animation:quest-particle .85s ease-out forwards; transform:rotate(var(--angle)) translateX(3px) scale(1); }.quest-burst i:nth-child(3n) { background:var(--amber); }.quest-burst i:nth-child(3n + 1) { background:var(--purple-2); }.score-float { position:absolute; right:75px; top:48%; z-index:9; color:var(--success); font-family:Rajdhani,sans-serif; font-size:12px; text-shadow:0 0 16px rgba(54,211,154,.65); pointer-events:none; animation:score-float 1.05s ease-out forwards; }.button-ripple { position:absolute; width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); pointer-events:none; transform:translate(-50%,-50%) scale(0); animation:button-ripple .55s ease-out forwards; }.btn,.quick-complete,.quick-delete,.stage-complete-button,.expand-button { position:relative; overflow:hidden; }
@keyframes task-complete { 0%{transform:scale(1)} 32%{transform:scale(1.012)} 58%{transform:scale(.997)} 100%{transform:scale(1)} }
@keyframes stage-pulse { 0%,100%{transform:translateX(0)} 35%{transform:translateX(3px)} 65%{transform:translateX(-2px)} }
@keyframes task-delete { 0%{opacity:1;transform:scale(1);max-height:240px} 45%{opacity:.3;transform:scale(.97) translateX(12px)} 100%{opacity:0;transform:scale(.94) translateX(30px);max-height:0;margin:0;border-width:0} }
@keyframes quest-particle { 0%{opacity:1;transform:rotate(var(--angle)) translateX(3px) scale(1)} 100%{opacity:0;transform:rotate(var(--angle)) translateX(62px) scale(.25)} }
@keyframes score-float { 0%{opacity:0;transform:translateY(5px) scale(.85)} 18%{opacity:1;transform:translateY(0) scale(1.08)} 100%{opacity:0;transform:translateY(-42px) scale(1)} }
@keyframes button-ripple { to{opacity:0;transform:translate(-50%,-50%) scale(18)} }
@media (prefers-reduced-motion: reduce) { .task-card,.stage-item,.progress-track i,.button-ripple,.quest-burst i,.score-float { animation:none !important; transition:none !important; } }

.feed-list { display: grid; gap: 14px; }.feed-item { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 10px; align-items: center; }.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }.feed-dot.positive { background: var(--success); box-shadow: 0 0 11px rgba(54,211,154,.4); }.feed-dot.negative { background: var(--danger); }.feed-item strong,.feed-item small { display: block; }.feed-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.feed-item small { margin-top: 2px; color: #59677f; font-size: 8px; }.feed-item b { font-family: Rajdhani, sans-serif; font-size: 12px; }
.reward-banner { min-height: 111px; display: grid; grid-template-columns: 49px 1fr auto; align-items: center; gap: 13px; padding: 19px; overflow: hidden; border: 1px solid rgba(240,109,170,.2); border-radius: var(--radius); background: radial-gradient(circle at 100% 0%, rgba(240,109,170,.18), transparent 42%), linear-gradient(135deg, #21152a, #131a2c); }.reward-banner > span { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 14px; background: rgba(240,109,170,.1); color: var(--pink); font-size: 25px; }.reward-banner small,.reward-banner strong,.reward-banner p { display: block; }.reward-banner small { color: var(--pink); font-family: Rajdhani, sans-serif; font-size: 8px; letter-spacing: .13em; }.reward-banner strong { margin: 2px 0; font-size: 13px; }.reward-banner p { margin: 0; color: #6f7c92; font-size: 9px; }.reward-banner > b { color: var(--pink); }

.filter-bar { margin-bottom: 16px; padding: 9px; overflow-x: auto; box-shadow: none; }.filter-tabs { display: flex; gap: 5px; min-width: max-content; }.filter-tabs a { padding: 9px 13px; border-radius: 9px; color: #75829a; font-size: 11px; font-weight: 600; }.filter-tabs a:hover,.filter-tabs a.active { background: rgba(139,92,246,.14); color: var(--purple-2); }.main-content > .panel { padding: 24px; }.count-chip { display: inline-grid; min-width: 23px; height: 20px; place-items: center; padding: 0 6px; border-radius: 7px; background: rgba(139,92,246,.14); color: var(--purple-2); font-family: Rajdhani, sans-serif; font-size: 11px; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); }.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--purple-2); font-size: 20px; }.empty-state h3 { margin-bottom: 5px; color: #b3bdd0; font-size: 14px; }.empty-state p { margin: 0; font-size: 11px; }

.reward-hero { min-height: 215px; display: flex; align-items: flex-end; justify-content: space-between; padding: 32px 38px; margin-bottom: 18px; border: 1px solid rgba(247,185,85,.21); border-radius: 20px; background: radial-gradient(circle at 80% 15%, rgba(247,185,85,.16), transparent 28%), linear-gradient(120deg,#261d1e,#18172b 55%,#111a2c); }.reward-hero h2 { margin-bottom: 21px; font-size: 27px; line-height: 1.38; }.reward-hero p:not(.eyebrow) { margin: 0 0 2px; color: #7d899f; font-size: 10px; }.reward-hero > div > strong { color: var(--amber); font-family: Rajdhani, sans-serif; font-size: 31px; }
.reward-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }.reward-card { position: relative; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, #151f32, #0f1727); }.reward-card:hover { border-color: rgba(247,185,85,.25); }.reward-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; background: rgba(247,185,85,.09); font-size: 27px; }.stock-chip { position: absolute; top: 20px; right: 20px; color: #66748c; font-size: 9px; }.reward-card h3 { margin-bottom: 7px; font-size: 15px; }.reward-card > p { min-height: 38px; margin-bottom: 18px; color: #76839a; font-size: 10px; line-height: 1.8; }.reward-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); }.reward-footer > strong { color: var(--amber); font-family: Rajdhani,sans-serif; font-size: 20px; }
.simple-table { display: grid; }.table-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; align-items: center; min-height: 48px; padding: 0 9px; border-bottom: 1px solid var(--line); font-size: 11px; }.table-row:last-child { border: 0; }.table-row strong { color: var(--danger); }.table-row time { color: var(--muted); }.table-head { min-height: 32px; color: #5f6c83; font-size: 9px; }.table-empty { padding: 20px 8px; }

.message-list { display: grid; gap: 9px; }.message-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.014); }.message-item.unread { border-color: rgba(139,92,246,.2); background: rgba(139,92,246,.045); }.message-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(247,185,85,.09); color: var(--amber); font-weight: 800; }.message-item > div > div { display: flex; align-items: center; gap: 8px; }.message-item strong { font-size: 12px; }.message-item small { padding: 2px 6px; border-radius: 7px; background: rgba(255,255,255,.045); color: #76839a; font-size: 8px; }.message-item p { margin: 5px 0; color: #7a879d; font-size: 10px; }.message-item time { color: #536078; font-family: Rajdhani,sans-serif; font-size: 9px; }

.settings-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }.settings-grid > .panel { padding: 24px; }.settings-form { display: grid; gap: 10px; }.setting-row { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }.setting-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(139,92,246,.1); color: var(--purple-2); }.setting-row strong,.setting-row small { display: block; }.setting-row strong { font-size: 12px; }.setting-row small { margin-top: 3px; color: #6c7990; font-size: 9px; }.setting-row input { position: absolute; opacity: 0; }.switch { width: 40px; height: 22px; position: relative; border-radius: 99px; background: #2a3549; transition: .2s; }.switch::after { content:""; position:absolute; width:16px; height:16px; top:3px; left:3px; border-radius:50%; background:#8a95a8; transition:.2s; }.setting-row input:checked + .switch { background: var(--purple); }.setting-row input:checked + .switch::after { left:21px; background:#fff; }.settings-form > .btn { justify-self: start; margin-top: 7px; }
.profile-hero { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }.avatar.large { width: 50px; height: 50px; border-radius: 14px; font-size: 17px; }.profile-hero h3,.profile-hero p { margin: 0; }.profile-hero h3 { font-size: 13px; }.profile-hero p { margin-top: 3px; color: var(--muted); font-size: 9px; }.profile-hero > span { margin-left: auto; color: var(--purple-2); font-family: Rajdhani,sans-serif; font-weight:700; }.account-panel dl { margin: 13px 0 0; }.account-panel dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 3px; border-bottom: 1px solid var(--line); }.account-panel dt { color: #69768d; font-size: 10px; }.account-panel dd { margin: 0; font-size: 10px; }.cron-panel { grid-column: 1 / -1; }.cron-panel > p { color: #7d8aa0; font-size: 11px; }.cron-panel code { display: block; padding: 13px 16px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 11px; background: #090f1b; color: var(--cyan); font-family: Consolas,monospace; }
.password-form { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:15px; padding-top:15px; border-top:1px solid var(--line); }.password-form label:first-of-type { grid-column:1 / -1; }.password-form .btn { justify-self:start; }

.form-stack { display: grid; gap: 15px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.form-grid .span-2 { grid-column: 1 / -1; }label { display: grid; gap: 7px; color: #8794aa; font-size: 10px; font-weight: 600; }label > small { font-weight: 400; }.form-grid label small { color: #59677e; }
input,textarea,select { width: 100%; min-height: 42px; padding: 10px 12px; outline: none; border: 1px solid #263249; border-radius: 10px; background: #0c1423; color: #dce4f3; transition: border-color .18s, box-shadow .18s; }textarea { resize: vertical; line-height: 1.6; }input:focus,textarea:focus,select:focus { border-color: rgba(139,92,246,.7); box-shadow: 0 0 0 3px rgba(139,92,246,.1); }input[type="range"] { min-height: auto; padding: 0; accent-color: var(--purple); background: transparent; }.range-value { color: var(--purple-2); font-family: Rajdhani,sans-serif; }.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.modal { position: fixed; inset: 0; display: none; place-items: center; padding: 24px; z-index: 100; }.modal.open { display: grid; }.modal-backdrop { position: absolute; inset: 0; background: rgba(3,7,15,.78); backdrop-filter: blur(8px); }.modal-card { position: relative; width: min(720px,100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 29px; border: 1px solid rgba(139,92,246,.23); border-radius: 19px; background: #111a2b; box-shadow: 0 34px 100px rgba(0,0,0,.52); }.modal-card.small { width: min(460px,100%); }.modal-card > h2 { margin-bottom: 22px; font-size: 20px; }.modal-close { position:absolute; right:18px; top:17px; width:32px; height:32px; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.03); color:var(--muted); font-size:20px; cursor:pointer; }
.alert { padding: 12px 16px; margin-bottom: 16px; border: 1px solid; border-radius: 11px; font-size: 11px; }.alert-success { border-color: rgba(54,211,154,.25); background: rgba(54,211,154,.08); color: #8ce5c4; }.alert-error { border-color: rgba(255,97,119,.25); background: rgba(255,97,119,.08); color: #ff9baa; }

.login-body { overflow: hidden; background: #080d19; }.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(50px,8vw,120px); background: radial-gradient(circle at 35% 40%,rgba(139,92,246,.24),transparent 30%),linear-gradient(145deg,#10152a,#0b1020); }.login-brand::after { content:""; position:absolute; inset:0; opacity:.08; background-image:linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px); background-size:40px 40px; mask-image:linear-gradient(to right,black,transparent); }.login-brand > * { position:relative; z-index:2; }.login-brand .eyebrow { margin-top: 32px; color: var(--purple-2); }.login-brand h1 { max-width: 650px; margin-bottom: 20px; font-size: clamp(38px,5.4vw,72px); line-height:1.13; letter-spacing:.02em; }.login-brand h1 span { color:var(--purple-2); }.login-brand > p:last-of-type { max-width: 520px; color:#8491a9; font-size:15px; line-height:1.9; }.login-orbit { position:absolute; border:1px solid rgba(139,92,246,.18); border-radius:50%; }.orbit-one { width:560px;height:560px;right:-250px;top:-180px;box-shadow:0 0 0 70px rgba(139,92,246,.025),0 0 0 140px rgba(139,92,246,.015); }.orbit-two { width:300px;height:300px;left:-170px;bottom:-130px; }.login-panel { display:grid; place-items:center; padding:40px; background:radial-gradient(circle at 70% 30%,rgba(33,212,217,.06),transparent 28%),#0b111e; }.login-card { width:min(400px,100%); }.login-card h2 { margin-bottom:6px; font-size:28px; }.login-card > .muted { margin-bottom:27px; }.login-hint { margin-top:18px; color:#536179; font-size:10px; text-align:center; }.mobile-logo { display:none; align-items:center; gap:10px; margin-bottom:45px; font-weight:700; }

@media (max-width: 1120px) {
    .stat-grid { grid-template-columns: repeat(2,1fr); }.content-grid { grid-template-columns:1fr; }.side-stack { grid-template-columns:1fr 1fr; }.reward-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 820px) {
    .app-shell { grid-template-columns:1fr; }.sidebar { position:fixed; left:0; transform:translateX(-105%); width:260px; box-shadow:25px 0 80px rgba(0,0,0,.5); transition:transform .24s ease; }.sidebar.open { transform:translateX(0); }.main-content { padding:0 18px 45px; }.topbar { height:88px; }.menu-toggle { display:block; }.topbar > div:nth-child(2) { margin-right:auto; }.score-pill { display:none; }.hero-panel { padding:28px; }.level-core { width:100px;height:100px;margin-right:15px; }.level-core strong { font-size:40px; }.reward-grid { grid-template-columns:1fr 1fr; }.settings-grid { grid-template-columns:1fr; }.cron-panel { grid-column:auto; }.login-shell { grid-template-columns:1fr; }.login-brand { display:none; }.mobile-logo { display:flex; }
}
@media (max-width: 590px) {
    .main-content { padding-left:12px;padding-right:12px; }.topbar h1 { font-size:19px; }.topbar .eyebrow { display:none; }.top-actions .btn { width:42px;padding:0;font-size:0; }.top-actions .btn::first-letter { font-size:18px; }.hero-panel { min-height:230px;padding:24px; }.hero-copy > p:not(.eyebrow) { line-height:1.7; }.level-core { display:none; }.xp-row { grid-template-columns:auto 1fr; }.xp-row strong { grid-column:2; }.stat-grid { grid-template-columns:1fr 1fr;gap:8px; }.stat-card { padding:13px;gap:10px; }.stat-icon { width:36px;height:36px; }.stat-card span { display:none; }.content-grid { gap:10px; }.side-stack { grid-template-columns:1fr; }.mission-panel,.side-stack .panel,.main-content > .panel { padding:15px; }.task-main { grid-template-columns:34px minmax(0,1fr) auto;padding:12px; }.task-type-icon { width:34px;height:34px; }.task-side strong { display:none; }.task-detail { padding-left:14px; }.task-edit-form,.form-grid,.password-form { grid-template-columns:1fr; }.task-edit-form .span-2,.form-grid .span-2,.password-form label:first-of-type { grid-column:auto; }.reward-grid { grid-template-columns:1fr; }.reward-hero { min-height:190px;padding:24px;align-items:flex-start; }.reward-hero h2 { font-size:21px; }.simple-table { overflow-x:auto; }.table-row { min-width:590px; }.settings-grid { gap:10px; }.modal { padding:10px; }.modal-card { max-height:calc(100vh - 20px);padding:22px 17px; }.login-panel { padding:24px; }.task-score-note .btn { margin-left:0;width:100%; }.message-item { grid-template-columns:34px 1fr;padding:13px; }.message-icon { width:34px;height:34px; }
}
