/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --wolverine-orange: #ff6b35;
    --wolverine-dark: #1a1a2e;
    --wolverine-gray: #16213e;
    --wolverine-light: #f8f9fa;
    --wolverine-accent: #ff4757;
    --wolverine-gold: #ffa502;
    --text-primary: #fff;
    --text-secondary: #b2bec3;
    --border-color: #2f3542;
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
    --gradient-wolverine: linear-gradient(135deg, #ff6b35 0%, #ff4757 50%, #ffa502 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 2, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 71, 87, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

/* Animações Avançadas */
@keyframes clawSlash {
    0% { transform: translateX(-100%) rotate(-45deg); opacity: 0; }
    50% { transform: translateX(0) rotate(-45deg); opacity: 1; }
    100% { transform: translateX(100%) rotate(-45deg); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseStrong {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--wolverine-orange); }
    50% { box-shadow: 0 0 20px var(--wolverine-orange), 0 0 30px var(--wolverine-orange); }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 10px var(--wolverine-orange), 0 0 20px var(--wolverine-orange);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px var(--wolverine-orange), 0 0 40px var(--wolverine-orange), 0 0 60px var(--wolverine-orange);
        transform: scale(1.02);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header Wolverine Melhorado */
.wolverine-header {
    background: var(--wolverine-dark);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--wolverine-orange);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.wolverine-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--wolverine-orange), transparent);
    animation: clawSlash 4s infinite;
}

.wolverine-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 53, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-wolverine {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--wolverine-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    animation: fadeInLeft 1s ease-out;
}

.logo-wolverine i {
    font-size: 2rem;
    animation: pulseStrong 2s infinite;
    filter: drop-shadow(0 0 5px var(--wolverine-orange));
}

.logo-wolverine span {
    background: var(--gradient-wolverine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wolverine-gold);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 165, 2, 0.1);
    border-radius: 25px;
    border: 1px solid var(--wolverine-gold);
    animation: fadeInRight 1s ease-out;
    transition: all 0.3s ease;
}

.security-badge:hover {
    background: rgba(255, 165, 2, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.3);
}

.security-badge i {
    animation: pulse 2s infinite;
}

/* Container Principal */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Formulário de Pagamento Melhorado */
.payment-form {
    background: var(--wolverine-gray);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.8s ease-out;
}

.payment-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-wolverine);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    animation: glowPulse 3s infinite;
}

.payment-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, transparent 50%, rgba(255, 165, 2, 0.05) 100%);
    border-radius: 18px;
    pointer-events: none;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    animation: slideInFromTop 0.8s ease-out;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wolverine-orange);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    background: var(--gradient-wolverine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.form-group {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.form-group:hover {
    transform: translateX(5px);
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    background: var(--wolverine-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: var(--wolverine-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2), 0 0 20px rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-input:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.1);
}

.card-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.card-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.card-icon {
    width: 45px;
    height: 30px;
    background: var(--wolverine-dark);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.card-icon:hover::before {
    left: 100%;
}

.card-icon.active {
    border-color: var(--wolverine-orange);
    color: var(--wolverine-orange);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    transform: scale(1.1);
}

.card-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

/* Resumo do Pedido Melhorado */
.order-summary {
    background: var(--wolverine-gray);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.8s ease-out 0.2s both;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-wolverine);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
    animation: glowPulse 3s infinite 1s;
}

.summary-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.summary-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gradient-wolverine);
    border-radius: 1px;
}

.summary-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wolverine-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    background: var(--gradient-wolverine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInRight 0.8s ease-out;
}

.product-item:hover {
    transform: translateX(5px);
    background: rgba(255, 107, 53, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 -1rem;
}

.product-image {
    width: 70px;
    height: 70px;
    background: var(--gradient-wolverine);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
    overflow: hidden;
    animation: pulse 3s infinite;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.product-details h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-price {
    margin-left: auto;
    font-weight: 700;
    color: var(--wolverine-orange);
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.summary-totals {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    position: relative;
}

.summary-totals::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-wolverine);
    border-radius: 1px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.total-row:hover {
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 0 -1rem;
}

.total-row.final {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wolverine-orange);
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    background: var(--gradient-wolverine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botão de Pagamento Melhorado */
.pay-button {
    width: 100%;
    padding: 1.8rem;
    background: var(--gradient-wolverine);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: var(--shadow-lg);
    animation: bounce 2s infinite;
}

.pay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.pay-button:hover::before {
    left: 100%;
}

.pay-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 53, 0.4);
    animation: glowPulse 1s infinite;
}

.pay-button:active {
    transform: translateY(-2px) scale(0.98);
}

.pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

.pay-button i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

/* Progress Bar Melhorado */
.progress-bar {
    background: var(--wolverine-dark);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 53, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--wolverine-gray);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.step-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-wolverine);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-circle.active {
    background: var(--wolverine-orange);
    border-color: var(--wolverine-orange);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.step-circle.active::before {
    opacity: 0.3;
}

.step-circle.completed {
    background: var(--wolverine-gold);
    border-color: var(--wolverine-gold);
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.4);
}

.step-circle i {
    position: relative;
    z-index: 2;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-circle.active + .step-label {
    color: var(--wolverine-orange);
    font-weight: 600;
}

.progress-line {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-wolverine);
    width: 0%;
    transition: width 0.8s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* Alertas e Mensagens Melhorados */
.alert {
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.alert-success {
    background: rgba(46, 213, 115, 0.15);
    border: 2px solid #2ed573;
    color: #2ed573;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.2);
}

.alert-warning {
    background: rgba(255, 165, 2, 0.15);
    border: 2px solid var(--wolverine-gold);
    color: var(--wolverine-gold);
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.2);
}

.alert-error {
    background: rgba(255, 71, 87, 0.15);
    border: 2px solid var(--wolverine-accent);
    color: var(--wolverine-accent);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.2);
}

.alert i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

/* Responsividade Melhorada */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .card-row {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .progress-line {
        display: none;
    }

    .payment-form,
    .order-summary {
        padding: 2rem;
    }

    .form-header h2 {
        font-size: 2rem;
    }
}

/* Efeitos Especiais Melhorados */
.wolverine-claw {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--wolverine-orange);
    clip-path: polygon(0% 50%, 20% 0%, 40% 50%, 60% 0%, 80% 50%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.08;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--wolverine-orange));
}

.claw-1 { 
    top: 10%; 
    left: 5%; 
    transform: rotate(45deg);
    animation-delay: 0s;
}
.claw-2 { 
    top: 20%; 
    right: 10%; 
    transform: rotate(-30deg);
    animation-delay: 1s;
}
.claw-3 { 
    bottom: 15%; 
    left: 15%; 
    transform: rotate(15deg);
    animation-delay: 2s;
}

/* Animações de entrada */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Efeitos de hover globais */
*:hover {
    transition: all 0.3s ease;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wolverine-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-wolverine);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wolverine-orange);
} 