/* ============================================================
   Paddle Checkout — Subscription Cards & Success Modal
   Integrates with Orken AI design system (orken.css variables)
   ============================================================ */

/* ---- Agent subscription cards ---- */

.paddle-sub-card {
  display: flex;
  flex-direction: column;
}

.paddle-agent-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 16px;
}

.paddle-sub-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.paddle-sub-card > p {
  font-size: 0.9rem;
  margin-bottom: 18px;
  min-height: 2.8em;
}

.paddle-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.paddle-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--o-ink-3);
  border-bottom: 1px solid var(--o-line);
}

.paddle-feature-list li:last-child {
  border-bottom: none;
}

.paddle-feature-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(16,185,129,.08));
  border: 1.5px solid rgba(16,185,129,.35);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  color: #10B981;
  font-weight: 800;
  margin-top: 1px;
}

/* Price display */
.paddle-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 22px 0 16px;
}

.paddle-price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--o-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.paddle-price-period {
  font-size: 0.88rem;
  color: var(--o-ink-3);
  font-weight: 400;
  padding-bottom: 2px;
}

/* Subscribe button */
.paddle-sub-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
}

/* ---- Trust badges strip ---- */

.paddle-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 48px;
  padding: 24px 40px;
  background: var(--o-bg);
  border: 1px solid var(--o-line);
  border-radius: var(--o-radius-lg);
  box-shadow: var(--o-shadow-sm);
}

.paddle-trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--o-ink-2);
}

.paddle-trust-badge .badge-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* ---- Success modal ---- */

.paddle-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 6, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none; /* JS sets to flex */
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.paddle-modal-backdrop.is-visible {
  opacity: 1;
}

.paddle-modal {
  background: var(--o-bg);
  border: 1px solid var(--o-line);
  border-radius: var(--o-radius-xl);
  padding: 52px 44px 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--o-shadow-lg);
  transform: translateY(28px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.paddle-modal-backdrop.is-visible .paddle-modal {
  transform: translateY(0) scale(1);
}

/* Glow ring */
.paddle-modal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(79,70,229,.35), rgba(124,58,237,.35));
  z-index: -1;
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.4s ease;
}

.paddle-modal-backdrop.is-visible .paddle-modal::before {
  opacity: 1;
}

/* SVG checkmark */
.paddle-modal-check-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.05));
  border: 1.5px solid rgba(16,185,129,.3);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}

.paddle-checkmark-svg {
  width: 46px;
  height: 46px;
}

.paddle-checkmark-circle {
  fill: none;
  stroke: #10B981;
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: paddle-draw-circle 0.55s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

.paddle-checkmark-check {
  fill: none;
  stroke: #10B981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: paddle-draw-check 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

@keyframes paddle-draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes paddle-draw-check {
  to { stroke-dashoffset: 0; }
}

/* Modal text */
.paddle-modal h3 {
  font-size: 1.7rem;
  margin: 0 0 10px;
  color: var(--o-ink);
}

.paddle-modal-sub {
  font-size: 1rem;
  color: var(--o-ink-2);
  margin-bottom: 8px;
}

.paddle-modal-sub strong {
  color: var(--o-primary);
}

.paddle-modal-note {
  font-size: 0.875rem;
  color: var(--o-ink-3);
  margin-bottom: 30px;
  line-height: 1.6;
}

.paddle-modal-close-btn {
  width: 100%;
  justify-content: center;
  border-radius: 12px !important;
  padding: 14px 24px !important;
}

/* ---- Section pricing header ---- */
.paddle-pricing-hero {
  padding: 72px 0 0;
}

/* ---- Mobile responsive ---- */

@media (max-width: 768px) {
  .paddle-trust-strip {
    gap: 20px;
    padding: 20px 24px;
  }
}

@media (max-width: 480px) {
  .paddle-modal {
    padding: 36px 24px 32px;
  }

  .paddle-modal h3 {
    font-size: 1.45rem;
  }

  .paddle-trust-strip {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
  }
}
