/* ── Dynamic Accent Color System ── */
:root {
  --dynamic-accent: #030213;
  --dynamic-accent-hover: #1a1829;
  --dynamic-accent-glow: rgba(3, 2, 19, 0.15);
}

/* Dynamic Accent Overrides across the page */
.bg-\[\#030213\] {
  background-color: var(--dynamic-accent) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.peer-checked\:border-\[\#030213\] {
  border-color: var(--dynamic-accent) !important;
}
.peer-checked\:ring-\[\#030213\] {
  --tw-ring-color: var(--dynamic-accent) !important;
}

/* Inputs focus highlights */
input:focus, select:focus {
  border-color: var(--dynamic-accent) !important;
  box-shadow: 0 0 0 2px var(--dynamic-accent-glow) !important;
}

/* Checkout Button follows accent theme when not disabled */
#btn-checkout:not([disabled]) {
  background-color: var(--dynamic-accent) !important;
  box-shadow: 0 10px 25px var(--dynamic-accent-glow) !important;
}
/* ── Tema: Liquid Glass (macOS Sonoma Light Glassmorphism) ── */
.theme-liquid-glass {
  background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 45%), 
              radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 45%), 
              #f4f4f7 !important;
  color: #0a0a0f !important;
}

/* Configura os blobs de fundo como elemento fixo entre o body e os cards */
.theme-liquid-glass .liquid-bg-blob {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  opacity: 0.65 !important;
}

/* Garante que o conteúdo do checkout flutue acima dos blobs */
.theme-liquid-glass header,
.theme-liquid-glass footer,
.theme-liquid-glass .max-w-\[1400px\],
.theme-liquid-glass #checkout-grid,
.theme-liquid-glass #faceted-timeline {
  position: relative !important;
  z-index: 10 !important;
}

/* Cards em Vidro Claro macOS Sonoma (Alta Refração e Blur Profundo) */
.theme-liquid-glass .bg-white {
  background-color: rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  border-radius: 16px !important;
}

.theme-liquid-glass header {
  background-color: rgba(255, 255, 255, 0.65) !important;
  border-bottom-color: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01) !important;
}

/* Badges e Botões Primários com Aspecto de Vidro Líquido / Gel Brilhante macOS */
.theme-liquid-glass .bg-\[\#030213\],
.theme-liquid-glass #btn-checkout:not([disabled]) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%), var(--dynamic-accent) !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28) !important;
  box-shadow: 0 8px 20px var(--dynamic-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.theme-liquid-glass button.bg-\[\#030213\]:hover,
.theme-liquid-glass #btn-checkout:not([disabled]):hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%), var(--dynamic-accent) !important;
  box-shadow: 0 10px 24px var(--dynamic-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
}
.theme-liquid-glass button.bg-\[\#030213\]:active,
.theme-liquid-glass #btn-checkout:not([disabled]):active {
  background: var(--dynamic-accent) !important;
  box-shadow: 0 4px 10px var(--dynamic-accent-glow) !important;
  transform: translateY(0) !important;
}

/* Botões Secundários Frosted / Vidro Fosco */
.theme-liquid-glass .bg-\[\#f3f3f5\],
.theme-liquid-glass .bg-\[\#ececf0\],
.theme-liquid-glass button.bg-white {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: #0c0b14 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.theme-liquid-glass .bg-\[\#f3f3f5\]:hover,
.theme-liquid-glass .bg-\[\#ececf0\]:hover,
.theme-liquid-glass button.bg-white:hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Rádios e Inputs com Cavidade em Vidro */
.theme-liquid-glass input[type="text"],
.theme-liquid-glass input[type="tel"],
.theme-liquid-glass input[type="email"],
.theme-liquid-glass select {
  background-color: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  border-radius: 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.theme-liquid-glass input:focus,
.theme-liquid-glass select:focus {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-color: var(--dynamic-accent) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02), 0 0 0 3px var(--dynamic-accent-glow) !important;
}

/* Cards Selecionáveis (Shipping/Payment) com Borda de Vidro e Glow Dinâmico */
.theme-liquid-glass .group .border {
  background-color: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.theme-liquid-glass .peer-checked\:border-\[\#030213\] {
  border-color: var(--dynamic-accent) !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02), inset 0 0 0 1px var(--dynamic-accent) !important;
}

/* ── Painel de Controle (Dock) Transmutado em Vidro Claro macOS ── */
.theme-liquid-glass #unified-dock {
  background-color: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #0c0b14 !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
}
.theme-liquid-glass #unified-dock span {
  color: rgba(12, 11, 20, 0.75) !important;
}
.theme-liquid-glass #unified-dock .text-white\/35 {
  color: rgba(0, 0, 0, 0.4) !important;
}
.theme-liquid-glass #unified-dock svg {
  stroke: rgba(12, 11, 20, 0.55) !important;
}
.theme-liquid-glass #unified-dock .state-btn {
  color: rgba(12, 11, 20, 0.6) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}
.theme-liquid-glass #unified-dock .state-btn:hover {
  color: rgba(12, 11, 20, 0.9) !important;
  background: rgba(0, 0, 0, 0.08) !important;
}
.theme-liquid-glass #unified-dock .active-state {
  background: #ffffff !important;
  color: #0c0b14 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
.theme-liquid-glass #unified-dock #state-select {
  background-color: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0c0b14 !important;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%228%22%20height%3D%225%22%20viewBox%3D%220%200%2010%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201L5%205L9%201%22%20stroke%3D%22rgba(0,0,0,0.6)%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E') !important;
}
.theme-liquid-glass #unified-dock .border-white\/\[0\.06\] {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ── Tema: Cyber Neon (Cyberpunk Glow & High-Contrast Dark Mode) ── */
.theme-neon {
  background: radial-gradient(circle at 10% 20%, rgba(115, 3, 192, 0.12) 0%, transparent 45%), 
              radial-gradient(circle at 90% 80%, rgba(236, 0, 140, 0.08) 0%, transparent 45%), 
              #030206 !important;
  color: #e2e8f0 !important;
}

/* Configura os blobs de fundo para brilharem forte no modo Neon */
.theme-neon .liquid-bg-blob {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  opacity: 0.75 !important;
  filter: saturate(1.8) blur(30px) !important;
}

/* Garante que o conteúdo flutue acima dos blobs */
.theme-neon header,
.theme-neon footer,
.theme-neon .max-w-\[1400px\],
.theme-neon #checkout-grid,
.theme-neon #faceted-timeline {
  position: relative !important;
  z-index: 10 !important;
}

/* Cards em Vidro Escuro Cyber Neon com Borda Neon e Sombra Profunda */
.theme-neon .bg-white {
  background-color: rgba(10, 8, 18, 0.78) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  border-radius: 16px !important;
}

.theme-neon header {
  background-color: rgba(6, 5, 10, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

.theme-neon header h1,
.theme-neon header div {
  color: #ffffff !important;
}

/* Badges e Botões Primários com Efeito Super Glow Neon */
.theme-neon .bg-\[\#030213\],
.theme-neon #btn-checkout:not([disabled]) {
  background: var(--dynamic-accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--dynamic-accent) !important;
  box-shadow: 0 0 15px var(--dynamic-accent-glow), 0 0 30px rgba(var(--dynamic-accent-glow), 0.2) !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.theme-neon button.bg-\[\#030213\]:hover,
.theme-neon #btn-checkout:not([disabled]):hover {
  box-shadow: 0 0 25px var(--dynamic-accent), 0 0 50px var(--dynamic-accent-glow) !important;
  transform: translateY(-1px) !important;
}
.theme-neon button.bg-\[\#030213\]:active,
.theme-neon #btn-checkout:not([disabled]):active {
  box-shadow: 0 0 10px var(--dynamic-accent) !important;
  transform: translateY(0) !important;
}

/* Botões Secundários Neon Escuros */
.theme-neon .bg-\[\#f3f3f5\],
.theme-neon .bg-\[\#ececf0\],
.theme-neon button.bg-white {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.theme-neon .bg-\[\#f3f3f5\]:hover,
.theme-neon .bg-\[\#ececf0\]:hover,
.theme-neon button.bg-white:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Rádios e Inputs Estilo Cyber Slot */
.theme-neon input[type="text"],
.theme-neon input[type="tel"],
.theme-neon input[type="email"],
.theme-neon select {
  background-color: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6) !important;
  border-radius: 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.theme-neon input:focus,
.theme-neon select:focus {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border-color: var(--dynamic-accent) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 12px var(--dynamic-accent-glow) !important;
}

/* Cards Selecionáveis com Borda de Neon que Acende */
.theme-neon .group .border {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.theme-neon .peer-checked\:border-\[\#030213\] {
  border-color: var(--dynamic-accent) !important;
  background-color: rgba(var(--dynamic-accent-glow), 0.08) !important;
  box-shadow: 0 0 15px var(--dynamic-accent-glow), inset 0 0 0 1px var(--dynamic-accent) !important;
}

.theme-neon .peer-checked\:border-\[\#030213\] p,
.theme-neon .peer-checked\:border-\[\#030213\] span {
  color: #ffffff !important;
}

/* Ajustes Gerais de Tipografia para Contraste */
.theme-neon h2,
.theme-neon h3,
.theme-neon p.font-medium,
.theme-neon span.font-semibold {
  color: #ffffff !important;
}
.theme-neon .text-\[\#717182\],
.theme-neon .text-\[\#0a0a0f\] {
  color: #94a3b8 !important;
}
.theme-neon .border-black\/10,
.theme-neon .border-t,
.theme-neon .border-b {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ── Painel de Controle (Dock) Estilo Cyberpunk Terminal ── */
.theme-neon #unified-dock {
  background-color: rgba(10, 8, 20, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 20px rgba(139, 92, 246, 0.1) !important;
}
.theme-neon #unified-dock span {
  color: rgba(255, 255, 255, 0.9) !important;
}
.theme-neon #unified-dock .text-white\/35 {
  color: rgba(255, 255, 255, 0.35) !important;
}
.theme-neon #unified-dock svg {
  stroke: rgba(255, 255, 255, 0.6) !important;
}
.theme-neon #unified-dock .state-btn {
  color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
.theme-neon #unified-dock .state-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.theme-neon #unified-dock .active-state {
  background: var(--dynamic-accent) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px var(--dynamic-accent) !important;
  font-weight: 700 !important;
}
.theme-neon #unified-dock #state-select {
  background-color: rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}
.theme-neon #unified-dock .border-white\/\[0\.06\] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:translateY(0) } }
@keyframes pop     { 0%{transform:scale(.7);opacity:0} 70%{transform:scale(1.08)} 100%{transform:scale(1);opacity:1} }
.anim-fade   { animation: fadeIn  .35s ease both }
.anim-slide  { animation: slideUp .45s ease both }
.anim-pop    { animation: pop     .5s  cubic-bezier(.34,1.56,.64,1) both }

/* Estilos do Toast Notification */
@keyframes toastIn {
  from { transform: translateY(-1rem) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(-0.5rem) scale(0.95); opacity: 0; }
}
@keyframes progressShrink {
  from { width: 100%; }
  to { width: 0%; }
}
.animate-toast-in { animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.animate-toast-out { animation: toastOut 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.animate-toast-progress { animation: progressShrink linear forwards; }

/* ── Segmented Control & Dock Styles ── */
.state-btn {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.state-btn:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
}
.state-btn:active {
  transform: scale(0.97);
}
.active-state {
  background: rgba(255,255,255,0.95) !important;
  color: #0c0b14 !important;
  font-weight: 600 !important;
  border-color: transparent !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15) !important;
}
#state-select {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#state-select:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
