:root {
    --primary: #2c3e50;
    --accent: #f1c40f;
    --meu-numero: #3498db;
    --ocupado: #2ecc71;
    --bg: #f4f7f6;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg); 
    margin: 0; padding: 0; color: #333;
}

.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

.rifa-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.car-photo-container {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #ddd;
    border: 3px solid var(--accent);
}

.car-photo { width: 100%; height: 100%; object-fit: cover; }

.header-content { flex: 1; min-width: 300px; }

h1 { margin-top: 0; color: var(--primary); font-size: 2rem; border-bottom: 3px solid var(--accent); display: inline-block; }

.description { font-size: 1.1rem; line-height: 1.5; color: #555; }

.prizes-container { display: flex; gap: 15px; margin: 20px 0; }

.prize-card {
    background: #fff9e6;
    border: 1px solid var(--accent);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.prize-card span { display: block; font-size: 0.8rem; color: #777; }
.prize-card strong { font-size: 1.2rem; color: var(--primary); }

.pix-info {
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.pix-key { font-family: monospace; font-size: 1.4rem; font-weight: bold; color: var(--accent); }

/* Grid de Números */
.grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); 
    gap: 8px; background: white; padding: 20px; border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.numero { 
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    background: #eee; border-radius: 6px; cursor: pointer;
    font-weight: bold; font-size: 1.1rem; transition: 0.2s;
}

.numero.meu-numero { background: var(--meu-numero) !important; color: white; }
.numero.ocupado-outros { background: var(--ocupado) !important; color: white; cursor: not-allowed; }
.numero:hover:not(.ocupado-outros) { transform: scale(1.1); background: var(--accent); }

/* Legenda */
.legend { display: flex; gap: 20px; margin-bottom: 15px; justify-content: center; }
.legend .item { display: flex; align-items: center; gap: 8px; font-weight: bold; }
.legend .box { width: 20px; height: 20px; border-radius: 4px; }
.box.livre { background: #eee; border: 1px solid #ccc; }
.box.meu { background: var(--meu-numero); }
.box.ocupado { background: var(--ocupado); }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 100; }
.modal-content { background: white; margin: 10% auto; padding: 30px; width: 90%; max-width: 400px; border-radius: 15px; text-align: center; }
input { width: 100%; padding: 12px; margin: 20px 0; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; box-sizing: border-box; }
.btn-confirmar { background: var(--meu-numero); color: white; border: none; padding: 15px 30px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; }
.btn-cancelar { background: #999; color: white; border: none; padding: 10px; border-radius: 8px; margin-top: 10px; cursor: pointer; width: 100%; }

.btn-exportar {
    background: #25d366; /* Cor do WhatsApp */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-pix-acao {
    background: var(--accent); /* Amarelo que já usamos */
    color: var(--primary);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-pix-acao:active {
    transform: scale(0.95);
}

.btn-pix-acao:hover {
    background: #e1b306;
}
/* Container do organizador */
.beneficiario-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px hide #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge strong { display: block; font-size: 0.8rem; color: #888; }
.user-badge span { font-weight: bold; color: var(--primary); }

/* Botão do WhatsApp */
.btn-whatsapp {
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-whatsapp i {
    font-size: 1.3rem;
}