/* Index público — estende dashboard-premium */
.index-public.dashboard-container {
    display: block !important;
    grid-template-columns: unset !important;
    min-height: 100vh;
}

.index-public .main-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-top: 0;
}

/* Header desktop */
.index-top-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.index-top-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.index-top-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.index-top-logo img {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.index-top-logo span {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.index-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.12));
    background: var(--dash-surface, rgba(255, 255, 255, 0.04));
    color: var(--text-primary, #fff);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.index-btn-login:hover {
    border-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}

.index-btn-login--primary {
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 75%, #000));
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 24px var(--dash-glow, rgba(255, 10, 94, 0.35));
}

.index-btn-login--primary:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* Mobile header index */
.index-public .index-mobile-header {
    display: none;
}

.index-public .index-mobile-header .mobile-header-content {
    grid-template-columns: 40px 1fr auto;
}

.index-public .index-mobile-header .index-mobile-login {
    grid-column: 3;
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: 10px;
    min-height: 36px;
}

/* Winners ticker */
.index-winners-ticker {
    position: sticky;
    top: 68px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    height: 38px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.index-winners-ticker .ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: indexTickerScroll 45s linear infinite;
    gap: 48px;
}

@keyframes indexTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.index-winners-ticker .ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary, #fff);
    font-size: 0.82rem;
    font-weight: 500;
}

.index-winners-ticker .winner-name {
    color: var(--primary-color);
    font-weight: 600;
}

.index-winners-ticker .amount {
    color: var(--success-color, #00ff88);
    font-weight: 700;
}

.index-winners-ticker .game-name {
    color: var(--text-secondary, #bbb);
}

/* Hero extras */
.index-public .dash-hero-actions {
    margin-top: 18px;
}

.index-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.index-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
}

.index-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    animation: indexPulseDot 2s ease-in-out infinite;
}

@keyframes indexPulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* Bottom nav */
.index-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0));
}

.index-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

.index-bottom-nav-inner.has-ref {
    justify-content: center;
    gap: 48px;
}

.index-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.index-nav-item i {
    font-size: 1.25rem;
}

.index-nav-item:hover,
.index-nav-item.active {
    color: var(--primary-color);
    background: var(--dash-surface, rgba(255, 255, 255, 0.04));
}

/* Login modal */
.index-login-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.index-login-modal.active {
    display: flex;
    opacity: 1;
}

.index-login-sheet {
    width: 100%;
    max-width: 440px;
    background: #15151c;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.12));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 640px);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.index-login-modal.active .index-login-sheet {
    transform: scale(1) translateY(0);
}

.index-login-handle {
    display: none;
}

.index-login-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    flex-shrink: 0;
}

.index-login-head-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.index-login-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--primary-color) 18%, transparent);
    color: var(--primary-color);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.index-login-titles h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    line-height: 1.2;
}

.index-login-tag {
    margin: 4px 0 0;
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.index-login-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #888);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.index-login-close:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.index-login-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 8px;
}

.index-login-subtitle {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    font-size: 0.84rem;
    color: var(--text-secondary, #bbb);
    line-height: 1.45;
}

.index-form-group {
    margin-bottom: 14px;
}

.index-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #ccc);
}

.index-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.index-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted, #666);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.index-input-wrap input {
    width: 100%;
    padding: 14px 44px 14px 42px;
    border-radius: 12px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.1));
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary, #fff);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.index-input-wrap input::placeholder {
    color: var(--text-muted, #555);
}

.index-input-wrap input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--primary-color) 55%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.index-password-toggle {
    position: absolute;
    right: 4px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-muted, #777);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease;
}

.index-password-toggle:hover {
    color: var(--primary-color);
}

.index-login-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    min-height: 50px;
    font-size: 0.95rem;
}

.index-login-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    font-size: 0.85rem;
    color: var(--text-muted, #888);
    background: rgba(0, 0, 0, 0.2);
}

.index-login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* Footer */
.index-footer {
    background: linear-gradient(180deg, rgba(14, 14, 18, 0.6), rgba(8, 8, 12, 1));
    border-top: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    padding: 48px 32px 100px;
    margin-top: 20px;
}

.index-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.index-footer-section h3,
.index-footer-section h4 {
    margin: 0 0 14px;
    font-weight: 700;
}

.index-footer-section h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.index-footer-section h4 {
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.index-footer-section p {
    color: var(--text-secondary, #aaa);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.index-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.index-footer-section li {
    margin-bottom: 8px;
}

.index-footer-section a {
    color: var(--text-secondary, #aaa);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.index-footer-section a:hover {
    color: var(--primary-color);
}

.index-install-box {
    padding: 20px;
    border-radius: 16px;
    background: var(--dash-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
}

.index-install-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.index-install-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary, #bbb);
}

.index-install-benefits i {
    color: var(--primary-color);
    width: 16px;
}

.index-install-btn {
    width: 100%;
    justify-content: center;
}

.index-footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--dash-border, rgba(255, 255, 255, 0.08));
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted, #666);
}

/* Padding bottom for fixed nav */
.index-public .main-content {
    padding-bottom: 88px;
}

/* Responsive */
@media (max-width: 768px) {
    .index-top-header {
        display: none;
    }

    .index-public .index-mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1001;
    }

    .index-winners-ticker {
        top: 56px;
        height: 32px;
    }

    .index-winners-ticker .ticker-item {
        font-size: 0.75rem;
    }

    .index-public .main-content {
        padding: 12px 14px 88px;
    }

    /* Hero compacto */
    .index-public .dash-hero {
        padding: 16px 14px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .index-public .dash-hero-text h2 {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .index-public .dash-hero-text p {
        font-size: 0.8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 100%;
    }

    .index-public .dash-hero-actions {
        display: none;
    }

    .index-status-pills {
        margin-top: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .index-status-pills::-webkit-scrollbar {
        display: none;
    }

    .index-status-pill {
        padding: 5px 10px;
        font-size: 0.62rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .index-status-dot {
        width: 6px;
        height: 6px;
    }

    /* Stats em linha — 3 colunas compactas */
    .index-public .dash-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }

    .index-public .dash-stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 6px;
        gap: 6px;
    }

    .index-public .dash-stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

    .index-public .dash-stat-label {
        font-size: 0.58rem;
        letter-spacing: 0.04em;
    }

    .index-public .dash-stat-value {
        font-size: 0.95rem;
    }

    /* Seções abaixo do hero */
    .index-public .dash-section-head {
        margin-bottom: 10px;
    }

    .index-public .dash-section-head h3 {
        font-size: 0.95rem;
    }

    .index-public .dash-featured-scroll {
        margin-bottom: 16px;
        padding-bottom: 4px;
    }

    .index-public .content-header {
        margin-bottom: 12px;
    }

    .index-public .content-title {
        font-size: 1.15rem;
    }

    .index-footer {
        padding: 28px 14px 100px;
    }

    .index-top-header-inner {
        padding: 10px 16px;
    }

    /* Modal — bottom sheet no mobile */
    .index-login-modal {
        align-items: flex-end;
        padding: 0;
    }

    .index-login-sheet {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: calc(100dvh - 8px);
        border-bottom: none;
        transform: translateY(100%);
    }

    .index-login-modal.active .index-login-sheet {
        transform: translateY(0);
    }

    .index-login-handle {
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.2);
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    .index-login-header {
        padding: 12px 16px 12px;
    }

    .index-login-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .index-login-titles h2 {
        font-size: 1.1rem;
    }

    .index-login-body {
        padding: 12px 16px 4px;
    }

    .index-login-subtitle {
        margin-bottom: 14px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .index-login-submit {
        min-height: 52px;
    }

    .index-login-footer {
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0));
    }
}

@media (min-width: 769px) {
    .index-public .index-mobile-header {
        display: none !important;
    }
}
