* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: #f9fafc;
  color: #333;
  line-height: 1.6;
}

.header {
  text-align: center;
  padding: 2rem 1rem;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.header p {
  color: #555;
  margin-bottom: 1rem;
}

.free-trial-banner {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1rem 0 1.5rem 0;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.free-trial-banner::before {
  content: " ";
  margin-right: 8px;
}

.toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.toggle-wrapper span {
  cursor: pointer;
  transition: color 0.3s;
}

.toggle-wrapper .active {
  color: #2563eb;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked+.slider {
  background-color: #2563eb;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.plan-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-card.featured {
  border: 2px solid #2563eb;
}

.trial-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.save-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f59e0b;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  display: none;
}

.plan-card h2 {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  color: #2563eb;
}

.price {
  font-size: 2rem;
  margin: 1rem 0;
  color: #111;
  text-align: center;
}

.price span {
  font-size: 1rem;
  color: #555;
}

.price .old {
  font-size: 1rem;
  color: #888;
  text-decoration: line-through;
  margin-right: 8px;
}

.plan-card ul {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
  width: 100%;
}

.plan-card ul li {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.plan-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2563eb;
}

.btn {
  margin-top: auto;
  background: #2563eb;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  width: 100%;
}

.btn:hover {
  background: #1e40af;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-form {
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.popup-form h3 {
  margin-bottom: 1rem;
  color: #2563eb;
}

.popup-form input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popup-actions .btn {
  flex: 1;
}

.popup-actions .btn.cancel {
  background-color: #6b7280;
}

.popup-actions .btn.cancel:hover {
  background-color: #4b5563;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-inner {
  height: 100%;
  width: 0%;
  background: #10b981;
  transition: width 0.3s ease;
}

.trial-note {
  font-size: 0.85rem;
  color: #10b981;
  margin-top: 8px;
  font-weight: 500;
}
