/* ==========================================================================
   DEVEAPPS // TEMA GELAP — mengikuti gaya visual localhost/ciuc
   (CIUC Community Portal — "machine" aesthetic)

   Karakter yang ditiru:
   - Kertas gelap #09090a + grid merah sangat samar 42px, bukan overlay tebal
   - Tipografi sistem: Segoe UI untuk teks, Bahnschrift SemiCondensed untuk judul
   - Judul TIDAK huruf kapital, tracking rapat, bobot sedang (500)
   - Aksen merah #e32636 dengan glow sangat halus, bukan neon menyilaukan
   - Kontrol bersudut 2px, kontainer/kartu bersudut tajam 0
   - Garis pemindai berupa garis yang menyapu, bukan lapisan statis

   YANG TIDAK ditiru (permintaan pemilik): simbol salib apa pun.
   Reticle memakai kurung sudut — BUKAN crosshair silang.

   Semua aturan di-scope ke html.dark-mode, jadi tema terang tidak tersentuh.
   ========================================================================== */

html.dark-mode {
    color-scheme: dark;

    /* --- warna (disalin dari tokens.css CIUC) --- */
    --bg-body: #09090a;
    --bg-secondary: #0b0e12;
    --bg-card: #141112;
    --bg-glass: rgba(9, 9, 10, 0.92);

    --text-main: #e9e5e5;
    --text-muted: #aaa1a2;

    --primary: #e32636;
    --primary-dark: #c81e2c;
    --primary-light: rgba(227, 38, 54, 0.14);
    --accent: #e32636; /* disamakan dengan --primary: footer & tombol ikut warna ornamen */

    --border: #20272d;
    --border-accent: #402126;
    --warning: #fbbf24;

    --shadow: 0 16px 38px rgb(0 0 0 / 42%);
    --shadow-system: 0 0 15px rgb(227 38 54 / 14%);

    /* --- tipografi --- */
    --font-sans: "Segoe UI", Arial, sans-serif;
    --font-display: "Bahnschrift SemiCondensed", "Bahnschrift", "Arial Narrow", sans-serif;

    /* --- aksen khusus tema ini --- */
    --sys: rgb(255, 65, 79);
    --sys-dim: rgba(240, 84, 97, 0.58);
    --sys-soft: rgba(227, 38, 54, 0.35);
}

/* ==========================================================================
   1. TIPOGRAFI — teks memakai font sistem, judul memakai font kondens
   ========================================================================== */
html.dark-mode body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
html.dark-mode h4, html.dark-mode h5, html.dark-mode h6 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.2;
    text-transform: none;
}

html.dark-mode .logo-text,
html.dark-mode .footer-logo-text {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    text-transform: none;
}
html.dark-mode .logo-tagline,
html.dark-mode .footer-logo-tagline {
    font-family: var(--font-sans);
    letter-spacing: 0.14em;
}

/* Label kecil: huruf kapital + tracking lebar (khas CIUC) */
html.dark-mode .btn,
html.dark-mode label,
html.dark-mode .section-header h2 + p,
html.dark-mode .nav-btn-admin,
html.dark-mode .lang-current {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
html.dark-mode .btn { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; }

/* ==========================================================================
   2. LATAR — kertas gelap + grid merah samar + tekstur garis tipis
   ========================================================================== */
html.dark-mode body {
    background-color: #09090a;
    background-image:
        linear-gradient(rgba(227, 38, 54, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 38, 54, 0.05) 1px, transparent 1px),
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.012) 4px);
    background-size: 42px 42px, 42px 42px, 100% 4px;
    background-attachment: fixed;
}

/* ==========================================================================
   3. SUDUT — kontainer tajam 0, kontrol 2px
   ========================================================================== */
html.dark-mode *,
html.dark-mode *::before,
html.dark-mode *::after {
    border-radius: 0 !important;
}

html.dark-mode .btn,
html.dark-mode button,
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
    border-radius: 2px !important;
}

/* ==========================================================================
   4. GARIS PEMBATAS TIPIS
   ========================================================================== */
html.dark-mode nav { border-bottom: 1px solid var(--border-accent); }
html.dark-mode .why-card,
html.dark-mode .service-card,
html.dark-mode .portfolio-item,
html.dark-mode .stat-item,
html.dark-mode .contact-info-box,
html.dark-mode .timeline-item,
html.dark-mode .lang-menu,
html.dark-mode .dash-card,
html.dark-mode .pi-card {
    border: 1px solid var(--border) !important;
    background: var(--bg-card);
}
html.dark-mode .section-header h2::after {
    background: var(--primary);
    height: 2px;
    box-shadow: var(--shadow-system);
}
html.dark-mode .why-card::before { background: var(--primary); height: 2px; opacity: .7; }

/* ==========================================================================
   5. GLOW YANG HALUS (bukan neon)
   ========================================================================== */
html.dark-mode .btn {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-system);
    transition: background .2s ease, transform .2s ease, color .2s ease;
}
html.dark-mode .btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 18px rgb(227 38 54 / 34%);
    transform: translateY(-2px);
}
html.dark-mode .btn-outline { background: transparent; color: #ffb9bd; border: 1px solid var(--sys-dim); }
html.dark-mode .btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
html.dark-mode .hero-cta-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
html.dark-mode .hero-cta-primary:hover { background: #ff4352; color: #fff; }
html.dark-mode .hero-cta-secondary { border: 1px solid var(--sys-dim); color: #ffd7d9; background: rgb(0 0 0 / 35%); }
html.dark-mode .hero-cta-secondary:hover { border-color: var(--primary); color: #fff; }

html.dark-mode .nav-btn-admin { border: 1px solid var(--border-accent); }
html.dark-mode .nav-btn-admin:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
html.dark-mode .nav-link-item:hover,
html.dark-mode .nav-link-item.active { color: var(--primary); text-shadow: var(--shadow-system); }
html.dark-mode .lang-current:hover { border-color: var(--border-accent); color: var(--primary); }
html.dark-mode .lang-option:hover { background: #1b1517; color: var(--primary); }
html.dark-mode .lang-option.active { background: var(--primary); color: #fff; }
html.dark-mode .carousel-btn:hover { border-color: var(--sys-dim); color: var(--primary); transform: none; }
html.dark-mode .carousel-dot.active { background: var(--primary); box-shadow: var(--shadow-system); }
html.dark-mode .footer-social a:hover { background: var(--primary); color: #fff; }
html.dark-mode .about-text h2,
html.dark-mode .section-header h2 { color: var(--text-main); text-shadow: none; }
html.dark-mode .stat-number { color: var(--primary); text-shadow: var(--shadow-system); }
html.dark-mode .service-card:hover,
html.dark-mode .why-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent) !important;
    box-shadow: var(--shadow-system);
}
html.dark-mode .wa-float { background: var(--primary); color: #fff; box-shadow: 0 0 15px rgb(227 38 54 / 34%); }
html.dark-mode .time-year { color: var(--primary); }
html.dark-mode ::selection { background: var(--primary); color: #fff; }
html.dark-mode ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark-mode ::-webkit-scrollbar-track { background: #09090a; }
html.dark-mode ::-webkit-scrollbar-thumb { background: #2a2226; border: 2px solid #09090a; }
html.dark-mode ::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================================================
   6. KONTROL FORM & PANEL ADMIN
   ========================================================================== */
html.dark-mode .admin-input,
html.dark-mode .form-control,
html.dark-mode .admin-nav button {
    border: 1px solid var(--border);
    background: #100d0e;
    color: var(--text-main);
    font-family: var(--font-sans);
}
html.dark-mode .admin-input:focus,
html.dark-mode .form-control:focus {
    border-color: var(--sys-dim);
    box-shadow: 0 0 0 1px rgb(227 38 54 / 12%), var(--shadow-system);
    outline: none;
}
html.dark-mode .admin-nav button.active { color: var(--primary); border-left: 1px solid var(--primary); }
html.dark-mode .btn-json,
html.dark-mode .btn-save {
    border: 1px solid var(--border-accent);
    background: transparent;
    color: #ffb9bd;
}
html.dark-mode .btn-json:hover,
html.dark-mode .btn-save:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
html.dark-mode .login-box {
    border: 1px solid var(--border-accent);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   7. GLITCH SINGKAT SAAT MUAT (0,2 detik, satu kali, halus)
   ========================================================================== */
@keyframes cyber-glitch {
    0%   { transform: translate(0, 0); text-shadow: none; opacity: 1; }
    30%  { transform: translate(-2px, 0); text-shadow: 2px 0 var(--sys), -2px 0 rgb(255 255 255 / 45%); }
    60%  { transform: translate(2px, 0); text-shadow: -1px 0 var(--sys), 1px 0 rgb(255 255 255 / 45%); opacity: .9; }
    100% { transform: translate(0, 0); text-shadow: none; opacity: 1; }
}
html.dark-mode .cyber-glitch { animation: cyber-glitch 0.2s steps(2, end) 1; }

/* ==========================================================================
   8. EFEK KETIK + kursor
   ========================================================================== */
html.dark-mode .cyber-typing::after {
    content: '';
    display: inline-block;
    width: 0.45em;
    height: 0.9em;
    margin-left: 4px;
    vertical-align: -0.06em;
    background: var(--primary);
    animation: cyber-blink 0.9s steps(1, end) infinite;
}
@keyframes cyber-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ==========================================================================
   9. RETICLE — kurung sudut (TANPA garis silang / tanda salib)
   ========================================================================== */
.cyber-reticle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.cyber-reticle i {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--sys);
    opacity: 0.7;
    transition: transform .1s steps(2, end);
    animation: reticle-blink 3s steps(1, end) infinite;
}

.cyber-reticle i:nth-child(1) { top: 6px;    left: 6px;   border-right: 0; border-bottom: 0; }
.cyber-reticle i:nth-child(2) { top: 6px;    right: 6px;  border-left: 0;  border-bottom: 0; animation-delay: .35s; }
.cyber-reticle i:nth-child(3) { bottom: 6px; right: 6px;  border-left: 0;  border-top: 0;   animation-delay: .7s; }
.cyber-reticle i:nth-child(4) { bottom: 6px; left: 6px;   border-right: 0; border-top: 0;   animation-delay: 1.05s; }

@keyframes reticle-blink {
    0%, 84% { opacity: .7; }
    85%, 93% { opacity: .2; }
    94%, 100% { opacity: .7; }
}

.cyber-reticle-host:hover .cyber-reticle i:nth-child(1) { transform: translate(2px, 2px); }
.cyber-reticle-host:hover .cyber-reticle i:nth-child(2) { transform: translate(-2px, 2px); }
.cyber-reticle-host:hover .cyber-reticle i:nth-child(3) { transform: translate(-2px, -2px); }
.cyber-reticle-host:hover .cyber-reticle i:nth-child(4) { transform: translate(2px, -2px); }

/* ==========================================================================
   10. GARIS PEMINDAI YANG MENYAPU (setara .machine-scanline CIUC)
   ========================================================================== */
.cyber-scan {
    position: absolute;
    z-index: 2;
    top: -3%;
    right: 0;
    left: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(240 84 97 / 34%), transparent);
    box-shadow: 0 0 7px 2px rgb(255 55 72 / 45%), 0 0 26px 5px rgb(227 38 54 / 16%);
    animation: cyber-scan 6s linear infinite;
}

@keyframes cyber-scan {
    0%   { top: -3%; opacity: 0; }
    8%   { opacity: .9; }
    92%  { opacity: .9; }
    100% { top: 103%; opacity: 0; }
}

/* ==========================================================================
   11. HUD / READOUT (setara .machine-readout CIUC)
   ========================================================================== */
.cyber-hud {
    position: fixed;
    left: 18px;
    bottom: 16px;
    z-index: 1400;
    display: none;
    pointer-events: none;
    gap: 5px;
    color: #e7d7d8;
    font-family: var(--font-sans);
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px #000;
}
html.dark-mode .cyber-hud { display: grid; }

.cyber-hud .cyber-hud-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cyber-hud .cyber-hud-label { color: var(--text-muted); }
.cyber-hud .cyber-hud-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    box-shadow: 0 0 8px rgb(227 38 54 / 70%);
    animation: cyber-blink 1.8s steps(1, end) infinite;
}

.cyber-wave { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.cyber-wave span { display: block; width: 2px; background: var(--sys-dim); }

@media (max-width: 768px) {
    html.dark-mode .cyber-hud { display: none; }
}

/* ==========================================================================
   13. DEKORASI AMBIEN "PERSON OF INTEREST"
   Lapisan hiasan yang SAMAR dan hanya tampil di mode gelap:
   - Backdrop kode mengetik di belakang seluruh konten (z-index -1)
   - Panel terminal POI (kanan bawah, di atas tombol melayang)
   - HUD CCTV (kiri atas, di bawah nav)
   - Kotak deteksi wajah yang muncul-hilang acak
   ========================================================================== */

/* Bidang .why-us dibuat transparan supaya backdrop kode ikut terlihat di sana */
html.dark-mode .why-us { background-color: rgba(11, 14, 18, 0.5); }

/* --- 13a. Backdrop kode mengetik (di belakang konten) --- */
.cyber-code-rain {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    justify-content: space-between;
    gap: clamp(10px, 3vw, 56px);
    padding: 0 clamp(8px, 3vw, 44px);
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #e32636;
    opacity: 0.05;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.cc-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.cc-line {
    display: block;
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-height: 1.5em;
}
.cc-line.cc-active::after {
    content: '';
    display: inline-block;
    width: 0.55em;
    height: 0.95em;
    margin-left: 1px;
    vertical-align: -0.14em;
    background: currentColor;
    animation: cyber-blink 0.7s steps(1, end) infinite;
}

/* --- 13b. Panel terminal POI --- */
.cyber-terminal {
    position: fixed;
    right: 16px;
    bottom: 164px;
    z-index: 1400;
    width: min(290px, 64vw);
    padding: 9px 11px 11px;
    border: 1px solid var(--border-accent);
    background: rgba(9, 9, 10, 0.72);
    box-shadow: var(--shadow-system);
    opacity: 0.8;
    pointer-events: none;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    display: none;
}
html.dark-mode .cyber-terminal { display: block; }
.cyber-terminal .ct-head {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-accent);
    padding-bottom: 6px;
    margin-bottom: 7px;
}
.cyber-terminal .ct-head::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    box-shadow: 0 0 8px rgb(227 38 54 / 70%);
    animation: cyber-blink 1.4s steps(1, end) infinite;
}
.ct-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 112px;
    justify-content: flex-end;
}
.ct-line {
    color: var(--sys);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-height: 1.5em;
}
.ct-line.ct-dim { color: var(--text-muted); opacity: 0.6; }
.ct-line.ct-active::after {
    content: '';
    display: inline-block;
    width: 0.5em;
    height: 0.9em;
    margin-left: 1px;
    vertical-align: -0.14em;
    background: currentColor;
    animation: cyber-blink 0.7s steps(1, end) infinite;
}

/* --- 13c. HUD CCTV (kiri atas, di bawah nav) --- */
.cyber-cctv {
    position: fixed;
    top: 84px;
    left: 16px;
    z-index: 1400;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border: 1px solid var(--border-accent);
    background: rgba(9, 9, 10, 0.6);
    opacity: 0.78;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e7d7d8;
    text-shadow: 0 1px 4px #000;
    pointer-events: none;
}
html.dark-mode .cyber-cctv { display: inline-flex; }
.cyber-cctv .rec-dot {
    width: 8px;
    height: 8px;
    background: #ff2d3f;
    box-shadow: 0 0 8px rgba(255, 45, 63, 0.8);
    animation: cyber-blink 1.3s steps(1, end) infinite;
}
.cyber-cctv .rec-txt { color: #ff8a92; font-weight: 700; }
.cyber-cctv .cam-sep { color: var(--border-accent); }
.cyber-cctv .cam-id { color: var(--text-muted); }
.cyber-cctv .rec-timer { color: var(--sys); font-variant-numeric: tabular-nums; }

/* --- 13d. Kotak deteksi wajah (muncul-hilang acak) --- */
.detect-layer {
    position: fixed;
    inset: 0;
    z-index: 6;
    overflow: hidden;
    pointer-events: none;
    display: none;
}
html.dark-mode .detect-layer { display: block; }
.detect-box {
    position: absolute;
    width: 132px;
    height: 132px;
    opacity: 0;
    transition: opacity 0.55s ease;
}
.detect-box.on { opacity: 0.6; }
.detect-box i {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--sys);
    filter: drop-shadow(0 0 4px rgb(227 38 54 / 55%));
}
.detect-box i:nth-of-type(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.detect-box i:nth-of-type(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.detect-box i:nth-of-type(3) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.detect-box i:nth-of-type(4) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.detect-box .detect-label {
    position: absolute;
    top: -17px;
    left: -1px;
    padding: 1px 5px;
    background: rgba(9, 9, 10, 0.85);
    border: 1px solid var(--border-accent);
    color: var(--sys);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Sembunyikan semua dekorasi di mode terang */
html:not(.dark-mode) .cyber-code-rain,
html:not(.dark-mode) .cyber-terminal,
html:not(.dark-mode) .cyber-cctv,
html:not(.dark-mode) .detect-layer { display: none !important; }

/* Layar kecil: sembunyikan panel terminal agar tidak menutupi tombol melayang */
@media (max-width: 768px) {
    .cyber-terminal { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .cyber-code-rain { -webkit-mask-image: none; mask-image: none; }
    .cc-line.cc-active::after,
    .ct-line.ct-active::after,
    .cyber-cctv .rec-dot,
    .cyber-terminal .ct-head::before { animation: none !important; }
}

html:not(.dark-mode) .cyber-reticle,
html:not(.dark-mode) .cyber-hud,
html:not(.dark-mode) .cyber-scan { display: none !important; }

/* ==========================================================================
   12. RADAR SWEEP ANIMASI (person of interest style)
   ========================================================================== */
html.dark-mode .cyber-reticle-host {
    position: relative;
    width: 100%;
    height: 100%;
}

.cyber-reticle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.cyber-reticle i {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--sys);
    opacity: 0.7;
    transition: transform .1s steps(2, end);
    animation: reticle-blink 3s steps(1, end) infinite;
}

.cyber-reticle i:nth-child(1) { top: 6px;    left: 6px;   border-right: 0; border-bottom: 0; }
.cyber-reticle i:nth-child(2) { top: 6px;    right: 6px;  border-left: 0;  border-bottom: 0; animation-delay: .35s; }
.cyber-reticle i:nth-child(3) { bottom: 6px; right: 6px;  border-left: 0;  border-top: 0;   animation-delay: .7s; }
.cyber-reticle i:nth-child(4) { bottom: 6px; left: 6px;   border-right: 0; border-top: 0;   animation-delay: 1.05s; }

@keyframes reticle-blink {
    0%, 84% { opacity: .7; }
    85%, 93% { opacity: .2; }
    94%, 100% { opacity: .7; }
}

.cyber-reticle-host:hover .cyber-reticle i:nth-child(1) { transform: translate(2px, 2px); }
.cyber-reticle-host:hover .cyber-reticle i:nth-child(2) { transform: translate(-2px, 2px); }
.cyber-reticle-host:hover .cyber-reticle i:nth-child(3) { transform: translate(-2px, -2px); }
.cyber-reticle-host:hover .cyber-reticle i:nth-child(4) { transform: translate(2px, -2px); }

.cyber-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    animation: cyber-sweep 8s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes cyber-sweep {
    0%   { opacity: 0; transform: scale(0.5); }
    25%  { opacity: 0.6; transform: scale(1); }
    75%  { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

html.dark-mode .cyber-sweep { box-shadow: inset 0 0 0 1px var(--sys), 0 0 30px rgb(227 38 54 / 20%); }

html:not(.dark-mode) .cyber-sweep { display: none !important; }

/* Scanlines tetap aktif */
.cyber-scan {
    position: absolute;
    z-index: 2;
    top: -3%;
    right: 0;
    left: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(240 84 97 / 34%), transparent);
    box-shadow: 0 0 7px 2px rgb(255 55 72 / 45%), 0 0 26px 5px rgb(227 38 54 / 16%);
    animation: cyber-scan 6s linear infinite;
}

@keyframes cyber-scan {
    0%   { top: -3%; opacity: 0; }
    8%   { opacity: .9; }
    92%  { opacity: .9; }
    100% { top: 103%; opacity: 0; }
}

/* ==========================================================================
   12. KETERBACAAN — kontras WCAG AA
   Hasil audit otomatis di localhost/web: 10 elemen di bawah ambang 4.5:1.
   Dua penyebab:
     a) teks merah #e32636 di atas kartu #141112 (4.11:1)
     b) teks abu #94a3b8 / #cbd5e1 di atas footer merah (1.78:1 & 3.08:1)
   ========================================================================== */

html.dark-mode {
    /* Merah terang khusus TEKS di atas permukaan gelap — kontras ~5.4:1 */
    --primary-text: #ff4352;
}

html.dark-mode .service-content h3,
html.dark-mode .service-demo-link,
html.dark-mode .service-link-chip,
html.dark-mode .time-year {
    color: var(--primary-text);
}
html.dark-mode .service-demo-link:hover { color: #fff; }
html.dark-mode .service-link-chip:hover { color: var(--primary-text); border-color: var(--primary-text); }

/* Footer merah #e32636: semua teks putih solid — kontras 4.57:1 */
html.dark-mode .site-footer { color: #fff; }
html.dark-mode .site-footer .footer-logo-tagline,
html.dark-mode .site-footer .footer-col li,
html.dark-mode .site-footer .footer-col a,
html.dark-mode .site-footer .copyright { color: #fff; }
html.dark-mode .site-footer .footer-col a:hover { color: #fff; text-decoration: underline; }

/* Panel admin — audit kontras 14 tab: 2 elemen di bawah 4.5:1 (#6c7086 = 3.36:1) */
html.dark-mode .admin-lang-btn { color: #a6adc8; }
html.dark-mode .admin-lang-btn.active { color: #fff; }
html.dark-mode .pi-empty { color: #a6adc8; }

@media (prefers-reduced-motion: reduce) {
    html.dark-mode .cyber-glitch,
    html.dark-mode .cyber-scan,
    html.dark-mode .cyber-typing::after,
    .cyber-reticle i,
    .cyber-hud .cyber-hud-dot { animation: none !important; }
    html.dark-mode .cyber-scan { display: none; }
}


/* ==========================================================================
   12. KETERBACAAN — kontras WCAG AA
   Hasil audit otomatis di localhost/web: 10 elemen di bawah ambang 4.5:1.
   Dua penyebab:
     a) teks merah #e32636 di atas kartu #141112 (4.11:1)
     b) teks abu #94a3b8 / #cbd5e1 di atas footer merah (1.78:1 & 3.08:1)
   ========================================================================== */

html.dark-mode {
    /* Merah terang khusus TEKS di atas permukaan gelap — kontras ~5.4:1 */
    --primary-text: #ff4352;
}

html.dark-mode .service-content h3,
html.dark-mode .service-demo-link,
html.dark-mode .service-link-chip,
html.dark-mode .time-year {
    color: var(--primary-text);
}
html.dark-mode .service-demo-link:hover { color: #fff; }
html.dark-mode .service-link-chip:hover { color: var(--primary-text); border-color: var(--primary-text); }

/* Footer merah #e32636: semua teks putih solid — kontras 4.57:1 */
html.dark-mode .site-footer { color: #fff; }
html.dark-mode .site-footer .footer-logo-tagline,
html.dark-mode .site-footer .footer-col li,
html.dark-mode .site-footer .footer-col a,
html.dark-mode .site-footer .copyright { color: #fff; }
html.dark-mode .site-footer .footer-col a:hover { color: #fff; text-decoration: underline; }

/* Panel admin — audit kontras 14 tab: 2 elemen di bawah 4.5:1 (#6c7086 = 3.36:1) */
html.dark-mode .admin-lang-btn { color: #a6adc8; }
html.dark-mode .admin-lang-btn.active { color: #fff; }
html.dark-mode .pi-empty { color: #a6adc8; }

@media (prefers-reduced-motion: reduce) {
    html.dark-mode .cyber-glitch,
    html.dark-mode .cyber-scan,
    html.dark-mode .cyber-typing::after,
    .cyber-reticle i,
    .cyber-hud .cyber-hud-dot { animation: none !important; }
    html.dark-mode .cyber-scan { display: none; }
}
