
/* ---- HERO QUANTITY STEPPER ---- */
.hero-buy-control {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.hero-buy-control .hero-btn-primary {
  border-radius: 14px 0 0 14px;
  flex: 1;
}

.hero-buy-control-week {
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.hero-buy-control-week .hero-btn-popular {
  border-radius: 14px 0 0 14px;
  flex: 1;
}

.hero-qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 14px 14px 0;
  padding: 0;
}

.hero-qty-stepper-week {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
}

.qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  width: 38px;
  height: 100%;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: rgba(124, 58, 237, 0.3);
}

.qty-btn:active {
  background: rgba(124, 58, 237, 0.5);
}

.qty-input {
  width: 36px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--accent2);
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  cursor: default;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---- MODAL QUANTITY + SUMMARY ---- */
.modal-qty-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.modal-qty-label {
  font-size: 0.88rem;
  color: var(--text2);
  font-weight: 600;
}

.modal-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
}

.modal-qty-control .qty-btn {
  width: 36px;
  height: 34px;
  font-size: 1.1rem;
}

.modal-qty-control .qty-input {
  width: 32px;
  font-size: 1rem;
}

.modal-summary-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.modal-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text2);
  padding: 4px 0;
}

.modal-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 1rem;
}

.modal-total-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #22c55e;
}

.modal-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

/* ---- KEYS LIST (Success Modal) ---- */
.keys-endpoint-box {
  text-align: left;
  background: var(--bg);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.keys-box-label {
  font-size: 0.72rem;
  color: var(--text2);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.keys-copy-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.key-code-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--accent2);
  font-size: 0.82rem;
  padding: 8px 10px;
  outline: none;
  min-width: 0;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.keys-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 4px;
}

.keys-list-wrap::-webkit-scrollbar {
  width: 4px;
}

.keys-list-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.keys-list-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.key-item-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.key-item-card.is-new {
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
  animation: newKeyGlow 2s ease-in-out;
}

@keyframes newKeyGlow {
  0% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
  30% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.35); }
  100% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.2); }
}

.key-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.key-card-num {
  font-size: 0.72rem;
  color: var(--text2);
  font-weight: 600;
}

.key-card-exp {
  font-size: 0.68rem;
  color: var(--text2);
}

.key-new-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 1px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.key-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
