:root {
    --primary-blue: #004394;
    --primary-dark: #002a5e;
    --success-green: #16A249;
    --success-hover: #12823b;
    --gray-bg: #f3f4f6;
    /* close to white/light gray */
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --chip-border: #e2e8f0;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    /* Optional */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 48px;
    /* Approximate */
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-blue);
    font-weight: 600;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-login:hover {
    background-color: #ebf5ff;
}

.mobile-menu-btn {
    display: none;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    padding: 2rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    /* 60/40 approx layout */
    gap: 2rem;
    align-items: start;
}

.hero-banner-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* aspect-ratio: 16/9; Optional constraint */
}

.hero-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.purchase-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    /* Subtle shadow per request */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: flex-start;
    /* Do not stretch */
}

/* Chips */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.chip-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chip {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--chip-border);
    border-radius: var(--radius-full);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    min-width: 70px;
    background: var(--white);
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.chip.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.tag-popular {
    position: absolute;
    top: -12px;
    background-color: #FFD700;
    /* Yellow */
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
    white-space: nowrap;
}

/* Stepper */
.stepper {
    background-color: var(--primary-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    height: 64px;
}

.stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.stepper-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.stepper-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
}

/* Buy Button */
.btn-buy {
    background-color: var(--success-green);
    color: var(--white);
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background 0.2s;
    height: 56px;
}

.btn-buy:hover {
    background-color: var(--success-hover);
}

.btn-text {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-text .price {
    font-weight: 900;
    margin-left: 4px;
}

/* Promo Strip */
.promo-strip {
    margin-bottom: 3rem;
    overflow: hidden;
    /* For mobile scroll */
}

.promo-scroll {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.promo-img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex: 1;
    /* Equal width */
    max-height: 160px;
    /* Limit height - Increased to prevent cut off */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.promo-img:hover {
    transform: scale(1.03);
}

/* Hora do Viva Section */
.hora-viva-section {
    padding-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.icon-clock-wrapper {
    background-color: #0033cc;
    /* Different vibrant blue like print */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Product Card Internal */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    /* Increased shadow for cards */
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.draw-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.edition-info,
.draw-date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.label {
    color: var(--text-light);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.value {
    font-weight: 800;
    color: var(--text-dark);
}

.hourly-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viva-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.draw-time {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-dark);
}

/* Small card controls */
.card-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chips-row {
    display: flex;
    gap: 0.25rem;
    justify-content: space-between;
}

.chip-sm {
    flex: 1;
    padding: 0.25rem 0;
    border: 1px solid var(--chip-border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: white;
    color: var(--text-dark);
}

.chip-sm:hover,
.chip-sm.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.stepper.sm {
    height: 40px;
    padding: 0 0.5rem;
    margin-top: 0.5rem;
}

.stepper-btn.sm {
    width: 24px;
    height: 24px;
}

.stepper-value {
    font-size: 1.2rem;
    /* Adjusted for sm context, overrides if necessary via cascading but class is same */
}

/* Fix stepper-value being too huge in small card */
.stepper.sm .stepper-value {
    font-size: 1.25rem;
}

.btn-buy.sm {
    height: 40px;
    font-size: 0.9rem;
    padding: 0;
}

/* Winners Section */
.winners-section {
    background-color: #f8fafc;
    /* Very light gray bg */
    padding: 3rem 0;
}

.winners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.winners-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #444;
}

.view-more {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.winners-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.winner-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    gap: 0.5rem;
}

.winner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-name {
    color: var(--success-green);
    font-weight: 800;
    font-size: 0.9rem;
}

.winner-desc {
    font-weight: 700;
    font-size: 0.9rem;
}

.winner-loc {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Institution */
.institution-section {
    padding: 4rem 0;
    text-align: center;
}

.institution-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 800px;
}

.institution-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.institution-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.institution-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    border-top: 1px solid #eee;
    padding: 3rem 0;
    font-size: 0.8rem;
    color: #888;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-text {
    margin-bottom: 2rem;
    max-width: 800px;
}

.footer-partners {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-partners strong {
    color: #444;
}

.footer-bottom {
    display: flex;
    gap: 1.5rem;
}

/* ---------- RESPONSIVE (MOBILE) - 390px target ---------- */
@media (max-width: 900px) {
    /* Tablet/Mobile breakpoint */

    .desktop-nav,
    .btn-login {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero Mobile */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .purchase-card {
        padding: 1.5rem;
    }

    .chips-container {
        /* User said: 
           Row 1: +5, +10 (Pop), +15
           Row 2: +20, +40, +50
        */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .chip {
        min-width: auto;
        padding: 0.5rem;
    }

    /* Promo Scroll */
    .promo-scroll {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
    }

    .promo-img {
        min-width: 140px;
        /* Ensure they don't shrink too small */
    }

    /* Cards Grid Mobile */
    .cards-grid {
        grid-template-columns: 1fr;
        /* Single column */
    }

    /* Footer Mobile */
    .footer-partners {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Secondary Pages Headers */
.page-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Forms (Revendedor, Contato) */
.form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    margin: -3rem auto 4rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 67, 148, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    width: 100%;
    background-color: var(--success-green);
    color: var(--white);
    padding: 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-top: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(22, 162, 73, 0.2);
}

.form-btn:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(22, 162, 73, 0.3);
}

/* Resultados Grid */
/* Resultados List */
.results-page-header {
    background: #004394;
    color: white;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 67, 148, 0.2);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.result-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.result-list-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
    background: #fff;
}

.result-icon-wrapper {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    border-radius: 16px;
    border: 1px solid #e0f2fe;
    transition: all 0.3s ease;
}

.result-list-item:hover .result-icon-wrapper {
    background-color: #e0f2fe;
}

.result-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.result-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    /* Flexbox trick for text truncation */
}

.result-text-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.result-text-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-chevron {
    color: #cbd5e1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.result-list-item:hover .result-chevron {
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Accordion (Institucional) */
.accordion {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    background: #fff;
    transform: translateY(-2px);
}

.accordion-header {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-item.active {
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.accordion-content {
    display: none;
    padding: 1.5rem;
    background-color: var(--white);
    border-top: 1px solid #f1f5f9;
    line-height: 1.7;
    color: var(--text-light);
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-blue);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Contato */
.contact-section {
    padding: 3rem 0;
    text-align: center;
}

.contact-info {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 250px;
    border: 1px solid var(--border-color);
}