    /* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Refinos para telas muito estreitas */
@media (max-width: 360px) {
  .raffle-thumb { width: 56px !important; height: 56px !important; }
  .raffle-status { font-size: .75rem !important; padding: 2px 6px !important; }
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: #222;
    background: linear-gradient(180deg, #141414 0%, #0d0d0d 14%, #111 40%, #0d0d0d 100%);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483647; /* acima de qualquer elemento da página */
    padding: 20px;
    pointer-events: auto;
}

.lightbox-overlay.open { display: flex; }

.lightbox-content { position: relative; max-width: 95vw; max-height: 85vh; margin: 0; }

.lightbox-img {
    max-width: 95vw;
    max-height: 85vh;
    width: auto;
    height: auto;
  /* mantém proporção do PNG */
    display: block;
}

/* Destaque de ganhador nos sorteios encerrados */
.winner-badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e9f9ee; /* verde claro */
  color: #136f2d; /* verde escuro para texto */
  border: 1px solid #b7e3c5;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Utilitários de cor/tipografia */
.text-gold { color: #D4AF37 !important; }

/* Título com destaque amarelo (similar ao botão "Ver sorteios realizados") */
.title-highlight {
  display: inline-block;
  background: #FFDF6C; /* amarelo quente */
  color: #000;         /* bom contraste */
  padding: 6px 12px;
  border-radius: 8px;
}

/* ===== Layout Mobile do Card de Sorteio ===== */
.raffle-title {
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  color: #111;
}
.raffle-date-label {
  text-align: center;
  color: #B8860B; /* dourado queimado para label */
  font-weight: 700;
  margin-top: 4px;
}
.raffle-date-value {
  text-align: center;
  color: #D4AF37; /* dourado */
  font-weight: 700;
  margin-top: 2px;
}
.participate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 10px 0 6px;
}
.participate-checkbox {
  width: 28px;
  height: 28px;
}
.participate-text {
  font-size: 24px;
  color: #333;
  font-weight: 600;
}
.participants-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  background: #f6f6f6;
  color: #666;
  border-radius: 999px;
  font-weight: 600;
  margin: 2px auto 10px;
}
.raffle-image-lg {
  margin: 6px auto 0;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  position: relative;
  background: #fff;
}
.raffle-image-lg img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.raffle-image-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  font-weight: 600;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.share-actions-title.mobile-center { text-align: center; color:#777; font-weight:600; }
.share-actions[data-share-id] { display:flex; gap:16px; align-items:center; justify-content:center; margin-top:8px; }
.btn-share.png { background: transparent; border: none; padding: 0; cursor: pointer; }
.btn-share.png img { width: 42px; height: 42px; display:block; }

@media (min-width: 641px) {
  /* Desktop mantém aparência discreta */
  .participate-text { font-size: 18px; }
  .participate-checkbox { width: 20px; height: 20px; }
  .btn-share.png img { width: 32px; height: 32px; }
}

.logo {
    display: flex;
    align-items: center;
}

/* Logo por imagem mantendo proporção */
.site-logo-img {
    height: 80px; /* mesmo do .logo-circle */
    width: auto;  /* mantém proporção do PNG */
    display: block;
}

/* Subtítulo da marca abaixo do título principal */
.brand-subtitle {
  text-align: center;
  font-weight: 700;
  margin: 2px 0 6px; /* reduz margens padrão do h1 */
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000000;
    border: 3px solid #D4AF37;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-text-gold {
    color: #D4AF37;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    line-height: 1;
}

.logo-text-white {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.main-title {
    color: #D4AF37;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0; /* remove margens padrão do h1 */
}

/* Seção Principal */
.main-content {
    padding: 40px 0;
}

.section-title {
    color: #000000;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
}

/* Contador Regressivo */
.raffle-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 6px 0 10px;
    background: transparent;
    margin: 0 auto 8px auto;
    flex-wrap: wrap;
}

.rc-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 82px;
}

.rc-ring {
    --p: 0; /* progresso 0..1 */
    width: clamp(60px, 22vw, 86px);
    height: clamp(60px, 22vw, 86px);
    border-radius: 50%;
    /* gradiente dourado (claro -> brand) até o progresso */
    background: conic-gradient(#FFD773 0turn, #D4AF37 calc(var(--p)*1turn), #e6e6e6 0);
    position: relative;
    display: grid;
    place-items: center;
    /* brilho externo sutil em dourado */
    box-shadow: 0 3px 10px rgba(0,0,0,.25), 0 0 18px rgba(212, 175, 55, 0.28);
}

.rc-ring::before {
    content: '';
    position: absolute;
    inset: 12px; /* anel mais fino */
    border-radius: 50%;
    background: #ffffff; /* fundo branco do relógio */
    box-shadow: inset 0 2px 8px rgba(0,0,0,.08);
}

/* halo dourado suave ao redor do anel */
.rc-ring::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(212,175,55,0.35);
    pointer-events: none;
}

.rc-num {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    color: #D4AF37; /* mesmo tom dourado dos labels */
}

.rc-lab {
    font-size: .8rem;
    font-weight: 600;
    color: #D4AF37; /* dourado para label */
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: 6px;
}

@media (max-width: 480px) {
    .raffle-countdown { gap: 6px; flex-wrap: nowrap; justify-content: space-between; }
    .rc-unit { min-width: 54px; }
    .rc-ring { width: 54px; height: 54px; }
    .rc-ring::before { inset: 9px; }
    .rc-num { font-size: 1.05rem; }
    .rc-lab { font-size: .7rem; }
}

/* Formulário */
.form-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 2px solid #D4AF37;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.sorteio-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 500;
    color: #000000;
    font-size: 1rem;
}

.form-input {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000000;
    border: none;
    padding: 18px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Regras */
.rules-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #D4AF37;
}

.rules-container {
    max-width: 600px;
    margin: 0 auto;
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 4px solid #D4AF37;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rule-number {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rule-text {
    font-size: 1rem;
    color: #333;
    font-weight: 400;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    margin: 15% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid #D4AF37;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    padding: 25px;
    border-radius: 18px 18px 0 0;
    text-align: center;
}

.modal-title {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-title {
        font-size: 1.5rem;
        margin: 0; /* mantém sem margens no mobile */
    }

    .section-title {
        font-size: 1.35rem;
    }

    .form-description {
        font-size: 1rem;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 12px 18px;
        font-size: 1rem;
    }

    .raffle-item span {
        white-space: nowrap;
    }

    .countdown-section,
    .form-section,
    .rules-section {
        padding: 30px 20px;
    }

    .countdown-container {
        gap: 15px;
    }

    .countdown-item {
        min-width: 80px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-separator {
        font-size: 1.8rem;
        margin-top: -15px;
    }

    .logo-section {
        flex-direction: column;
        gap: 15px;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
    }

    .site-logo-img {
        height: 60px;
    }

    .logo-text-gold {
        font-size: 10px;
    }

    .logo-text-white {
        font-size: 12px;
    }

    .header { padding: 10px 0; }
    .logo-section { gap: 6px; }
    .brand-subtitle { margin-top: -8px; margin-bottom: -8px; }
    .main-content { padding: 16px 0 36px 0; }

    .rule-item {
        padding: 15px;
    }

    .rule-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-separator {
        font-size: 1.3rem;
        margin-top: -10px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}