/* ============ OSRS Skill Calculator — neon dark theme ============ */

.calc-main {
  padding: 48px 0 80px;
}

.calc-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.calc-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00ff66;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.calc-head h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--text, #f5f7fa);
}

.calc-head p {
  color: rgba(245, 247, 250, 0.62);
  font-size: 15px;
}

.neon-green {
  color: #00ff66;
  text-shadow: 0 0 18px rgba(0, 255, 102, 0.55);
}

.neon-pink {
  color: #ff007a;
  text-shadow: 0 0 18px rgba(255, 0, 122, 0.55);
}

/* ---------- layout shell ---------- */
.calc-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .calc-shell { grid-template-columns: 1fr; }
}

/* ---------- left skill panel ---------- */
.skill-panel {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  top: 88px;
}

.skill-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.skill-panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.skill-panel-head span {
  font-size: 12px;
  color: rgba(245, 247, 250, 0.5);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.skill-grid::-webkit-scrollbar { width: 6px; }
.skill-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }

.skill-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.18s ease;
}

.skill-cell:hover {
  background: rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.4);
  transform: translateY(-2px);
}

.skill-cell.active {
  background: rgba(0, 255, 102, 0.12);
  border-color: #00ff66;
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.35);
}

.skill-cell.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.skill-cell img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  font-size: 0;
  flex-shrink: 0;
}

.skill-cell b {
  font-size: 10px;
  font-weight: 700;
  color: rgba(245, 247, 250, 0.85);
  line-height: 1.1;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}

/* ---------- right calc panel ---------- */
.calc-panel {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.mode-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 22px;
}

.mode-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(245, 247, 250, 0.6);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-tab.active {
  background: linear-gradient(135deg, #00ff66, #02e05b);
  color: #0a0e14;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.45);
}

/* ---------- start / end boxes ---------- */
.calc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 620px) {
  .calc-columns { grid-template-columns: 1fr; }
}

.calc-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
}

.end-box { border-color: rgba(255, 0, 122, 0.25); }

.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.box-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.7);
}

.end-box .box-title { color: #ff007a; }

.lvxp-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 3px;
}

.lvxp-toggle button {
  border: none;
  background: transparent;
  color: rgba(245, 247, 250, 0.5);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.lvxp-toggle button.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---------- circular gauges ---------- */
.ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
}

.ring-fg {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 490.1;
  stroke-dashoffset: 490.1;
  transition: stroke-dashoffset 0.35s ease, stroke 0.2s ease;
}

.ring-green { stroke: #00ff66; filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.6)); }
.ring-pink { stroke: #ff007a; filter: drop-shadow(0 0 8px rgba(255, 0, 122, 0.6)); }

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-center b {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.ring-center span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(245, 247, 250, 0.5);
  margin-top: 4px;
}

/* ---------- sliders ---------- */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00ff66 var(--fill, 50%), rgba(255, 255, 255, 0.1) var(--fill, 50%));
  outline: none;
  margin: 14px 0 10px;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ff66;
  border: 3px solid #0a0e14;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.7);
}

.end-box .calc-slider {
  background: linear-gradient(90deg, #ff007a var(--fill, 50%), rgba(255, 255, 255, 0.1) var(--fill, 50%));
}

.end-box .calc-slider::-webkit-slider-thumb { background: #ff007a; box-shadow: 0 0 12px rgba(255, 0, 122, 0.7); }

.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ff66;
  border: 3px solid #0a0e14;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.7);
}

.end-box .calc-slider::-moz-range-thumb { background: #ff007a; box-shadow: 0 0 12px rgba(255, 0, 122, 0.7); }

.box-input {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.box-input input {
  width: 90px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  padding: 8px;
}

.end-box .box-input input { border-color: rgba(255, 0, 122, 0.4); }

.box-input input:focus { outline: none; border-color: #00ff66; }
.end-box .box-input input:focus { border-color: #ff007a; }

.box-input .unit {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(245, 247, 250, 0.5);
}

/* ---------- summary bar ---------- */
.summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.sum-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sum-item b { font-size: 15px; color: #fff; letter-spacing: 0; }
.sum-item.neon-green b { color: #00ff66; }
.sum-price b { color: #00ff66; font-size: 18px; }

/* ---------- actions ---------- */
.calc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 560px) { .calc-actions { grid-template-columns: 1fr; } }

.btn-calc {
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-calc:hover { transform: translateY(-2px); }

.neon-green-btn {
  background: linear-gradient(135deg, #00ff66, #02e05b);
  color: #0a0e14;
  box-shadow: 0 6px 22px rgba(0, 255, 102, 0.4);
}

.neon-pink-btn {
  background: linear-gradient(135deg, #ff007a, #ff0055);
  color: #fff;
  box-shadow: 0 6px 22px rgba(255, 0, 122, 0.4);
}

/* ---------- results ---------- */
#calc-results {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 760px) { #calc-results { grid-template-columns: 1fr; } }

.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.result-card h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00ff66;
}

.result-card p { margin: 0; font-size: 13px; color: rgba(245, 247, 250, 0.65); line-height: 1.5; }

.result-card.stat-card {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat b { font-size: 17px; color: #fff; }
.stat span { font-size: 11px; color: rgba(245, 247, 250, 0.5); text-transform: uppercase; letter-spacing: 1px; }

.order-confirm {
  grid-column: 1 / -1;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #b9ffd3;
}

.hidden { display: none !important; }
