/* ===========================================================
   KIA Academy — product-knowledge learning cockpit
   =========================================================== */

:root{
  --red: #C8102E;
  --red-dim: #7d0a1d;
  --red-glow: rgba(200,16,46,0.45);
  --cyan: #00C2CC;
  --bg-0: #0A0A0C;
  --bg-1: #101013;
  --bg-2: #17171B;
  --bg-3: #1F1F24;
  --line: #2A2A30;
  --text-0: #F5F5F7;
  --text-1: #B4B4BC;
  --text-2: #7A7A82;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html,body{
  height:100%;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body{
  background-image:
    radial-gradient(circle at 15% 0%, rgba(200,16,46,0.08), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(0,194,204,0.06), transparent 45%);
}

::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{ background: var(--bg-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover{ background: var(--line); }

button{ font-family: inherit; cursor:pointer; border:none; background:none; color:inherit; }
input{ font-family: inherit; }
svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

.accent-dot{ color: var(--red); }

/* ============ LAYOUT ============ */
.app{
  display:flex;
  height:100vh;
  width:100vw;
}

/* ============ SIDEBAR ============ */
.sidebar{
  width: 240px;
  flex-shrink:0;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-right: 1px solid var(--line);
  display:flex;
  flex-direction:column;
  padding: 24px 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 4px 8px 28px;
}
.brand-mark{ width:34px; height:22px; }
.brand-name{
  font-size:19px;
  font-weight:800;
  letter-spacing:0.5px;
}
.brand-name em{
  color: var(--red);
  font-style:normal;
}

.nav-list{ list-style:none; display:flex; flex-direction:column; gap:4px; flex:1; }

.nav-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:10px;
  color: var(--text-1);
  font-weight:600;
  font-size:14px;
  letter-spacing:0.3px;
  cursor:pointer;
  position:relative;
  transition: background .15s, color .15s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.nav-item svg{ width:19px; height:19px; flex-shrink:0; }
.nav-item:hover{ background: var(--bg-2); color: var(--text-0); }
.nav-item.active{
  background: linear-gradient(90deg, rgba(200,16,46,0.18), rgba(200,16,46,0.02));
  color: var(--text-0);
  border-left: 3px solid var(--red);
  padding-left:11px;
}
.nav-dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--red);
  margin-left:auto;
  box-shadow: 0 0 8px var(--red-glow);
}

.sidebar-foot{ padding-top:16px; border-top:1px solid var(--line); }
.mode-label{ font-size:10px; letter-spacing:1.5px; color: var(--text-2); font-weight:700; }
.mode-toggle{
  display:flex;
  margin-top:8px;
  background: var(--bg-2);
  border-radius:10px;
  padding:3px;
  gap:3px;
}
.mode-btn{
  flex:1;
  padding:8px 4px;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:0.5px;
  color: var(--text-2);
  border-radius:7px;
  transition: all .2s;
}
.mode-btn.active{
  background: var(--red);
  color:#fff;
  box-shadow: 0 2px 12px var(--red-glow);
}

/* ============ MAIN ============ */
.main{
  flex:1;
  overflow-y:auto;
  padding: 32px 40px 60px;
  position:relative;
}

.view{ display:none; animation: fadeUp .35s ease; }
.view.active{ display:block; }

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

.view-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:28px;
  flex-wrap:wrap;
  gap:16px;
}
.eyebrow{
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  color: var(--red);
  font-weight:700;
  margin-bottom:6px;
}
.view-header h1{
  font-size:32px;
  font-weight:800;
  letter-spacing:-0.5px;
}

.streak-chip{
  display:flex;
  align-items:center;
  gap:8px;
  background: var(--bg-2);
  border:1px solid var(--line);
  padding:10px 16px;
  border-radius:100px;
  font-weight:700;
  font-size:14px;
}
.flame{ width:16px; height:16px; fill: var(--red); stroke:none; }

/* ============ GAUGES ============ */
.gauge-row{
  display:flex;
  gap:20px;
  margin-bottom:24px;
  flex-wrap:wrap;
}
.gauge-card{
  background: var(--bg-1);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:20px;
  flex:1;
  min-width:180px;
  text-align:center;
  transition: transform .2s, border-color .2s;
}
.gauge-card:hover{ transform: translateY(-3px); border-color:#38383f; }

.gauge-ring{ position:relative; width:120px; height:120px; margin:0 auto; }
.gauge-ring svg{ width:120px; height:120px; transform: rotate(-90deg); stroke-width:0; }
.ring-track{ fill:none; stroke: var(--bg-3); stroke-width:9; }
.ring-fill{
  fill:none;
  stroke: var(--red);
  stroke-width:9;
  stroke-linecap:round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  filter: drop-shadow(0 0 6px var(--red-glow));
  transition: stroke-dashoffset 1.2s cubic-bezier(.16,1,.3,1);
}
.gauge-ring.accent-cyan .ring-fill{ stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(0,194,204,0.45)); }
.gauge-ring.accent-white .ring-fill{ stroke: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,0.35)); }

.gauge-center{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.gauge-center strong{ font-size:22px; font-weight:800; }
.gauge-center small{ font-size:11px; color: var(--text-2); margin-top:2px; }
.gauge-label{ margin-top:14px; font-size:13px; color: var(--text-1); font-weight:600; }

/* ============ PANELS / GRID ============ */
.dash-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap:20px;
  margin-bottom:20px;
}
@media (max-width: 980px){ .dash-grid{ grid-template-columns: 1fr; } }

.panel{
  background: var(--bg-1);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:22px;
}
.panel-head{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:16px;
}
.panel-head h3{ font-size:15px; font-weight:700; }

.tag{
  font-size:10px; font-weight:800; letter-spacing:1px;
  padding:5px 10px; border-radius:6px;
  background: var(--bg-3); color: var(--text-1);
}
.tag-red{ background: rgba(200,16,46,0.18); color:#ff5c72; }

.today-panel{
  background: linear-gradient(135deg, #16070a, var(--bg-1) 60%);
  border-color:#3a141c;
  position:relative;
  overflow:hidden;
}
.today-panel::after{
  content:"";
  position:absolute; right:-40px; top:-40px;
  width:180px; height:180px;
  background: radial-gradient(circle, rgba(200,16,46,0.25), transparent 70%);
}
.today-body{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; position:relative; z-index:1; }
.today-info h2{ font-size:22px; font-weight:800; margin-bottom:6px; }
.today-info p{ color: var(--text-1); font-size:13.5px; margin-bottom:10px; }
.pill-row{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  background: rgba(255,255,255,0.06);
  border:1px solid var(--line);
  font-size:12px; font-weight:600;
  padding:5px 10px; border-radius:100px;
}

.btn-start{
  display:flex; align-items:center; gap:8px;
  background: var(--red);
  color:#fff;
  font-weight:800; font-size:14px;
  padding:14px 22px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  box-shadow: 0 6px 24px var(--red-glow);
  transition: transform .15s, box-shadow .15s;
  white-space:nowrap;
}
.btn-start svg{ width:16px; height:16px; fill:#fff; stroke:none; }
.btn-start:hover{ transform: translateY(-2px); box-shadow: 0 10px 28px var(--red-glow); }
.btn-start:active{ transform: translateY(0); }

.chart-panel canvas{ width:100%; display:block; }
.wide{ margin-bottom:20px; }

.coach-teaser{
  display:flex; align-items:center; gap:16px;
  cursor:pointer;
  border-color: #223a3c;
  background: linear-gradient(135deg, rgba(0,194,204,0.06), var(--bg-1));
  transition: border-color .2s;
}
.coach-teaser:hover{ border-color: var(--cyan); }
.teaser-icon{
  width:44px; height:44px; border-radius:10px;
  background: rgba(0,194,204,0.12);
  display:flex; align-items:center; justify-content:center;
  color: var(--cyan);
  flex-shrink:0;
}
.teaser-text{ flex:1; }
.teaser-text strong{ display:block; margin-bottom:3px; font-size:14px; }
.teaser-text p{ color: var(--text-1); font-size:13px; }
.teaser-arrow{ color: var(--text-2); width:18px; height:18px; }

/* ============ TRAINING / FILTERS ============ */
.filter-row{ display:flex; gap:10px; margin-bottom:22px; flex-wrap:wrap; }
.filter-chip{
  padding:9px 18px;
  background: var(--bg-1);
  border:1px solid var(--line);
  border-radius:100px;
  font-size:13px; font-weight:700;
  color: var(--text-1);
  transition: all .15s;
}
.filter-chip:hover{ border-color:#444; color: var(--text-0); }
.filter-chip.active{ background: var(--red); border-color: var(--red); color:#fff; }

.workout-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:18px;
}

.workout-card{
  background: var(--bg-1);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:20px;
  cursor:pointer;
  transition: transform .18s, border-color .18s;
  position:relative;
  overflow:hidden;
}
.workout-card:hover{ transform: translateY(-4px); border-color:#3a3a42; }
.workout-card::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--card-accent, var(--red));
}
.wc-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; }
.wc-icon{
  width:42px; height:42px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background: color-mix(in srgb, var(--card-accent, var(--red)) 18%, transparent);
  color: var(--card-accent, var(--red));
}
.wc-diff{ font-size:10px; font-weight:800; letter-spacing:0.5px; color: var(--text-2); padding:4px 8px; border:1px solid var(--line); border-radius:6px; }
.workout-card h4{ font-size:17px; font-weight:800; margin-bottom:6px; }
.workout-card p{ font-size:13px; color: var(--text-1); margin-bottom:14px; }
.wc-meta{ display:flex; gap:14px; font-size:12px; color: var(--text-2); font-weight:600; }
.wc-meta span{ display:flex; align-items:center; gap:5px; }

/* ============ SESSION PLAYER ============ */
.session-wrap{ max-width:640px; margin:0 auto; padding-top:8px; }
.session-head{ display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.icon-btn{
  width:38px; height:38px; border-radius:10px;
  background: var(--bg-2); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color: var(--text-1);
  flex-shrink:0;
  transition: color .15s, border-color .15s;
}
.icon-btn:hover{ color:#fff; border-color:#444; }
.icon-btn svg{ width:16px; height:16px; }
.session-title{ flex:1; display:flex; flex-direction:column; }
.session-title strong{ font-size:16px; font-weight:800; }
.session-title span{ font-size:12px; color: var(--text-2); font-weight:600; }
.session-timer-badge{
  background: var(--bg-2); border:1px solid var(--line);
  padding:8px 14px; border-radius:8px;
  font-weight:800; font-variant-numeric: tabular-nums; font-size:13px;
}

.session-progressbar{ height:5px; background: var(--bg-2); border-radius:4px; overflow:hidden; margin-bottom:36px; }
.session-progressbar-fill{ height:100%; width:0%; background: linear-gradient(90deg, var(--red), #ff5c72); transition: width .4s ease; }

.session-core{ text-align:center; margin-bottom:30px; }
.dial-wrap{ position:relative; width:240px; height:240px; margin:0 auto 20px; }
.dial{ width:240px; height:240px; transform: rotate(-90deg); }
.dial-track{ fill:none; stroke: var(--bg-2); stroke-width:10; }
.dial-fill{
  fill:none; stroke: var(--red); stroke-width:10; stroke-linecap:round;
  stroke-dasharray: 553; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 10px var(--red-glow));
  transition: stroke-dashoffset 1s linear;
}
.dial-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.dial-time{ font-size:44px; font-weight:800; font-variant-numeric: tabular-nums; letter-spacing:-1px; }
.dial-sub{ font-size:11px; letter-spacing:2px; color: var(--text-2); font-weight:700; margin-top:4px; }

.question-tag{ font-size:12px; font-weight:700; letter-spacing:0.5px; color: var(--text-2); margin-bottom:8px; }
.exercise-name{ font-size:24px; font-weight:800; margin-bottom:22px; line-height:1.3; }

.answer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  text-align:left;
  margin-bottom:18px;
}
@media (max-width:560px){ .answer-grid{ grid-template-columns: 1fr; } }

.answer-btn{
  display:flex; align-items:center; gap:12px;
  padding:14px 16px;
  background: var(--bg-1);
  border:1.5px solid var(--line);
  border-radius:12px;
  font-size:14px; font-weight:600;
  color: var(--text-0);
  transition: border-color .15s, background .15s, transform .1s;
}
.answer-btn:hover:not(:disabled){ border-color:#4a4a52; transform: translateY(-1px); }
.answer-btn:disabled{ cursor:default; }
.ans-letter{
  width:26px; height:26px; border-radius:8px; flex-shrink:0;
  background: var(--bg-3); color: var(--text-2);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800;
  transition: background .15s, color .15s;
}
.ans-text{ flex:1; }

.answer-btn.correct{ border-color:#3ddc84; background: rgba(61,220,132,0.1); }
.answer-btn.correct .ans-letter{ background:#3ddc84; color:#0A0A0C; }
.answer-btn.wrong{ border-color: var(--red); background: rgba(200,16,46,0.1); }
.answer-btn.wrong .ans-letter{ background: var(--red); color:#fff; }
.answer-btn.reveal-correct:not(.wrong){ border-color:#3ddc84; }
.answer-btn.reveal-correct:not(.wrong) .ans-letter{ background:#3ddc84; color:#0A0A0C; }

.explanation-box{
  text-align:left;
  background: var(--bg-2);
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:18px;
}
.explanation-box strong{ display:block; margin-bottom:4px; font-size:14px; }
.explanation-box p{ color: var(--text-1); font-size:13.5px; line-height:1.5; }

.btn-next-question{ margin:0 auto; }

.upnext{ display:flex; flex-direction:column; gap:8px; }
.upnext-item{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px;
  background: var(--bg-1);
  border:1px solid var(--line);
  border-radius:10px;
  font-size:13.5px;
  color: var(--text-1);
  transition: border-color .2s, color .2s, background .2s;
}
.upnext-item .un-idx{
  width:24px; height:24px; border-radius:50%;
  background: var(--bg-3);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; flex-shrink:0;
}
.upnext-item.current{ border-color: var(--red); color: var(--text-0); background: rgba(200,16,46,0.06); }
.upnext-item.current .un-idx{ background: var(--red); color:#fff; }
.upnext-item.done{ opacity:0.6; }
.upnext-item.correct .un-idx{ background:#3ddc84; color:#0A0A0C; }
.upnext-item.wrong .un-idx{ background: var(--red); color:#fff; }
.upnext-item .un-name{ flex:1; font-weight:600; }
.upnext-item .un-meta{ font-size:12px; color: var(--text-2); }

/* ============ COMPLETE ============ */
.complete-wrap{
  max-width:420px; margin: 8vh auto 0; text-align:center;
}
.complete-badge{
  width:88px; height:88px; border-radius:50%;
  background: rgba(200,16,46,0.15);
  border:2px solid var(--red);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 24px;
  color: var(--red);
  animation: pop .4s cubic-bezier(.34,1.56,.64,1);
}
.complete-badge svg{ width:38px; height:38px; stroke-width:2.4; }
@keyframes pop{ from{ transform: scale(0); } to{ transform: scale(1); } }
.complete-wrap h1{ font-size:30px; font-weight:800; margin-bottom:8px; }
.complete-wrap > p{ color: var(--text-1); margin-bottom:28px; }
.complete-stats{
  display:flex; justify-content:center; gap:32px; margin-bottom:32px;
}
.complete-stats div{ display:flex; flex-direction:column; }
.complete-stats strong{ font-size:24px; font-weight:800; }
.complete-stats span{ font-size:12px; color: var(--text-2); margin-top:4px; }
.complete-wrap .btn-start{ margin:0 auto; }

/* ============ CHAT ============ */
#view-chat{ display:none; flex-direction:column; height: calc(100vh - 64px); max-width:760px; }
#view-chat.active{ display:flex; }
.chat-header{ margin-bottom:18px; flex-shrink:0; }
.coach-id{ display:flex; align-items:center; gap:12px; }
.coach-avatar{
  width:44px; height:44px; border-radius:12px;
  background: linear-gradient(135deg, var(--red), #7d0a1d);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 16px var(--red-glow);
}
.coach-avatar svg{ width:22px; height:22px; fill:#fff; stroke:none; }
.coach-id strong{ display:block; font-size:16px; font-weight:800; }
.status-online{ font-size:12px; color:#3ddc84; font-weight:600; }

.chat-window{
  flex:1; overflow-y:auto;
  display:flex; flex-direction:column; gap:14px;
  padding: 8px 4px 20px;
}

.msg{ max-width:78%; display:flex; flex-direction:column; gap:4px; animation: fadeUp .25s ease; }
.msg-bubble{ padding:12px 16px; border-radius:16px; font-size:14px; line-height:1.5; }
.msg.bot{ align-self:flex-start; }
.msg.bot .msg-bubble{ background: var(--bg-2); border:1px solid var(--line); border-bottom-left-radius:4px; }
.msg.user{ align-self:flex-end; }
.msg.user .msg-bubble{ background: var(--red); color:#fff; border-bottom-right-radius:4px; }
.msg-time{ font-size:10.5px; color: var(--text-2); padding:0 6px; }
.msg.user .msg-time{ text-align:right; }

.typing-bubble{ display:flex; gap:4px; padding:14px 16px; }
.typing-bubble span{ width:6px; height:6px; border-radius:50%; background: var(--text-2); animation: blink 1.2s infinite; }
.typing-bubble span:nth-child(2){ animation-delay:.2s; }
.typing-bubble span:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,60%,100%{ opacity:.3; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }

.chip-suggest{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; flex-shrink:0; }
.chip{
  padding:9px 15px; font-size:12.5px; font-weight:600;
  background: var(--bg-1); border:1px solid var(--line); border-radius:100px;
  color: var(--text-1);
  transition: all .15s;
}
.chip:hover{ border-color: var(--red); color: var(--text-0); }

.chat-input-row{
  display:flex; gap:10px; flex-shrink:0;
}
.chat-input-row input{
  flex:1;
  background: var(--bg-1);
  border:1px solid var(--line);
  border-radius:100px;
  padding:14px 20px;
  color: var(--text-0);
  font-size:14px;
  outline:none;
  transition: border-color .15s;
}
.chat-input-row input:focus{ border-color: var(--red); }
.chat-send{
  width:48px; height:48px; border-radius:50%; flex-shrink:0;
  background: var(--red);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 16px var(--red-glow);
  transition: transform .15s;
}
.chat-send svg{ width:18px; height:18px; fill:#fff; stroke:none; margin-left:2px; }
.chat-send:hover{ transform: scale(1.06); }

/* ============ PROGRESS ============ */
.stat-strip{
  display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-bottom:20px;
}
@media (max-width:800px){ .stat-strip{ grid-template-columns: repeat(2,1fr); } }
.stat-block{
  background: var(--bg-1); border:1px solid var(--line); border-radius: var(--radius);
  padding:18px; text-align:center;
}
.stat-block strong{ display:block; font-size:24px; font-weight:800; }
.stat-block span{ font-size:12px; color: var(--text-2); font-weight:600; }
.stat-block.accent strong{ color:#3ddc84; }

.pb-list{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.pb-list li{ display:flex; justify-content:space-between; padding-bottom:12px; border-bottom:1px solid var(--line); font-size:14px; }
.pb-list li:last-child{ border-bottom:none; padding-bottom:0; }
.pb-list span{ color: var(--text-1); font-weight:600; }
.pb-list strong{ font-weight:800; }

/* ============ PROFILE ============ */
.profile-card{
  display:flex; align-items:center; gap:18px;
  background: var(--bg-1); border:1px solid var(--line); border-radius: var(--radius);
  padding:22px; margin-bottom:20px;
}
.profile-avatar{
  width:60px; height:60px; border-radius:14px;
  background: linear-gradient(135deg, var(--red), #7d0a1d);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:20px;
  flex-shrink:0;
}
.profile-card h2{ font-size:19px; font-weight:800; margin-bottom:4px; }
.profile-card p{ color: var(--text-1); font-size:13px; }

.switch-row{ display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); font-size:14px; }
.switch-row:last-child{ border-bottom:none; }
.switch{ position:relative; width:44px; height:24px; flex-shrink:0; }
.switch input{ opacity:0; width:0; height:0; }
.slider{ position:absolute; inset:0; background: var(--bg-3); border-radius:100px; cursor:pointer; transition: background .2s; }
.slider::before{ content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition: transform .2s; }
.switch input:checked + .slider{ background: var(--red); }
.switch input:checked + .slider::before{ transform: translateX(20px); }

.goal-desc{ color: var(--text-1); font-size:13px; margin-bottom:14px; }
.goal-slider-row{ display:flex; align-items:center; gap:14px; }
.goal-slider-row input[type=range]{
  flex:1; -webkit-appearance:none; height:5px; background: var(--bg-3); border-radius:4px; outline:none;
}
.goal-slider-row input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; width:18px; height:18px; border-radius:50%;
  background: var(--red); cursor:pointer; box-shadow: 0 0 10px var(--red-glow);
}
.goal-value{ font-weight:800; font-size:16px; width:20px; text-align:center; }

/* ============ BOTTOM NAV (mobile) ============ */
.bottom-nav{ display:none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px){
  .sidebar{ display:none; }
  .main{ padding: 20px 16px 90px; }
  .bottom-nav{
    display:flex; justify-content:space-around; align-items:center;
    position:fixed; bottom:0; left:0; right:0; height:64px;
    background: rgba(16,16,19,0.92);
    backdrop-filter: blur(12px);
    border-top:1px solid var(--line);
    z-index:50;
  }
  .bn-item{ padding:10px; color: var(--text-2); border-radius:10px; }
  .bn-item.active{ color: var(--red); }
  .bn-item svg{ width:22px; height:22px; }
  #view-chat{ height: calc(100vh - 150px); }
  .gauge-row{ gap:12px; }
  .gauge-card{ min-width:140px; padding:14px; }
  .gauge-ring{ width:96px; height:96px; }
  .gauge-ring svg{ width:96px; height:96px; }
}
