/* ==============================================================
   FIGURAL MODULE - PURE MONOCHROME (HITAM & PUTIH) HERO & CPNS HEADER
   Zero Border-Radius • Edge-to-Edge • Architecture & Spatial Geometry
   ============================================================== */

/* ==============================================================
   1. CPNS-STYLE HEADER & NAVBAR
   ============================================================== */
:root {
    --header-height: 60px;
}

header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
}

.navbar {
    height: var(--header-height);
    background-color: #ffffff !important;
}

@media (max-width: 991px) {
    header, .navbar {
        height: auto;
    }
}

header a.nav-link,
header .navbar-nav .nav-link {
    color: rgb(33, 37, 41) !important;
    font-weight: 400 !important;
}

header a.nav-link:hover,
header .navbar-nav .nav-link:hover {
    color: rgb(26, 115, 232) !important;
}

.btn-header {
    font-size: 15px;
    padding: 6px 12px;
    border-color: rgb(108, 117, 125);
    line-height: 22px;
    font-weight: 400;
}

.btn-header:focus,
.btn-header:active,
.btn-header:focus-visible {
    box-shadow: none;
    outline: none;
}

/* Tombol Auth Model CPNS */
#btn-daftar {
    border: 1px solid #dee2e6 !important;
    color: rgb(26, 115, 232) !important;
    background: transparent !important;
    border-radius: 50px !important;
    padding: 0 24px !important;
    height: 35px !important;
    line-height: 33px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}

#btn-daftar:hover {
    border-color: rgb(26, 115, 232) !important;
    background-color: rgba(26, 115, 232, 0.05) !important;
    color: rgb(26, 115, 232) !important;
}

#btn-login {
    background-color: rgb(26, 115, 232) !important;
    color: #ffffff !important;
    border: 1px solid rgb(26, 115, 232) !important;
    border-radius: 50px !important;
    padding: 0 24px !important;
    height: 35px !important;
    line-height: 33px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}

#btn-login:hover {
    background-color: #174ea6 !important;
    border-color: #174ea6 !important;
    color: #ffffff !important;
}

@media (min-width: 992px) {
    header li.nav-item:first-child {
        margin-left: 15px;
    }
    header li.nav-item:not(:last-child) {
        margin-right: 15px;
    }
}

.navbar .dropdown-toggle::after {
    content: none;
}

#navbarDropdown,
#navbarDropdown:focus,
#navbarDropdown:active,
#navbarDropdown:focus-visible,
#navbarDropdown.show {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* User Menu Dropdown (Persis CPNS) */
.user-menu {
    width: 300px;
    padding: 8px;
    border: none;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.user-header {
    padding: 8px !important;
}

.user-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFF8E1, #FDE68A);
    color: #92400e;
    border: 1px solid #FCD34D;
    font-size: 0.74rem;
    font-weight: 700;
}

.membership-badge img {
    border-radius: 50%;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: 0.22s ease;
    text-decoration: none;
    color: #1e293b;
}

.user-link:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(2px);
    color: #1d4ed8;
}

.user-link > div > div {
    font-weight: 600;
    font-size: 0.94rem;
}

.user-link small {
    font-size: 0.8rem;
    color: #64748b;
}

.user-link .menu-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.95rem;
}

.user-link.logout {
    color: #dc2626;
}

.user-link.logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.user-link.logout .menu-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* ==============================================================
   2. PURE MONOCHROME HERO BANNER (#judul / .figural-hero)
   Strictly Black & White • Zero Border-Radius • Title Only
   ============================================================== */
#judul,
.figural-hero {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 185px;
    padding: 56px 24px 50px !important;
    margin-top: 0 !important;
    margin-bottom: 26px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important; /* Zero border-radius menyatu ke pinggir layar */
    background: radial-gradient(120% 130% at 50% 0%, #151518 0%, #08080a 55%, #000000 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    overflow: hidden !important;
    isolation: isolate;
}

/* 1. Base Monochrome Blueprint Grid Layer */
.figural-hero-bg-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1; /* Grid terlihat jelas sebagai blueprint matrix */
}

/* 2. Left Geometry: 3x3 Matrix Grid, Angle Rotation, Shape Analogy, Cube Net */
.figural-hero-geom-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: 36%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.52; /* Warna utama konstan (sebelumnya warna hover), tidak berubah saat di-hover */
}

/* 3. Right Geometry: 3D Isometric Wireframe Cube, Inscribed Polygons, Golden Spiral, Tangram */
.figural-hero-geom-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: 36%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.52; /* Warna utama konstan (sebelumnya warna hover), tidak berubah saat di-hover */
}

/* 4. Ambient Core Glow (Pure Silver/White Depth, Zero Color) */
.figural-hero-ambient {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 580px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 50%, transparent 75%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

/* 5. Center Precision Metric Ruler */
.figural-hero-ruler {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 14px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
}

/* 6. Content Wrapper: Strict Title Only */
.figural-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 7. Main Heading H1 (Pure White & Strong Contrast) */
#judul h1,
.figural-hero h1 {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: clamp(1.4rem, 3.2vw, 2.15rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-align: center !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
    max-width: 820px;
}

/* Sub-heading / Paket info */
.hero-paket-sub {
    display: inline-block;
    color: #d4d4d8 !important;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin-top: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==============================================================
   3. RESPONSIVE BREAKPOINTS (MOBILE & TABLET SIZING)
   Warna & opasitas geometri persis sama seperti di desktop (0.52)
   ============================================================== */
@media (max-width: 991px) {
    #judul,
    .figural-hero {
        padding: 48px 20px 42px !important;
        min-height: 170px;
        margin-bottom: 22px !important;
    }
    .figural-hero-geom-left,
    .figural-hero-geom-right {
        width: 280px;
        max-width: 40%;
    }
}

@media (max-width: 576px) {
    #judul,
    .figural-hero {
        padding: 44px 16px 40px !important;
        min-height: 160px;
        margin-bottom: 18px !important;
    }
    .figural-hero-geom-left,
    .figural-hero-geom-right {
        width: 210px;
        max-width: 46%;
    }
    #judul h1,
    .figural-hero h1 {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
    }
    .hero-paket-sub {
        font-size: 0.95rem !important;
    }
}

/* ==============================================================
   4. SUBTLE FIGURAL GEOMETRY ANIMATIONS
   Hardware-accelerated transforms for spatial & rotational reasoning
   ============================================================== */

/* A. 3D Isometric Cube Floating */
@keyframes geomFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
.geom-anim-float {
    animation: geomFloat 5.5s ease-in-out infinite;
    will-change: transform;
}

/* B. Mystery Target Cell [?] Pulse & Glow */
@keyframes geomPulseBox {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}
.geom-anim-pulse {
    animation: geomPulseBox 3s ease-in-out infinite;
}

/* C. 3D Rotation Orbital Ring Pulse */
@keyframes geomPulseRing {
    0%, 100% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.95;
    }
}
.geom-anim-pulse-ring {
    animation: geomPulseRing 3.2s ease-in-out infinite;
}

/* D. Fibonacci Golden Spiral Dash Flow */
@keyframes geomDashFlow {
    from {
        stroke-dashoffset: 40;
    }
    to {
        stroke-dashoffset: 0;
    }
}
.geom-anim-dash {
    stroke-dasharray: 6 4 !important;
    animation: geomDashFlow 3.5s linear infinite;
}

/* E. Visual Analogy Arrow Directional Nudge */
@keyframes geomNudgeArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}
.geom-anim-nudge {
    animation: geomNudgeArrow 2.4s ease-in-out infinite;
}

/* F. Precision Radar / Reticle Ping */
@keyframes geomRadarPing {
    0% {
        r: 3px;
        opacity: 0.85;
    }
    60% {
        r: 11px;
        opacity: 0;
    }
    100% {
        r: 3px;
        opacity: 0;
    }
}
.geom-anim-radar {
    animation: geomRadarPing 2.8s ease-out infinite;
    transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
    .geom-anim-float,
    .geom-anim-pulse,
    .geom-anim-pulse-ring,
    .geom-anim-dash,
    .geom-anim-nudge,
    .geom-anim-radar {
        animation: none !important;
    }
}
