/* ==========================================================================
   SUKJANTARA — DESIGN SYSTEM
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS — LIGHT MODE
   ========================================================================== */
:root {
    --primary:        #007FFF;
    --primary-hover:  #0066CC;
    --primary-light:  #4DA6FF;
    --primary-dark:   #0052A3;
    --primary-soft:   rgba(0, 127, 255, 0.08);
    --primary-glow:   rgba(0, 127, 255, 0.25);
    --primary-glow-strong: rgba(0, 127, 255, 0.45);

    --bg:         #FFFFFF;
    --bg-alt:     #F8FAFC;
    --bg-soft:    #F1F5F9;
    --bg-overlay: rgba(10, 15, 30, 0.5);
    --card-bg:    #FFFFFF;

    --text:       #0A0F1E;
    --text-muted: #64748B;
    --text-soft:  #94A3B8;
    --text-invert: #FFFFFF;

    --border:      #E2E8F0;
    --border-soft: #F1F5F9;

    --shadow-xs: 0 1px 2px rgba(10, 15, 30, 0.04);
    --shadow-sm: 0 2px 8px rgba(10, 15, 30, 0.06);
    --shadow:    0 8px 24px rgba(10, 15, 30, 0.08);
    --shadow-lg: 0 24px 48px -16px rgba(10, 15, 30, 0.15);
    --shadow-glow: 0 8px 32px -8px var(--primary-glow);

    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 999px;

    --sp-xs: 8px;
    --sp-sm: 12px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 48px;
    --sp-3xl: 64px;
    --sp-4xl: 96px;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast:   0.2s;
    --t-base:   0.3s;
    --t-slow:   0.5s;
    --t-slower: 0.9s;

    --z-base:    1;
    --z-dropdown: 100;
    --z-header:  1000;
    --z-sidebar: 1100;
    --z-overlay: 1050;
    --z-modal:   2000;
    --z-toast:   3000;

    --container-max: 1280px;
}

/* ==========================================================================
   2. DARK MODE
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:         #0A0F1E;
        --bg-alt:     #111827;
        --bg-soft:    #1A2234;
        --card-bg:    #151B2D;
        --bg-overlay: rgba(0, 0, 0, 0.7);

        --text:       #F8FAFC;
        --text-muted: #94A3B8;
        --text-soft:  #64748B;

        --border:      #1E293B;
        --border-soft: #1E293B;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
        --shadow:    0 8px 24px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
    }
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--t-base) var(--ease),
                color var(--t-base) var(--ease);
}

/* Layout Utama: Main flex grow, Footer di bawah normal */
#content-router,
main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
    min-height: 50vh;
}

::selection {
    background-color: var(--primary);
    color: #FFFFFF;
}

::-moz-selection {
    background-color: var(--primary);
    color: #FFFFFF;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

/* ============================================================
   JUSTIFY TEXT — Global
   ============================================================ */
p,
.section-desc,
.artikel-card-excerpt,
.artikel-card-list-excerpt,
.artikel-card-beranda p,
.detail-konten p,
.detail-konten li,
.sejarah-text,
.highlight-info p,
.footer-desc,
.kontak-card-value,
.cta-desc,
.hero-cyber-subtitle {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-spacing: -0.5px;
}

/* Jangan justify untuk elemen yang nggak boleh */
.btn, button, .btn-cyber, .hero-cyber-bracket,
.hero-cyber-status-text, .section-number,
.artikel-card-date, .artikel-card-list-date,
.hero-cyber-stat-label, .footer-bottom p,
.newsletter-form input, .newsletter-form button {
    text-align: initial;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

img { max-width: 100%; height: auto; display: block; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* Section heading */
.section-heading {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    margin-bottom: var(--sp-2xl);
}

.section-number {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-number::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--r-full);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 720px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.7;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

@media (max-width: 640px) {
    .container { padding: 0 var(--sp-md); }
}

/* Section block */
.section-block {
    padding: var(--sp-3xl) 0;
}

.section-block.alt {
    background: var(--bg-alt);
}

.section-block + .section-block.alt,
.section-block.alt + .section-block {
    border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--r-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--t-base) var(--ease);
    isolation: isolate;
}

.btn i { font-size: 1.05em; }

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 8px 24px -6px var(--primary-glow);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
    background-size: 200% 200%;
    background-position: 0% 50%;
    z-index: -1;
    transition: background-position 0.6s var(--ease);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
    background-position: 100% 50%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -8px var(--primary-glow-strong);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -8px var(--primary-glow);
}

.btn-ghost {
    background: var(--bg-alt);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ==========================================================================
   5. ✨ ANIMATION SYSTEM — LEFT/RIGHT ALTERNATING
   ========================================================================== */

/* --- 5.1 Reveal Base --- */
[data-reveal] {
    opacity: 0;
    will-change: opacity, transform, filter;
    transition:
        opacity 0.9s var(--ease-out),
        transform 1.0s var(--ease-out),
        filter 0.9s var(--ease-out);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    filter: none;
}

/* --- 5.2 Reveal LEFT --- */
[data-reveal="left"],
[data-reveal-dir="left"] {
    transform: translateX(-80px);
}

/* --- 5.3 Reveal RIGHT --- */
[data-reveal="right"],
[data-reveal-dir="right"] {
    transform: translateX(80px);
}

/* --- 5.4 Reveal UP --- */
[data-reveal="up"] {
    transform: translateY(50px);
}

/* --- 5.5 Reveal BLUR --- */
[data-reveal="blur"] {
    transform: translateY(30px);
    filter: blur(14px);
}

/* --- 5.6 Reveal SCALE --- */
[data-reveal="scale"] {
    transform: scale(0.92);
    filter: blur(6px);
}

/* --- 5.7 Stagger Children --- */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.75s var(--ease-out),
        transform 0.75s var(--ease-out);
}

[data-stagger].is-revealed > * {
    opacity: 1;
    transform: none;
}

[data-stagger].is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.10s; }
[data-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.15s; }
[data-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.20s; }
[data-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.25s; }
[data-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.30s; }
[data-stagger].is-revealed > *:nth-child(7) { transition-delay: 0.35s; }
[data-stagger].is-revealed > *:nth-child(8) { transition-delay: 0.40s; }
[data-stagger].is-revealed > *:nth-child(n+9) { transition-delay: 0.45s; }

/* --- 5.8 Gradient Shift --- */
.gradient-animate {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary) 25%,
        var(--primary-light) 50%,
        var(--primary) 75%,
        var(--primary-dark) 100%
    );
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 5.9 Floating --- */
.floating { animation: floating 4s ease-in-out infinite; }
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* --- 5.10 Pulse Glow --- */
.pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite; }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50%      { box-shadow: 0 0 0 12px transparent; }
}

/* --- 5.11 Shimmer --- */
.shimmer {
    background: linear-gradient(90deg, var(--bg-alt) 0%, var(--bg-soft) 50%, var(--bg-alt) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- 5.12 Card Premium --- */
.card-premium {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition:
        transform 0.4s var(--ease-out),
        border-color 0.3s var(--ease),
        box-shadow 0.4s var(--ease-out);
}

.card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--primary-soft),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.card-premium:hover::before { opacity: 1; }

.card-premium:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-premium > * { position: relative; z-index: 1; }

/* --- 5.13 Text Gradient --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- 5.14 Image Overlay --- */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.img-overlay:hover::after { opacity: 1; }

.img-overlay img { transition: transform 0.7s var(--ease-out); }
.img-overlay:hover img { transform: scale(1.08); }

/* --- 5.15 Page Transition --- */
.page-transition { animation: pageIn 0.5s var(--ease-out); }

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* --- 5.16 Cursor Dot --- */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s var(--ease-out),
                width 0.3s var(--ease),
                height 0.3s var(--ease);
    transform: translate(-50%, -50%);
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-dot { display: block; }
}

.cursor-dot.is-hovering {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    mix-blend-mode: normal;
    border: 1.5px solid var(--primary);
}

/* --- 5.17 Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    [data-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   6. LOADING SCREEN
   ========================================================================== */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    gap: var(--sp-lg);
    color: var(--text-muted);
    animation: pageIn 0.4s var(--ease-out);
}

.loading-screen p {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.crescent-spinner {
    width: 60px;
    height: 60px;
    color: var(--primary);
    animation: spinCrescent 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
    display: block;
}

.crescent-spinner circle {
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

@keyframes spinCrescent {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   7. UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.gap-xs { gap: var(--sp-xs); }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.gap-xl { gap: var(--sp-xl); }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: var(--sp-xl) 0;
}

.empty-state {
    padding: var(--sp-3xl) var(--sp-lg);
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-alt);
    border-radius: var(--r-md);
    border: 1px dashed var(--border);
    font-size: 0.95rem;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 9998;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--primary-glow);
    pointer-events: none;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px -6px var(--primary-glow-strong);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--t-base) var(--ease-out);
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px) scale(1.08);
}

@media (max-width: 640px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
}

/* ============================================================
   8. HEADER — Sticky Top Fixed
   ============================================================ */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 72px;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-soft);
    transition:
        background var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease);
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
}

@media (prefers-color-scheme: dark) {
    .main-header {
        background: rgba(10, 15, 30, 0.85);
    }
}

.main-header.scrolled {
    box-shadow: 0 4px 24px rgba(10, 15, 30, 0.08);
}

@media (prefers-color-scheme: dark) {
    .main-header.scrolled {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    }
}

.header-inner {
    max-width: 100%;
    height: 100%;
    padding: 0 var(--sp-lg);
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

/* Brand */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    flex-shrink: 0;
    transition: transform var(--t-base) var(--ease);
}

.brand-wrapper:hover { transform: scale(1.02); }

.logo-circle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.logo-circle::before {
    content: "";
    position: absolute;
    inset: -4px;
    background: var(--primary-glow);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--t-base);
    filter: blur(8px);
    z-index: -1;
}

.brand-wrapper:hover .logo-circle::before { opacity: 1; }

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--t-base) var(--ease-spring);
}

.brand-wrapper:hover .logo-circle img { transform: rotate(-6deg); }

.brand-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Search */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.icon-search {
    position: absolute;
    left: 18px;
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--t-base) var(--ease);
    z-index: 2;
}

#global-search {
    width: 100%;
    padding: 11px 44px 11px 46px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--bg-alt);
    border: 1.5px solid transparent;
    border-radius: var(--r-full);
    outline: none;
    transition:
        background var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease);
}

#global-search::placeholder { color: var(--text-soft); }

#global-search:focus {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-box:focus-within .icon-search { color: var(--primary); }

.btn-clear {
    position: absolute;
    right: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
    z-index: 2;
}

.btn-clear:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Search Results */
.search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    max-height: 480px;
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    padding: var(--sp-xs);
    animation: dropdownIn 0.25s var(--ease-out);
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.search-results-header {
    padding: var(--sp-sm) var(--sp-md);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: var(--sp-xs);
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-md);
    padding: var(--sp-sm) var(--sp-md);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background var(--t-fast) var(--ease);
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover,
.search-result-item.is-active { background: var(--bg-alt); }

.search-result-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.05rem;
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-title mark {
    background: transparent;
    color: var(--primary);
    font-weight: 800;
    padding: 0;
}

.search-result-excerpt {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: var(--r-full);
    align-self: center;
}

.search-empty {
    padding: var(--sp-xl) var(--sp-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.search-empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: var(--sp-sm);
    color: var(--text-soft);
}

/* Hamburger */
.hamburger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    transition: background var(--t-fast);
}

.hamburger:hover { background: var(--bg-alt); }

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: var(--r-full);
    transition: all 0.35s var(--ease-out);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   9. SIDEBAR
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(10, 15, 30, 0.15);
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    padding: var(--sp-xl) 0;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    will-change: transform;
}

.sidebar.open { transform: translateX(0); }

@media (prefers-color-scheme: dark) {
    .sidebar { box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-lg) var(--sp-lg);
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: var(--sp-lg);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.sidebar-brand i {
    color: var(--primary);
    font-size: 1.15rem;
}

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    border-radius: var(--r-sm);
    transition: all var(--t-fast) var(--ease);
}

.sidebar-close:hover {
    background: var(--bg-alt);
    color: var(--primary);
    transform: rotate(90deg);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 var(--sp-md);
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: 14px 16px;
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--t-base) var(--ease);
    position: relative;
    overflow: hidden;
}

.menu-item i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: color var(--t-base), transform var(--t-base) var(--ease-spring);
}

.menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 var(--r-full) var(--r-full) 0;
    transform: translateY(-50%);
    transition: height var(--t-base) var(--ease-out);
}

.menu-item:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.menu-item:hover i { transform: scale(1.15); }

.menu-item.active-menu {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.menu-item.active-menu::before { height: 60%; }
.menu-item.active-menu i { color: var(--primary); }

.sidebar-footer {
    padding: var(--sp-lg) var(--sp-lg) 0;
    border-top: 1px solid var(--border-soft);
    margin-top: var(--sp-lg);
    font-size: 0.78rem;
    color: var(--text-soft);
    text-align: center;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease),
                visibility var(--t-base) var(--ease);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   10. MAIN CONTENT
   ========================================================================== */
#content-router {
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    position: relative;
    z-index: 1;
    animation: pageIn 0.5s var(--ease-out);
}

/* Pastikan hero-cyber tidak menutupi header */
.hero-cyber {
    position: relative;
    z-index: 0 !important;
    isolation: auto !important;
}

.hero-cyber-bg,
.hero-cyber-overlay,
.hero-cyber-grid,
.hero-cyber-scanline,
.hero-cyber-glow,
.hero-cyber-noise,
.hero-cyber-hud,
.hero-cyber-fade {
    pointer-events: none;
}

.page-wrapper {
    width: 100%;
    animation: pageIn 0.5s var(--ease-out);
}

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
    .main-header { height: 64px; }
    .header-inner { padding: 0 var(--sp-md); gap: var(--sp-sm); }
    .brand-info { display: none; }
    .search-wrapper { max-width: 100%; }
    #global-search { padding: 9px 40px 9px 42px; font-size: 0.88rem; }
    .icon-search { left: 15px; }
    .btn-clear { right: 12px; width: 22px; height: 22px; }
    .logo-circle { width: 38px; height: 38px; }
    #content-router { margin-top: 64px; min-height: calc(100vh - 64px); }
    .section-block { padding: var(--sp-2xl) 0; }
}

/* ==========================================================================
   12. PRINT
   ========================================================================== */
@media print {
    .main-header,
    .sidebar,
    .sidebar-overlay,
    .back-to-top,
    .scroll-progress,
    .cursor-dot {
        display: none !important;
    }
    body { background: #FFFFFF; color: #000000; }
    #content-router { margin-top: 0; }
}