:root {
    --bg-main: #E0F7FA;    /* Ice Blue */
    --bg-sec: #FFFFFF;     /* White */
    --blue-sky: #38BDF8;   /* Sky Blue */
    --emerald: #0EA5A4;    /* Teal */
    --text-dark: #082F49;  /* Deep Navy */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    padding-bottom: 80px; 
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* --- Marquee --- */
.marquee-container {
    background: var(--text-dark); color: #fff; padding: 10px; font-size: 0.75rem; font-weight: 800; overflow: hidden; white-space: nowrap;
}
.marquee-text { display: inline-block; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* --- Header --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo-container { display: flex; align-items: center; gap: 10px; position: relative; }
#logo-3d { width: 40px; height: 40px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); cursor: pointer; }
.logo span { color: var(--emerald); }
#btn-admin { background: var(--emerald); color: white; border: none; border-radius: 50%; width: 35px; height: 35px; cursor: pointer; display: flex; justify-content: center; align-items: center; }

/* --- Page Layout --- */
.page { display: none; padding: 20px 5%; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Hero Banner --- */
.hero-banner {
    background: linear-gradient(135deg, var(--bg-sec), #b2ebf2);
    border-radius: 20px; padding: 40px 20px; text-align: center;
    margin-bottom: 30px; border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px rgba(8, 47, 73, 0.1);
}
.hero-banner h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 15px; color: var(--text-dark); }
.hero-banner h1 span { color: var(--emerald); }
.hero-banner p { font-size: 0.95rem; opacity: 0.8; margin-bottom: 10px; max-width: 500px; margin: 0 auto; }

/* --- Section Title --- */
.section-title { margin-bottom: 20px; text-align: center; }
.section-title h2 { font-size: 1.5rem; color: var(--text-dark); }
.section-title p { font-size: 0.9rem; color: #666; margin-top: 5px; }
.mt-40 { margin-top: 40px; }

/* --- Search & Filter --- */
.search-filter { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.search-filter input, .search-filter select {
    padding: 14px 20px; border-radius: 12px; border: 1px solid rgba(56, 189, 248, 0.3); background: var(--bg-sec); font-size: 0.9rem; outline: none; box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* --- GRID KATALOG UID (2 kotak per baris) --- */
.uid-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 20px; }
.uid-item { min-width: 0; }
.uid-empty { grid-column: 1 / -1; text-align: center; padding: 20px; }
.uid-grid .card-pidz { height: 100%; padding: 10px; }
.uid-grid .uid-number { font-size: 0.95rem; letter-spacing: 0; word-break: break-all; }
.uid-grid .price-value { font-size: 1.1rem; }
.uid-grid .badge-kategori, .uid-grid .badge-harga { font-size: 0.6rem; padding: 3px 7px; }
@media (min-width: 768px) {
    .uid-grid { gap: 20px; }
    .uid-grid .uid-number { font-size: 1.1rem; }
}

/* --- CARD PIDZ (Theme Aqua) --- */
.card-pidz {
    background: #FFFFFF; border: 3px solid var(--text-dark); border-radius: 15px; padding: 12px;
    box-shadow: 0 6px 0 var(--text-dark); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.badge-kategori { background: var(--emerald); color: #fff; font-size: 0.65rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; border: 2px solid var(--text-dark); }
.badge-harga { background: var(--blue-sky); color: #fff; font-size: 0.7rem; font-weight: 900; padding: 4px 8px; border-radius: 6px; border: 2px solid var(--text-dark); }
.uid-box { background: var(--text-dark); border: 2px solid var(--text-dark); border-radius: 10px; padding: 10px; text-align: center; margin-bottom: 12px; }
.uid-label { display: block; color: var(--blue-sky); font-size: 0.55rem; font-weight: 700; margin-bottom: 4px; }
.uid-number { color: #FFFFFF; font-family: monospace; font-size: 1.1rem; font-weight: 800; margin: 0; letter-spacing: 1px; }
.price-box { text-align: center; margin-bottom: 12px; }
.price-label { display: block; font-size: 0.7rem; color: #555; font-weight: 600; margin-bottom: 2px; }
.price-value { color: var(--emerald); font-size: 1.3rem; font-weight: 900; font-style: italic; text-shadow: 1px 1px 0 var(--text-dark); }
.card-bottom { display: flex; flex-direction: column; gap: 8px; }
.btn-buy-pidz {
    width: 100%; background: var(--emerald); color: #FFFFFF; border: 3px solid var(--text-dark); border-radius: 10px; padding: 10px 0;
    font-size: 0.8rem; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 var(--text-dark); transition: transform 0.1s, box-shadow 0.1s;
}
.btn-buy-pidz:active { transform: translateY(4px); box-shadow: 0 0 0 var(--text-dark); }

/* --- Features Section --- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.feature-card { background: var(--bg-sec); padding: 25px; border-radius: 15px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.f-icon { display: flex; justify-content: center; margin-bottom: 10px; color: var(--emerald); }
.f-icon svg { width: 40px; height: 40px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-dark); }
.feature-card p { font-size: 0.85rem; color: #666; }

/* --- Profile Page --- */
.profile-card { background: var(--bg-sec); padding: 30px 20px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(8, 47, 73, 0.05); }
.avatar { display: flex; align-items: center; justify-content: center; background: var(--bg-main); width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; }
.profile-card h3 { color: var(--text-dark); margin-bottom: 5px; }
.profile-card p { color: var(--emerald); font-size: 0.9rem; font-weight: 600; }
.btn-wa-channel { display: inline-block; background: var(--emerald); color: white; text-decoration: none; padding: 12px 25px; border-radius: 10px; font-weight: 700; }

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-sec);
    display: flex; justify-content: space-around; padding: 10px 0; box-shadow: 0 -5px 20px rgba(8, 47, 73, 0.1); z-index: 1000;
}
.nav-item { background: none; border: none; display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; font-weight: 700; color: #999; cursor: pointer; gap: 4px; }
.nav-item svg { width: 22px; height: 22px; stroke: #999; transition: 0.2s; }
.nav-item.active { color: var(--blue-sky); }
.nav-item.active svg { stroke: var(--blue-sky); }

/* --- Admin Panel --- */
#admin-panel { display: none; padding: 20px; background: var(--bg-sec); margin: 20px 5%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
#admin-panel h2 { margin-bottom: 15px; color: var(--emerald); font-size: 1.2rem; text-align: center; }
.admin-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.admin-form input { padding: 12px; border: 1px solid #ccc; border-radius: 8px; }
#btn-simpan { padding: 12px; background: var(--blue-sky); color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
#btn-reset { width: 100%; background: #FF4D4D; color: white; border: none; padding: 10px; border-radius: 8px; cursor: pointer; }

/* --- Responsif Desktop --- */
@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .search-filter { flex-direction: row; }
    .bottom-nav { position: static; box-shadow: none; border-top: 1px solid #ddd; padding: 15px 0; background: transparent; }
    body { padding-bottom: 0; }
}