/* ==========================================================================
   TTD Autofill Pro - Checkout & Activation Page Styling
   Clean, trustworthy, high-conversion design matching spiritual amber & navy
   ========================================================================== */

:root {
  --primary-navy: #0f172a;
  --spiritual-blue: #1e3a8a;
  --accent-gold: #d97706;
  --accent-gold-dark: #b45309;
  --gold-glow: rgba(217, 119, 6, 0.2);
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --success: #059669;
  --success-light: #ecfdf5;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  color: var(--text-main);
  min-height: 100vh;
  padding: 24px 16px 48px;
  -webkit-font-smoothing: antialiased;
}

.page-container {
  max-width: 820px;
  margin: 0 auto;
}

/* Header */
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.brand-info h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.3px;
}

.brand-info p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-badges {
  display: flex;
  gap: 8px;
}

.badge-trust {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* Extension Status Banner */
.ext-status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.25s ease;
}

.ext-status-banner.checking {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-muted);
}

.ext-status-banner.detected {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.ext-status-banner.not-detected {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 32px;
}

.hero-section h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-subtext {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 680px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.plan-card.featured {
  border-color: #f59e0b;
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.12);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
}

.plan-header {
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.plan-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--spiritual-blue);
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.plan-tag.tag-featured {
  color: #92400e;
  background: #fef3c7;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.plan-price .currency {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
}

.plan-price .amount {
  font-size: 44px;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1;
}

.plan-price .period {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
}

.plan-ideal {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features List */
.plan-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 11px;
  line-height: 1.4;
}

.plan-features li strong {
  color: var(--text-main);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Buttons */
.btn-checkout {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.btn-checkout.btn-featured {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.35);
}

.btn-checkout.btn-featured:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 6px 22px rgba(180, 83, 9, 0.45);
}

/* UPI Payment Strip */
.payment-methods-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 32px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.upi-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upi-badge {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-navy);
}

/* Success Card */
.success-card {
  background: #ffffff;
  border: 2px solid #10b981;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.15);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-wrap {
  margin-bottom: 12px;
}

.success-sparkle {
  font-size: 48px;
}

.success-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 6px;
}

.success-subtext {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.activation-status-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  margin-bottom: 24px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.license-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  max-width: 520px;
  margin: 0 auto 24px;
  text-align: left;
}

.license-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.btn-copy {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary-navy);
}

.btn-copy:hover {
  background: #f1f5f9;
}

.license-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #1e3a8a;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  word-break: break-all;
}

.license-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-primary-action {
  display: inline-block;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.15s ease;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

/* ==========================================================================
   Compliance & Transparency Note Card
   ========================================================================== */

.compliance-note-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.compliance-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.compliance-icon {
  font-size: 20px;
}

.compliance-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.2px;
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

@media (max-width: 640px) {
  .compliance-grid {
    grid-template-columns: 1fr;
  }
}

.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.compliance-item.full-width {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.compliance-item-icon {
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
}

.compliance-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 3px;
}

.compliance-item p {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
}

.faq-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.checkout-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* ==========================================================================
   Email Backup Card (Pre-Payment)
   ========================================================================== */

.email-capture-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.email-capture-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.email-capture-header .email-icon {
  font-size: 16px;
}

.email-label {
  font-size: 13px;
  color: var(--primary-navy);
}

.email-input-wrap {
  margin-bottom: 8px;
}

.email-input-field {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  color: var(--text-main);
  background: #ffffff;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.email-input-field:focus {
  border-color: var(--spiritual-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.email-input-field.error {
  border-color: #dc2626;
  background: #fef2f2;
}

.email-explain-note {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.email-explain-note strong {
  color: var(--text-main);
}

/* ==========================================================================
   Activation Timing Option Checkbox (Highlighted Below Pricing)
   ========================================================================== */

.activation-timing-card.highlighted {
  background: linear-gradient(135deg, #fffdf8 0%, #fef9ed 100%);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.16);
  position: relative;
  transition: all 0.2s ease;
}

.activation-timing-card.highlighted:hover {
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.22);
  border-color: #d97706;
}

.activation-timing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.activation-timing-badge .badge-icon {
  font-size: 12px;
}

.activation-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.activation-toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #d97706;
  cursor: pointer;
  flex-shrink: 0;
}

.activation-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-title {
  font-size: 14px;
  font-weight: 800;
  color: #78350f;
  line-height: 1.3;
}

.toggle-subtitle {
  font-size: 12px;
  color: #92400e;
  line-height: 1.45;
}

.toggle-subtitle strong {
  color: #78350f;
}

/* Recovery Strip */
.recovery-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.recovery-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recovery-icon {
  font-size: 24px;
}

.recovery-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.recovery-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-recovery-open {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-recovery-open:hover {
  background: #e2e8f0;
}

/* Email sent badge */
.email-sent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* Recovery Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.18s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-window {
  background: #ffffff;
  border-radius: 16px;
  width: 440px;
  max-width: 90%;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.modal-header h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-navy);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.modal-close-btn:hover {
  color: var(--primary-navy);
}

.modal-body {
  padding: 18px;
}

.modal-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.recovery-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13.5px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

.recovery-input:focus {
  border-color: var(--spiritual-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.recovery-feedback {
  font-size: 12px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
}

.recovery-feedback.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.recovered-key-box {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  text-align: center;
}

.recovered-title {
  font-size: 11px;
  font-weight: 800;
  color: #065f46;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.recovered-key-display {
  font-family: monospace;
  font-size: 17px;
  font-weight: 800;
  color: #1e3a8a;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  margin-bottom: 6px;
}

.recovered-meta {
  font-size: 12px;
  color: #047857;
  font-weight: 600;
  margin-bottom: 12px;
}

.recovered-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-recovered-activate {
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-recovered-copy {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.modal-footer {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

.btn-block {
  width: 100%;
}

/* Proceed to Pay Button */
.pay-button-wrap {
  margin-top: 20px;
}

.btn-proceed-pay {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-proceed-pay:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.45);
}

.plan-card {
  cursor: pointer;
}

.plan-card.selected {
  border-color: var(--spiritual-blue);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.16);
  outline: 2.5px solid var(--spiritual-blue);
}

.plan-card.featured.selected {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.22);
  outline: 2.5px solid var(--accent-gold);
}

