/* ==============================================================================
   ESTILOS DA PÁGINA DE ASSINATURA & PLANOS — ITBI VALORES DE IMÓVEIS
   Integrado com Billing Hub (Stripe & PIX Mercado Pago)
   ============================================================================== */

:root {
  --primary-glow: rgba(99, 102, 241, 0.4);
  --gold-glow: rgba(245, 158, 11, 0.35);
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --bg-darker: #070b14;
  --bg-card-pricing: #0f172a;
  --border-card: #1e293b;
  --border-card-hover: #3b82f6;
}

html {
  overflow-y: auto !important;
  height: auto !important;
  scroll-behavior: smooth;
}

body.pricing-body {
  background-color: var(--bg-darker);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative;
}

/* NAVBAR */
.pricing-navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 24px;
}

.pricing-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.pricing-logo .logo-emoji {
  font-size: 2rem;
  background: rgba(99, 102, 241, 0.15);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.pricing-logo .brand-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.pricing-logo .brand-sub {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.pricing-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-back:hover {
  background: #334155;
  color: #ffffff;
  border-color: #64748b;
  transform: translateX(-2px);
}

/* SUCCESS BANNER */
.success-banner {
  max-width: 900px;
  margin: 20px auto -10px;
  padding: 0 20px;
}

.success-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.25));
  border: 1.5px solid #10b981;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.success-icon {
  font-size: 2.5rem;
}

.success-card h3 {
  margin: 0 0 4px;
  color: #10b981;
  font-size: 1.25rem;
}

.success-card p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.btn-success-go {
  margin-left: auto;
  background: #10b981;
  color: #064e3b;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-success-go:hover {
  background: #34d399;
  transform: scale(1.03);
}

/* HERO SECTION */
.pricing-hero {
  text-align: center;
  padding: 50px 20px 20px;
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 auto 30px;
  max-width: 720px;
}

/* STATUS DO USUÁRIO */
.user-status-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 0.88rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.status-badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-portal-action {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-portal-action:hover {
  background: #6366f1;
}

/* TOGGLE MENSAL / ANUAL */
.billing-toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #141c2c;
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid #2a374d;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.toggle-label.active {
  color: #ffffff;
}

.badge-discount {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1b4b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: #334155;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s;
  padding: 3px;
}

.toggle-switch.annual {
  background: #4f46e5;
}

.toggle-knob {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.toggle-switch.annual .toggle-knob {
  transform: translateX(22px);
}

/* PRICING CARDS SECTION */
.pricing-cards-section {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: #0f172a;
  border: 1.5px solid #1e293b;
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.pricing-card.popular {
  border: 2px solid #6366f1;
  background: linear-gradient(180deg, #131b31 0%, #0d1322 100%);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.25);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  white-space: nowrap;
}

.plan-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.plan-tag.tag-gold {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #ffffff;
}

.plan-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 24px;
  min-height: 42px;
}

/* PREÇOS */
.card-price-box {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 0;
  margin-bottom: 24px;
}

.price-val {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-val .currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: #94a3b8;
}

.price-val .amount {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-val .cents {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.price-val .period {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 6px;
}

.trial-note, .annual-billed-note {
  display: block;
  font-size: 0.8rem;
  color: #10b981;
  margin-top: 8px;
  font-weight: 600;
}

.annual-billed-note {
  color: #cbd5e1;
}

/* BADGES DE FORMAS DE PAGAMENTO STRIPE */
.payment-methods-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

.payment-methods-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* BOTÕES DE ASSINATURA */
.btn-subscribe {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border: 1px solid #6366f1;
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
  margin-bottom: 28px;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

.btn-gradient-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1b4b;
  border: 1px solid #fbbf24;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-gradient-gold:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6);
}

.btn-subscribe-pix {
  width: 100%;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #10b981;
  color: #34d399;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -16px;
  margin-bottom: 28px;
  transition: all 0.2s ease;
}

.btn-subscribe-pix:hover {
  background: #10b981;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ITENS DO PLANO */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.plan-features .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-weight: 800;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-features .check-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* TABELA DE COMPARAÇÃO */
.comparison-section, .faq-section {
  max-width: 950px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 36px;
}

.section-header-center h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

.section-header-center p {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0;
}

.comparison-table-wrapper {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
  font-size: 0.9rem;
}

.comparison-table th {
  background: #141c2c;
  color: #f1f5f9;
  font-weight: 700;
}

.comparison-table .col-free {
  width: 25%;
  color: #94a3b8;
}

.comparison-table .col-pro {
  width: 32%;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.05);
}

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

/* FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  font-size: 1.3rem;
  color: #818cf8;
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* FOOTER */
.pricing-footer {
  border-top: 1px solid #1e293b;
  padding: 30px 20px;
  background: #070b14;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-container a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-container a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* MODAL DE CHECKOUT */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: #0f172a;
  border: 1px solid #2a374d;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #ffffff;
}

.btn-close-modal {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.btn-close-modal:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
}

.modal-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 18px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-group .input-text {
  width: 100%;
  box-sizing: border-box;
  background: #141c2c;
  border: 1px solid #2a374d;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group .input-text:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.btn-primary-block {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border: 1px solid #6366f1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary-block:hover {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .success-card {
    flex-direction: column;
    text-align: center;
  }
  .btn-success-go {
    margin-left: 0;
  }
}
