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

        body {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            background: #0a0c12;
            position: relative;
            color: #f0f3fa;
            line-height: 1.4;
        }

        /* NOVO FUNDO: SCANIA 111 (imagem clássica) */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('../images/fundo.jpg');
            background-size: cover;
            background-position: center 40%;
            background-repeat: no-repeat;
            opacity: 0.55;
            z-index: -2;
            filter: brightness(0.9) contrast(1.1);
        }

        body::after {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.7), rgba(5, 8, 18, 0.88));
            z-index: -1;
        }

        /* overlay de estrada */
        .road-pattern {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100px;
            background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255, 180, 50, 0.2) 40px, rgba(255, 180, 50, 0.35) 60px);
            pointer-events: none;
            z-index: 0;
        }

        .container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 2rem 1.5rem;
            position: relative;
            z-index: 2;
        }

        /* Header com área de admin */
        .ets2-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid rgba(255, 140, 0, 0.5);
            backdrop-filter: blur(4px);
        }

        .logo-area h1 {
            font-family: 'Orbitron', monospace;
            font-weight: 800;
            font-size: 1.9rem;
            background: linear-gradient(135deg, #FFB347, #FF7E05);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: 1px;
        }

        .logo-area p {
            font-size: 0.85rem;
            color: #ccc;
            letter-spacing: 1px;
        }

        .admin-area {
            display: flex;
            gap: 15px;
            align-items: center;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(8px);
            padding: 0.3rem 1rem;
            border-radius: 60px;
            border: 1px solid rgba(255,140,0,0.4);
        }

        .admin-badge {
            font-size: 0.8rem;
            font-weight: 600;
            color: #ffaa55;
        }

        .logout-btn {
            background: none;
            border: 1px solid #ff7e05;
            color: #ffaa55;
            padding: 6px 14px;
            border-radius: 40px;
            font-size: 0.75rem;
            cursor: pointer;
            transition: 0.2s;
            font-weight: bold;
        }

        .logout-btn:hover {
            background: #ff7e05;
            color: #111;
        }

        .live-clock {
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            padding: 0.5rem 1.2rem;
            border-radius: 40px;
            font-family: 'Orbitron', monospace;
            font-weight: 600;
            border: 1px solid rgba(255, 140, 0, 0.6);
        }

        /* Cards glassmorphism */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.8rem;
            margin-bottom: 2rem;
        }

        .card {
            background: rgba(15, 20, 30, 0.65);
            backdrop-filter: blur(12px);
            border-radius: 28px;
            border: 1px solid rgba(255, 140, 0, 0.35);
            padding: 1.5rem;
            transition: transform 0.25s ease, box-shadow 0.3s;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        }

        .card:hover {
            transform: translateY(-5px);
            border-color: rgba(255, 140, 0, 0.7);
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px dashed rgba(255, 140, 0, 0.5);
            padding-bottom: 0.8rem;
            margin-bottom: 1.2rem;
        }

        .card-header i {
            font-size: 1.8rem;
            color: #ff8c2e;
            text-shadow: 0 0 5px #ff8c2e;
        }

        .card-header h2 {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .about-content {
            font-size: 1rem;
            line-height: 1.6;
            background: rgba(0, 0, 0, 0.4);
            padding: 1rem;
            border-radius: 20px;
            margin-top: 8px;
            border-left: 4px solid #ff8c2e;
        }

        .news-list,
        .download-list,
        .partners-list {
            list-style: none;
            margin-top: 0.5rem;
        }

        .news-list li,
        .download-list li,
        .partners-list li {
            background: rgba(0, 0, 0, 0.4);
            margin: 0.7rem 0;
            padding: 0.7rem 1rem;
            border-radius: 40px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.9rem;
            word-break: break-word;
        }

        .download-list li a {
            color: #ffaa55;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s;
        }

        .download-list li a:hover,
        .partners-list li a:hover {
            color: #ff8c2e;
            text-decoration: underline;
        }

        .partners-list li a {
            color: #ffaa55;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s;
        }

        /* Card de Instalação (Vídeo) */
        .video-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 20px;
            overflow: hidden;
            margin-top: 8px;
            background: #000;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Card de Fotos do Mapa (Galeria) */
        .gallery-grid {
            display: flex;
            gap: 1rem;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .gallery-grid .gallery-item {
            flex: 1 1 calc(33.333% - 0.7rem);
            min-width: 120px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 16px;
            overflow: hidden;
            aspect-ratio: 4 / 3;
        }

        .gallery-grid .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .gallery-grid .gallery-empty {
            flex: 1;
            text-align: center;
            padding: 2rem 1rem;
            color: #888;
            font-style: italic;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 16px;
            border: 1px dashed rgba(255, 140, 0, 0.3);
        }

        /* Preview das imagens no admin */
        .image-preview {
            margin-top: 6px;
            width: 100px;
            height: 75px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255, 140, 0, 0.4);
            background: rgba(0, 0, 0, 0.3);
        }

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

        .image-preview .placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6rem;
            color: #666;
        }

        /* botão editar flutuante */
        .edit-fab {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #ff7e05;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            transition: 0.2s;
            z-index: 1000;
            border: none;
            color: #111;
            font-size: 28px;
        }

        .edit-fab:hover {
            background: #ff9f3a;
            transform: scale(1.07);
        }

        /* MODAL DE LOGIN (administrativo) */
        .modal-login {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(12px);
            z-index: 2100;
            align-items: center;
            justify-content: center;
        }

        .login-container {
            background: #0f141e;
            border-radius: 42px;
            max-width: 400px;
            width: 90%;
            padding: 2rem;
            border: 1px solid #ff8c2e;
            box-shadow: 0 20px 40px rgba(0,0,0,0.6);
            text-align: center;
        }

        .login-container h3 {
            font-family: 'Orbitron', monospace;
            color: #ffaa55;
            margin-bottom: 1.2rem;
            font-size: 1.8rem;
        }

        .login-container input {
            width: 100%;
            padding: 12px 18px;
            margin: 10px 0;
            background: #1e2533;
            border: 1px solid #ff8c2e60;
            border-radius: 60px;
            color: white;
            font-size: 1rem;
        }

        .login-container button {
            background: #ff8c2e;
            color: #111;
            font-weight: bold;
            padding: 12px;
            border: none;
            border-radius: 60px;
            width: 100%;
            margin-top: 15px;
            cursor: pointer;
            font-size: 1rem;
        }

        .login-error {
            color: #ff8866;
            margin-top: 12px;
            font-size: 0.85rem;
        }

        /* MODAL DE EDIÇÃO (protegido) */
        .modal-edit {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: #12161f;
            width: 90%;
            max-width: 600px;
            max-height: 85vh;
            overflow-y: auto;
            border-radius: 32px;
            border: 1px solid #ff8c2e;
            padding: 1.8rem;
            color: #fff;
        }

        .modal-content h3 {
            font-family: 'Orbitron', monospace;
            margin-bottom: 1rem;
            border-left: 4px solid #ff8c2e;
            padding-left: 15px;
        }

        .modal-content label {
            display: block;
            margin-top: 1rem;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .modal-content input, .modal-content textarea {
            width: 100%;
            padding: 12px;
            border-radius: 20px;
            background: #1e2533;
            border: 1px solid #ff8c2e60;
            color: white;
            font-family: 'Inter', sans-serif;
        }

        .modal-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 1.8rem;
            flex-wrap: wrap;
        }

        .modal-buttons button {
            padding: 10px 20px;
            border-radius: 40px;
            font-weight: bold;
            cursor: pointer;
            border: none;
        }

        .btn-save { background: #ff8c2e; color: #111; }
        .btn-reset { background: #2c3e4e; color: white; }
        .btn-cancel { background: #3a3f4b; color: #ddd; }

        footer {
            text-align: center;
            padding: 1.5rem 0 0.5rem;
            font-size: 0.75rem;
            opacity: 0.7;
            border-top: 1px solid rgba(255, 140, 0, 0.3);
        }

        /* Redes Sociais */
        .social-links {
            display: flex;
            gap: 1.2rem;
            justify-content: center;
        }

        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: rgba(255, 140, 0, 0.15);
            border: 1.5px solid rgba(255, 140, 0, 0.4);
            border-radius: 50%;
            color: #ffaa55;
            font-size: 1.4rem;
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
        }

        .social-icon:hover {
            background: #ff8c2e;
            color: #111;
            transform: scale(1.12) translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
            border-color: #ff8c2e;
        }

        @media (max-width: 720px) {
            .container { padding: 1rem; }
            .card-header h2 { font-size: 1.2rem; }
            .ets2-header {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
            }
            .logo-area h1 {
                font-size: 1.3rem;
            }
            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: 1.2rem;
            }
            .card {
                padding: 1.2rem;
            }
            .modal-content {
                width: 95%;
                padding: 1.2rem;
            }
            .edit-fab {
                width: 50px;
                height: 50px;
                font-size: 22px;
                bottom: 20px;
                right: 20px;
            }
            .login-container {
                width: 95%;
                padding: 1.5rem;
            }
            footer > div {
                flex-direction: column;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .logo-area h1 {
                font-size: 1rem;
            }
            .card-header h2 {
                font-size: 1rem;
            }
            .card {
                padding: 1rem;
                border-radius: 20px;
            }
            .news-list li,
            .download-list li,
            .partners-list li {
                font-size: 0.8rem;
                padding: 0.6rem 0.8rem;
            }
            .about-content {
                font-size: 0.85rem;
                padding: 0.8rem;
            }
            .gallery-grid .gallery-item {
                flex: 1 1 calc(50% - 0.5rem);
                min-width: 100px;
            }
            .image-preview {
                width: 80px;
                height: 60px;
            }
        }

        /* GALERIA DINÂMICA - Card e Grid */
        .gallery-dynamic-card {
            grid-column: 1 / -1;
        }

        .gallery-dynamic-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 8px;
        }

        .gallery-dynamic-item {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            aspect-ratio: 4 / 3;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 140, 0, 0.25);
            cursor: pointer;
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .gallery-dynamic-item:hover {
            transform: scale(1.03);
            border-color: rgba(255, 140, 0, 0.7);
        }

        .gallery-dynamic-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .gallery-dynamic-item .gallery-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.85));
            padding: 2rem 0.8rem 0.6rem;
            font-size: 0.8rem;
            color: #ddd;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-dynamic-item:hover .gallery-caption {
            opacity: 1;
        }

        .gallery-dynamic-empty {
            grid-column: 1 / -1;
            text-align: center;
            padding: 3rem 1rem;
            color: #888;
            font-style: italic;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 16px;
            border: 1px dashed rgba(255, 140, 0, 0.3);
        }

        /* LIGHTBOX */
        .lightbox-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 5000;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

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

        .lightbox-img {
            max-width: 90vw;
            max-height: 80vh;
            border-radius: 12px;
            object-fit: contain;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        }

        .lightbox-caption {
            color: #ccc;
            margin-top: 1rem;
            font-size: 1rem;
            text-align: center;
            max-width: 80vw;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            background: none;
            border: none;
            color: #fff;
            font-size: 2.5rem;
            cursor: pointer;
            transition: color 0.2s, transform 0.2s;
            z-index: 5001;
        }

        .lightbox-close:hover {
            color: #ff8c2e;
            transform: scale(1.15);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 140, 0, 0.25);
            border: 1px solid rgba(255, 140, 0, 0.5);
            color: #fff;
            font-size: 2rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
            z-index: 5001;
        }

        .lightbox-nav:hover {
            background: rgba(255, 140, 0, 0.6);
        }

        .lightbox-prev { left: 20px; }
        .lightbox-next { right: 20px; }

        .lightbox-counter {
            position: absolute;
            bottom: 20px;
            color: #888;
            font-size: 0.9rem;
        }

        /* ADMIN - Gerenciamento da Galeria */
        .gallery-admin-section {
            margin-top: 1.5rem;
            padding: 1rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 16px;
            border: 1px solid rgba(255, 140, 0, 0.3);
        }

        .gallery-admin-section h4 {
            font-family: 'Orbitron', monospace;
            color: #ffaa55;
            margin-bottom: 0.8rem;
            font-size: 0.95rem;
        }

        .gallery-admin-list {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            margin-bottom: 1rem;
        }

        .gallery-admin-item {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            background: rgba(30, 37, 51, 0.8);
            padding: 0.5rem;
            border-radius: 12px;
            border: 1px solid rgba(255, 140, 0, 0.2);
        }

        .gallery-admin-item img {
            width: 60px;
            height: 45px;
            object-fit: cover;
            border-radius: 8px;
        }

        .gallery-admin-item .gallery-item-info {
            flex: 1;
            min-width: 0;
        }

        .gallery-admin-item .gallery-item-info input {
            width: 100%;
            padding: 4px 8px;
            font-size: 0.75rem;
            border-radius: 8px;
            background: #0f141e;
            border: 1px solid rgba(255, 140, 0, 0.3);
            color: #ddd;
        }

        .gallery-admin-item .gallery-item-actions {
            display: flex;
            gap: 4px;
        }

        .gallery-admin-item .gallery-item-actions button {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            transition: background 0.2s;
        }

        .btn-gallery-up, .btn-gallery-down {
            background: rgba(255, 140, 0, 0.2);
            color: #ffaa55;
        }

        .btn-gallery-up:hover, .btn-gallery-down:hover {
            background: rgba(255, 140, 0, 0.5);
        }

        .btn-gallery-remove {
            background: rgba(255, 60, 60, 0.2);
            color: #ff6666;
        }

        .btn-gallery-remove:hover {
            background: rgba(255, 60, 60, 0.5);
        }

        .gallery-admin-add {
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .gallery-admin-add label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 140, 0, 0.2);
            color: #ffaa55;
            padding: 8px 16px;
            border-radius: 40px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid rgba(255, 140, 0, 0.4);
            transition: background 0.2s;
        }

        .gallery-admin-add label:hover {
            background: rgba(255, 140, 0, 0.4);
        }

        .gallery-admin-add input[type="file"] {
            display: none;
        }

        .gallery-admin-add .caption-input {
            flex: 1;
            padding: 8px 12px;
            font-size: 0.85rem;
            border-radius: 40px;
            background: #1e2533;
            border: 1px solid rgba(255, 140, 0, 0.3);
            color: #ddd;
        }

        .gallery-admin-limit {
            font-size: 0.75rem;
            color: #888;
            margin-top: 0.5rem;
        }

        @media (max-width: 720px) {
            .gallery-dynamic-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            .lightbox-nav {
                width: 40px;
                height: 40px;
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .gallery-dynamic-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.6rem;
            }
            .gallery-admin-item {
                flex-wrap: wrap;
            }
        }
    