* {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow: hidden;
        }

        /* =========================
           MAPA
        ========================= */

        #map {
            width: 100%;
            height: 100vh;
            height: 100dvh;
            z-index: 1;
        }

        .category-marker {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            border: 2px solid rgba(255, 255, 255, 0.95);
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
        }

        .marker-cluster-custom {
            border-radius: 50%;
            color: #ffffff;
            font-weight: 700;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(255, 255, 255, 0.9);
        }

        .custom-pin-wrapper {
            background: transparent;
            border: none;
        }

        .custom-pin {
            width: 40px;
            height: 40px;
            background-color: #4DC2A3; /* Verde Menta */
            border-radius: 50% 50% 50% 0;
            transform: rotate(-45deg);
            border: 2.5px solid #16324F; /* Azul Petróleo */
            box-shadow: -3px 3px 6px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .custom-pin:hover {
            transform: rotate(-45deg) scale(1.1);
            box-shadow: -4px 4px 8px rgba(0,0,0,0.4);
            background-color: #58D9B9;
        }

        .custom-pin img {
            width: 22px;
            height: 22px;
            transform: rotate(45deg);
            pointer-events: none;
            object-fit: contain;
        }

        /* =========================
           HEADER
        ========================= */

        .header {
            position: fixed;
            left: 50%;
            top: 14px;
            transform: translateX(-50%);
            width: auto;
            max-width: 94%;
            height: auto;
            display: inline-flex;
            align-items: center;
            gap: 16px;
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(40px) saturate(200%);
            -webkit-backdrop-filter: blur(40px) saturate(200%);
            border-radius: 40px;
            border: 1px solid rgba(255, 255, 255, 0.6);
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);
            z-index: 1000;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .brand-icon {
            width: 38px;
            height: 38px;

            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 24px;

            background: linear-gradient(135deg, #16324F, #4DC2A3);
            color: white;

            font-size: 20px;
        }

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

        .brand-name {
            font-size: 18px;
            font-weight: 700;
            color: #16324F;
        }

        .brand-subtitle {
            font-size: 11px;
            color: #65756e;
        }

        /* =========================
           FAB
        ========================= */

        .fab {
            position: fixed;
            left: 50%;
            bottom: 26px;
            transform: translateX(-50%);

            width: 110px;
            height: 110px;
            padding: 0;

            display: flex;
            align-items: center;
            justify-content: center;

            border: 4px solid #2f8f62;
            border-radius: 50%;

            background: #f7fdf9;
            cursor: pointer;

            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);

            z-index: 1001;

            transition:
                transform 0.18s ease,
                box-shadow 0.18s ease;

            overflow: visible;
            /* allow label to overflow */
        }

        .fab:disabled {
            pointer-events: none;
            opacity: 0.7;
        }

        .fab:hover {
            transform: translateX(-50%) translateY(-2px) scale(1.01);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
        }

        .fab-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            overflow: hidden;
            background: #f7fdf9;
        }

        .fab-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* label sits centered horizontally and near the bottom of the FAB,
           slightly overflowing for emphasis and high contrast */
        .fab-label {
            position: absolute;
            /* positioned relative to .fab (fixed) */
            left: 50%;
            bottom: -16px;
            /* slightly lower to overlap outside the circle */
            transform: translateX(-50%);
            z-index: 1202;
            font-size: 15px;
            font-weight: 800;
            letter-spacing: 0.01em;
            text-transform: none;
            color: #063b2b;
            /* dark green for legibility */
            background: rgba(255, 255, 255, 0.98);
            padding: 6px 12px;
            border-radius: 16px;
            box-shadow: 0 8px 22px rgba(11, 56, 42, 0.14);
            pointer-events: none;
            white-space: nowrap;
        }

        /* responsive: slightly smaller on very small screens */
        /* small-screen adjustments — single rule used (see below at 480px) */

        /* =========================
           BARRA INFERIOR
        ========================= */

        .footer-bar {
            position: fixed;
            left: 50%;
            bottom: 14px;
            transform: translateX(-50%);
            width: min(500px, 92%);
            height: 64px;
            display: block;
            pointer-events: none;
            z-index: 1000;
            transition: transform 0.18s ease;
            filter: drop-shadow(0 12px 22px rgba(8, 45, 32, 0.14));
        }

        .footer-bar .shape {
            width: 100%;
            height: 100%;
            display: block;
            pointer-events: none;
            /* don't block map interactions */
        }

        .footer-bar .icons {
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 22px;
            pointer-events: none;
            z-index: 2;
        }

        .footer-bar .icons button {
            pointer-events: auto;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.72);
            background: rgba(255, 255, 255, 0.48);
            backdrop-filter: blur(14px) saturate(150%);
            -webkit-backdrop-filter: blur(14px) saturate(150%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 6px 16px rgba(7, 25, 18, 0.10);
            color: #154633;
            transform: translateY(-4px);
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }

        /* Mantém a barra acompanhando o FAB em interações com ponteiro. */
        .fab:hover+.footer-bar,
        .fab:focus+.footer-bar,
        .fab:active+.footer-bar {
            transform: translateX(-50%) translateY(-8px);
        }

        .fab:hover+.footer-bar .icons button,
        .fab:focus+.footer-bar .icons button,
        .fab:active+.footer-bar .icons button {
            transform: translateY(-12px);
            box-shadow: 0 14px 34px rgba(7, 25, 18, 0.12);
        }

        @media (max-width:420px) {
            .footer-bar {
                height: 58px;
            }

            .footer-bar .icons {
                padding: 0 12px;
            }

            .footer-bar .icons button {
                width: 38px;
                height: 38px;
            }
        }

        /* =========================
           MENU DO USUÁRIO
        ========================= */

        .menu-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(7, 30, 21, 0.28);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s ease;
            z-index: 1300;
        }

        .menu-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }

        .side-menu {
            position: fixed;
            top: 16px;
            bottom: 16px;
            left: 16px;
            width: min(340px, calc(100vw - 32px));
            padding: 16px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 36px;
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(40px) saturate(200%);
            -webkit-backdrop-filter: blur(40px) saturate(200%);
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8);
            opacity: 0;
            pointer-events: none;
            transform: translateX(calc(-100% - 32px));
            transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.3s ease;
            z-index: 1301;
        }

        .side-menu.active {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0);
        }

        .menu-profile {
            position: relative;
            padding: 24px 18px;
            border-radius: 19px;
            color: white;
            background: linear-gradient(135deg, rgba(22, 50, 79, 0.8), rgba(77, 194, 163, 0.55));
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .menu-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 34px;
            height: 34px;
            padding: 0;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 50%;
            color: white;
            background: rgba(255, 255, 255, 0.12);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .menu-avatar {
            width: 52px;
            height: 52px;
            margin-bottom: 8px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 21px;
            font-weight: 700;
        }

        .menu-user-name {
            margin: 0 0 2px;
            font-size: 20px;
            font-weight: 700;
        }

        .menu-user-email {
            margin: 0 0 6px;
            font-size: 14px;
            opacity: 0.9;
            word-break: break-all;
        }

        .menu-user-since {
            margin: 0 0 16px;
            font-size: 13px;
            opacity: 0.9;
        }

        .menu-stats {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 6px;
            align-items: center;
        }

        .menu-stat-item {
            margin: 0;
            font-size: 13px;
            opacity: 0.95;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .menu-nav {
            display: grid;
            gap: 8px;
            padding: 16px 4px;
        }

        .menu-link,
        .menu-logout {
            width: 100%;
            min-height: 52px;
            padding: 0 14px;
            border: 0;
            border-radius: 24px;
            color: #16324F;
            background: transparent;
            display: flex;
            align-items: center;
            gap: 13px;
            font: inherit;
            font-weight: 700;
            text-align: left;
            cursor: pointer;
        }

        .menu-link:hover {
            background: rgba(31, 122, 90, 0.10);
        }

        .menu-link.open .menu-chevron {
            transform: rotate(90deg);
        }

        .menu-section {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.3s ease, margin-top 0.3s ease;
            margin-top: 0;
        }

        .menu-section.open {
            grid-template-rows: 1fr;
            margin-top: 18px;
        }

        .menu-section-inner {
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .menu-section-title {
            margin: 0 0 12px;
            font-size: 13px;
            font-weight: 700;
            color: #16324F;
            opacity: 0.9;
        }

        .menu-profile-detail,
        .menu-status {
            margin: 0 0 10px;
            font-size: 14px;
            color: #40534b;
            line-height: 1.5;
        }

        .contributions-list {
            display: grid;
            gap: 10px;
        }

        .contribution-card {
            padding: 14px;
            border-radius: 18px;
            border: 1px solid rgba(31, 122, 90, 0.12);
            background: rgba(247, 253, 251, 0.98);
        }

        .contribution-card-title {
            margin: 0 0 8px;
            font-size: 14px;
            font-weight: 700;
            color: #16324F;
        }

        .contribution-card-description {
            margin: 0 0 10px;
            font-size: 13px;
            color: #52645c;
            line-height: 1.5;
        }

        .contribution-card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 12px;
            color: #707c77;
        }

        .menu-link svg:first-child,
        .menu-logout svg {
            width: 21px;
            height: 21px;
            flex: 0 0 auto;
            color: #217858;
        }

        .menu-link .menu-chevron {
            width: 18px;
            height: 18px;
            margin-left: auto;
            color: #789187;
            transition: transform 0.3s ease;
        }

        .menu-logout {
            margin-top: auto;
            color: #a33f3f;
        }

        .menu-logout:hover {
            background: rgba(179, 59, 59, 0.09);
        }

        .menu-logout svg {
            color: currentColor;
        }
        .menu-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 34px;
            height: 34px;
            padding: 0;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 50%;
            color: white;
            background: rgba(255, 255, 255, 0.12);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .menu-avatar {
            width: 52px;
            height: 52px;
            margin-bottom: 8px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 21px;
            font-weight: 700;
        }

        .menu-user-name {
            margin: 0 0 2px;
            font-size: 20px;
            font-weight: 700;
        }

        .menu-user-email {
            margin: 0 0 6px;
            font-size: 14px;
            opacity: 0.9;
            word-break: break-all;
        }

        .menu-user-since {
            margin: 0 0 16px;
            font-size: 13px;
            opacity: 0.9;
        }

        .menu-stats {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 6px;
            align-items: center;
        }

        .menu-stat-item {
            margin: 0;
            font-size: 13px;
            opacity: 0.95;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .menu-nav {
            display: grid;
            gap: 8px;
            padding: 16px 4px;
        }

        .menu-link,
        .menu-logout {
            width: 100%;
            min-height: 52px;
            padding: 0 14px;
            border: 0;
            border-radius: 24px;
            color: #16324F;
            background: transparent;
            display: flex;
            align-items: center;
            gap: 13px;
            font: inherit;
            font-weight: 700;
            text-align: left;
            cursor: pointer;
        }

        .menu-link:hover {
            background: rgba(31, 122, 90, 0.10);
        }

        .menu-link.open .menu-chevron {
            transform: rotate(90deg);
        }

        .menu-section {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.3s ease, margin-top 0.3s ease;
            margin-top: 0;
        }

        .menu-section.open {
            grid-template-rows: 1fr;
            margin-top: 18px;
        }

        .menu-section-inner {
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .menu-section-title {
            margin: 0 0 12px;
            font-size: 13px;
            font-weight: 700;
            color: #16324F;
            opacity: 0.9;
        }

        .menu-profile-detail,
        .menu-status {
            margin: 0 0 10px;
            font-size: 14px;
            color: #40534b;
            line-height: 1.5;
        }

        .contributions-list {
            display: grid;
            gap: 10px;
        }

        .contribution-card {
            padding: 14px;
            border-radius: 18px;
            border: 1px solid rgba(31, 122, 90, 0.12);
            background: rgba(247, 253, 251, 0.98);
        }

        .contribution-card-title {
            margin: 0 0 8px;
            font-size: 14px;
            font-weight: 700;
            color: #16324F;
        }

        .contribution-card-description {
            margin: 0 0 10px;
            font-size: 13px;
            color: #52645c;
            line-height: 1.5;
        }

        .contribution-card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 12px;
            color: #707c77;
        }

        .menu-link svg:first-child,
        .menu-logout svg {
            width: 21px;
            height: 21px;
            flex: 0 0 auto;
            color: #217858;
        }

        .menu-link .menu-chevron {
            width: 18px;
            height: 18px;
            margin-left: auto;
            color: #789187;
            transition: transform 0.3s ease;
        }

        .menu-logout {
            margin-top: auto;
            color: #a33f3f;
        }

        .menu-logout:hover {
            background: rgba(179, 59, 59, 0.09);
        }

        .menu-logout svg {
            color: currentColor;
        }

        /* =========================
           OVERLAY
        ========================= */

        .overlay {
            position: fixed;
            inset: 0;

            background: rgba(0, 0, 0, 0.35);

            z-index: 1100;

            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        
/* =========================
   APPLE VISIONOS AR AESTHETIC
========================= */

.overlay {
    background: rgba(4, 12, 9, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal {
    pointer-events: none;
    position: fixed;
    /* Float bottom sheet */
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(230, 250, 240, 0.35); /* Translucent bright earth tone */
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border-radius: 40px;
    padding: 12px;
    transform: translateY(120%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    z-index: 1200;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 40px 100px rgba(0, 40, 20, 0.15), 
        inset 0 1px 1px rgba(255, 255, 255, 0.9), 
        inset 0 -1px 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    opacity: 0;
}

.modal.active {
    pointer-events: auto;
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .modal {
        bottom: auto;
        top: 50%;
        transform: translateY(-40%) scale(0.95);
    }
    .modal.active {
        transform: translateY(-50%) scale(1);
    }
}

.close-button {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), inset 0 2px 4px rgba(255,255,255,0.7);
    cursor: pointer;
    color: #0d2c22;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}
.close-button:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}
.close-button svg { width: 20px; height: 20px; }

.modal-content-scroll {
    overflow-y: auto;
    padding: 24px 20px 32px;
    border-radius: 28px;
}
.modal-content-scroll::-webkit-scrollbar { width: 6px; }
.modal-content-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.5); border-radius: 10px; }

.modal-header-glass {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-right: 48px; /* space for close button */
}

.brand-icon-glass {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.3));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.2), inset 0 4px 8px rgba(255,255,255,0.9);
}
.brand-icon-glass svg {
    color: #0f766e;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header-text h2 {
    margin: 0;
    font-size: 26px;
    color: #042f1c;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.header-text p {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: #1b4b36;
    line-height: 1.4;
    font-weight: 500;
    opacity: 0.85;
}

/* Glass Modules */
.glass-module {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 8px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s ease;
}
.glass-module:hover, .glass-module:focus-within {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 12px 32px rgba(0, 0, 0, 0.08);
}
.glass-module.align-top { align-items: flex-start; }
.glass-module.flex-col { flex-direction: column; align-items: stretch; gap: 20px; }

.module-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.module-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1), inset 0 2px 4px rgba(255,255,255,0.4);
}
.module-icon svg { width: 24px; height: 24px; color: white; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }

/* Environmental Color Bubbles */
.bubble-teal { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.bubble-earth { background: linear-gradient(135deg, #fbbf24, #b45309); }
.bubble-green { background: linear-gradient(135deg, #34d399, #047857); }
.bubble-blue { background: linear-gradient(135deg, #38bdf8, #0369a1); }
.bubble-emerald { background: linear-gradient(135deg, #10b981, #065f46); }
.bubble-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }

.module-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.module-content label {
    font-size: 13px;
    font-weight: 700;
    color: #115e59;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Inputs acting as transparent elements over the glass module */
.glass-select, .glass-textarea, .loc-text {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 16px;
    color: #022c22;
    font-weight: 700;
    font-family: inherit;
    padding: 0;
    outline: none;
    appearance: none;
}
.glass-select { cursor: pointer; }
.glass-textarea {
    min-height: 80px;
    resize: none;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 4px;
}
.glass-textarea::placeholder { color: #0d9488; opacity: 0.6; }
.loc-text { font-size: 15px; color: #0f766e; }

.module-chevron {
    color: #0f766e;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Location Actions inside the module */
.module-actions {
    display: flex;
    gap: 12px;
}
.glass-action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    color: #0f766e;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03), inset 0 2px 4px rgba(255,255,255,0.8);
    transition: all 0.2s;
}
.glass-action-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06), inset 0 2px 4px rgba(255,255,255,0.9);
}
.glass-action-btn svg { width: 18px; height: 18px; color: #059669; }

/* File Module */
.file-module { position: relative; cursor: pointer; }
.file-hidden {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.file-name {
    font-size: 15px;
    color: #022c22;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.upload-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.6);
    color: #0f766e;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.8);
}
.upload-btn svg { width: 20px; height: 20px; }

/* Date Module */
.date-inputs-wrapper { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.date-input {
    width: 50px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #022c22;
    text-align: center;
    padding: 0;
    outline: none;
}
.date-input::placeholder { color: #0d9488; opacity: 0.5; }
.date-separator, .date-year { color: #0f766e; font-weight: 700; font-size: 16px; }

/* Submit Action Button */
.submit-glass-btn {
    width: 100%;
    padding: 24px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}
.submit-content { display: flex; justify-content: center; align-items: center; gap: 12px; z-index: 2; position: relative; }

/* Disabled - Holographic waiting state */
.submit-glass-btn:disabled {
    background: rgba(20, 60, 45, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
    color: rgba(4, 47, 28, 0.6);
    cursor: not-allowed;
}
.pulse-icon { animation: pulseIcon 1.5s infinite; color: #059669; }
@keyframes pulseIcon { 0% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 0.6; } }
.spin-icon { animation: spinIcon 1s linear infinite; }
@keyframes spinIcon { 100% { transform: rotate(360deg); } }

/* Enabled - Glowing Teal/Green Energy */
.submit-glass-btn:not(:disabled) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(13, 148, 136, 0.8));
    backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 16px 40px rgba(13, 148, 136, 0.3), 
        inset 0 1px 2px rgba(255,255,255,0.9),
        inset 0 -2px 10px rgba(0,0,0,0.1);
}
.submit-glass-btn:not(:disabled):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 24px 50px rgba(13, 148, 136, 0.4), 
        inset 0 2px 4px rgba(255,255,255,1);
}
.submit-glass-btn svg { width: 24px; height: 24px; pointer-events: none; }
\n
/* =========================
   SELEÇÃO MANUAL (MAPA PRINCIPAL)
========================= */
.center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 1000;
    font-size: 42px;
    pointer-events: none;
    display: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.confirm-location-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    padding: 18px 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(13, 148, 136, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    font-weight: 800;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.3), inset 0 1px 2px rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.confirm-location-btn:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 24px 50px rgba(13, 148, 136, 0.4), inset 0 2px 4px rgba(255,255,255,1);
}

/* =========================
   UX FIXES (Select Module)
========================= */
.select-module { position: relative; cursor: pointer; }
.glass-select-hidden {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}
\n
/* =========================
   LEAFLET POPUP STYLES
========================= */
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.leaflet-popup-content {
    max-width: 280px !important;
    margin: 16px;
}
.popup-category {
    font-weight: 800;
    font-size: 15px;
    color: #0f766e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.popup-description {
    font-size: 14px;
    color: #334155;
    margin-bottom: 12px;
    line-height: 1.5;
}
.popup-date, .popup-author {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}
.popup-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

/* =========================
   ULTIMATE BOTTOM BAR
========================= */
.ultimate-bottom-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 500px;
    height: 72px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 255, 248, 0.45));
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 
        0 12px 32px rgba(0, 40, 20, 0.15), 
        0 0 20px rgba(16, 185, 129, 0.2),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.9),
        inset 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.bar-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05), inset 0 2px 4px rgba(255,255,255,1);
    color: #064e3b;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}
.bar-btn i, .bar-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.bar-center {
    position: absolute;
    left: 50%;
    top: -36px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-fab-aura {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: pulseAura 3s infinite ease-in-out;
}
@keyframes pulseAura {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
    100% { transform: translateX(-50%) scale(0.9); opacity: 0.7; }
}

.bar-fab {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a, #064e3b);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(6, 78, 59, 0.4), inset 0 4px 12px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
.bar-fab:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 16px 32px rgba(6, 78, 59, 0.5), inset 0 4px 12px rgba(255, 255, 255, 0.4);
}
.bar-fab img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
}

.bar-label {
    margin-top: -6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    color: #022c22;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 2px rgba(255,255,255,1);
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.6);
}

/* =========================
   AUTH SCREEN (LOGIN)
========================= */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(77, 194, 163, 0.15), transparent 30%), 
        radial-gradient(circle at 85% 30%, rgba(22, 50, 79, 0.4), transparent 30%), 
        linear-gradient(135deg, #020617, #0f172a, #022c22);
    display: none; /* Changed via JS to grid */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.auth-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    border-radius: 40px;
}

.auth-brand {
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.auth-brand img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 4px rgba(255,255,255,0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-brand:hover img {
    transform: scale(1.05) rotate(-5deg);
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px 0;
    background: linear-gradient(to right, #ffffff, #4DC2A3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.auth-copy {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.auth-instructions {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-instructions .highlight {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.auth-input {
    width: 100%;
    padding: 18px 24px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.auth-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #4DC2A3;
    box-shadow: 0 0 0 4px rgba(77, 194, 163, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-submit {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, rgba(77, 194, 163, 0.95), rgba(5, 150, 105, 0.95));
    backdrop-filter: blur(20px);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.auth-submit:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.5), inset 0 2px 4px rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, rgba(77, 194, 163, 1), rgba(5, 150, 105, 1));
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.1);
}

.auth-status {
    font-size: 15px;
    color: #4DC2A3;
    text-align: center;
    min-height: 20px;
    margin-top: 16px;
    font-weight: 600;
}

.auth-footer-logo {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.auth-footer-logo:hover {
    opacity: 1;
}

.auth-footer-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px;
    }
}
