/* ─── Payment Badge ─────────────────────────────────────── */
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  transition: all 0.2s;
  flex-shrink: 0;
}

.payment-badge.paid {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-badge.unpaid {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
}

.payment-badge.unpaid:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.payment-badge.loading {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  cursor: wait;
}

/* ─── Payment Gate Banner ───────────────────────────────── */
.payment-gate-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #991b1b;
  font-size: 13px;
  line-height: 1.4;
}

.payment-gate-banner.visible {
  display: flex;
}

.payment-gate-banner button {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: #991b1b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ─── Plans/Tariffs Modal ───────────────────────────────── */
.plans-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .plans-container {
    flex-direction: row;
    align-items: stretch;
  }
}

.plan-card {
  flex: 1;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #d1d9e6;
}

.plan-card.popular {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #fff 0%, #f9faff 100%);
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 24px 48px rgba(67, 97, 238, 0.12);
}

.plan-card.popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 22px;
  background: linear-gradient(135deg, #4361ee, #7b2ff7);
  opacity: 0.15;
}

.plan-card.popular:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 32px 64px rgba(67, 97, 238, 0.18);
}

.plan-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4361ee, #7b2ff7);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4);
}

.plan-title {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px 0;
}

.plan-card.popular .plan-title {
  color: #4361ee;
}

.plan-price {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 24px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.plan-desc {
  font-size: 15px;
  color: #475569;
  margin: 0 0 32px 0;
  flex-grow: 1;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card .plan-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  outline: none;
}

.plan-card .plan-btn-outline {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.plan-card .plan-btn-outline:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.plan-card .plan-btn-primary {
  background: linear-gradient(135deg, #4361ee, #7b2ff7);
  color: #fff;
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.25);
}

.plan-card .plan-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(67, 97, 238, 0.35);
  filter: brightness(1.1);
}

.plans-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.plans-footer-link {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.plans-footer-link:hover {
  color: #4361ee;
  text-decoration: underline;
}

/* ─── Invoice Form ──────────────────────────────────────── */
.invoice-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.invoice-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invoice-field label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-field input {
  padding: 14px 16px;
  border: 2px solid #eef2f7;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s;
  background: #f8fafc;
}

.invoice-field input:focus {
  outline: none;
  border-color: #4361ee;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.invoice-field input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.invoice-error-text {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
