/* Custom Color Palette */
:root {
    --dark-brown: #3B2E2A;
    --gold: #C5A059;
    --gold-dark: #B08F4A;
    --light-beige: #F5E6D3;
    --white: #FFFFFF;
}

/* Custom Tailwind Classes */
.bg-dark-brown {
    background-color: var(--dark-brown);
}

.bg-gold {
    background-color: var(--gold);
}

.bg-gold-dark {
    background-color: var(--gold-dark);
}

.bg-light-beige {
    background-color: var(--light-beige);
}

.text-dark-brown {
    color: var(--dark-brown);
}

.text-gold {
    color: var(--gold);
}

.text-light-beige {
    color: var(--light-beige);
}

/* Custom Button Styles */
.quiz-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.quiz-btn:hover::before {
    left: 100%;
}

/* Quiz Specific Styles */
.quiz-question {
    transition: all 0.3s ease-in-out;
}

.quiz-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(59, 46, 42, 0.15);
}

.quiz-option {
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.15);
}

.quiz-option input[type="radio"] {
    accent-color: var(--gold);
    transform: scale(1.2);
}

.quiz-option input[type="radio"]:checked + span {
    color: var(--gold);
    font-weight: 600;
}

.quiz-option:has(input[type="radio"]:checked) {
    border-color: var(--gold);
    background-color: rgba(197, 160, 89, 0.05);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Progress Bar Animation */

/* Animações para os gatilhos da página de sucesso */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(197, 160, 89, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(197, 160, 89, 0.8);
        transform: scale(1.02);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes para os gatilhos */
.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

/* Efeitos de hover para botões */
.btn-urgency {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-urgency:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.3);
}

/* Status inativo com efeito de destaque */
.status-inactive {
    transition: all 0.3s ease;
    cursor: pointer;
}

.status-inactive:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}



/* Notificação de escassez */
.scarcity-alert {
    background: linear-gradient(45deg, #fef2f2, #fee2e2);
    border: 2px solid #fecaca;
    animation: fade-in-up 0.5s ease-out;
}

/* Removido o efeito de entrada da página pois estava causando problemas de exibição */

body.loaded {
    opacity: 1;
}
.progress-bar {
    transition: width 0.5s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Shadows */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(59, 46, 42, 0.25);
}

/* Hover Effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Focus States for Accessibility */
.quiz-btn:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.quiz-option:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading State */
.quiz-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-beige);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Loading Page Specific Styles */
.loading-page {
    overflow-x: hidden;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation-delay: 0.4s;
    border-top-color: var(--gold-dark);
    border-width: 2.5px;
}

.spinner-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    animation-delay: 0.8s;
    border-top-color: var(--dark-brown);
    border-width: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.camarao-float {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.camarao-1 { top: 20%; left: 10%; }
.camarao-2 { top: 30%; right: 15%; }
.camarao-3 { bottom: 25%; left: 20%; }
.camarao-4 { bottom: 35%; right: 25%; }
.camarao-5 { top: 50%; left: 50%; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

.circle-float {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    opacity: 0.1;
    z-index: 1;
}

.circle-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 10%;
}

.circle-2 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 10%;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.2;
    }
}

/* Notification Styles */
.notification-item {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(59, 46, 42, 0.3);
}



/* Online Counter Styles */
.online-counter {
    background: linear-gradient(135deg, var(--light-beige) 0%, #f0e0c0 100%);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

/* Modal de Zoom Styles */
#galleryModal {
    /* Estado inicial - escondido */
    display: none;
    
    /* Posicionamento */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* Visual */
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
}

#galleryModal button {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

#galleryModal button:hover {
    transform: scale(1.1);
}

#galleryModal img {
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    max-height: 100%;
    cursor: default;
}

/* Review Image Styles */
.review-image-container {
    position: relative;
    overflow: hidden;
}

.review-image-container img {
    transition: transform 0.3s ease-in-out;
}

.review-image-container:hover img {
    transform: scale(1.05);
}

.expand-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.expand-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.expand-button svg,
.expand-button i {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Barra fixa mobile — cupom / checkout */
.mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: auto;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(59, 46, 42, 0.08);
    box-shadow: 0 -4px 24px rgba(59, 46, 42, 0.08);
    animation: mobileCtaSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-cta-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.mobile-cta-bar__summary {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.mobile-cta-bar__label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8a7a72;
    line-height: 1.2;
}

.mobile-cta-bar__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-brown);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mobile-cta-bar__hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.625rem;
    font-weight: 500;
    color: #a3948c;
    margin-top: 2px;
}

.mobile-cta-bar__hint i {
    font-size: 0.5625rem;
    color: var(--gold);
}

.mobile-cta-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-cta-bar__btn i {
    font-size: 1rem;
}

.mobile-cta-bar__btn:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
}

.mobile-cta-bar__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-cta-bar__btn--wide {
    min-width: 128px;
    padding: 0 20px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(59, 46, 42, 0.25);
}

.mobile-cta-bar__btn--wide span {
    display: inline !important;
}

.cupom-footer-mobile {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.cupom-main-mobile {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    .cupom-main-mobile {
        padding-bottom: 1.5rem;
    }
}

@keyframes mobileCtaSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 380px) {
    .mobile-cta-bar__btn span {
        display: none;
    }

    .mobile-cta-bar__btn {
        min-width: 48px;
        padding: 0 14px;
    }

    .mobile-cta-bar__btn i {
        font-size: 1.125rem;
    }
}

/* Loader PIX Overlay - Limpo e Simples */
.pix-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(59, 46, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.pix-loader-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.simple-loader {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(197, 160, 89, 0.3);
    border-top-color: #C5A059;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pix-loader-overlay.hidden {
    display: none;
}

/* Animações para Notificações */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.3s ease-out;
}

/* Modal PIX - Formato igual ao carrinho/index */
.pix-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; /* Prevenir scroll da página de trás no mobile */
}

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

/* Prevenir fechar ao clicar fora */
.pix-modal-overlay.active {
    pointer-events: auto;
}

.pix-modal-overlay.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 0;
}

.pix-modal {
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overscroll-behavior: contain; /* Prevenir scroll da página de trás */
    -webkit-overflow-scrolling: touch;
    border: none;
    outline: none;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pix-modal-header {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(197, 160, 89, 0.3);
    background: linear-gradient(135deg, #C5A059 0%, #B08F4A 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.pix-logo {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
}

.pix-timer {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
}

.pix-timer span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.pix-generating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.pix-generating-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.pix-generating.hide {
    display: none;
}

.pix-modal-body {
    padding: 16px;
}

.pix-code-container {
    background: #f8f9fa;
    border: 2px solid #C5A059;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    max-height: none;
    overflow: visible;
}

.pix-code-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #303030;
    word-break: break-all;
    line-height: 1.6;
    user-select: all;
    letter-spacing: 0.5px;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    width: 100%;
}

.pix-code-label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: #ffffff;
    color: #C5A059;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #C5A059;
}

/* Pix Loader */
.pix-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
    padding: 40px 20px;
}

.pix-loader.hide {
    display: none;
}

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

.pix-loader-logo {
    margin-bottom: 10px;
    animation: logoPulse 2s ease-in-out infinite;
}

.pix-loader-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(197, 160, 89, 0.3));
}

.pix-loader-spinner-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(197, 160, 89, 0.1);
    border-top: 4px solid #C5A059;
    border-right: 4px solid #C5A059;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    will-change: transform;
    position: relative;
}

.pix-loader-spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #B08F4A;
    animation: spin 0.8s linear infinite reverse;
}

.pix-loader-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.pix-loader-subtext {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-top: -5px;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Resumo do Pedido - Estilos Profissionais */
#orderbumps-summary {
    margin-top: 8px;
}

#orderbumps-summary .fa-check-circle {
    animation: checkmarkAppear 0.3s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#cupom-codigo {
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(197, 160, 89, 0.2);
}

#cupom-status {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Animações de Notificação */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.3s ease-out;
}

.pix-code-content {
    display: none;
    width: 100%;
    margin-top: 10px;
}

.pix-code-content.show {
    display: block;
}

.pix-loader.hide {
    display: none;
}

.pix-copy-btn-modal {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #C5A059 0%, #B08F4A 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.pix-copy-btn-modal:hover {
    background: linear-gradient(135deg, #B08F4A 0%, #C5A059 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.4);
}

.pix-copy-btn-modal:active {
    transform: scale(0.98);
}

.pix-copy-btn-modal.copied {
    background: #10b981;
}

.pix-instructions-modal {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.pix-instructions-modal strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.pix-steps {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pix-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
}

.pix-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #C5A059;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pix-step-text {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    flex: 1;
}

.pix-mobile-link {
    text-align: center;
    margin-top: 20px;
}

.pix-mobile-link a {
    color: #C5A059;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.pix-mobile-link a:hover {
    text-decoration: underline;
}

.pix-qr-modal {
    display: none;
    text-align: center;
    padding: 5px 0;
    margin-bottom: 8px;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
}

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

.pix-qr-title {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pix-qr-code-modal {
    background: #ffffff;
    border: 2px solid #C5A059;
    border-radius: 8px;
    padding: 8px;
    display: inline-block;
    text-align: center;
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.pix-qr-code-modal canvas {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 4px;
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
    min-width: 180px !important;
    min-height: 180px !important;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background: #ffffff;
}

.pix-purchase-value {
    display: none;
}

@media (max-width: 640px) {
    .pix-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    .pix-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .pix-code-text {
        font-size: 12px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animação de fade-in */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loader quando PIX aparece */
.pix-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* ===== FUNIL CHECKOUT — Steps ===== */
.funnel-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 0.5rem;
    margin-bottom: 1.5rem;
}

.funnel-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    max-width: 120px;
    position: relative;
}

.funnel-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: rgba(197, 160, 89, 0.25);
    z-index: 0;
}

.funnel-step.done:not(:last-child)::after,
.funnel-step.active:not(:last-child)::after {
    background: var(--gold);
}

.funnel-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    border: 2px solid rgba(197, 160, 89, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.funnel-step.active .funnel-step-circle {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

.funnel-step.done .funnel-step-circle {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.funnel-step-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(245, 230, 211, 0.6);
    text-align: center;
    line-height: 1.2;
}

.funnel-step.active .funnel-step-label,
.funnel-step.done .funnel-step-label {
    color: var(--light-beige);
}

/* ===== ORDER BUMPS — Cards ===== */
.orderbump-item {
    transition: all 0.2s ease;
    position: relative;
}

.orderbump-item:hover {
    border-color: var(--gold) !important;
}

.orderbump-item.selected {
    border-color: var(--gold) !important;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

.orderbump-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(197, 160, 89, 0.25);
}

@media (min-width: 768px) {
    .orderbump-thumb {
        width: 64px;
        height: 64px;
    }
}

.orderbump-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: linear-gradient(135deg, #D97706, #B45309);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* Checkout product hero */
.checkout-product-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.checkout-product-hero img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.checkout-product-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 46, 42, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

/* Tailwind custom gradient helpers */
.from-gold {
    --tw-gradient-from: var(--gold);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(197, 160, 89, 0));
}

.to-gold-dark {
    --tw-gradient-to: var(--gold-dark);
}

.border-gold {
    border-color: var(--gold);
}

.hover\:border-gold:hover {
    border-color: var(--gold);
}

.bg-gradient-to-r.from-gold.to-gold-dark {
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
}

/* Tipografia funil */
body.funnel-page {
    font-family: 'Poppins', sans-serif;
    background: #2f2522;
    -webkit-font-smoothing: antialiased;
}

body.funnel-page h1,
body.funnel-page h2,
body.funnel-page h3 {
    font-family: 'Playfair Display', serif;
}

/* ===== FUNIL — Shell moderno (app-like) ===== */
.funnel-header {
    background: #fff;
    border-bottom: 1px solid rgba(59, 46, 42, 0.08);
    box-shadow: none;
}

.funnel-header .container {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.funnel-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8a7a72;
}

.funnel-header-badge i {
    color: var(--gold);
    font-size: 0.625rem;
}

.funnel-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(59, 46, 42, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.funnel-card-head {
    padding: 1rem 1.125rem;
    border-bottom: 1px solid rgba(59, 46, 42, 0.06);
    background: #fff;
}

.funnel-card-head h1,
.funnel-card-head h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.funnel-card-head p {
    font-size: 0.75rem;
    color: #8a7a72;
    margin: 0;
    line-height: 1.4;
}

.funnel-card-body {
    padding: 1rem 1.125rem;
}

.funnel-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 16px;
    border: 1.5px solid #e8e2dc;
    border-radius: 12px;
    background: #faf9f7;
    color: var(--dark-brown);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.funnel-input:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
    transform: none;
}

@keyframes onAutoFillStart {
    from { opacity: 1; }
    to { opacity: 1; }
}

.funnel-input:-webkit-autofill {
    animation-name: onAutoFillStart;
    animation-duration: 0.01s;
}

.funnel-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8a7a72;
    margin-bottom: 0.35rem;
}

.funnel-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(197, 160, 89, 0.1);
    color: #6b5d55;
    font-size: 0.6875rem;
    font-weight: 500;
}

.funnel-trust-pill i {
    color: var(--gold);
    font-size: 0.625rem;
}

/* Steps — visual mais clean */
.funnel-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 0.75rem 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.funnel-step-circle {
    width: 26px;
    height: 26px;
    font-size: 10px;
    border-width: 1.5px;
}

.funnel-step.active .funnel-step-circle {
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.35);
}

.funnel-step-label {
    font-size: 9px;
    letter-spacing: 0.02em;
}

/* PIX — layout app */
.pix-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #fff8eb;
    border: 1px solid rgba(197, 160, 89, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    color: #7a5c20;
}

.pix-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    animation: pixPulse 1.5s ease-in-out infinite;
}

@keyframes pixPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.pix-qr-frame {
    background: #fff;
    border: 1px solid #ebe6e0;
    border-radius: 16px;
    padding: 1rem;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pix-copy-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.pix-copy-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem;
    font-size: 11px;
    font-family: ui-monospace, monospace;
    border: 1.5px solid #e8e2dc;
    border-radius: 12px;
    background: #faf9f7;
    color: var(--dark-brown);
    text-align: center;
}

.pix-copy-btn {
    flex-shrink: 0;
    padding: 0 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

.pix-steps-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pix-step-mini {
    text-align: center;
    font-size: 0.625rem;
    color: #8a7a72;
    line-height: 1.3;
}

.pix-step-mini i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.12);
    color: var(--gold);
    font-size: 0.6875rem;
}

.pix-verify-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: #faf9f7;
    border: 1px solid #ebe6e0;
    font-size: 0.8125rem;
    color: #6b5d55;
}

/* Success — mais sóbrio */
.success-hero {
    background: linear-gradient(160deg, #166534 0%, #15803d 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    color: #fff;
}

.success-hero h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.75rem 0 0.35rem;
}

.success-icon-ring {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.checkout-footer-mobile {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.checkout-main-mobile {
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .checkout-main-mobile {
        padding-bottom: 1.5rem;
    }

    .checkout-footer-mobile {
        padding-bottom: 2rem;
    }
}

/* Esconde botão inline no mobile quando há barra fixa */
@media (max-width: 767px) {
    .checkout-submit-desktop {
        display: none !important;
    }
}