.discount-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.discount-wrapper {
  max-width: 950px;
  margin: 0 auto;
}

.discount-title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.discount-icon {
  font-size: 1.3em;
}

.discount-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.discount-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Tabs */
.discount-tabs {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.discount-tab {
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.discount-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.discount-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Sections */
.discount-section {
  display: none;
}

.discount-section.active {
  display: block;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-field label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.discount-input {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.discount-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Result */
.result-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.8rem 0;
  font-size: 1.1rem;
}

.result-row.highlight {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.result-row strong {
  font-size: 1.5rem;
}

/* Actions */
.discount-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:not(.download-btn) {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.action-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.download-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
}

/* Download Card */
.download-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.dark-mode .download-card {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.download-result-box {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  margin: 1.5rem 0;
}

.download-result-value {
  font-size: 2.8rem;
  font-weight: 800;
}

.download-details {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}
/* Quick Presets Section */
.discount-presets {
    margin: 32px 0 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.discount-presets h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.preset-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.preset-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.preset-btn:active {
    transform: translateY(0px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .discount-presets {
        margin: 24px 0 18px;
        padding: 16px 0;
    }
    
    .preset-buttons {
        gap: 10px;
    }
    
    .preset-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}