.ad-revenue-calculator {
  font-family: 'Segoe UI', Roboto, sans-serif;
  max-width: 650px;
  margin: 30px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

.ad-revenue-calculator h2 {
  text-align: center;
  color: #222;
  font-weight: 800;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

.calculator-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  background: #f1f1f1;
  transition: all 0.3s;
}

.tab-btn.active {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  transform: scale(1.05);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {display: block;}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.input-group input:focus {
  border-color: #2575fc;
  box-shadow: 0 0 8px rgba(37,117,252,0.3);
  outline: none;
}

.calculate-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.calculate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,117,252,0.4);
}

.result-box {
  margin-top: 20px;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background: #f9fafc;
  animation: popIn 0.6s ease;
}

@keyframes popIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.result-amount {
  font-size: 36px;
  font-weight: 800;
  color: #27ae60;
  transition: 0.3s;
}

.result-breakdown {
  font-size: 14px;
  margin-top: 8px;
  color: #555;
}

@media (max-width: 600px) {
  .calculator-tabs {flex-direction: column;}
  .tab-btn {width: 100%;}
}