:root {
    --brand-green: #00B14F; 
    --brand-glow: #00e676;
    --brand-blue: #3b82f6;
    --brand-gold: #d4af37; 
    --panel-bg: rgba(4, 9, 14, 0.75);
    --border-color: rgba(0, 177, 79, 0.3);
}

body {
    margin: 0;
    padding: 0;
}

/* KHUNG BẢO VỆ CHỐNG TRÀN LAYOUT TRÊN CMS */
#gsm-emag-wrapper {
    position: relative;
    width: 100%;
    height: 100vh; /* Sẽ tự fix theo độ cao màn hình của khối iframe/trình duyệt */
    min-height: 600px;
    background-color: #02060d;
    font-family: 'Inter', sans-serif;
    color: white;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    outline: none;
    opacity: 0; 
}

#ui-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

#dom-markers {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.marker-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0; 
    pointer-events: none;
    will-change: transform, opacity;
    transform-origin: center center;
    z-index: 10;
}

.marker-dot {
    width: 10px;
    height: 10px;
    background-color: var(--brand-glow);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 177, 79, 0.9);
    position: relative;
}

.marker-dot.unofficial {
    background-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
}
.marker-dot.unofficial::after {
    border: 1px solid #ffd700;
}

.marker-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--brand-glow);
    animation: ripple 2s infinite ease-out;
    opacity: 0;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.marker-dot.island {
    width: 6px;
    height: 6px;
    border: 1px solid var(--brand-glow);
    background-color: transparent;
    box-shadow: 0 0 5px rgba(0, 177, 79, 0.5);
}
.marker-dot.island::after { display: none; }

.marker-label {
    margin-top: 6px;
    background: rgba(2, 6, 13, 0.9);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
    color: rgba(255,255,255,0.95);
    opacity: 0; 
    transform: translateY(5px);
    transition: all 0.4s ease;
}

.marker-container.active .marker-label {
    opacity: 1;
    transform: translateY(0);
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

.title-gold {
    color: var(--brand-gold);
    text-shadow: none;
}

.custom-scroll::-webkit-scrollbar { width: 3px; height: 3px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

#opening-scene {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #0a0a0a;
    border-radius: 40px;
    border: 8px solid #1f1f1f;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform, opacity;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1f1f1f;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 2;
}

.phone-map {
    flex: 1;
    background: #111;
    position: relative;
    overflow: hidden;
}

.phone-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.phone-route {
    position: absolute;
    top: 40%;
    left: 20%;
    width: 60%;
    height: 30%;
    border-top: 3px solid var(--brand-blue); 
    border-right: 3px solid var(--brand-blue);
    border-top-right-radius: 20px;
    opacity: 0; 
    box-shadow: inset 0 0 0 transparent, 0 -5px 15px rgba(59, 130, 246, 0.3);
}

.phone-ui-bottom {
    height: 250px;
    background: #1a1a1a;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.car-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--brand-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -12px;
    left: -12px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    opacity: 0;
}
.car-icon::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

#conclusion-screen {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%);
}