:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff5e7d;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --warning: #ffc107;
    --purple-light: #8A2BE2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    min-height: 100vh;
    padding-bottom: 40px;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    text-align: center;
    padding: 2.5rem 0;
    position: relative;
}

.logo {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: float 6s ease-in-out infinite;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #fff, #ffeb3b, #ff5e7d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    font-size: 1.1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.input-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
}

.input-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group textarea, .form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.form-group textarea:focus, .form-group input:focus, .form-group select:focus {
    outline: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(255, 94, 125, 0.5);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.number-options {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

.number-options h3 {
    margin-bottom: 15px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.flex-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.flex-group .form-group {
    flex: 1;
    margin-bottom: 0;
}

.btn {
    background: linear-gradient(to right, var(--accent), #ff8a00);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.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: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(to right, #6c757d, #5a6268);
}

/* Botão de importação */
.import-btn {
    background: linear-gradient(to right, #28a745, #20c997);
    margin-bottom: 15px;
    padding: 10px 15px;
    font-size: 14px;
    width: auto;
    display: inline-flex;
}

.file-input {
    display: none;
}

.result-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
}

.result-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-display {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.result-display:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    flex-direction: column;
}

.countdown {
    font-size: 5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px var(--accent);
}

.countdown-text {
    font-size: 1.5rem;
    margin-top: 10px;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 8px solid var(--accent);
    animation: spin 1s linear infinite;
}

.winner-reveal {
    font-size: 4rem;
    font-weight: bold;
    color: transparent;
    background: linear-gradient(45deg, var(--accent), #ffeb3b, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: reveal 1.5s ease-out forwards;
    padding: 10px;
    border-radius: 10px;
}

.winner-reveal.small {
    font-size: 2rem;
}

.winners-list {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s;
}

.winners-list:hover {
    background: rgba(255, 255, 255, 0.2);
}

.winners-list h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.winners-list ul {
    list-style-type: none;
}

.winners-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.winners-list li .winner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.winners-list li .winner-info::before {
    content: '🎉';
    font-size: 1.2rem;
}

.winners-list li .timestamp {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 28px;
    margin-top: 2px;
}

.ad-container {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    padding: 40px 20px;
    margin: 10px 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.ad-placeholder:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.features-section {
    margin: 40px 0;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
    border-top: 5px solid var(--accent);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.testimonials {
    margin: 50px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 15px;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-author {
    margin-top: 15px;
    font-weight: bold;
    text-align: right;
    color: var(--accent);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.share-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Novos estilos para verificação de justiça */
.fairness-section {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid var(--accent);
}

.verification-section {
    margin-top: 20px;
    background: rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .result-display {
        font-size: 2.5rem;
        min-height: 150px;
    }
    
    .flex-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .countdown {
        font-size: 3.5rem;
    }
    
    .winner-reveal {
        font-size: 2.5rem;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature-card, .testimonial-card {
        padding: 20px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .winners-list li .timestamp {
        font-size: 0.65rem;
    }
}

/* Animações */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes reveal {
    0% { 
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(5deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    opacity: 0;
    pointer-events: none;
}

@keyframes countdownPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.countdown-number {
    animation: countdownPop 0.5s ease-out;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

.download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(to right, var(--purple-light), var(--primary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}