/* ==========================================================================
   MARMELO WORKSPACE · STEPPER WIZARD & APPMAX CHECKOUT STYLES
   Ultra-premium dark glassmorphic design system matching Marmelo standards
   ========================================================================== */

:root {
  --brand-yellow: #FFC01E;
  --brand-gold: #F59E0B;
  --brand-amber: #D97706;
  --brand-light: #FFE382;
  --brand-gradient: linear-gradient(135deg, #FFC01E 0%, #F59E0B 100%);
  --brand-glow: rgba(245, 158, 11, 0.28);
  
  --accent-green: #10B981;
  --accent-cyan: #06B6D4;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  
  --card-bg-calc: rgba(13, 20, 36, 0.75);
  --card-border-calc: rgba(255, 255, 255, 0.08);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
}

/* Modal Dialog Sizing for Stepper Wizard */
.modal-dialog-calculator {
  max-width: 980px !important;
  width: 95% !important;
  padding: 28px 32px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  background: #090E1A !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 40px rgba(245, 158, 11, 0.12) !important;
  border-radius: 24px !important;
  color: var(--text-main);
  box-sizing: border-box;
}

/* ==========================================================================
   WIZARD ROOT & TOP BAR
   ========================================================================== */
.marmelo-wizard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.wizard-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 4px;
}

/* Segmented Pills (Mode: Corp vs Personal & View: Stepper vs Bento) */
.wizard-mode-pills,
.wizard-view-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  box-sizing: border-box;
}

.btn-mode-pill,
.btn-view-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}

.btn-mode-pill:hover,
.btn-view-pill:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.btn-mode-pill.active,
.btn-view-pill.active {
  background: var(--brand-gradient);
  color: #080C14;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.wizard-step-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 4px;
}

/* ==========================================================================
   STEPPER NAVIGATION HEADER (6 Steps)
   ========================================================================== */
.wizard-stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 20px;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.wizard-stepper-header::-webkit-scrollbar {
  height: 4px;
}
.wizard-stepper-header::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: left;
  opacity: 0.55;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wizard-step-node:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.04);
}

.wizard-step-node.active {
  opacity: 1;
  background: rgba(245, 158, 11, 0.08);
}

.wizard-step-node.completed {
  opacity: 0.95;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.wizard-step-node.active .step-circle {
  background: var(--brand-gradient);
  border-color: #FFC01E;
  color: #080C14;
  box-shadow: 0 0 16px var(--brand-glow);
}

.wizard-step-node.completed .step-circle {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-green);
  color: var(--accent-green);
  font-weight: 800;
}

.step-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.step-subtotal-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.step-subtotal-badge.has-cost {
  color: var(--brand-gold);
  font-weight: 700;
}

.step-connector {
  flex: 1;
  min-width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px;
  transition: background 0.3s ease;
}

.step-connector.completed {
  background: linear-gradient(90deg, var(--accent-green), var(--brand-gold));
}

/* ==========================================================================
   ACTIVE STEP CARD CONTAINER (Glassmorphic Showcase Style)
   ========================================================================== */
.step-container-card {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.section-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 20px;
}

.section-card-icon {
  font-size: 34px;
  line-height: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-card-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-step-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--brand-gold);
  text-transform: uppercase;
}

.section-card-title {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
}

.section-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.section-subtotal-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 8px 14px;
  flex-shrink: 0;
}

.section-subtotal-chip .subtotal-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-subtotal-chip .subtotal-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-gold);
  margin-top: 2px;
}

/* ==========================================================================
   CONTROLS & INTERACTIVE MODULES
   ========================================================================== */
.section-card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px 22px;
  box-sizing: border-box;
}

.ctrl-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ctrl-label-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ctrl-label-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Stepper Component ([- 10 +]) */
.stepper-interactive-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.big-stepper-control {
  display: inline-flex;
  align-items: center;
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 4px;
  gap: 6px;
  width: fit-content;
  box-sizing: border-box;
}

.big-stepper-control.small-stepper {
  padding: 2px;
  gap: 4px;
}

.stepper-btn {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.big-stepper-control.small-stepper .stepper-btn {
  width: 34px;
  height: 34px;
  font-size: 16px;
  border-radius: 8px;
}

.stepper-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  color: var(--brand-gold);
}

.stepper-val-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.stepper-num-input {
  width: 58px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  outline: none;
  font-family: inherit;
  -moz-appearance: textfield;
}

.stepper-num-input::-webkit-outer-spin-button,
.stepper-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-unit-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Quick preset buttons [5, 10, 20, 50, 100] */
.quick-preset-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.preset-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}

.preset-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* Included Feature Banner */
.included-feature-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--accent-green);
  line-height: 1.45;
}

.included-feature-banner p {
  margin: 6px 0 0;
  color: #E2E8F0;
  font-size: 12.5px;
  line-height: 1.4;
}

.included-feature-banner strong {
  display: block;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Toggle Card Row (Modules like Shep Connect, Posts Sociais, etc.) */
.toggle-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.toggle-card-row:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.toggle-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.toggle-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toggle-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.toggle-card-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Modern iOS / macOS style Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--brand-gold);
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(22px);
  background-color: #080C14;
}

/* Feature badges and pills */
.pill-badge-free {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill-badge-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.pill-badge-soon {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.pill-price-tag {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.feat-badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.feat-badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.feat-badge-gray {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   STORAGE PRESETS (Step 2: Armazenamento Marmelo Drive)
   ========================================================================== */
.storage-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.storage-preset-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.storage-preset-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.storage-preset-card.active {
  background: rgba(245, 158, 11, 0.14);
  border-color: var(--brand-gold);
  box-shadow: 0 0 18px var(--brand-glow);
}

.storage-gb-tag {
  font-size: 16.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.storage-cost-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.storage-preset-card.active .storage-cost-tag {
  color: var(--brand-gold);
}

/* ==========================================================================
   AI TIERS (Step 3: Inteligência Artificial Marmelo IA)
   ========================================================================== */
.ai-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.ai-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-tier-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.ai-tier-card.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--brand-gold);
  box-shadow: 0 0 16px var(--brand-glow);
}

.ai-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.ai-tier-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-gold);
}

.ai-tier-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   PERÍCIA JUSTA & PROTEÇÃO (Step 5)
   ========================================================================== */
.pericia-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.pericia-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pericia-chip.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: #FFFFFF;
  font-weight: 600;
}

.pericia-waitlist-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pericia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.substepper-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 10px;
}

.animated-slide-down {
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CERTIFICADO DIGITAL ICP-BRASIL & FAMÍLIA (Step 3 & Step 1)
   ========================================================================== */
.cert-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-tab-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cert-type-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.btn-cert-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cert-tab.active {
  background: var(--brand-gold);
  color: #080C14;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-cert-optout {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cert-optout:hover,
.btn-cert-optout.active {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #F87171;
}

.cert-upfront-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #FBBF24;
  line-height: 1.45;
}

.cert-upfront-callout .callout-ico {
  font-size: 16px;
  flex-shrink: 0;
}

.cert-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.cert-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cert-card.selected {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 1px var(--brand-gold), 0 8px 24px rgba(245, 158, 11, 0.15);
}

.cert-tag {
  position: absolute;
  top: -9px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cert-tag-popular {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #080C14;
}

.cert-tag-economy {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
}

.cert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cert-model-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.cert-card-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #080C14;
  transition: all 0.2s ease;
}

.cert-card.selected .cert-card-check {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}

.cert-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.cert-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 16px 0;
  flex: 1;
}

.cert-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-price-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-price {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
}

.cert-billing-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.btn-cert-select {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cert-select.selected {
  background: var(--brand-gold);
  color: #080C14;
  border-color: var(--brand-gold);
}

.cert-features-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.cert-feat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.cert-feat-box p {
  margin: 4px 0 0 0;
}

.family-perks-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.footer-cert-note {
  font-size: 11px;
  color: var(--brand-gold);
  display: block;
}

/* ==========================================================================
   STEP 6: REVISÃO & CHECKOUT APPMAX
   ========================================================================== */
.review-step-card {
  gap: 22px;
}

.user-account-badge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
}

.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #080C14;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-details-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-badge-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-name-line {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.user-email-line {
  font-size: 12px;
  color: var(--text-muted);
}

.user-company-tag {
  font-size: 11px;
  color: var(--brand-gold);
  font-weight: 600;
}

/* Billing Toggle (Mensal vs Anual -20%) */
.billing-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.billing-toggle-pills {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.btn-billing-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-billing-pill.active {
  background: var(--brand-gradient);
  color: #080C14;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.discount-pill-green {
  background: var(--accent-green);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}

.annual-savings-callout {
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
}

/* Section Breakdown Invoice Table */
.review-sections-breakdown {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.breakdown-headline {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.section-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breakdown-sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
}

.sec-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-weight: 600;
}

.sec-row-left div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sec-row-left small {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 400;
}

.sec-icon {
  font-size: 16px;
}

.sec-row-price {
  font-weight: 700;
  color: var(--brand-gold);
}

.grand-total-highlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 2px solid rgba(245, 158, 11, 0.4);
}

.total-label-box {
  display: flex;
  flex-direction: column;
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.total-super {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.total-billing-note {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.total-period-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.total-number-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.total-big-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-gold);
  letter-spacing: -0.5px;
}

/* Free Plan Active Callout Box */
.free-plan-callout-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.free-plan-icon {
  font-size: 38px;
  flex-shrink: 0;
  line-height: 1;
}

.free-plan-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #34D399;
  margin: 0 0 8px 0;
}

.free-plan-text p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.footer-free-badge {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 600;
  margin-left: 4px;
}

/* AppMax Direct Payment Box */
.appmax-payment-box {
  background: rgba(14, 21, 37, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.appmax-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.appmax-badge-secure {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-brand-logos {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  padding: 3px 8px;
  border-radius: 6px;
  color: #E2E8F0;
}

.card-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-form-field.col-12 { grid-column: span 12; }
.card-form-field.col-6 { grid-column: span 6; }
.card-form-field.col-4 { grid-column: span 4; }

.card-form-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.field-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  pointer-events: none;
  opacity: 0.7;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.card-form-field input:not([class*="with-icon"]) {
  width: 100%;
  padding: 12px 14px;
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.input-with-icon input:focus,
.card-form-field input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.appmax-security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-submit-upgrade-final {
  width: 100%;
  padding: 16px 24px;
  background: var(--brand-gradient);
  border: none;
  border-radius: 12px;
  color: #080C14;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn-submit-upgrade-final:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.btn-submit-upgrade-final:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   WIZARD FOOTER BAR (Sticky Running Total & Navigation)
   ========================================================================== */
.wizard-footer-bar {
  position: sticky;
  bottom: -32px;
  margin: 10px -32px -32px -32px;
  background: #090E1A;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 10;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.footer-running-quote {
  display: flex;
  flex-direction: column;
}

.quote-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.quote-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-gold);
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.5px;
}

.quote-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

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

.btn-wizard-back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-wizard-back:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-wizard-next {
  background: var(--brand-gradient);
  border: none;
  color: #080C14;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-wizard-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   BENTO GRID VIEW (All Sections View)
   ========================================================================== */
.all-sections-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.all-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.bento-section-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-section-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.bento-icon {
  font-size: 26px;
}

.bento-meta h4 {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.bento-meta p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.bento-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.bento-subtotal-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bento-subtotal-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-gold);
}

.grid-finalize-callout {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.btn-finalize-wizard {
  background: var(--brand-gradient);
  border: none;
  color: #080C14;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-finalize-wizard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   STATUS & SUCCESS STATES
   ========================================================================== */
.wizard-status-box {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

.wizard-status-box.status-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

.wizard-status-box.status-loading {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--brand-gold);
}

.success-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 30px 20px;
}

.success-trophy {
  font-size: 54px;
  animation: pulse-glow 1.5s infinite alternate;
}

.appmax-receipt-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--accent-green);
  font-size: 13px;
  line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .modal-dialog-calculator {
    padding: 20px 16px !important;
    width: 98% !important;
  }
  
  .wizard-top-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .wizard-mode-pills,
  .wizard-view-pills {
    justify-content: center;
  }
  
  .section-card-head {
    flex-direction: column;
  }
  
  .section-subtotal-chip {
    align-items: flex-start;
  }
  
  .card-form-field.col-6,
  .card-form-field.col-4 {
    grid-column: span 12;
  }
  
  .wizard-footer-bar {
    margin: 10px -16px -20px -16px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .footer-running-quote {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .footer-nav-actions {
    justify-content: space-between;
  }
  
  .btn-wizard-next {
    flex: 1;
    justify-content: center;
  }
}
