﻿:root {
  --bg:           #0b0e14;
  --surface:      rgba(26,74,26,.28);
  --surface2:     rgba(26,74,26,.45);
  --border:       rgba(62,198,62,.14);
  --border-green: rgba(62,198,62,.25);
  --green-neon:   #3ec63e;
  --green-dim:    rgba(62,198,62,.12);
  --white:        #f0f4ff;
  --grey:         #8a94a8;
  --grey2:        #a7b2c6;
  --accent:       #3ec63e;
}

.tool-hero {
  padding: 90px 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.tool-hero .section-tag { margin-bottom: 12px; }
.tool-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
}
.tool-hero h1 em { font-style: normal; color: var(--green-neon); }
.tool-hero p {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  color: var(--grey);
  max-width: 580px;
  line-height: 1.75;
}
.tool-hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(62,198,62,.13) 0%, transparent 70%);
  pointer-events: none;
}

.tool-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) {
  .tool-wrap  { grid-template-columns: 1fr; padding: 0 20px 80px; }
  .tool-hero  { padding: 70px 20px 40px; }
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  position: relative;
}
.tool-card-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-neon);
  margin-bottom: 16px;
}

/* Form controls */
input[type=number], input[type=text], select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: 'Exo 2', sans-serif;
  font-size: .88rem;
  outline: none;
  width: 100%;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
input[type=number]:focus, input[type=text]:focus, select:focus {
  border-color: var(--green-neon);
  box-shadow: 0 0 0 2px rgba(62,198,62,.12);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a94a8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 30px; cursor: pointer;
}
input[type=checkbox] { accent-color: var(--green-neon); cursor: pointer; width: auto; }
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  outline: none; cursor: pointer; border: none; padding: 0;
  background: rgba(255,255,255,.1);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-neon); cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 6px rgba(62,198,62,.5);
}
input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-neon); cursor: pointer;
  border: 2px solid var(--bg);
}

.field-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); display: block; margin-bottom: 6px;
}
.slider-header {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
}
.slider-header .field-label { margin-bottom: 0; }
.slider-val {
  font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 700; color: var(--green-neon);
}
.slider-hints {
  display: flex; justify-content: space-between;
  font-family: 'Exo 2', sans-serif; font-size: .7rem; color: var(--grey2); margin-top: 5px;
}
.slider-row { margin-bottom: 18px; }

.mat-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.mat-btn {
  border: 1px solid var(--border); background: transparent; color: var(--grey);
  border-radius: 6px; padding: 5px 14px;
  font-family: 'Rajdhani', sans-serif; font-size: .85rem; font-weight: 600;
  letter-spacing: .05em; cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 6px;
}
.mat-btn:hover { border-color: rgba(255,255,255,.2); color: var(--white); }
.mat-btn.active {
  border-color: var(--green-neon); color: var(--green-neon);
  background: rgba(62,198,62,.07); box-shadow: 0 0 10px rgba(62,198,62,.15);
}
.mat-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mat-info { font-family: 'Exo 2', sans-serif; font-size: .78rem; color: var(--grey2); }

.sel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.check-row label { font-family: 'Exo 2', sans-serif; font-size: .84rem; color: var(--grey); cursor: pointer; }
.inline-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.inline-unit { font-family: 'Rajdhani', sans-serif; font-size: .8rem; color: var(--grey2); white-space: nowrap; }

/* ── Big cost display ──────────────────────────────────────────────── */
.cost-display {
  font-family: 'Rajdhani', sans-serif;
  font-size: 4rem; font-weight: 700; line-height: 1;
  color: var(--green-neon); letter-spacing: -.02em;
}
.cost-sub {
  font-family: 'Exo 2', sans-serif; font-size: .84rem; color: var(--grey); margin-top: 6px; margin-bottom: 20px;
}

/* ── Split bar ─────────────────────────────────────────────────────── */
.split-bar-wrap { margin: 16px 0 8px; }
.split-bar {
  height: 8px; border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,.06);
  display: flex;
}
.split-seg { height: 100%; transition: width .4s cubic-bezier(.4,0,.2,1); }
.split-legend {
  display: flex; gap: 16px; margin-top: 8px;
  font-family: 'Exo 2', sans-serif; font-size: .78rem; color: var(--grey2);
}
.split-legend span { display: flex; align-items: center; gap: 5px; }
.split-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Breakdown ─────────────────────────────────────────────────────── */
.bd-row { margin-bottom: 14px; }
.bd-label {
  display: flex; justify-content: space-between;
  font-family: 'Exo 2', sans-serif; font-size: .84rem; color: var(--grey); margin-bottom: 5px;
}
.bd-label.bold {
  font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 700;
  color: var(--white); letter-spacing: .04em;
}
.bd-bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; }
.bd-fill { height: 3px; border-radius: 2px; transition: width .4s cubic-bezier(.4,0,.2,1); }

/* ── Mini stat grid ─────────────────────────────────────────────────── */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.mini-label {
  font-family: 'Rajdhani', sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--grey2);
}
.mini-val {
  font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700;
  color: var(--green-neon); margin: 4px 0 2px; line-height: 1;
}
.mini-sub { font-family: 'Exo 2', sans-serif; font-size: .74rem; color: var(--grey2); }

/* ── Sell price card ─────────────────────────────────────────────────── */
.sell-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-family: 'Exo 2', sans-serif; font-size: .88rem; color: var(--grey);
}
.sell-row:last-child { border-bottom: none; padding-bottom: 0; }
.sell-row strong { font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.sell-price-big {
  font-family: 'Rajdhani', sans-serif; font-size: 2.4rem; font-weight: 700;
  color: #38bdf8; line-height: 1; margin: 10px 0 4px;
}
.sell-profit {
  font-family: 'Exo 2', sans-serif; font-size: .82rem; color: #4ade80; margin-top: 2px;
}

/* ── Tip box ─────────────────────────────────────────────────────────── */
.tip-box {
  background: rgba(62,198,62,.04); border: 1px solid rgba(62,198,62,.15);
  border-left: 3px solid var(--green-neon); border-radius: 8px;
  padding: 14px 16px; font-family: 'Exo 2', sans-serif; font-size: .82rem;
  color: var(--grey); line-height: 1.75;
}
.tip-box strong {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  color: var(--green-neon); letter-spacing: .08em;
}

.col-left, .col-right { display: flex; flex-direction: column; gap: 16px; }

.accuracy-note {
  max-width: 1200px; margin: 0 auto; padding: 28px 48px 60px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.accuracy-note p {
  font-family: 'Exo 2', sans-serif; font-size: .78rem; color: var(--grey2); line-height: 1.75; margin: 0;
}
.accuracy-note strong { color: var(--grey); font-weight: 600; }
@media (max-width: 820px) { .accuracy-note { padding: 28px 20px 40px; } }

/* ── Site-wide consistency: translucent at rest (bg shows through), fill on hover ── */
.tool-card, .mini-card {
  transition: background .2s, border-color .2s;
}
.tool-card:hover, .mini-card:hover {
  background: rgba(30,80,30,.92);
  border-color: rgba(62,198,62,.40);
}
