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

.discount-wrapper {
  max-width: 900px;
  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;
}

/* Presets */
.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 2rem 0;
}

.preset-btn {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
}

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

/* Responsive */
@media (max-width: 768px) {
  .input-group { grid-template-columns: 1fr; }
  .discount-tabs { gap: 0.5rem; }
  .discount-tab { padding: 0.7rem 1.3rem; font-size: 0.95rem; }
  .discount-actions { flex-direction: column; }
  .action-btn { width: 100%; }
}