/* ==========================================================================
   iDevice.id - Modern Redesign 2025 (Sticky Header Fix)
   ========================================================================== */

/* --- Import Font & Variabel Global --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #101113;
    --card-bg-color: rgba(28, 29, 33, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-border-color: rgba(255, 255, 255, 0.15);
    --text-color-primary: #f1f1f1;
    --text-color-secondary: #8e949f;
    --accent-color: #007aff;
    --accent-color-light: #3395ff;
    --accent-glow: rgba(0, 122, 255, 0.3);
    --footer-bg-color: #0b0c0d;
}

/* --- Reset & Pengaturan Dasar --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color-primary);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Latar Belakang Aurora --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 30%, var(--accent-glow) 0%, transparent 30%),
                radial-gradient(circle at 85% 70%, rgba(200, 80, 255, 0.2) 0%, transparent 30%);
    filter: blur(100px);
}

/* --- PERBAIKAN UTAMA UNTUK STICKY HEADER --- */
header {
    background-color: rgba(16, 17, 19, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* Properti Kunci */
    top: 0;           /* Properti Kunci */
    z-index: 1000;    /* Properti Kunci */
    width: 100%;
}

.container {
    display: flex;
    flex-direction: row;
    max-width: 1280px;
    margin: 2rem auto;
    gap: 2.5rem;
    padding: 0 1.5rem;
    flex-grow: 1;
}

/* --- Banner Iklan --- */
.ad-banner { background-color: transparent; text-align: center; padding: 1rem; color: var(--text-color-secondary); font-size: 0.9rem; }
.ad-banner p { margin: 0; }

/* Navigasi */
.top-nav { display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; height: 64px; padding: 0 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--text-color-primary); }
.logo-img { height: 36px; }
.desktop-menu { list-style-type: none; display: flex; gap: 2rem; }
.desktop-menu a { color: var(--text-color-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.desktop-menu a:hover { color: var(--text-color-primary); }

/* Menu Mobile */
.mobile-menu-toggle { display: none; }
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 27, 30, 0.95); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 2000; transform: translateY(-100%); transition: transform 0.3s ease-in-out; }
.mobile-menu--open { transform: translateY(0); }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer; }
.mobile-link { color: white; text-decoration: none; font-size: 1.2rem; margin: 0.8rem 0; }
.mobile-menu-divider { width: 80px; border: none; border-top: 1px solid var(--border-color); margin: 1rem 0; }

/* Sidebar & Konten Utama */
.sidebar { width: 300px; flex-shrink: 0; }
.step { padding: 1.5rem; border: 1px solid transparent; border-radius: 12px; margin-bottom: 1rem; background-color: transparent; transition: all 0.3s ease; opacity: 0.6; }
.step.active { opacity: 1; background-color: var(--accent-color); border-color: var(--accent-color-light); color: white; box-shadow: 0 0 25px var(--accent-glow); }
.step h3 { margin-top: 0; font-size: 1.1rem; font-weight: 600; }
.step p { margin-bottom: 0; font-size: 0.9rem; color: var(--text-color-secondary); }
.step.active h3 { color: #fff; }
.step.active p { color: rgba(255, 255, 255, 0.8); }
.content { flex-grow: 1; min-width: 0; }
#content-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: -1px; }

/* Kartu Produk */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.product-card { background: var(--card-bg-color); border: 1px solid var(--border-color); border-radius: 12px; text-align: center; padding: 1.5rem 1rem; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.2s ease-in-out; }
.product-card:hover { transform: translateY(-5px); border-color: var(--glow-border-color); box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.product-card i { font-size: 3rem; margin-bottom: 1rem; color: var(--accent-color-light); }
.product-card h4 { margin: 0; font-size: 1.1rem; font-weight: 500; }

/* Daftar Perangkat */
.device-list { column-count: 3; column-gap: 1.5rem; }
.device-list-item { display: block; padding: 0.6rem 1rem; margin-bottom: 0.5rem; text-decoration: none; color: var(--text-color-secondary); border-radius: 8px; font-weight: 500; transition: background-color 0.2s, color 0.2s; cursor: pointer; }
.device-list-item:hover { background-color: var(--accent-color); color: #fff; }

/* Tabel Firmware & Toggle */
#firmware-options { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 1rem; }
#firmware-table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.firmware-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; min-width: 700px; }
.firmware-table th, .firmware-table td { padding: 1rem 1.25rem; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border-color); }
.firmware-table th { font-weight: 500; font-size: 0.9rem; color: var(--text-color-secondary); }
.firmware-table tbody tr:hover { background-color: rgba(255,255,255,0.03); }
.firmware-table .signed { color: #4ade80; font-weight: 500; }

/* Tombol & Form */
.download-btn { background-color: var(--accent-color); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; transition: all 0.2s; white-space: nowrap; font-weight: 500; border: none; }
.download-btn:hover { background-color: var(--accent-color-light); transform: translateY(-1px); box-shadow: 0 4px 15px var(--accent-glow); }
.back-button { background-color: var(--card-bg-color); color: var(--text-color-primary); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; margin-bottom: 1.5rem; font-size: 1rem; transition: all 0.2s; }
.back-button:hover { background-color: rgba(255,255,255,0.1); border-color: var(--glow-border-color); }

/* Halaman Identifikasi & Tentang */
.identifier-description, .about-content { color: var(--text-muted-color); margin-bottom: 1.5rem; max-width: 700px; line-height: 1.8; }
.identifier-form input { flex-grow: 1; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid var(--border-color); background-color: #222429; color: var(--text-color-primary); font-size: 1rem; }
.identifier-form input:focus { border-color: var(--accent-color); box-shadow: 0 0 10px var(--accent-glow); outline: none; }
.identifier-form button { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; background-color: var(--accent-color); color: #fff; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.identifier-form button:hover { background-color: var(--accent-color-light); }
.about-content a { color: var(--accent-color-light); text-decoration: none; font-weight: 500; }
.about-content a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background-color: var(--footer-bg-color); color: var(--text-muted-color); padding: 4rem 1.5rem; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; max-width: 1280px; margin: 0 auto; }
.footer-about .logo { margin-bottom: 1rem; }
.footer-tagline { font-size: 0.9rem; line-height: 1.5; max-width: 300px; }
.footer-links h4 { color: var(--text-color-primary); margin-top: 0; margin-bottom: 1.5rem; font-size: 1rem; font-weight: 500; }
.footer-links a { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; text-decoration: none; color: var(--text-color-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-color-light); }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { color: var(--text-color-secondary); font-size: 1.25rem; transition: all 0.2s; }
.social-links a:hover { color: var(--accent-color-light); transform: translateY(-2px); }
.footer-bottom { text-align: center; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; }
.footer-bottom a { color: var(--accent-color-light); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* --- Media Queries --- */
@media (max-width: 992px) {
    .container { flex-direction: column; }
    .sidebar { width: 100%; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .device-list { column-count: 2; }
}
@media (max-width: 768px) {
    .desktop-menu { display: none; }
    .mobile-menu-toggle { display: block; background: none; border: none; color: var(--text-color-primary); font-size: 1.5rem; cursor: pointer; }
    #content-title { font-size: 1.8rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.8rem;}
    .product-card { padding: 1rem 0.5rem; border-radius: 10px;}
    .product-card i { font-size: 2.5rem; margin-bottom: 0.8rem; }
    .product-card h4 { font-size: 0.9rem; }
    .footer-content { grid-template-columns: 1fr; }
    .device-list { column-count: 1; }
}

/* Sisa kode (toggle switch, dll.) tidak berubah */
.toggle-switch, .slider, .switch { /* ... */ }