/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sadia-red: #E30613;
    --sadia-red-dark: #c00510;
    --sadia-gold: #FFD700;
    --success-green: #28a745;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-heavy: rgba(227, 6, 19, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    overflow-x: hidden;
    position: relative;
}

/* ===== CANVAS PARA ANIMAÇÕES ===== */
#particles-canvas,
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#snow-canvas {
    z-index: 2;
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: containerFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== SELO DE CONFIRMAÇÃO ===== */
.confirmation-badge {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.check-icon {
    display: inline-block;
    position: relative;
    animation: checkBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s backwards;
}

@keyframes checkBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.check-svg {
    filter: drop-shadow(0 4px 12px rgba(40, 167, 69, 0.2));
}

.check-circle-bg {
    animation: bgPulse 2s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.check-circle {
    stroke-dasharray: 339;
    stroke-dashoffset: 339;
    animation: drawCircle 0.8s ease-out 0.8s forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.check-mark {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: drawCheck 0.5s ease-out 1.3s forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border: 3px solid var(--success-green);
    border-radius: 50%;
    opacity: 0;
    animation: ringPulse 2s ease-out 1.6s infinite;
}

.pulse-ring-delay {
    animation-delay: 1.9s;
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.badge-text {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--success-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out 1.8s infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(40, 167, 69, 0.6), 0 0 30px rgba(40, 167, 69, 0.4);
    }
}

/* ===== LOGO ===== */
.logo {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.logo-text {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.logo-sadia,
.logo-kits {
    background: linear-gradient(135deg, var(--sadia-red) 0%, var(--sadia-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.copyright {
    font-size: 20px;
    vertical-align: super;
    color: var(--sadia-red);
}

/* ===== CARD PRINCIPAL ===== */
.main-card {
    background: white;
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 0 20px 60px var(--shadow-light);
    margin-bottom: 30px;
    text-align: center;
    border-top: 5px solid var(--sadia-red);
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.6s ease-out 0.6s backwards;
}

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

.main-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.03) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== ÁRVORE DE NATAL SVG ===== */
.christmas-tree-container {
    margin-bottom: 25px;
}

.christmas-tree {
    animation: treeSwing 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes treeSwing {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

.tree-star {
    animation: starTwinkle 1.5s ease-in-out infinite;
    transform-origin: 30px 2px;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2) rotate(180deg);
    }
}

.ornament {
    animation: ornamentBlink 2s ease-in-out infinite;
}

.ornament-1 { animation-delay: 0s; }
.ornament-2 { animation-delay: 0.5s; }
.ornament-3 { animation-delay: 1s; }
.ornament-4 { animation-delay: 1.5s; }

@keyframes ornamentBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ===== TÍTULOS ===== */
.main-title {
    font-size: 27px;
    font-weight: 800;
    color: var(--sadia-red);
    margin-bottom: 25px;
    line-height: 1.3;
}

.title-line {
    display: block;
    animation: titleSlideIn 0.6s ease-out backwards;
}

.title-line:first-child {
    animation-delay: 0.8s;
}

.title-line:last-child {
    animation-delay: 1s;
}

@keyframes titleSlideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 1.2s backwards;
}

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

/* ===== DIVISOR COM ESTRELAS ===== */
.divider {
    margin: 35px auto;
    animation: fadeInUp 0.6s ease-out 1.4s backwards;
}

.divider-stars {
    display: block;
    margin: 0 auto;
}

.star {
    animation: starRotate 3s ease-in-out infinite;
    transform-origin: center;
}

.star-1 {
    animation-delay: 0s;
}

.star-2 {
    animation-delay: 0.3s;
}

.star-3 {
    animation-delay: 0.6s;
}

@keyframes starRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
}

/* ===== SEÇÃO DE INFORMAÇÕES ===== */
.info-section {
    margin: 30px 0;
    animation: fadeInUp 0.6s ease-out 1.6s backwards;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.02) 0%, rgba(255, 215, 0, 0.02) 100%);
    border-radius: 12px;
    border-left: 3px solid var(--sadia-gold);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-icon {
    flex-shrink: 0;
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.complementary-text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    text-align: left;
    margin: 0;
}

/* ===== MENSAGEM FINAL ===== */
.final-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--sadia-red);
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 15px;
    animation: fadeInUp 0.6s ease-out 1.8s backwards;
}

.heart-icon {
    flex-shrink: 0;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.heart-path {
    transform-origin: center;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.15);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.final-message p {
    margin: 0;
    line-height: 1.6;
}

/* ===== INFO BOX ===== */
.info-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-left: 5px solid var(--sadia-gold);
    border-radius: 16px;
    padding: 28px 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
    animation: fadeInUp 0.6s ease-out 2s backwards;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    transform: translateX(5px);
}

.icon-wrapper {
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.info-item span {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    font-weight: 500;
}

/* ===== BOTÕES CTA ===== */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 2.2s backwards;
}

.btn {
    flex: 1;
    min-width: 260px;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.2) rotate(5deg);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sadia-red) 0%, var(--sadia-red-dark) 100%);
    color: white;
    box-shadow: 0 10px 30px var(--shadow-heavy);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(227, 6, 19, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--sadia-red);
    border: 3px solid var(--sadia-red);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.btn-secondary:hover {
    background: var(--sadia-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(227, 6, 19, 0.4);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* ===== DECORAÇÃO NATALINA SVG ===== */
.christmas-decoration {
    text-align: center;
    margin: 30px 0;
    animation: fadeInUp 0.6s ease-out 2.4s backwards;
}

.deco-svg {
    display: block;
    margin: 0 auto;
}

.deco-item {
    animation: decoFloat 3s ease-in-out infinite;
}

.deco-item:nth-child(1) { animation-delay: 0s; }
.deco-item:nth-child(2) { animation-delay: 0.3s; }
.deco-item:nth-child(3) { animation-delay: 0.6s; }
.deco-item:nth-child(4) { animation-delay: 0.9s; }
.deco-item:nth-child(5) { animation-delay: 1.2s; }

@keyframes decoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===== RODAPÉ ===== */
.footer {
    text-align: center;
    padding: 28px 0;
    border-top: 2px solid rgba(227, 6, 19, 0.1);
    animation: fadeInUp 0.6s ease-out 2.6s backwards;
}

.footer-main {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.copyright-text {
    font-size: 12px;
    color: #999;
}

/* ===== RESPONSIVIDADE MOBILE-FIRST ===== */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
    }

    .main-card {
        padding: 38px 28px;
        border-radius: 18px;
    }

    .main-title {
        font-size: 23px;
    }

    .subtitle {
        font-size: 16px;
    }

    .logo-text {
        font-size: 34px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        min-width: 100%;
    }

    .info-box {
        padding: 24px 20px;
    }

    .christmas-tree {
        width: 50px;
        height: 60px;
    }

    .deco-svg {
        width: 280px;
    }

    .badge-text {
        font-size: 18px;
    }

    .check-svg {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 21px;
    }

    .subtitle {
        font-size: 15px;
    }

    .main-card {
        padding: 32px 22px;
    }

    .final-message {
        font-size: 15px;
        padding: 20px;
        flex-direction: column;
    }

    .btn {
        padding: 16px 28px;
        font-size: 15px;
    }

    .logo-text {
        font-size: 30px;
    }

    .deco-svg {
        width: 240px;
    }
}

/* ===== ANIMAÇÕES DE PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
