/* ============================================================
   DISCOUNT CALCULATOR — Extra CSS
   ============================================================ */

/* ===== RESULT PANEL ===== */
.disc-result-panel {
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.disc-result-main {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--coral);
  line-height: 1.3;
}

.disc-result-detail {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ===== MODE PANELS ===== */
.disc-mode-panel {
  display: none;
}

.disc-mode-panel.active {
  display: block;
}

.disc-mode-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.disc-mode-title i {
  color: var(--coral);
}

/* ===== INPUT GROUPS ===== */
.disc-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.disc-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding-right: 4px;
}

.disc-percent-sign {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ===== SLIDER ===== */
.disc-slider {
  flex: 1;
  accent-color: var(--coral);
  height: 6px;
  cursor: pointer;
}

/* ===== CHECKBOX ===== */
.disc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.disc-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--coral);
  cursor: pointer;
}

/* ===== PRESET BUTTONS ===== */
.disc-preset-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.disc-preset-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink-faint);
  margin-right: 4px;
}

.disc-preset-btn {
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

.disc-preset-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(232, 93, 74, .06);
}

.disc-preset-btn:active {
  transform: scale(.95);
}

/* ===== COMPARE BOXES ===== */
.disc-compare-box {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  height: 100%;
  transition: border-color .2s;
}

.disc-compare-box:hover {
  border-color: var(--coral);
}

.disc-compare-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}

/* ===== EXAMPLE CARDS ===== */
.disc-example-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}

.disc-example-card:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.disc-example-card:active {
  transform: scale(.97);
}

.disc-example-pct {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--coral);
}

.disc-example-price {
  display: block;
  font-size: .82rem;
  color: var(--ink-soft);
  margin: 4px 0;
}

.disc-example-save {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(31, 169, 127, .1);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ===== BLOCK LABEL ===== */
.block-label {
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}

.block-label i {
  color: var(--coral);
}

/* ===== FIELD HINT ===== */
.field-hint {
  font-size: .75rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ===== HISTORY ===== */
.history-list {
  max-height: 340px;
  overflow-y: auto;
}

.history-list .history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  gap: 12px;
}

.history-list .history-item:hover {
  background: var(--surface-2);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}

.history-expr {
  font-size: .8rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.history-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  color: var(--coral);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .disc-result-panel {
    padding: 14px 16px;
    min-height: 80px;
  }

  .disc-result-main {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
  }

  .disc-preset-btn {
    padding: 3px 10px;
    font-size: .65rem;
  }

  .disc-compare-box {
    padding: 12px;
  }

  .disc-example-card {
    padding: 10px 12px;
  }

  .disc-example-pct {
    font-size: .95rem;
  }
}

@media (max-width: 575px) {
  .disc-result-panel {
    padding: 12px 14px;
    min-height: 70px;
  }

  .disc-result-main {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  }

  .disc-result-detail {
    font-size: .78rem;
  }

  .disc-mode-title {
    font-size: .85rem;
  }

  .disc-preset-group {
    gap: 4px;
  }

  .disc-preset-btn {
    padding: 2px 8px;
    font-size: .6rem;
  }

  .disc-compare-title {
    font-size: .82rem;
  }

  .disc-example-card {
    padding: 8px 10px;
  }

  .disc-example-pct {
    font-size: .82rem;
  }

  .disc-example-price {
    font-size: .72rem;
  }

  .disc-example-save {
    font-size: .65rem;
  }
}