/*
  ============================================================
  BOY PRATAS — STANLEY CUP CUSTOMIZER STYLESHEET
  Premium Dark Mode & Game-Style UX
  Versão 9.0 — Hatolie Font, WA Integration & Glassmorphism Footer
  ============================================================
*/

/* 1. VARIÁVEIS DE DESIGN SYSTEM (AetherFlow Gold & Purple Palette) */
:root {
  --bg-deep:        #06040d;   /* Fundo Roxo Escuro Matriz */
  --bg-surface:     #0d0a17;   /* Painéis Roxo Escuro */
  
  /* Paleta Prata / Platinum Chrome (Boy Pratas Official) */
  --accent:         #f1f5f9;   /* Prata / Platinum Brilhante */
  --accent-hover:   #cbd5e1;   /* Prata Médio */
  --accent-glow:    rgba(241, 245, 249, 0.35);
  
  --text-main:      #f8fafc;   /* Texto principal */
  --text-muted:     rgba(248, 250, 252, 0.65);   /* Texto secundário */
  --text-dark:      #0f172a;   
  
  --border-light:   rgba(255, 255, 255, 0.08);
  --border-active:  rgba(241, 245, 249, 0.5);
  
  --font-main:      'Montserrat', sans-serif;
  --transition:     all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-lg:      20px;
  --radius-md:      10px;
  --radius-sm:      4px;
}

/* 2. RESET E AMBIENTE GERAL */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at 50% 30%, #0f172a 0%, #0b132b 55%, #030712 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Efeitos de Glow no Fundo (Brilhos azulados e ciano para o Tema Dia dos Pais) */
.ambient-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
}

.bg-glow-left {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
  top: 35%;
  left: 25%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  width: 800px;
  height: 800px;
}

.bg-glow-right {
  background: radial-gradient(circle, rgba(30, 58, 138, 0.35) 0%, transparent 70%);
  top: 65%;
  left: 75%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  width: 750px;
  height: 750px;
}

/* 3. HEADER & LOGO CENTRALIZADO COM FONTE LOCAL 'HATOLIE' */
.app-header {
  position: relative;
  z-index: 10;
  padding: 30px 24px 10px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.logo-hatolie {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Hatolie', 'hatolie', var(--font-main); /* Queda suave para Montserrat caso não carregada */
  text-transform: lowercase;
  line-height: 0.95;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.logo-hatolie:hover {
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.45));
  transform: scale(1.02);
}

.logo-top {
  font-size: 38px;
  font-weight: 600;
  color: #f8fafc; /* Prata Polido */
  letter-spacing: 4px;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4), 0 0 30px rgba(226, 232, 240, 0.3);
}

.logo-middle {
  font-size: 30px;
  font-weight: 400;
  color: #e2e8f0; /* Prata Metallic */
  letter-spacing: 5px;
  margin-top: -6px; /* Traz os nomes mais perto */
}

.logo-bottom {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 3px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 4px;
  padding-top: 4px;
}

.logo-extra {
  font-family: 'Gabriola', 'Georgia', serif;
  font-size: 25px;
  font-weight: bold;
  color: #e2e8f0; /* Prata */
  letter-spacing: 3px;
  text-transform: none;
  margin-top: -2px; /* Ajuste fino de puxada por conta do formato da fonte */
  line-height: 1;
}

/* 4. CONTAINER PRINCIPAL: GLOBO GLASS ULTRA TRANSLÚCIDO E BRILHANTE */
.main-glass-window {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 58, 138, 0.25) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(56, 189, 248, 0.3); 
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95),
              inset 0 1.5px 1.5px rgba(56, 189, 248, 0.3),
              0 0 40px rgba(14, 165, 233, 0.15);
  padding: 40px;
  max-width: 1200px;
  width: 92%;
  margin: 20px auto;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: var(--transition);
}

.main-glass-window:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 45px 110px rgba(0, 0, 0, 0.95),
              inset 0 1.5px 2px rgba(56, 189, 248, 0.4),
              0 0 50px rgba(14, 165, 233, 0.25);
}

/* Barra de Progresso no topo do Glass */
.window-progress-bar {
  display: flex;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 32px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  max-width: 100%;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.35;
  transition: var(--transition);
  cursor: pointer;
}

.step-dot.active {
  opacity: 1;
}

.step-dot.completed {
  opacity: 0.85;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.step-dot.active .step-num {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 0 15px var(--accent-glow);
}

.step-dot.completed .step-num {
  border-color: var(--accent);
  background-color: transparent;
  color: var(--accent);
}

.step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.step-line {
  width: 50px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Layout Centralizado */
.window-workspace {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  position: relative;
  min-height: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: visible;
}

/* Painel de Visualização com Moldura Prata Simples */
.preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
  border: 1px solid rgba(226, 232, 240, 0.2); /* Moldura prata simples como pedido */
  border-radius: var(--radius-lg);
  padding: 16px;
  width: 100%;
  max-width: 760px; /* Aumentado na horizontal */
  min-height: 480px; /* Aumentado de 400px para acomodar o copo maior */
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.cup-canvas-container {
  display: block; /* De flex para block para evitar colapsos */
  width: 100%;
  height: 440px; /* Aumentado na vertical */
  position: relative;
  cursor: grab;
  background: radial-gradient(circle at 50% 35%, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.75) 60%, rgba(3, 7, 18, 0.95) 100%);
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.fathers-day-watermark-bg {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.18;
  user-select: none;
}

.fd-wm-text {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #38bdf8;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.fd-wm-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
}

.cup-canvas-container:active {
  cursor: grabbing;
}

.cup-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

.preview-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
  pointer-events: none;
  background: rgba(10, 10, 12, 0.6);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

/* Setas flutuantes nas bordas */
.edge-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  background: rgba(10, 10, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.edge-nav-arrow.left {
  left: 20px;
}

.edge-nav-arrow.right {
  right: 20px;
}

.edge-nav-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.edge-nav-arrow:disabled {
  opacity: 0.12;
  cursor: not-allowed;
  border-color: transparent;
  background: transparent;
}

/* Ações de Zoom flutuantes e opacas no lado esquerdo da moldura */
.floating-left-zoom {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  z-index: 10;
  background: rgba(10, 10, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 20px;
  opacity: 0.3; /* Mais opaco como pedido */
  transition: opacity 0.3s, background-color 0.3s;
}

.floating-left-zoom:hover {
  opacity: 0.85; /* Mais visível no hover */
  background: rgba(10, 10, 12, 0.8);
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.1);
}

.center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Painel de Controle (Fica abaixo do copo, compacto) */
.controls-panel {
  width: 100%;
  max-width: 660px; /* Alinhado com a moldura */
  background: rgba(10, 10, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.game-control-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.nav-arrow {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-arrow:hover:not(:disabled) {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav-arrow:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

.step-title-display {
  text-align: center;
}

.step-number-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

#step-heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Viewport de Passos */
.step-content-viewport {
  flex: 1;
  margin-bottom: 24px;
}

.step-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

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

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

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

/* 7. ELEMENTOS INTERATIVOS */

/* Grid de Modelos (Glassmorphism Cards) */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.option-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.option-card.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.option-card.active::before {
  transform: scaleX(1);
}

.option-card-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.option-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.option-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  height: 30px;
  overflow: hidden;
}

.option-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

/* Swatches de Cores (Bolinhas Coloridas) */
.color-palette-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
}

.color-dot-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.color-dot-circle:hover {
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.color-dot-circle.active {
  transform: scale(1.15);
  border-color: var(--accent); /* Dourado */
  box-shadow: 0 0 15px var(--accent-glow);
}

.color-dot-circle.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 14px;
}

.color-dot-circle[data-color="white"].active::after {
  color: #111;
}

.color-dot-circle[data-color="black"].active::after {
  color: #fff;
}

.color-dot-circle[data-color="blue"].active::after,
.color-dot-circle[data-color="green"].active::after,
.color-dot-circle[data-color="pink"].active::after,
.color-dot-circle[data-color="yellow"].active::after {
  color: #fff;
}

/* 8. SISTEMA DE GRAVAÇÕES EM SLOTS MULTIPLOS (Grid 2x2) */
.slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.slots-container::-webkit-scrollbar {
  width: 4px;
}

.slots-container::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 2px;
}

.slot-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: var(--transition);
}

.slot-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.slot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.slot-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slot-type-select {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  transition: var(--transition);
}

.slot-type-select:focus {
  border-color: var(--accent);
}

.slot-card-body {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  gap: 8px;
}

/* Formulários Gerais */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Seletor de Fontes */
.fonts-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.font-option {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.font-option:hover {
  background: rgba(255, 255, 255, 0.03);
}

.font-option.active {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.font-opt-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.font-opt-preview {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.font-option.active .font-opt-preview {
  color: var(--accent);
}

/* Sliders */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-hover);
  box-shadow: 0 0 15px var(--accent-glow);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

/* Rodapé de Controles */
.control-footer {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  width: 100%;
  max-width: 320px; /* Alinhado com a largura das bolinhas de cores */
  margin-left: auto;
  margin-right: auto;
}

.btn {
  font-family: var(--font-main);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b8860b 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2),
              inset 0 1px 1px rgba(255, 255, 255, 0.35);
  flex: 2;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-30deg);
  transition: 0.75s;
  pointer-events: none;
}

.btn-primary:hover:not(:disabled)::after {
  left: 125%;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fff080 0%, #ffd700 50%, #d4af37 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-1.5px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  flex: 1;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-block {
  width: 100%;
}

/* 10. MODAL DE CHECKOUT GLASS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.card-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.95), 
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.25),
              0 0 25px rgba(255, 255, 255, 0.03);
  padding: 40px;
}

.modal-card {
  max-width: 900px;
  width: 90%;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.modal-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 32px;
}

/* Resumo do Modal */
.order-summary-section {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 32px;
}

.order-summary-section h3, .checkout-form-section h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: var(--accent);
}

.summary-preview-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: 220px;
  margin-bottom: 20px;
  overflow: hidden;
}

.summary-preview-box canvas {
  max-height: 200px;
  width: auto;
}

.summary-details-list {
  list-style: none;
  margin-bottom: 24px;
}

.summary-details-list li {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.detail-label {
  color: var(--text-muted);
}

.detail-val {
  font-weight: 700;
}

.summary-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.summary-price-box span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.price-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

/* Formulário do modal */
.form-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Sucesso modal */
.success-card {
  max-width: 500px;
  text-align: center;
  padding: 40px;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 2px solid #16a34a;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.25);
}

.success-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.success-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.receipt-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.receipt-box h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.receipt-row strong {
  color: var(--text-muted);
}

.receipt-info-note {
  font-size: 11px !important;
  font-style: italic;
  margin-bottom: 24px !important;
}

/* 11. FOOTER DE CREDIBILIDADE (INSTAGRAM & DIFERENCIAIS) */
.app-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px 24px 20px 24px;
  margin-top: 60px;
  position: relative;
  z-index: 5;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h4 {
  font-family: 'Hatolie', 'hatolie', var(--font-main);
  font-size: 26px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: lowercase;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.footer-info h5, .footer-social h5 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-info ul li {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  border-radius: 30px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.instagram-link:hover {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-1.5px);
}

.footer-copyright {
  max-width: 1200px;
  margin: 32px auto 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .window-workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .preview-panel {
    max-width: 100%;
    min-height: auto;
  }

  .cup-canvas-container {
    position: relative;
    height: 320px;
    width: 100%;
    z-index: 1;
  }

  .edge-nav-arrow {
    position: absolute;
    top: 180px;
    height: 44px;
    width: 44px;
    z-index: 12;
  }

  .edge-nav-arrow.left {
    left: 10px;
  }

  .edge-nav-arrow.right {
    right: 10px;
  }

  .floating-left-zoom {
    left: 12px;
    bottom: 12px;
    top: auto;
    transform: none;
    flex-direction: row;
    padding: 4px;
  }

  .controls-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
  }

  .slots-container {
    grid-template-columns: 1fr;
  }

  .color-palette-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .main-glass-window {
    padding: 24px;
    margin: 15px auto;
    width: 95%;
  }

  .preview-panel {
    padding: 24px;
    min-height: 440px;
  }
  
  .step-indicator {
    justify-content: flex-start;
    padding-bottom: 8px;
  }
  
  .step-indicator::-webkit-scrollbar {
    height: 3px;
  }
  
  .step-indicator::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 2px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .order-summary-section {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .color-palette-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .fonts-selector-grid {
    grid-template-columns: 1fr;
  }
  
  .icons-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* classes auxiliares */
.hidden {
  display: none !important;
}

/* 13. TELA DE BOAS VINDAS (WELCOME SCREEN) */
.welcome-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #110e1c 0%, #05040a 100%);
  z-index: 200; /* Acima de tudo */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 40px 24px;
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 1;
  pointer-events: all;
}

.welcome-screen-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

/* BRAND LOGO LOBBY */
.lobby-header {
  margin-bottom: 25px;
  text-align: center;
}

.lobby-logo-box {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.04), inset 0 0 15px rgba(255,255,255,0.01) !important;
  padding: 24px 40px !important;
  border-radius: 14px;
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lobby-title {
  font-size: 25px;
  color: #ffffff;
  margin: 10px 0 25px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  font-family: 'Gabriola', 'Georgia', serif;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* THREE GLASS CARDS */
.lobby-cards-container {
  display: flex;
  gap: 24px;
  max-width: 960px;
  width: 100%;
  justify-content: center;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.lobby-card {
  width: 300px;
  padding: 35px 24px;
  text-align: center;
  cursor: pointer;
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.lobby-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  z-index: 0;
}

.lobby-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.lobby-card-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 12px;
  z-index: 1;
}

.lobby-card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  z-index: 1;
}

.lobby-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(255, 179, 0, 0.12);
  border-color: rgba(255, 179, 0, 0.3);
}

.lobby-card-locked {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.03);
}

.lobby-card-locked:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.03);
}

.lobby-card-badge {
  font-size: 9px;
  background: var(--accent);
  color: #000;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  z-index: 1;
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.4);
}

/* GOOGLE REVIEWS SECTION */
.lobby-reviews-section {
  width: 100%;
  max-width: 1050px;
  margin-bottom: 45px;
}

.lobby-reviews-title {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.lobby-reviews-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  width: 100%;
  scroll-behavior: smooth;
}

.lobby-reviews-container::-webkit-scrollbar {
  height: 6px;
}

.lobby-reviews-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.lobby-reviews-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.lobby-reviews-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.review-card {
  min-width: 290px;
  width: 290px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, border-color 0.3s;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.review-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.review-stars {
  color: #ffb300;
  font-size: 11px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255, 179, 0, 0.5);
}

.review-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* LOBBY FOOTER */
.lobby-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 35px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-info {
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.8;
  max-width: 700px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
  cursor: pointer;
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* --- TEMA DIA DOS PAIS: GRAVATAS AZUIS & PROMOÇÃO --- */
.fathers-day-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(30, 58, 138, 0.4));
  border: 1px solid rgba(56, 189, 248, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 6px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  margin-bottom: 12px;
  animation: pulseGlow 2.5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); transform: scale(1); }
  100% { box-shadow: 0 0 22px rgba(56, 189, 248, 0.6); transform: scale(1.02); }
}

.old-price-strike {
  color: #ef4444 !important;
  text-decoration: line-through;
  font-size: 1.1rem;
  font-weight: 800;
  opacity: 0.85;
}

.red-x-badge {
  color: #ef4444 !important;
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 2px;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
}

.promo-price-main {
  color: #ffb300 !important;
  font-size: 1.6rem;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 179, 0, 0.4);
}

/* Marca d'água posicionada abaixo do bloco de modelos */
.fathers-day-watermark-vertical {
  width: 100%;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.fathers-day-watermark-vertical .wm-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 14px;
  color: #94a3b8;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(148, 163, 184, 0.3);
}

.fathers-day-watermark-vertical .wm-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #38bdf8;
  text-transform: uppercase;
}
