@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --green: #00A859;
    --green-dark: #008F4C;
    --green-light: #E8F8EF;
    --green-mint: #F0FAF5;
    --dark: #0B241C;
    --yellow: #F5C518;
    --yellow-hover: #E6B800;
    --orange: #FF8C00;
    --blue: #2196F3;
    --purple: #7C3AED;
    --text: #1A1A1A;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    padding: 16px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-dropdown-toggle:hover {
    background: var(--green-light);
}

.nav-dropdown-toggle .arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-dropdown-toggle.open .arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 300;
}

.nav-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--green-light);
    color: var(--green);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
    background: transparent;
}

button.btn {
    appearance: none;
}

.btn-outline {
    background: var(--white);
    border-color: var(--green);
    color: var(--green);
}

.btn-outline:hover {
    background: var(--green-light);
}

.btn-primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-yellow {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    padding: 14px 36px;
    border-radius: 10px;
}

.btn-yellow:hover {
    background: var(--yellow-hover);
    border-color: var(--yellow-hover);
}

.btn-participar {
    width: 100%;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* ===== HERO / CAROUSEL ===== */
.hero {
    padding: 24px 0 16px;
}

.carousel-wrapper {
    position: relative;
}

.carousel-track {
    position: relative;
    min-height: 380px;
}

.carousel-slide {
    display: none;
    background: linear-gradient(135deg, #0B241C 0%, #0F3028 50%, #0B241C 100%);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    animation: fadeIn 0.4s ease;
}

.carousel-slide.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(0, 168, 89, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    background: rgba(0, 168, 89, 0.25);
    border-radius: 8px;
    transform: rotate(15deg);
}

.hero-shape:nth-child(1) { width: 60px; height: 60px; top: 15%; right: 35%; opacity: 0.4; }
.hero-shape:nth-child(2) { width: 40px; height: 40px; top: 60%; right: 25%; opacity: 0.3; transform: rotate(-20deg); }
.hero-shape:nth-child(3) { width: 50px; height: 50px; top: 30%; right: 15%; opacity: 0.35; transform: rotate(30deg); }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-emoji {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.hero-badge {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 44px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-info-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.hero-info-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--green);
}

.hero-info-value.white {
    color: var(--white);
    font-size: 24px;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-trophy {
    width: 260px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.carousel-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.carousel-tab:hover {
    border-color: var(--green);
}

.carousel-tab.active {
    background: var(--green);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--green);
    width: 24px;
    border-radius: 4px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title.center {
    text-align: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 36px;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
}

/* ===== MAIORES PRÊMIOS ===== */
.premios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.premio-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.premio-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.premio-card.featured {
    border-color: var(--green);
    background: linear-gradient(135deg, #fff 0%, var(--green-mint) 100%);
}

.premio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.premio-card-name {
    font-size: 20px;
    font-weight: 800;
}

.premio-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--white);
    background: var(--green);
    letter-spacing: 0.3px;
}

.premio-badge.orange { background: var(--orange); }
.premio-badge.blue { background: var(--blue); }
.premio-badge.purple { background: var(--purple); }

.premio-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.premio-row span:first-child {
    color: var(--text-muted);
}

.premio-row span:last-child {
    font-weight: 700;
    color: var(--text);
}

.premio-row .valor-verde {
    color: var(--green);
    font-size: 18px;
    font-weight: 800;
}

.premio-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ===== COMO FUNCIONA (4 passos) ===== */
.como-funciona {
    background: var(--green-mint);
}

.steps-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-simple {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.step-simple-emoji {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.step-simple-num {
    width: 28px;
    height: 28px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-simple-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

/* ===== FLUXO ===== */
.fluxo-section {
    background: var(--white);
}

.fluxo-timeline {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fluxo-step {
    width: 100%;
    background: var(--white);
    border: 2px solid var(--green-light);
    border-radius: var(--radius);
    padding: 18px 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    transition: all 0.2s;
}

.fluxo-step:hover {
    border-color: var(--green);
    background: var(--green-light);
}

.fluxo-step.destaque {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
}

.fluxo-arrow {
    color: var(--green);
    font-size: 22px;
    font-weight: 700;
    padding: 6px 0;
    line-height: 1;
}

/* ===== RANKING ===== */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
}

.ranking-pos {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.ranking-pos.p1 { background: #FFD700; color: #8B6914; }
.ranking-pos.p2 { background: #C0C0C0; color: #555; }
.ranking-pos.p3 { background: #CD7F32; color: #fff; }

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 16px;
    font-weight: 700;
}

.ranking-premio {
    font-size: 18px;
    font-weight: 800;
    color: var(--green);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 32px 0;
    margin-top: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-icon {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.footer-icon svg {
    width: 18px;
    height: 18px;
}

.footer-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.footer-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .premios-grid {
        grid-template-columns: 1fr;
    }

    .steps-simple {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Header compacto */
    .header {
        padding: 10px 0;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .header .container {
        gap: 12px;
    }

    .header-left {
        gap: 12px;
        min-width: 0;
    }

    .header-left .nav-dropdown {
        display: none;
    }

    .logo-text {
        font-size: 17px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Hero / carousel */
    .hero {
        padding: 12px 0 8px;
    }

    .carousel-track {
        min-height: auto;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
        padding: 28px 20px 24px;
        text-align: center;
        min-height: auto;
        gap: 16px;
        border-radius: 16px;
    }

    .carousel-slide.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .hero-info {
        width: 100%;
        max-width: 280px;
        margin-bottom: 20px;
    }

    .hero-info-value {
        font-size: 24px;
    }

    .hero-info-value.white {
        font-size: 20px;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 4px;
    }

    .hero-trophy {
        width: 140px;
        margin: 0 auto;
    }

    .btn-yellow {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 14px;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 0 8px;
        margin-top: 12px;
        gap: 8px;
    }

    .carousel-tabs::-webkit-scrollbar {
        display: none;
    }

    .carousel-tab {
        flex-shrink: 0;
        font-size: 11px;
        padding: 8px 14px;
    }

    .carousel-dots {
        margin-top: 8px;
    }

    /* Seções */
    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 19px;
    }

    .section-title.center {
        margin-bottom: 24px;
    }

    .steps-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .step-simple {
        padding: 20px 14px;
    }

    .step-simple-title {
        font-size: 13px;
    }

    .ranking-list {
        max-width: 100%;
    }

    .ranking-item {
        padding: 16px;
        gap: 12px;
    }

    .ranking-premio {
        font-size: 15px;
        white-space: nowrap;
    }

    .footer {
        padding: 24px 0;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Cards de ligas — quase largura total no mobile */
    .room-card {
        flex: 0 0 min(300px, calc(100vw - 48px));
    }

    .category-block-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .header-actions .btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .header-actions .btn-outline {
        padding: 8px 12px;
    }

    .carousel-slide {
        padding: 24px 16px 20px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-trophy {
        width: 110px;
    }

    .hero-info-value {
        font-size: 20px;
    }

    .steps-simple {
        grid-template-columns: 1fr;
    }

    .fluxo-step {
        padding: 14px 16px;
        font-size: 14px;
    }

    .ranking-name {
        font-size: 14px;
    }

    .ranking-pos {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .room-card {
        flex: 0 0 calc(100vw - 40px);
        min-height: 200px;
        padding: 16px;
    }

    .room-card-name {
        font-size: 15px;
    }

    .category-filter {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .logo-text {
        display: none;
    }

    .header-actions {
        flex: 1;
        justify-content: flex-end;
    }
}

/* ===== CATEGORIAS / LIGAS (scroll horizontal) ===== */
.category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 8px;
    scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-filter {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.category-filter:hover {
    border-color: var(--green);
    color: var(--green);
}

.category-filter.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.category-block {
    margin-bottom: 36px;
}

.category-block-header {
    margin-bottom: 16px;
}

.category-block-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.category-block-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.rooms-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rooms-scroll::-webkit-scrollbar {
    height: 6px;
}

.rooms-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.room-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.room-card.featured {
    border-color: var(--green);
    background: linear-gradient(135deg, #fff 0%, var(--green-mint) 100%);
}

.room-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.room-card-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.room-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.room-badge.FREE { background: #E3F2FD; color: #1565C0; }
.room-badge.PREMIUM { background: #FDF6D8; color: #8B6914; }
.room-badge\.1x1,
.room-badge.x1 { background: #F3E5F5; color: #7B1FA2; }
.room-badge[class*="1x1"] { background: #F3E5F5; color: #7B1FA2; }
.room-badge.POPULAR { background: #FFF3E0; color: #E65100; }
.room-badge.EXCLUSIVO { background: #E8EAF6; color: #3949AB; }

.room-championship {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.room-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.room-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.room-row span:first-child {
    color: var(--text-muted);
}

.room-row .valor-verde {
    color: var(--green);
    font-weight: 800;
    font-size: 15px;
}

.room-matches {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.room-badge.CHEAPEST { background: #FFF3E0; color: #E65100; }

.categories-loading,
.categories-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* =============================================================================
   HOME APP — estilo Rei do Pitaco (mobile-first)
   ============================================================================= */

.home-page {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #F3F4F6;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    overflow-x: hidden;
}

@media (min-width: 481px) {
    body:has(.home-page) {
        background: #E5E7EB;
    }

    .home-page {
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
    }
}

/* Header estilo Pitaco */
.pitaco-header,
.home-header {
    position: sticky;
    top: 0;
    z-index: 200;
    padding-top: env(safe-area-inset-top);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.pitaco-header-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 12px;
}

.pitaco-header-bar {
    background: var(--white);
}

.pitaco-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 4px;
}

.pitaco-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pitaco-header-logo {
    display: flex;
    align-items: center;
    color: var(--green);
    flex-shrink: 0;
    text-decoration: none;
}

.pitaco-header-logo-svg {
    display: block;
    width: 36px;
    height: 24px;
}

.pitaco-header-logo-img {
    height: 28px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

.pitaco-header-product {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pitaco-header-product svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.pitaco-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    position: relative;
    flex-shrink: 0;
}

.pitaco-header-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 4px 6px;
    text-decoration: none;
    color: var(--green);
    border-radius: 8px;
    transition: background 0.15s;
}

.pitaco-header-balance:hover {
    background: var(--green-mint);
}

.pitaco-header-balance-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    color: var(--green);
}

.pitaco-header-balance-value {
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    color: var(--green);
}

.pitaco-header-wallet {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-left: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s, transform 0.15s;
}

.pitaco-header-wallet:hover {
    box-shadow: 0 2px 8px rgba(0, 168, 89, 0.15);
    transform: translateY(-1px);
}

.pitaco-header-icon-btn,
.pitaco-header-menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.pitaco-header-icon-btn:hover,
.pitaco-header-menu-btn:hover {
    background: var(--green-mint);
}

.pitaco-header-entrar {
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s;
}

.pitaco-header-entrar:hover {
    background: var(--green-dark);
}

/* Drawer conta — estilo Pitaco */
.pitaco-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 500;
}

.pitaco-drawer-overlay[hidden] {
    display: none;
}

.pitaco-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100%;
    z-index: 501;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.pitaco-drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.pitaco-drawer-panel {
    height: 100%;
    overflow-y: auto;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}

.pitaco-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
}

.pitaco-drawer-ola {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    flex: 1;
}

.pitaco-drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.pitaco-drawer-close:hover {
    background: #F3F4F6;
}

.pitaco-drawer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.pitaco-drawer-wallet {
    padding: 16px 20px 20px;
    border-bottom: 8px solid #F3F4F6;
}

.pitaco-drawer-wallet-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pitaco-drawer-saldo-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pitaco-drawer-saldo-valor {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.pitaco-drawer-eye {
    width: 36px;
    height: 36px;
    border: none;
    background: #F3F4F6;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.pitaco-drawer-wallet-tags {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.pitaco-drawer-tag {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pitaco-drawer-tag span {
    font-size: 11px;
    color: var(--text-muted);
}

.pitaco-drawer-tag strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
}

.pitaco-drawer-depositar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.15s;
}

.pitaco-drawer-depositar:hover {
    background: var(--green-dark);
}

.pitaco-drawer-list {
    list-style: none;
    padding: 8px 0 24px;
    margin: 0;
}

.pitaco-drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
}

.pitaco-drawer-item:hover {
    background: var(--green-mint);
}

.pitaco-drawer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #323232;
    flex-shrink: 0;
}

.pitaco-drawer-item--sair {
    color: var(--text);
    margin-top: 4px;
}

body.pitaco-drawer-aberto {
    overflow: hidden;
}

/* Filtros pills */
.home-filters-wrap {
    background: var(--white);
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--border);
}

.home-page .category-filters {
    padding-bottom: 4px;
    margin-bottom: 0;
    gap: 10px;
}

.home-page .category-filter {
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    border: 1.5px solid #D1D5DB;
    background: var(--white);
    color: var(--text);
}

.home-page .category-filter.active {
    background: var(--white);
    border-color: var(--green);
    color: var(--green);
    font-weight: 700;
}

/* Banner destaque */
.home-banner {
    padding: 12px 16px 0;
}

.home-banner-slide {
    display: block !important;
    background: linear-gradient(135deg, #00A859 0%, #007A42 55%, #005C32 100%);
    border-radius: 16px;
    padding: 20px 18px;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.home-banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(255,255,255,0.12) 0%, transparent 40%),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.03) 12px, rgba(255,255,255,0.03) 24px);
    pointer-events: none;
}

.home-banner-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    position: relative;
}

.home-banner-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
}

.home-banner-title strong {
    color: var(--yellow);
    display: block;
    font-size: 26px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.home-banner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

.home-banner-entrada {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.home-banner-entrada strong {
    color: var(--white);
    font-weight: 800;
}

.home-banner-cta {
    background: var(--yellow);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 24px;
    flex-shrink: 0;
}

.home-banner-fecha {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    width: 100%;
    text-align: right;
    margin-top: 4px;
}

.home-page .carousel-dots {
    margin-top: 10px;
}

/* Seções de ligas */
.home-ligas {
    padding: 8px 0 16px;
}

.liga-section {
    margin-bottom: 20px;
}

.liga-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    padding: 12px 16px 10px;
    text-transform: capitalize;
}

.liga-wide-wrap {
    padding: 0 16px 10px;
}

.liga-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 16px 8px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
}

.liga-scroll--single {
    overflow-x: visible;
}

.liga-scroll::-webkit-scrollbar {
    display: none;
}

/* Cards estilo Rei do Pitaco — retangulares, header cinza */
.liga-card {
    --liga-card-width: 280px;
    flex: 0 0 var(--liga-card-width);
    width: var(--liga-card-width);
    min-width: var(--liga-card-width);
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.liga-card--wide {
    --liga-card-width: 100%;
    width: 100%;
    min-width: 0;
    flex: none;
}

.liga-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #F3F4F6;
    border-bottom: 1px solid #ECEEF1;
}

.liga-card-header-left {
    min-width: 0;
    flex: 1;
}

.liga-card-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.liga-card-cat {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liga-card-deadline {
    font-size: 11px;
    font-weight: 500;
    color: #9CA3AF;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
}

.liga-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: var(--white);
}

.liga-card-precos {
    display: flex;
    gap: 18px;
    min-width: 0;
}

.liga-preco-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.liga-preco-label {
    font-size: 11px;
    font-weight: 500;
    color: #9CA3AF;
    line-height: 1.2;
}

.liga-preco-valor {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    white-space: nowrap;
}

.liga-btn-entrar {
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.liga-btn-entrar:hover {
    background: var(--green-dark);
}

.liga-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #F3F4F6;
    background: var(--white);
    font-size: 11px;
    color: #9CA3AF;
}

.liga-card-footer-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.liga-foot-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-weight: 500;
}

.liga-foot-item svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.liga-foot-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.liga-foot-count svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 360px) {
    .liga-card {
        --liga-card-width: 260px;
    }

    .liga-preco-valor {
        font-size: 15px;
    }

    .liga-btn-entrar {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* Ajuda */
.home-ajuda {
    padding: 8px 16px 24px;
}

.home-ajuda-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.home-ajuda-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.home-ajuda-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.home-ajuda-step span {
    display: inline-flex;
    width: 20px;
    height: 20px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

/* Footer fixo */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    z-index: 300;
}

.app-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 500;
    color: #9CA3AF;
    padding: 6px 10px;
    min-width: 64px;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.app-footer-item svg {
    width: 22px;
    height: 22px;
}

.app-footer-item.active {
    color: var(--green);
    font-weight: 700;
}

.app-footer-menu-btn {
    appearance: none;
}

/* Menu drawer */
.menu-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 400;
}

.menu-drawer-overlay[hidden] {
    display: none;
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: var(--white);
    z-index: 401;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    padding-top: env(safe-area-inset-top);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.menu-drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.menu-drawer-title {
    font-size: 18px;
    font-weight: 800;
}

.menu-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #F3F4F6;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.menu-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
}

.menu-drawer-nav a,
.menu-drawer-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.menu-drawer-nav a:hover,
.menu-drawer-nav button:hover {
    background: var(--green-light);
    color: var(--green);
}

.menu-drawer-user {
    padding: 8px 12px 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.menu-drawer-sair {
    color: #DC2626 !important;
    margin-top: 8px;
}

body.menu-aberto {
    overflow: hidden;
}
