@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

/* ══════════════════════════════════════════
   Design Tokens (matching menu.css)
   ══════════════════════════════════════════ */
:root {
  --bg-deep: #06090f;
  --bg-surface: #0d1117;
  --bg-card: rgba(13, 17, 23, 0.7);
  --bg-card-hover: rgba(22, 30, 44, 0.85);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-tertiary: #484f58;

  --accent-blue: #58a6ff;
  --accent-blue-dim: rgba(88, 166, 255, 0.12);
  --accent-green: #3fb950;
  --accent-green-dim: rgba(63, 185, 80, 0.12);
  --accent-amber: #d29922;
  --accent-amber-dim: rgba(210, 153, 34, 0.12);
  --accent-purple: #bc8cff;
  --accent-purple-dim: rgba(188, 140, 255, 0.12);
  --accent-cyan: #39d2c0;
  --accent-cyan-dim: rgba(57, 210, 192, 0.12);
  --accent-rose: #f78166;
  --accent-rose-dim: rgba(247, 129, 102, 0.12);

  --gold: #c9a54e;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Outfit', sans-serif;
}

a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════
   Animated Background
   ══════════════════════════════════════════ */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.bg-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1a3a6a 0%, transparent 70%);
  top: -200px; left: -100px;
}
.bg-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #3a1a5a 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -7s;
}
.bg-orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #1a4a3a 0%, transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.97); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   Top Navigation (same as menu.php)
   ══════════════════════════════════════════ */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  height: 60px;
  background: rgba(6, 9, 15, 0.8);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(201, 165, 78, 0.08);
  border: 1px solid rgba(201, 165, 78, 0.2);
}

.nav-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-title span {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-user {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.credit-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-green);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.credit-badge:hover {
  background: rgba(63, 185, 80, 0.18);
  border-color: rgba(63, 185, 80, 0.4);
}

.credit-badge.low {
  background: rgba(247, 129, 102, 0.1);
  border-color: rgba(247, 129, 102, 0.25);
  color: var(--accent-rose);
  animation: pulse-low 2s ease-in-out infinite;
}

@keyframes pulse-low {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.nav-btn--primary {
  background: rgba(88, 166, 255, 0.12);
  border-color: rgba(88, 166, 255, 0.25);
  color: var(--accent-blue);
}

.nav-btn--primary:hover {
  background: rgba(88, 166, 255, 0.22);
}

.nav-btn--danger {
  color: var(--accent-rose);
}

.nav-btn--danger:hover {
  background: rgba(247, 129, 102, 0.12);
  border-color: rgba(247, 129, 102, 0.25);
}

/* ══════════════════════════════════════════
   Page Content
   ══════════════════════════════════════════ */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 3rem) 4rem;
}

/* Hero */
.pricing-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(188, 140, 255, 0.1);
  border: 1px solid rgba(188, 140, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.pricing-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Payment method toggle */
.payment-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2rem auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
}

.payment-toggle-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-toggle-btn.active {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
}

.payment-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.payment-toggle-btn .discount {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(63, 185, 80, 0.15);
  color: var(--accent-green);
  font-weight: 700;
}

/* ══════════════════════════════════════════
   Pricing Cards Grid
   ══════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent-blue));
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pricing-card:hover::before {
  opacity: 1;
}

/* Popular card */
.pricing-card.popular {
  border-color: rgba(88, 166, 255, 0.3);
  background: rgba(13, 20, 35, 0.8);
  --card-accent: var(--accent-blue);
}

.pricing-card.popular::before {
  opacity: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Card content */
.card-plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  background: var(--icon-bg, var(--accent-blue-dim));
  color: var(--icon-color, var(--accent-blue));
}

.card-plan-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.card-plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Price */
.card-price {
  margin-bottom: 1.5rem;
}

.card-price .currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 2.5;
}

.card-price .amount {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.card-price .period {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-left: 2px;
}

.card-price .price-free {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-green);
}

/* Features */
.card-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.card-features li:last-child {
  border-bottom: none;
}

.card-features li .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background: rgba(63, 185, 80, 0.15);
  color: var(--accent-green);
  margin-top: 1px;
}

.card-features li .check.disabled {
  background: rgba(255,255,255,0.04);
  color: var(--text-tertiary);
}

.card-features li.disabled {
  opacity: 0.4;
}

/* Credits highlight */
.card-credits {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(210, 153, 34, 0.08);
  border: 1px solid rgba(210, 153, 34, 0.15);
  margin-bottom: 1.5rem;
}

.card-credits .credits-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}

.card-credits .credits-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* CTA Button */
.card-cta {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.card-cta.cta-primary {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(188, 140, 255, 0.15));
  border-color: rgba(88, 166, 255, 0.3);
  color: var(--accent-blue);
}

.card-cta.cta-primary:hover {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.3), rgba(188, 140, 255, 0.25));
  box-shadow: 0 8px 30px rgba(88, 166, 255, 0.15);
}

.card-cta.cta-gold {
  background: linear-gradient(135deg, rgba(201, 165, 78, 0.15), rgba(210, 153, 34, 0.1));
  border-color: rgba(201, 165, 78, 0.3);
  color: var(--gold);
}

.card-cta.cta-gold:hover {
  background: linear-gradient(135deg, rgba(201, 165, 78, 0.25), rgba(210, 153, 34, 0.2));
  box-shadow: 0 8px 30px rgba(201, 165, 78, 0.12);
}

.card-cta.cta-current {
  background: rgba(63, 185, 80, 0.08);
  border-color: rgba(63, 185, 80, 0.2);
  color: var(--accent-green);
  cursor: default;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   Credit Packages Section
   ══════════════════════════════════════════ */
.packages-section {
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.package-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 165, 78, 0.3);
  transform: translateY(-3px);
}

.package-card .pkg-credits {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.package-card .pkg-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.package-card .pkg-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.package-card .pkg-per-credit {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.package-card .pkg-buy-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 165, 78, 0.25);
  background: rgba(201, 165, 78, 0.08);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.package-card .pkg-buy-btn:hover {
  background: rgba(201, 165, 78, 0.18);
}

/* ══════════════════════════════════════════
   Cost Table
   ══════════════════════════════════════════ */
.cost-table-section {
  margin-bottom: 4rem;
}

.cost-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
}

.cost-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--glass-border);
}

.cost-table td {
  padding: 12px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.cost-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.cost-table .cost-credits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(210, 153, 34, 0.1);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
}

.cost-table .cost-type-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-right: 8px;
  vertical-align: middle;
}

/* ══════════════════════════════════════════
   Checkout Modal
   ══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

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

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

/* Checkout summary */
.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

.checkout-summary .plan-info h4 {
  font-size: 1rem;
  font-weight: 700;
}

.checkout-summary .plan-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.checkout-summary .plan-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-green);
}

/* Form fields */
.checkout-form .form-group {
  margin-bottom: 1rem;
}

.checkout-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-smooth);
  outline: none;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: rgba(88, 166, 255, 0.4);
  background: rgba(88, 166, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.08);
}

.checkout-form input::placeholder {
  color: var(--text-tertiary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* Payment method tabs inside modal */
.payment-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 3px;
}

.payment-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: calc(var(--radius-md) - 2px);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.payment-tab.active {
  background: rgba(88, 166, 255, 0.12);
  color: var(--accent-blue);
}

.payment-tab:hover:not(.active) {
  background: rgba(255,255,255,0.03);
}

/* Card form */
.card-fields {
  display: none;
}

.card-fields.active {
  display: block;
}

/* PIX area */
.pix-area {
  display: none;
  text-align: center;
  padding: 1.5rem;
}

.pix-area.active {
  display: block;
}

.pix-qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  padding: 12px;
  background: white;
  border-radius: var(--radius-md);
}

.pix-qrcode img {
  width: 100%;
  height: 100%;
}

.pix-copy-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
}

.pix-copy-code input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: monospace;
  outline: none;
}

.pix-copy-code button {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(63, 185, 80, 0.3);
  background: rgba(63, 185, 80, 0.1);
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pix-copy-code button:hover {
  background: rgba(63, 185, 80, 0.2);
}

.pix-timer {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pix-timer .countdown {
  color: var(--accent-amber);
  font-weight: 700;
  font-family: monospace;
}

/* Submit button */
.checkout-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #58a6ff, #bc8cff);
  color: white;
  margin-top: 1rem;
}

.checkout-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(88, 166, 255, 0.25);
}

.checkout-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checkout-submit .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.checkout-submit.loading .spinner {
  display: block;
}

.checkout-submit.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success state */
.checkout-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.checkout-success.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.checkout-success .success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(63, 185, 80, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-green);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.checkout-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.checkout-success p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.checkout-success .success-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.25);
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.checkout-success .success-btn:hover {
  background: rgba(63, 185, 80, 0.22);
}

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  border-top: 1px solid var(--glass-border);
}

footer a {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--accent-blue);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--accent-blue);
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .packages-grid {
    grid-template-columns: 1fr 1fr;
  }

  .payment-toggle-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .nav-btn span {
    display: none;
  }

  .pill-user span {
    display: none;
  }

  .modal-content {
    max-height: 95vh;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cost-table-wrapper {
    overflow-x: auto;
  }
}

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

  .page-wrapper {
    padding: 2rem 1rem 3rem;
  }
}
