/* ── Bilhetes da Sorte — Página de Resultados ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0c0e1a;
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
}

/* ── Topbar ─────────────────────────────────── */
.bds-res-topbar {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky; top: 0; z-index: 100;
}
.bds-res-topbar-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 0 24px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.bds-res-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.bds-res-logo { max-height: 34px; max-width: 140px; object-fit: contain; }
.bds-res-brand-icon { font-size: 22px; }
.bds-res-brand-name { font-size: 16px; font-weight: 700; color: #f8fafc; }
.bds-res-topbar-title {
    font-size: 13px; font-weight: 600;
    color: #64748b; text-transform: uppercase; letter-spacing: .6px;
}

/* ── Hero ───────────────────────────────────── */
.bds-res-hero {
    background: linear-gradient(135deg, #0f1229 0%, #1a1040 50%, #0c0e1a 100%);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 56px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bds-res-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(99,102,241,.15), transparent);
    pointer-events: none;
}
.bds-res-hero-inner { position: relative; z-index: 1; }
.bds-res-hero-icon { font-size: 52px; margin-bottom: 16px; display: block; }
.bds-res-hero h1 {
    font-size: 32px; font-weight: 800; color: #f8fafc;
    margin: 0 0 10px; letter-spacing: -.5px;
}
.bds-res-hero p { font-size: 16px; color: #94a3b8; margin: 0; }

/* ── Main ───────────────────────────────────── */
.bds-res-main {
    max-width: 1100px; margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ── Vazio ──────────────────────────────────── */
.bds-res-vazio {
    text-align: center; padding: 80px 20px;
}
.bds-res-vazio span { font-size: 48px; display: block; margin-bottom: 16px; }
.bds-res-vazio h2 { font-size: 22px; font-weight: 700; color: #f8fafc; margin: 0 0 8px; }
.bds-res-vazio p  { font-size: 15px; color: #64748b; }

/* ── Grid de cards ──────────────────────────── */
.bds-res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ── Card ───────────────────────────────────── */
.bds-res-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.bds-res-card:hover {
    border-color: rgba(99,102,241,.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99,102,241,.15);
}

/* Cabeçalho do card */
.bds-res-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.bds-res-card-sorteio { flex: 1; min-width: 0; }
.bds-res-tag {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px;
    color: #6366f1; background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 6px; padding: 2px 8px;
    margin-bottom: 6px;
}
.bds-res-card-sorteio h2 {
    font-size: 17px; font-weight: 700; color: #f8fafc;
    margin: 0 0 5px; line-height: 1.2;
}
.bds-res-data { font-size: 12px; color: #64748b; }

/* Bilhete em destaque */
.bds-res-bilhete-dest {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border-radius: 12px;
    padding: 12px 16px;
    flex-shrink: 0;
}
.bds-res-bilhete-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.7); }
.bds-res-bilhete-num { font-size: 24px; font-weight: 900; color: #fff; font-family: 'SFMono-Regular', Consolas, monospace; letter-spacing: 2px; }

/* Ganhador */
.bds-res-ganhador {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: rgba(251,191,36,.04);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.bds-res-ganhador-avatar {
    font-size: 32px; flex-shrink: 0;
    width: 52px; height: 52px;
    background: rgba(251,191,36,.1);
    border: 1px solid rgba(251,191,36,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.bds-res-ganhador { flex-direction: row; }
.bds-res-ganhador > div { display: flex; flex-direction: column; gap: 2px; }
.bds-res-ganhador-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #fbbf24; }
.bds-res-ganhador-nome { font-size: 18px; font-weight: 800; color: #f8fafc; }
.bds-res-ganhador-premio { font-size: 12px; color: #94a3b8; }

/* Descrição */
.bds-res-descricao {
    padding: 14px 24px;
    font-size: 14px; color: #94a3b8;
    line-height: 1.6; margin: 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

/* Vídeo */
.bds-res-video-wrap {
    padding: 16px 20px 20px;
    display: flex; flex-direction: column; gap: 8px;
}
.bds-res-video {
    width: 100%; max-height: 240px;
    border-radius: 10px;
    background: #000;
    display: block;
}
.bds-res-video-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 10px;
    color: #818cf8; font-weight: 600; font-size: 14px;
    text-decoration: none;
    transition: all .15s;
}
.bds-res-video-link:hover { background: rgba(99,102,241,.2); color: #a5b4fc; }
.bds-res-video-expira {
    font-size: 11px; color: #64748b;
    text-align: center;
}

/* ── Footer ─────────────────────────────────── */
.bds-res-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.2);
    padding: 32px 24px;
}
.bds-res-footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.bds-res-insta {
    display: inline-flex; align-items: center; gap: 8px;
    color: #e1306c;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    padding: 8px 18px;
    background: rgba(225,48,108,.08);
    border: 1px solid rgba(225,48,108,.25);
    border-radius: 24px;
    transition: all .15s;
}
.bds-res-insta:hover {
    background: rgba(225,48,108,.16);
    border-color: rgba(225,48,108,.5);
}
.bds-res-footer-copy {
    font-size: 12px; color: #475569; margin: 0;
}
.bds-res-footer-creditos {
    font-size: 12px; color: #334155; margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.04);
    width: 100%; text-align: center;
}
.bds-res-footer-creditos a {
    color: #4ade80; text-decoration: none; font-weight: 700;
}
.bds-res-footer-creditos a:hover { text-decoration: underline; }

/* ── Responsivo ─────────────────────────────── */
@media (max-width: 600px) {
    .bds-res-hero h1 { font-size: 24px; }
    .bds-res-grid { grid-template-columns: 1fr; }
    .bds-res-topbar-title { display: none; }
    .bds-res-card-head { flex-direction: column; }
    .bds-res-bilhete-dest { align-self: flex-start; flex-direction: row; gap: 10px; }
}

/* ── Seção Compre Bilhetes ──────────────────────────────── */
.bds-res-compre {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.bds-res-compre-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.bds-res-compre-icon {
    font-size: 22px;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(124,58,237,.15));
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bds-res-compre-head h2 {
    font-size: 17px; font-weight: 700;
    color: #f8fafc; margin: 0 0 2px;
}
.bds-res-compre-head p {
    font-size: 13px; color: #64748b; margin: 0;
}

/* Botão do grupo */
.bds-res-grupo-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff; font-size: 14px; font-weight: 700;
    text-decoration: none;
    padding: 10px 20px; border-radius: 10px;
    margin-bottom: 20px;
    transition: opacity .15s, transform .15s;
    box-shadow: 0 3px 12px rgba(37,211,102,.25);
}
.bds-res-grupo-btn:hover { opacity: .88; transform: translateY(-1px); }

/* Grid de vendedores */
.bds-res-vendedores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.bds-res-vendedor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color .2s, transform .15s;
}
.bds-res-vendedor-card:hover {
    border-color: rgba(37,211,102,.3);
    transform: translateY(-1px);
}
.bds-res-vend-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.bds-res-vend-info {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1; min-width: 0;
}
.bds-res-vend-nome {
    font-size: 15px; font-weight: 700; color: #f8fafc;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bds-res-vend-cidade {
    font-size: 12px; color: #94a3b8;
}
.bds-res-vend-label {
    font-size: 11px; color: #475569;
    text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.bds-res-wa-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #25d366, #20b858);
    color: #fff; font-size: 13px; font-weight: 700;
    text-decoration: none;
    padding: 8px 14px; border-radius: 8px;
    flex-shrink: 0;
    transition: opacity .15s;
    box-shadow: 0 2px 8px rgba(37,211,102,.25);
}
.bds-res-wa-btn:hover { opacity: .88; }

@media (max-width: 600px) {
    .bds-res-vendedores-grid { grid-template-columns: 1fr; }
}

/* ── Filtro por cidade ──────────────────────────────────── */
.bds-res-cidade-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.bds-res-cidade-chip {
    padding: 8px 16px;
    border-radius: 24px;
    border: 1.5px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: #94a3b8;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    white-space: nowrap;
}
.bds-res-cidade-chip:hover {
    border-color: rgba(99,102,241,.4);
    color: #c7d2fe;
    background: rgba(99,102,241,.08);
}
.bds-res-cidade-chip.ativo {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 10px rgba(99,102,241,.35);
}
.bds-res-vend-contador {
    font-size: 12px; color: #475569;
    margin: 0 0 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
}
.bds-res-vend-vazio {
    text-align: center; padding: 32px 20px;
    color: #475569; font-size: 14px;
}

/* ── Vídeo de entrega ───────────────────────────────────── */
.bds-res-video-titulo {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px;
    color: #64748b; margin: 0 0 8px;
}
.bds-res-video-entrega {
    background: rgba(251,191,36,.04);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(251,191,36,.15);
    margin-top: 6px;
}
.bds-res-video-entrega .bds-res-video-titulo { color: #fbbf24; }

/* ── Botão WhatsApp no rodapé ────────────────────────────── */
.bds-res-grupo-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .2s;
    white-space: nowrap;
}
.bds-res-grupo-footer:hover { opacity: .85; }
