/* ===== REFERRAL CODE SYSTEM STYLES ===== */

.referral-section {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  color: #000;
}

.referral-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.referral-subtitle {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.referral-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.referral-input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background: #fff;
  color: #000;
  transition: border-color 0.3s ease;
}

.referral-input:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.referral-input:disabled {
  background: #f0f0f0;
  cursor: not-allowed;
}

.verify-btn {
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #ffd700;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.verify-btn:hover:not(:disabled) {
  background: #333;
  transform: translateY(-2px);
}

.verify-btn:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
}

.referral-status {
  padding: 0.75rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-weight: 600;
  display: none;
  text-align: center;
}

.referral-status.success {
  background: #10b981;
  color: white;
  display: block;
}

.referral-status.error {
  background: #ef4444;
  color: white;
  display: block;
}

.generated-code {
  background: #000;
  color: #ffd700;
  padding: 1rem;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1rem;
  border: 2px dashed #ffd700;
  display: none;
  text-align: center;
}

.generated-code.show {
  display: block;
}

.discount-activated {
  font-size: 0.9rem;
  margin: 0.5rem 0;
  color: #4ade80;
  font-family: inherit;
}

.copy-btn {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #ffed4a;
  transform: scale(1.05);
}

.discount-info {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid #4ade80;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.original-price {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.discount-price {
  font-size: 1rem;
  font-weight: 600;
}

.requirement-note {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #ffd700;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #ffd700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .referral-input-group {
    flex-direction: column;
  }
  
  .referral-section {
    padding: 1rem;
  }
  
  .referral-title {
    font-size: 1rem;
  }
}

