/* ==========================================================================
   W3PAY.COM.BR & W3 SOLUÇÕES - COMPLETE FINTECH DESIGN SYSTEM & MOTION
   Includes Smart POS Maquininha Showcase, How it Works Steps, Profile Tabs, & Tables
   ========================================================================== */

/* Global Container Constraints */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Base Buttons Design System & Motion */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md, 14px);
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Strict SVG Icon Sizing inside Buttons to prevent distortion */
.btn svg, .btn i {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0;
  display: inline-block;
}

.btn-lg svg, .btn-lg i {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0;
  display: inline-block;
}

.btn-sm svg, .btn-sm i {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0;
  display: inline-block;
}

span.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnimation 0.5s linear;
  background-color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary-pix {
  background: linear-gradient(135deg, #00d285 0%, #00b370 100%);
  color: #03140c;
  border: 1px solid #00e693;
  box-shadow: 0 4px 14px rgba(0, 210, 133, 0.3);
}

.btn-primary-pix:hover {
  background: linear-gradient(135deg, #00e693 0%, #00c77d 100%);
  box-shadow: 0 6px 20px rgba(0, 210, 133, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--silver-card-border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
  border-radius: 16px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* Light Theme W3Pay Subpage Container */
.w3pay-light-page {
  background: var(--silver-bg-primary, #f8fafc);
  color: var(--silver-text-main, #0f172a);
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

/* Light Glass Cards */
.light-card {
  background: #ffffff;
  border: 1px solid var(--silver-card-border, #e2e8f0);
  border-radius: var(--radius-lg, 24px);
  padding: 2rem;
  box-shadow: var(--silver-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  transition: all 0.3s ease;
}

.light-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--silver-shadow-hover, 0 20px 40px rgba(15, 23, 42, 0.12));
  border-color: var(--silver-card-hover-border, #cbd5e1);
}

/* Smart POS Terminal Hero Image Box */
.pos-showcase-box {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.pos-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.pos-badge-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #00d285;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 210, 133, 0.2);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* "Como Funciona" Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  position: relative;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: #00d285;
  box-shadow: 0 12px 30px rgba(0, 210, 133, 0.12);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 210, 133, 0.15), rgba(0, 179, 112, 0.25));
  color: #008f58;
  font-family: var(--font-heading, sans-serif);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Profile Advantage Cards (Restaurante vs Entregadores) */
.profile-toggle-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.profile-btn {
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-benefit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* Swap / Calculator Widget */
.swap-widget {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.swap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.swap-header h3 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swap-mode-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.tab-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #ffffff;
  color: #00b370;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.input-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.amount-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  outline: none;
}

.currency-select {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
}

.swap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.5rem 0;
  position: relative;
  z-index: 2;
}

.swap-direction-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5.px solid #00d285;
  color: #00b370;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 210, 133, 0.2);
  transition: transform 0.3s ease;
}

.swap-direction-btn:hover {
  transform: rotate(180deg);
}

.quote-details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quote-value {
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

/* Rate Comparison Table */
.comparison-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
  margin-top: 2rem;
  overflow-x: auto;
}

.fintech-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  text-align: left;
}

.fintech-table th {
  padding: 1.1rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}

.fintech-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: #0f172a;
}

.fintech-table tr:hover td {
  background: rgba(241, 245, 249, 0.5);
}

.check-icon {
  color: #00b370;
  font-weight: 800;
}

.cross-icon {
  color: #ef4444;
  font-weight: 800;
}

/* FAQ Accordion Component */
.faq-container {
  max-width: 860px;
  margin: 2.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: #00d285;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading, sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px dashed #e2e8f0;
  padding-top: 1rem;
}

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

/* CTA Section */
.cta-banner {
  background: linear-gradient(135deg, #00d285 0%, #00a866 100%);
  color: #03140c;
  border-radius: 28px;
  padding: 3.5rem 3rem;
  text-align: center;
  margin: 4rem 0 2rem 0;
  box-shadow: 0 20px 40px rgba(0, 210, 133, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-family: var(--font-heading, sans-serif);
  font-size: 2.6rem;
  font-weight: 800;
  color: #03140c;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.cta-banner p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
}

/* Modals & Toasts */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 280px;
}

.pix-qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pix-qr-modal.active {
  display: flex;
}

.qr-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #64748b;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .steps-grid, .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* MOBILE COMPONENTS */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .steps-grid,
  .profile-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .step-card,
  .feature-benefit-card {
    padding: 1.25rem 1.1rem;
  }

  .pos-badge-overlay {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .btn,
  .btn-lg {
    min-height: 44px;
  }
}
