@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #00080f;
    --accent-color: #00d2ff;
    /* Original Cyan */
    --coastal-aqua: #00bcd4;
    /* Aqua from photo */
    --coastal-sand: #f2e8cf;
    /* Sand from photo */
    --coastal-foam: #ffffff;
    --accent-glow: rgba(0, 210, 255, 0.5);
    --text-primary: #1a2a3a;
    --text-secondary: #5a6a7a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --header-bg: rgba(255, 255, 255, 0.95);
    /* Light glass base */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/outfit/v11/QGYsz_jt9i6M0wsrvO32cfE.woff2) format('woff2');
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #00080f;
    padding-top: 0;
    /* Removido para o map ocupar 100% */
    color: white;
    overflow-x: hidden;
}



@media (max-width: 768px) {
    html, body, html:root body.antigravity-scroll-lock {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    body {
        padding-top: 105px;
    }
}

/* Evita seleção de texto em elementos de interface para parecer App nativo */
.main-header,
.nav-menu,
.weather-float,
.elevation-toggle,
#admin-panel,
.admin-btn,
.logo,
.nav-link {
    user-select: none;
}

/* HEADER PREMIUM */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    /* Vidro claro mais sólido */
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10000;
    border-bottom: 4px solid var(--coastal-aqua);
    color: #1a2a3a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.header-logo {
    height: 50px;
    width: auto;
    /* Removido o invert para a logo aparecer escura no fundo claro */
    filter: drop-shadow(0 0 4px rgba(0, 188, 212, 0.2));
    margin-right: 5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #1a2a3a;
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--coastal-aqua);
    font-weight: 700;
    opacity: 1;
}

.nav-menu {
    display: flex;
    gap: 6px;
}

.nav-link {
    background: transparent;
    border: none;
    color: rgba(26, 42, 58, 0.6);
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--coastal-aqua);
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    color: #1a2a3a;
    background: rgba(0, 188, 212, 0.1);
    box-shadow: inset 0 -2px 0 var(--coastal-aqua);
}

.header-date {
    font-size: 0.75rem;
    font-weight: 900;
    color: #1a2a3a;
    background: rgba(0, 188, 212, 0.1);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 188, 212, 0.2);
    white-space: nowrap;
}

.admin-login-btn {
    background: var(--coastal-aqua);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    background: #00acc1;
}

/* APP CONTAINER & PAGES */
.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 70px;
    z-index: 10;
    background: transparent;
    pointer-events: none;
    /* Allow clicks to pass through to the map */
}

.page-section {
    display: none;
    width: 100%;
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 5;
}

.page-section.active {
    display: block;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('beach-bg.png');
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.8);
    z-index: 1;
    display: none;
    /* Escondido por padrão */
}

/* Transparência para todas as páginas exceto o Mapa */
.page-section:not(#page-map) {
    position: relative;
    padding: 20px;
    min-height: calc(100vh - 70px);
    pointer-events: auto;
    /* Re-enable clicks for info pages */
}

.page-section:not(#page-map).active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}



/* BACKGROUND MAP (Imersivo 100%) */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* PAGE 1: MAP VIEW */
#page-map {
    background: transparent;
    pointer-events: none;
}



.section-header h2 {
    color: #1a2a3a;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.section-header p {
    color: #5a6a7a;
    font-size: 1.1rem;
}

.rule-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    border-left: 5px solid var(--coastal-aqua);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    color: #1a2a3a;
}

.content-wrapper {
    position: relative;
    width: 450px;
    padding: 40px 30px;
    z-index: 10;
    pointer-events: none;
    /* Alterado para permitir cliques no mapa através do container */
    background: transparent;
}

.content-wrapper>* {
    pointer-events: auto;
    /* Garante que os elementos internos (hero, cards) continuem interativos */
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    /* Permite clicar no mapa através do hero */
}

.hero-dynamic-box {
    padding: 30px;
    color: white;
    max-width: 500px;
    background: linear-gradient(to right, rgba(0, 8, 15, 0.7) 0%, rgba(0, 8, 15, 0.4) 70%, transparent 100%);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    border-left: 4px solid var(--accent-color);
    pointer-events: auto;
    /* Mantém a caixa interativa */
}

.hero-title-main {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.text-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8);
    color: transparent;
    letter-spacing: -2px;
}

.text-vibrant {
    color: white;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.4));
}

.hero-subline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.accent-bar {
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-subline p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.hero-stats-mini {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.s-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.s-item strong {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
}

.s-item span {
    font-size: 0.6rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    font-weight: 800;
}

/* TIMELINE CARDS */
.timeline-item {
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
    pointer-events: none;
    /* Permite clicar no mapa através do item da timeline */
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item .card {
    pointer-events: auto;
    /* Garante que o card em si seja clicável */
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(235, 248, 255, 0.9) 50%, rgba(200, 235, 255, 0.85) 100%);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 4px solid white;
    /* Removido overflow:hidden para evitar bordas cortadas em transformações */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    width: 100%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, box-shadow;
    position: relative;
    color: #1a2a3a;
    /* Garante texto escuro */
}

.timeline-item:nth-child(odd) .card {
    transform: rotate(-2deg);
}

.timeline-item:nth-child(even) .card {
    transform: rotate(2deg);
}

.timeline-item.active .card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 210, 255, 0.25);
    border-color: var(--accent-color);
}

.card-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1a2a3a;
}

.card-header h4 {
    margin: 0;
    color: #1a2a3a;
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--coastal-aqua);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.card-img-container {
    width: 100%;
    height: 220px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 20px;
}

.status-badge {
    font-size: 0.7rem;
    background: #eef2f5;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: auto;
}

/* PAGES OVERLAYS (Rules, Register, Gear, etc.) */
.page-section:not(#page-map) {
    background: rgba(0, 8, 15, 0.3);
    /* Overlay sutil escuro */
    backdrop-filter: blur(12px) saturate(120%);
    padding: 60px 20px;
    min-height: calc(100vh - 70px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    color: #1a2a3a;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    pointer-events: auto;
    /* Ensure panels are clickable */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.rule-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 24px;
    border-left: 6px solid var(--accent-color);
}

.rule-card.full-width {
    grid-column: 1 / -1;
}

.rule-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.price-table {
    background: #fff;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid #eee;
}

.price-table.featured {
    border: 3px solid var(--accent-color);
    background: #f0faff;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* THUMB MARKERS ON MAP */
.thumb-marker {
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.thumb-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MODAL */
#point-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: 0.3s;
    color: #1a2a3a;
}

#point-modal.active .modal-content {
    opacity: 1;
    transform: scale(1);
}

.modal-gallery {
    width: 100%;
    height: 350px;
    background: #000;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2px;
    overflow-y: auto;
    align-content: start;
}

.modal-gallery img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #111;
}

.modal-info {
    padding: 40px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 100;
}

/* LIVE TRACKER ANIMATIONS */
.progress-line-glow {
    filter: drop-shadow(0 0 8px var(--accent-color));
}

@media (min-width: 769px) {
    .modal-content {
        flex-direction: row;
        height: 650px;
    }

    .modal-gallery {
        width: 60%;
        height: 100%;
        grid-template-columns: 1fr;
        align-content: start;
    }

    .modal-gallery img {
        height: auto;
        max-height: 650px;
        object-fit: contain;
        background: #111;
    }

    .modal-info {
        width: 40%;
    }
}

/* WEATHER WIDGET */
.weather-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(26, 42, 58, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    gap: 30px;
    z-index: 1000;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.weather-item {
    display: flex;
    flex-direction: column;
}

.w-label {
    font-size: 0.6rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    font-weight: bold;
}

.w-value {
    font-size: 0.9rem;
    font-weight: 900;
}

/* ZOOM CONTROLS (Lupa) */
.zoom-controls {
    position: fixed;
    bottom: 120px;
    /* Movido para baixo */
    right: 25px;
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.9) 0%, rgba(13, 21, 29, 0.95) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 25px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-controls:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.zoom-controls button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 34px;
    /* Tamanho reduzido */
    height: 34px;
    /* Tamanho reduzido */
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-controls button:hover {
    background: var(--accent-color);
    color: #1a2a3a;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.zoom-controls button:active {
    transform: scale(0.9);
}

.zoom-icon {
    font-size: 1rem;
    opacity: 0.5;
    margin: 2px 0;
}

/* GEAR SHOWCASE */
.gear-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gear-card-premium {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid transparent;
    transition: 0.3s;
}

.gear-card-premium:hover {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-footer {
    padding: 12px 20px;
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
}

.social-action {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s;
    padding: 4px 8px;
    border-radius: 8px;
}

.social-action:hover {
    background: rgba(0, 162, 255, 0.1);
}

.social-icon {
    font-size: 1.1rem;
}

.social-count {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-secondary);
}

.social-action.liked .social-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}

.social-action.liked .social-count {
    color: #ff4444;
}

.g-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.g-info strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.g-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* MOBILE REFINEMENT - PREMIUM APP FEEL */
@media (max-width: 768px) {
    .main-header {
        height: auto;
        padding: 8px 0 0 0;
        /* Padding lateral zerado para as abas encostarem */
        display: grid;
        grid-template-areas:
            "logo auth"
            "nav nav";
        grid-template-columns: 1fr auto;
        gap: 0;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        border-bottom: 3px solid var(--coastal-aqua) !important;
    }

    .logo {
        grid-area: logo;
        padding-left: 15px;
        justify-content: flex-start;
        height: 50px;
    }

    .logo-main {
        font-size: 1.2rem;
        color: #1a2a3a !important;
    }

    .logo-sub {
        font-size: 0.55rem;
        color: var(--coastal-aqua) !important;
    }

    .header-logo {
        filter: none !important;
        /* Garante que a logo não inverta no mobile */
    }

    #user-auth-area {
        grid-area: auth;
        display: flex;
        align-items: center;
        padding-right: 15px;
    }

    .admin-login-btn {
        margin-left: 0;
        padding: 6px 12px;
        font-size: 0.7rem;
        background: var(--coastal-aqua);
        color: white;
        border-radius: 20px;
        box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
    }

    .nav-menu {
        grid-area: nav;
        width: 100vw;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 0;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.65rem;
        gap: 4px;
        flex-shrink: 0;
        background: transparent;
        border: none;
        color: rgba(26, 42, 58, 0.6);
        border-radius: 0;
        font-weight: 700;
        transition: all 0.2s ease;
    }

    .nav-link.active {
        background: rgba(0, 188, 212, 0.12) !important;
        color: #1a2a3a;
        border-color: transparent;
        box-shadow: none;
    }

    .header-date {
        display: none;
    }

    .app-container {
        padding-top: 110px;
        pointer-events: none !important;
        z-index: 1000 !important;
    }

    .app-container > *,
    .glass-panel,
    .card,
    .nav-menu,
    .hero-dynamic-box,
    .social-action,
    button,
    a {
        pointer-events: auto !important;
    }

    #page-map {
        pointer-events: auto !important;
        z-index: 1000 !important;
        height: auto !important;
        min-height: calc(100vh - 110px) !important;
    }

    #map {
        pointer-events: none !important;
    }
    
    .admin-active #map {
        pointer-events: auto !important;
    }

    .leaflet-marker-pane, 
    .leaflet-popup-pane,
    .leaflet-control-container {
        pointer-events: auto !important;
    }

    .page-section {
        top: 0;
        height: calc(100vh - 110px);
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h1 {
        font-size: 1.5rem;
    }

    /* Ajuste de Cards para não cortar texto */
    .glass-panel {
        width: 95%;
        margin: 10px auto;
        padding: 20px 15px;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }

    .rules-grid,
    .gear-showcase,
    .pricing-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .rule-card,
    .price-table {
        width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    .rule-card h3 {
        font-size: 1.1rem;
    }

    .rule-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .gear-card-premium {
        flex-direction: row;
        padding: 12px;
        gap: 12px;
    }

    .g-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    #map {
        height: 100vh;
        top: 0;
        left: 0;
        width: 100vw;
        position: fixed;
    }

    .content-wrapper {
        width: 100%;
        margin-top: 12vh;
        padding: 0 10px 150px 10px;
        pointer-events: auto !important;
        z-index: 1001 !important;
    }

    .hero {
        min-height: 50vh;
        justify-content: flex-start;
        padding-top: 0;
    }

    .hero-dynamic-box {
        padding: 15px;
    }

    .hero-title-main {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }

    .text-outline {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    }

    .hero-stats-mini {
        gap: 20px;
        padding: 12px 20px;
        margin-top: 20px;
    }

    .s-item strong {
        font-size: 1.1rem;
    }

    /* MOBILE EXPANSION - SPOTLIGHT ROAD BUBBLE MORPHING */
    .card {
        display: block !important;
        width: 90%;
        max-width: 360px;
        margin: 0 auto;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 248, 255, 0.98) 50%, rgba(200, 235, 255, 0.95) 100%);
        border: 4px solid white;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
        overflow: hidden;
        transform-origin: center center;
        opacity: 0;
        transform: scale(0.05);
        border-radius: 50%;
        color: #1a2a3a;
    }

    .card-img-container {
        width: 100%;
        height: 180px;
        border-radius: 0;
        overflow: hidden;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .card-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }

    .card-body {
        padding: 15px 20px;
        display: block !important;
    }

    .card-body h2 {
        font-size: 1.25rem !important;
        margin-bottom: 8px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        color: #1a2a3a !important;
    }

    .card-body p {
        display: block !important;
        color: var(--text-secondary);
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .card-header {
        display: flex !important;
        padding: 12px 20px;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #1a2a3a;
    }

    .card-footer {
        display: flex !important;
        padding: 10px 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        background: rgba(0, 0, 0, 0.02);
        margin-left: 0;
        gap: 15px;
    }

    .social-action {
        padding: 4px 8px;
        gap: 6px;
        display: flex;
        align-items: center;
    }

    .social-icon {
        font-size: 1.1rem;
    }

    .social-count {
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

    .timeline-item {
        min-height: 95vh;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    #admin-panel {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        padding: 10px;
        box-shadow: none;
    }

    .leaflet-popup-content-wrapper {
        border-radius: 15px;
        max-width: 90vw;
    }

    .creation-form input,
    .creation-form textarea,
    .creation-form select {
        width: 100%;
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 16px !important;
        /* Evita auto-zoom no iOS */
        box-sizing: border-box;
    }

    .creation-form button {
        width: 100%;
        padding: 12px;
        font-size: 1.1rem;
        border-radius: 10px;
        background: var(--accent-color);
        color: #1a2a3a;
        font-weight: bold;
        border: none;
    }
}

#admin-panel {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 320px;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    z-index: 10001;
    box-shadow: none;
    display: none;
    pointer-events: none;
}

.admin-active #admin-panel {
    display: block;
}

.admin-active .hero-dynamic-box {
    display: none !important;
}

/* Altimetria Button no Header */
.altimetry-btn {
    background: rgba(0, 210, 255, 0.1) !important;
    border: 1px solid rgba(0, 210, 255, 0.3) !important;
    color: var(--accent-color) !important;
}

.altimetry-btn:hover {
    background: var(--accent-color) !important;
    color: #1a2a3a !important;
}

/* Perfil de Altimetria Dashboard */
.elevation-profile {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90%;
    max-width: 900px;
    height: 140px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 20px;
    padding: 15px;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.elevation-profile.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

/* Pontos de Interesse (POI) */
.poi-marker {
    background: transparent;
    border: none;
}

.poi-bubble {
    width: 36px;
    height: 36px;
    background: rgba(26, 42, 58, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    transition: 0.3s;
    cursor: pointer;
}

.poi-bubble:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.8);
}

/* Miniatura no Popup do Mapa */
.popup-thumb {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, filter 0.3s;
    display: block;
}

.popup-thumb:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

#elevationChart {
    width: 100% !important;
    height: 100% !important;
}

.admin-active .elevation-profile {
    bottom: 180px;
}

/* TOOLTIPS PREMIUM */
.leaflet-tooltip {
    background: rgba(26, 42, 58, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 8px !important;
    color: white !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-tooltip-top:before {
    border-top-color: var(--accent-color) !important;
}

.poi-tooltip {
    background: var(--accent-color) !important;
    color: #1a2a3a !important;
    border: none !important;
}

.poi-tooltip:before {
    border-top-color: var(--accent-color) !important;
}

/* AUTH & USER MANAGEMENT STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 21000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0faff 100%);
}

.auth-page-container {
    padding: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    border-radius: 32px;
    position: relative;
    /* Adicionado */
    z-index: 2;
    /* Acima do blur */
}

@media (max-width: 768px) {
    .auth-page-container {
        padding: 30px 20px;
    }
}

#page-auth.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    min-height: calc(100vh - 70px);
    background: transparent;
    /* Removido para usar o fundo de praia global */
    backdrop-filter: none;
}

@media (max-width: 768px) {
    #page-auth.active {
        height: auto;
        min-height: calc(100vh - 70px);
        align-items: flex-start;
        padding-top: 40px;
    }
}

#auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.auth-tab {
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    padding: 5px 15px;
    transition: 0.3s;
}

.auth-tab.active {
    color: var(--accent-color);
    position: relative;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.auth-form.active {
    display: flex;
}

.auth-form input,
.auth-form select {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.user-auth-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-role-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 900;
    background: var(--accent-color);
    color: #1a2a3a;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Painel de Gerenciamento de Usuários */
.user-management-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item-admin {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-item-info {
    display: flex;
    flex-direction: column;
}

.user-item-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.user-item-meta {
    font-size: 0.7rem;
    color: #aaa;
}

.status-indicator {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: bold;
}

.status-pending {
    background: #ff9800;
    color: white;
}

.status-active {
    background: #4caf50;
    color: white;
}

.btn-approve {
    background: #4caf50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: bold;
}

.btn-approve:hover {
    background: #45a049;
}

/* FORCE UNLOCK FOR TESTING ENVIRONMENT & MOBILE SCROLLABILITY */
html, body, html:root body.antigravity-scroll-lock {
    overflow-y: auto !important;
}