 /* === BASE & RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* === MAP BACKGROUND === */
.map-bg {
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
}

.map-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px, 150px 150px;
    background-position: 0 0, 20px 20px;
    z-index: 0;
}

/* === FAINT MAP LABELS === */
.map-labels-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    user-select: none;
}

.map-label {
    position: absolute;
    color: rgba(107, 114, 128, 0.3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.lbl-lelabu { top: 20%; left: 15%; }
.lbl-bebesen { top: 35%; left: 25%; }
.lbl-gegarang { top: 45%; right: 10%; }
.lbl-mude { bottom: 25%; right: 20%; }
.lbl-wih { bottom: 15%; left: 20%; }

/* === HEADER === */
.top-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 30;
    gap: 16px;
}

.header-left, .header-center, .header-right {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Header Left: Agency */
.header-left { gap: 12px; align-items: center; }
.agency-icon-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: #1d4ed8;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.agency-icon-box i { font-size: 24px; }
.agency-text-box {
    font-weight: 700;
    line-height: 1.25;
    font-size: 12px;
}

/* Header Center: Title */
.header-center {
    text-align: center;
    flex-direction: column;
    align-items: center;
    order: -1; /* Mobile order first */
    margin-top: 8px;
}
.title-main {
    font-size: 36px;
    font-weight: 900;
    background-image: linear-gradient(to right, #4ade80, #facc15, #4ade80);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.05em;
    font-style: italic;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.8));
}
.title-sub {
    font-size: 8px;
    color: #d1d5db;
    letter-spacing: 0.2em;
    margin-top: 8px;
    font-weight: 300;
}
.title-line {
    height: 6px;
    width: 128px;
    margin: 16px auto 0;
    background: linear-gradient(to right, #3b82f6, #4ade80);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* Header Right: Dropdown */
.dropdown-wrapper { position: relative; z-index: 50; }
.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #4b5563;
    border-radius: 9999px;
    padding: 8px 20px;
    background-color: rgba(10, 17, 40, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}
.dropdown-btn:hover { background-color: #1f2937; border-color: #9ca3af; }
.dropdown-icon { font-size: 20px; color: #d1d5db; }
.dropdown-text { text-align: left; }
.dropdown-text-small {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1;
    margin-bottom: 4px;
}
.dropdown-text-bold {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.dropdown-chevron {
    font-size: 12px;
    margin-left: 8px;
    color: #9ca3af;
    transition: color 0.3s;
}
.dropdown-btn:hover .dropdown-chevron { color: white; }

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 12px;
    width: 100%;
    background-color: #1e293b;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform-origin: top right;
    transform: scale(0.95);
    transition: all 0.3s;
}
.dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #f87171;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.3s, color 0.3s;
}
.dropdown-item i { margin-right: 12px; }
.dropdown-item:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* === MAIN & PIE CONTAINER === */
.main-content {
    position: relative;
    z-index: 10;
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 234px;
    padding-bottom: 40px;
}

.pie-container {
    position: relative;
    width: 90vw;
    max-width: 650px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.slice {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    transform: rotate(var(--rot));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    clip-path: polygon(50% 50%, 21.7% -20%, 78.3% -20%);
    cursor: pointer;
    z-index: 1;
    text-decoration: none;
    filter: drop-shadow(0px 0px 0px rgba(0,0,0,0));
}

.slice:hover {
    transform: rotate(var(--rot)) scale(1.08);
    z-index: 10;
    filter: drop-shadow(0px 15px 25px rgba(0,0,0,0.6));
}

.slice-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-gradient);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}

.slice-content {
    position: absolute;
    top: 4%;
    left: 50%;
    width: 90px;
    transform: translateX(-50%) rotate(var(--inv-rot));
    transform-origin: 50% 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.slice-content i {
    font-size: 24px;
    margin-bottom: 4px;
    opacity: 0.9;
}
.slice-content span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* === CENTER STATIC LOGO === */
.center-static-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    height: 35%;
    border-radius: 50%;
    background-color: #0A0F48;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.logo-mockup {
    display: flex;
    align-items: flex-end;
    margin-bottom: 4px;
}
.logo-mockup i { font-size: 24px; color: #3b82f6; }
.logo-dots {
    display: flex;
    gap: 4px;
    margin-left: 4px;
    margin-bottom: 4px;
}
.dot { width: 8px; height: 8px; }
.dot-yellow { background-color: #facc15; }
.dot-red { background-color: #ef4444; }
.dot-green { background-color: #22c55e; }
.logo-text {
    color: #1e3a8a;
    font-weight: 900;
    font-size: 30px;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-top: 4px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.logo-text span { font-size: 24px; }

/* === BOTTOM BUTTON (SSO) === */
.btn-sso {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #2563eb;
    border-radius: 9999px;
    padding: 8px 20px;
    background-color: rgba(10, 25, 47, 0.9);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.1em;
    z-index: 30;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s;
}
.btn-sso i { color: #60a5fa; transition: color 0.3s; }
.btn-sso:hover {
    background-color: #2563eb;
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(59,130,246,0.6);
    transform: translateX(-50%) scale(1.05);
}
.btn-sso:hover i { color: white; }

/* === SOON MODAL (fitur belum tersedia) === */
.soon-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 16px;
}
.soon-overlay[hidden] { display: none; }
.soon-box {
    background-color: #ffffff;
    color: #1f2937;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.soon-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
}
.soon-text { font-size: 14px; color: #4b5563; }
.soon-text span { font-weight: 700; color: #1f2937; }
.soon-btn {
    margin-top: 20px;
    padding: 10px 32px;
    border: none;
    border-radius: 9999px;
    background-color: #2563eb;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.soon-btn:hover { background-color: #1d4ed8; }

/* === RESPONSIVE (DESKTOP) === */
@media (min-width: 768px) {
    .map-label { font-size: 14px; }
    
    .top-header {
        flex-direction: row;
        align-items: flex-start;
        padding: 32px;
    }
    .header-left { width: 33.333%; justify-content: flex-start; }
    .header-center { width: 33.333%; order: 0; margin-top: 0; }
    .header-right { width: 33.333%; justify-content: flex-end; }
    
    .agency-text-box { font-size: 14px; }
    .title-main { font-size: 48px; }
    .title-sub { font-size: 10px; letter-spacing: 0.3em; }
    .title-line { width: 192px; }
    
    .dropdown-menu { width: 192px; }

    .main-content { padding-top: 80px; }
    
    .slice-content { top: 8%; width: 130px; }
    .slice-content i { font-size: 30px; margin-bottom: 8px; }
    .slice-content span { font-size: 12px; }
    
    .logo-mockup { margin-bottom: 8px; }
    .logo-mockup i { font-size: 36px; }
    .dot { width: 12px; height: 12px; }
    .logo-text { font-size: 48px; }
    .logo-text span { font-size: 36px; }
    
    .btn-sso {
        padding: 12px 32px;
        font-size: 14px;
        gap: 12px;
    }
}