/* ==========================================================================
   FrontPrime Commercial Showcase - Design System & Stylesheet
   ========================================================================== */

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

:root {
  /* Design Tokens - Palette */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(28, 39, 64, 0.85);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(99, 102, 241, 0.4);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);

  --accent-pets: #0d9488;
  --accent-pets-glow: rgba(13, 148, 136, 0.3);
  
  --accent-tech: #0284c7;
  --accent-tech-glow: rgba(2, 132, 199, 0.3);

  --accent-gold: #f59e0b;
  --accent-green: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(13, 148, 136, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(2, 132, 199, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

/* Utility Components */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-pets {
  background: linear-gradient(135deg, #5eead4 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-tech {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6366f1 0%, #0d9488 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  margin: 20px 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-features-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  margin: 0 auto;
  max-width: 900px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-feature-item span {
  font-size: 18px;
}

/* Mockup Showcase Banner */
.hero-mockup {
  margin-top: 60px;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: rgba(18, 26, 43, 0.6);
  backdrop-filter: blur(20px);
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title-bar {
  font-size: 13px;
  color: var(--text-dim);
  margin-left: 10px;
  font-weight: 500;
}

/* ==========================================================================
   Systems Showcase Section
   ========================================================================== */
.systems-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 38px;
  margin: 12px 0;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
}

/* Tab Switcher */
.systems-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.system-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
}

.system-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.system-tab-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.system-tab-btn.active.pets {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
}

.system-tab-btn.active.tech {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
}

/* Tab Content Display */
.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

.system-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.system-info h3 {
  font-size: 30px;
  margin-bottom: 12px;
}

.system-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
}

.feature-list li span.check {
  color: #10b981;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

/* Future Systems Grid */
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.future-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.future-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.future-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.future-desc {
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   Diferenciais & Vantagens
   ========================================================================== */
.benefits-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.015);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.benefit-card {
  position: relative;
  overflow: hidden;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.benefit-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.comparison-section {
  padding: 100px 0;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

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

.compare-table th, .compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.compare-table th.highlight {
  color: #818cf8;
}

.compare-table td span.yes {
  color: #10b981;
  font-weight: 700;
}

.compare-table td span.no {
  color: #ef4444;
  font-weight: 700;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
}

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

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 15px;
  display: none;
}

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

.faq-toggle {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(455deg);
}

/* ==========================================================================
   CTA Section & Footer
   ========================================================================== */
.cta-banner {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(13, 148, 136, 0.15) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.cta-title {
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  padding: 50px 0 30px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* Floating WhatsApp Button */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.float-wa:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   Custom System (Sob Medida) & Offer Post Styles
   ========================================================================== */
.gradient-text-custom {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 40%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.system-tab-btn.custom {
  border-color: rgba(245, 158, 11, 0.3);
}

.system-tab-btn.custom:hover {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fcd34d;
}

.system-tab-btn.active.custom {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  color: #ffffff;
}

.custom-offer-section {
  padding: 90px 0;
  position: relative;
}

.custom-offer-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(18, 26, 43, 0.95) 50%, rgba(67, 20, 7, 0.75) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.custom-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.custom-offer-title {
  font-size: 38px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.custom-offer-subtitle {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 820px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.custom-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  text-align: left;
}

.custom-grid-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-normal);
}

.custom-grid-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
}

.custom-item-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.custom-grid-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #ffffff;
}

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

.custom-offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.custom-footer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-footer-text span {
  font-size: 14px;
  color: #fcd34d;
  font-weight: 600;
}

.custom-footer-text strong {
  font-size: 16px;
  color: #ffffff;
}

.custom-offer-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 16px;
  padding: 16px 32px;
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

.custom-offer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(245, 158, 11, 0.6);
}

/* Responsive Rules for Landing */
@media (max-width: 992px) {
  .hero-title { font-size: 38px; }
  .system-card-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .custom-offer-title { font-size: 30px; }
  .custom-offer-footer { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 16px; }
  .section-title { font-size: 28px; }
  .btn { width: 100%; }
}

/* ==========================================================================
   CHECKOUT & CADASTRO DE CLIENTES - DESIGN SYSTEM
   ========================================================================== */

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-hero {
  padding: 130px 0 40px 0;
  text-align: center;
  position: relative;
}

.checkout-header-content {
  max-width: 860px;
  margin: 0 auto;
}

.checkout-main-title {
  font-size: 42px;
  margin: 16px 0;
  letter-spacing: -0.5px;
}

.checkout-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.trust-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

/* Layout de 2 Colunas */
.checkout-section {
  padding: 20px 0 90px 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.checkout-form-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-step-card {
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

.form-step-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.step-title {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-label .required {
  color: #f43f5e;
  font-weight: 700;
}

.form-label .optional {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.8;
}

.form-input {
  width: 100%;
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 46px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-normal);
  outline: none;
}

.form-input:focus {
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-input::placeholder {
  color: #64748b;
}

.form-input.input-error {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25);
  animation: shake 0.3s ease-in-out;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.form-select option {
  background: #0f172a;
  color: #ffffff;
}

.form-textarea {
  padding-left: 16px;
  resize: vertical;
  min-height: 80px;
}

.field-error {
  display: none;
  font-size: 12px;
  color: #fb7185;
  margin-top: 6px;
  font-weight: 500;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* ==========================================================================
   SELEÇÃO DE SISTEMAS & PLANOS (INTERACTIVE CARDS)
   ========================================================================== */

.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.selection-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.selection-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selection-card-inner {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.selection-card:hover .selection-card-inner {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(20, 30, 55, 0.7);
  transform: translateY(-2px);
}

.selection-card.active .selection-card-inner {
  border-color: #6366f1;
  background: rgba(30, 41, 75, 0.85);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.selection-card[data-system-id="frontpets"].active .selection-card-inner {
  border-color: #0d9488;
  box-shadow: 0 0 25px rgba(13, 148, 136, 0.35);
}

.selection-card[data-system-id="fronttech"].active .selection-card-inner {
  border-color: #0284c7;
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.35);
}

.selection-card[data-system-id="custom"].active .selection-card-inner {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.selection-radio-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition-fast);
}

.selection-card.active .selection-radio-indicator {
  border-color: #6366f1;
  background: #6366f1;
  box-shadow: inset 0 0 0 4px #0f172a;
}

.selection-card[data-system-id="frontpets"].active .selection-radio-indicator {
  border-color: #0d9488;
  background: #0d9488;
}

.selection-card[data-system-id="fronttech"].active .selection-radio-indicator {
  border-color: #0284c7;
  background: #0284c7;
}

.selection-card[data-system-id="custom"].active .selection-radio-indicator {
  border-color: #f59e0b;
  background: #f59e0b;
}

.selection-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  width: fit-content;
}

.selection-badge.prime {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.selection-badge.pets {
  background: rgba(13, 148, 136, 0.2);
  color: #5eead4;
}

.selection-badge.tech {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
}

.selection-badge.custom {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.selection-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.selection-name {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 6px;
}

.selection-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.selection-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.selection-tags span {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  color: #cbd5e1;
}

/* Plan Cards Details */
.plan-card-title {
  font-size: 19px;
  color: #ffffff;
  margin-bottom: 10px;
}

.plan-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-card-price .currency {
  font-size: 16px;
  font-weight: 700;
  color: #cbd5e1;
}

.plan-card-price .amount {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
}

.plan-card-price .period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-card-billing {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.plan-card-benefits {
  list-style: none;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card.featured .selection-card-inner {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(30, 41, 75, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.ribbon-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: var(--radius-md);
  z-index: 2;
  letter-spacing: 0.3px;
}

/* Dispositivos Chips */
.devices-selection {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.device-checkbox-label {
  cursor: pointer;
}

.device-checkbox-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  transition: var(--transition-fast);
}

.device-checkbox-label input:checked + .device-chip,
.device-chip.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   RESUMO LATERAL (STICKY SIDEBAR)
   ========================================================================== */

.checkout-summary-container {
  position: sticky;
  top: 100px;
}

.checkout-summary-card {
  padding: 28px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: rgba(18, 26, 43, 0.9);
}

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

.summary-header-icon {
  font-size: 26px;
}

.summary-title {
  font-size: 18px;
  color: #ffffff;
}

.summary-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 18px 0;
}

.summary-item {
  margin-bottom: 12px;
}

.summary-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 14px;
  color: #f8fafc;
  font-weight: 600;
}

.summary-pricing-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
}

.summary-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.price-badge-saving {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.summary-main-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.summary-main-price .currency {
  font-size: 18px;
  font-weight: 700;
  color: #5eead4;
}

.summary-main-price .val {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
}

.summary-main-price .freq {
  font-size: 14px;
  color: var(--text-muted);
}

.summary-billing-note {
  font-size: 12px;
  color: #94a3b8;
}

.summary-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.summary-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.feat-check {
  color: #10b981;
  font-weight: 800;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-checkout-submit {
  width: 100%;
  font-size: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-checkout-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.65);
}

.btn-checkout-submit .wa-icon {
  font-size: 20px;
}

.summary-contact-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.summary-security-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   MODAL DE CONFIRMAÇÃO & SUCESSO
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  max-width: 540px;
  width: 100%;
  padding: 36px;
  text-align: center;
  background: rgba(18, 26, 43, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  font-size: 50px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-client-preview {
  margin-bottom: 20px;
  text-align: left;
}

.modal-actions {
  display: flex;
  flex-direction: column;
}

/* Responsive Rules for Checkout */
@media (max-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-summary-container {
    position: relative;
    top: 0;
  }
  .checkout-main-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .selection-grid {
    grid-template-columns: 1fr;
  }
  .form-step-card {
    padding: 20px 16px;
  }
  .checkout-summary-card {
    padding: 20px 16px;
  }
}

