/* Fuel Calculator Components */
.calculator-container {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.calculator-container::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 191, 71, 0.1), transparent 32%, rgba(52, 211, 153, 0.08));
}

.calculator-container > * {
  position: relative;
}

.fuel-gauge-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Fuel Gauge */
.fuel-gauge-container {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 25rem);
  min-height: 18rem;
  margin: 0 auto;
  isolation: isolate;
}

.gauge-glow {
  position: absolute;
  width: min(92%, 25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 71, 0.18), rgba(92, 200, 255, 0.1) 42%, transparent 68%);
  filter: blur(4px);
  z-index: -1;
}

.fuel-counter {
  width: min(100%, 25rem);
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.38));
}

.fuel-arrow,
.fuel-arrow-green {
  position: absolute;
  width: min(40%, 10rem);
  height: auto;
  left: 22%;
  top: 30%;
  transform-origin: 70% 70%;
  transition: transform 0.45s cubic-bezier(.4, 0, .2, 1), opacity 0.25s ease, filter 0.25s ease;
}

.fuel-arrow {
  filter: drop-shadow(0 2px 12px rgba(255, 90, 102, 0.45));
}

.fuel-arrow-green {
  opacity: 0.2;
  pointer-events: none;
  filter: drop-shadow(0 2px 12px rgba(52, 211, 153, 0.55));
}

/* Controls Section */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-group,
.field-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.control-group label,
.field-card label {
  color: #e8f0f7;
  font-size: 0.92rem;
  font-weight: 800;
}

/* Custom Range Slider */
.fuel-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0%, var(--amber-strong) 34%, var(--amber) 55%, var(--green) 100%);
  cursor: pointer;
  outline: none;
}

.fuel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border: 4px solid #101820;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 0 5px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}

.fuel-slider::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.fuel-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 4px solid #101820;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Level indicators */
.level-indicators {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.fuel-level-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.fuel-level-display span:last-child {
  color: var(--amber);
  font-family: 'Sora', sans-serif;
  font-size: 1.55rem;
}

/* Input Section */
.input-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Result Section */
.result-section {
  text-align: center;
  padding: 1.2rem;
  border: 1px solid rgba(92, 200, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(92, 200, 255, 0.15), rgba(92, 200, 255, 0.04));
  margin-top: 1rem;
}

.money-result {
  border-color: rgba(52, 211, 153, 0.3);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.04));
}

.result-display {
  margin: 0.35rem 0 0;
  color: var(--blue);
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.money-result .result-display {
  color: var(--green);
}

.result-label {
  color: #d7e4ee;
  font-weight: 800;
}

/* Action buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 0.85rem;
  align-items: stretch;
  margin-top: 1.2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-strong));
  box-shadow: 0 16px 32px rgba(255, 159, 28, 0.22);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-cost {
  background: linear-gradient(135deg, var(--green), #0fb981);
  box-shadow: 0 16px 32px rgba(52, 211, 153, 0.18);
}

/* Instructions */
.instructions {
  max-width: 860px;
  margin: 0 auto 1.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 191, 71, 0.24);
  border-radius: 18px;
  background: rgba(255, 191, 71, 0.09);
  color: #ffe6b3;
  font-size: 0.94rem;
  text-align: center;
}

.instructions p {
  margin: 0;
}

/* Search-friendly content */
.seo-content {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
}

.seo-content-intro {
  max-width: 760px;
}

.seo-content h2 {
  margin-bottom: 0.6rem;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.12;
}

.seo-content p {
  color: #c9d6e2;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.seo-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 11, 16, 0.44);
}

.seo-card h3 {
  margin-bottom: 0.45rem;
  color: var(--amber);
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
}

.seo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Responsive design */
@media (max-width: 860px) {
  .fuel-gauge-section {
    grid-template-columns: 1fr;
  }

  .fuel-gauge-container {
    min-height: 15rem;
  }

  .input-section,
  .action-buttons,
  .seo-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .calculator-container {
    border-radius: 24px;
  }

  .control-group,
  .field-card {
    padding: 0.9rem;
  }

  .fuel-level-display {
    flex-direction: column;
    gap: 0.1rem;
    align-items: flex-start;
  }
}
