/* =========================================
   NUSANTARA MOBILE APP STYLE
   ========================================= */

:root {
    --bg-dark: #050508;
    --card-bg: #0a0a0e;
    --card-light: #14141a;
    --gold: #c5a47e;
    --gold-dim: rgba(197, 164, 126, 0.2);
    --white: #e0e0e0;
    --text-dim: rgba(255, 255, 255, 0.6);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg-dark); color: var(--white); font-family: var(--font-sans); font-weight: 300; line-height: 1.5; overflow: hidden; }

/* LAYAR AUTH & SPLASH */
.auth-screen { position: fixed; inset: 0; background: radial-gradient(ellipse at center, #0e0e14 0%, var(--bg-dark) 100%); z-index: 5000; display: none; flex-direction: column; justify-content: center; align-items: center; padding: 30px; text-align: center; }
.auth-screen.active { display: flex; }
.pulse-core { width: 60px; height: 60px; background: var(--gold); border-radius: 50%; margin-bottom: 30px; animation: splash-pulse 2s infinite alternate; }
@keyframes splash-pulse { 0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 10px var(--gold); } 100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 50px var(--gold); } }
.splash-text { font-size: 3rem; margin-bottom: 10px; color: var(--gold); }
.splash-sub { font-size: 0.8rem; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; }

/* KOTAK LOGIN */
.login-box { max-width: 400px; width: 100%; background: var(--card-bg); padding: 40px 30px; border-radius: 12px; border: 1px solid var(--gold-dim); box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.mb-15 { margin-bottom: 15px; } .mb-30 { margin-bottom: 30px; } .mb-80 { margin-bottom: 80px; }
.cta-primary { background: var(--gold); color: var(--bg-dark); border: none; padding: 15px; border-radius: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; width: 100%; cursor: pointer; transition: 0.3s; }
.cta-primary:hover { opacity: 0.9; }
.nls-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--gold-dim); color: #fff; padding: 15px; border-radius: 8px; outline: none; }
.nls-input:focus { border-color: var(--gold); }

/* WADAH UTAMA APLIKASI (SPA) */
.app-container { max-width: 480px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; position: relative; background: var(--bg-dark); }
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo-serif { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); letter-spacing: 2px; }
.profile-btn { color: var(--gold); cursor: pointer; width: 24px; height: 24px; }

/* PERBAIKAN PADDING BAWAH AGAR KONTEN TIDAK TERPOTONG */
.app-content { flex: 1; overflow-y: auto; padding: 20px 20px 140px 20px; scrollbar-width: none; }
.app-content::-webkit-scrollbar { display: none; }

/* MANAJEMEN LAYAR (VIEWS) */
.view-section { display: none; animation: fadeIn 0.4s ease; }
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* TIPOGRAFI & UMUM */
.serif-title { font-family: var(--font-serif); font-size: 2rem; color: var(--white); line-height: 1.2; }
.serif-title-large { font-family: var(--font-serif); font-size: 2.2rem; color: var(--white); line-height: 1.1; margin: 5px 0; }
.subtitle { font-size: 0.9rem; color: var(--text-dim); }
.section-container { margin-bottom: 40px; }
.section-header { margin-bottom: 15px; }
.section-header .serif-title { font-size: 1.5rem; color: var(--gold); }
.tag { display: inline-block; background: rgba(197, 164, 126, 0.1); color: var(--gold); padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; text-transform: uppercase; border: 1px solid var(--gold-dim); }

/* CARD & LAYOUT */
.featured-card { background: linear-gradient(145deg, #121218, #08080c); border: 1px solid var(--gold-dim); border-radius: 16px; padding: 30px 25px; position: relative; overflow: hidden; }
.card-bg-glow { position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: var(--gold); filter: blur(60px); opacity: 0.15; }
.featured-content p { font-size: 0.85rem; color: var(--text-dim); margin-top: 10px; }

/* HORIZONTAL LENSES SCROLL */
.horizontal-scroll { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.lens-card-small { flex: 0 0 220px; background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 15px; scroll-snap-align: start; }
.lens-icon { font-size: 2rem; color: var(--gold); }
.lens-info h4 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); }
.lens-info span { font-size: 0.75rem; color: var(--text-dim); }

/* GRID JURNAL & BUKU */
.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.journal-item { display: flex; flex-direction: column; cursor: pointer; }
.book-cover { width: 100%; aspect-ratio: 3/4; border-radius: 8px; background: var(--card-light); border: 1px solid var(--gold-dim); margin-bottom: 10px; }
.journal-item h4 { font-family: var(--font-serif); font-size: 1rem; line-height: 1.3; }
.journal-item span { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; }

/* LAYAR SISTEM (WAKTU & AUDIO) */
.system-header { text-align: center; margin: 20px 0 40px; }
.time-display { font-family: var(--font-serif); font-size: 4rem; color: var(--gold); text-shadow: 0 0 20px var(--gold-dim); line-height: 1; }
.date-display { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.energy-status { display: inline-flex; align-items: center; gap: 8px; background: rgba(197, 164, 126, 0.1); border: 1px solid var(--gold-dim); padding: 6px 15px; border-radius: 50px; font-size: 0.75rem; color: var(--gold); }
.status-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 8px #4ade80; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

.blueprint-card { background: var(--card-bg); border: 1px solid var(--gold-dim); border-radius: 12px; padding: 20px; }
.blueprint-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.blueprint-item:last-child { border: none; padding: 0; margin: 0; }
.bp-label { display: block; font-size: 0.75rem; color: var(--gold); text-transform: uppercase; margin-bottom: 5px; }
.bp-text { font-size: 0.85rem; color: var(--white); line-height: 1.6; }

/* AUDIO PLAYER (STATIS LAMA) */
.audio-catalyst-card { display: flex; align-items: center; gap: 15px; background: linear-gradient(145deg, #121218, #08080c); border: 1px solid var(--gold-dim); border-radius: 12px; padding: 15px; }
.audio-visualizer { display: flex; gap: 3px; align-items: flex-end; height: 24px; }
.audio-visualizer .bar { width: 4px; background: var(--gold); border-radius: 2px; height: 20%; transition: height 0.2s; }
.audio-visualizer.playing .bar { animation: sound-bounce 1s infinite ease-in-out alternate; }
.audio-visualizer.playing .bar:nth-child(2) { animation-delay: 0.2s; } .audio-visualizer.playing .bar:nth-child(4) { animation-delay: 0.4s; }
@keyframes sound-bounce { 0% { height: 20%; } 100% { height: 100%; } }
.audio-info { flex: 1; }
.audio-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.audio-info span { font-size: 0.7rem; color: var(--text-dim); }
.play-catalyst-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--bg-dark); border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; margin-left: auto; }
.play-catalyst-btn svg { width: 20px; height: 20px; margin-left: 2px; }

/* --- FLOATING AUDIO PLAYER --- */
.floating-player {
    position: absolute;
    bottom: 75px; 
    left: 15px;
    right: 15px;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 90;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.fp-info { flex: 1; overflow: hidden; white-space: nowrap; }
.fp-info h4 { font-family: var(--font-serif); font-size: 1rem; color: var(--white); margin-bottom: 2px; text-overflow: ellipsis; overflow: hidden; }
.fp-info span { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

.fp-play-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px var(--gold-dim);
}
.fp-play-btn svg { width: 18px; height: 18px; margin-left: 2px; }

.fp-visualizer { display: flex; gap: 2px; align-items: flex-end; height: 15px; width: 15px; }
.fp-visualizer .bar { width: 3px; background: var(--gold); border-radius: 2px; height: 20%; transition: 0.2s; }
.fp-visualizer.playing .bar { animation: fp-bounce 1s infinite ease-in-out alternate; }
.fp-visualizer.playing .bar:nth-child(2) { animation-delay: 0.2s; }
.fp-visualizer.playing .bar:nth-child(3) { animation-delay: 0.4s; }
.fp-visualizer.playing .bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes fp-bounce { 0% { height: 20%; } 100% { height: 100%; } }


/* BOTTOM NAV */
.bottom-nav { display: flex; justify-content: space-around; align-items: center; padding: 15px 10px 25px; background: rgba(5, 5, 8, 0.95); border-top: 1px solid var(--gold-dim); position: absolute; bottom: 0; width: 100%; z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-dim); text-decoration: none; transition: 0.3s; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-item.active { color: var(--gold); }
.nav-item.active svg { transform: translateY(-2px); filter: drop-shadow(0 0 5px var(--gold-dim)); }

/* MODAL JURNAL (POP-UP BACA) */
.form-modal-overlay { position: fixed; inset: 0; background: rgba(5,5,8,0.95); backdrop-filter: blur(5px); z-index: 9000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.form-modal-overlay.active { opacity: 1; visibility: visible; }
.journal-modal-box { width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto; background: var(--card-bg); border: 1px solid var(--gold); border-radius: 12px; padding: 25px 20px; position: relative; transform: translateY(20px); transition: 0.3s; }
.form-modal-overlay.active .journal-modal-box { transform: translateY(0); }
.close-modal-btn { position: absolute; top: 15px; right: 15px; background: rgba(197,164,126,0.1); border: 1px solid var(--gold); color: var(--gold); width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; display: flex; justify-content: center; align-items: center; cursor: pointer; }

/* --- PROGRESS BAR SEKTOR HARIAN --- */
.progress-item { margin-bottom: 15px; }
.progress-item:last-child { margin-bottom: 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--white); margin-bottom: 6px; font-weight: 600; letter-spacing: 1px; }
.progress-track { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 10px; transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 0 10px currentColor; }

/* --- TIMELINE JADWAL HARIAN --- */
.timeline-container { position: relative; padding-left: 25px; margin-top: 20px; }
.timeline-container::before { content: ''; position: absolute; top: 0; left: 6px; width: 2px; height: 100%; background: rgba(197, 164, 126, 0.2); }
.timeline-block { position: relative; margin-bottom: 30px; opacity: 0.5; transition: 0.4s; }
.timeline-block.active { opacity: 1; }
.timeline-block.past { opacity: 0.3; }

.timeline-dot { position: absolute; left: -25px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-dark); border: 2px solid var(--gold-dim); z-index: 2; transition: 0.4s; }
.timeline-block.active .timeline-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 15px var(--gold); }

.time-range { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); margin-bottom: 5px; line-height: 1; }
.timeline-block.active .time-range { color: #fff; text-shadow: 0 0 10px var(--gold); }

.brainwave-tag { display: inline-block; font-size: 0.65rem; padding: 2px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.timeline-block.active .brainwave-tag { border-color: var(--gold); color: var(--gold); background: rgba(197, 164, 126, 0.1); }

.timeline-content { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; }
.timeline-block.active .timeline-content { border-color: var(--gold-dim); box-shadow: 0 5px 20px rgba(0,0,0,0.5); }

.timeline-title { font-size: 0.95rem; color: #fff; margin-bottom: 5px; }
.timeline-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }
.audio-rec { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--gold); background: rgba(0,0,0,0.3); padding: 6px 10px; border-radius: 4px; border-left: 2px solid var(--gold); }


/* --- 5. PDF READER OVERLAY --- */
.reader-overlay { 
    position: fixed; inset: 0; 
    background: var(--bg-dark); 
    z-index: 10000; 
    display: flex; flex-direction: column; 
    opacity: 0; visibility: hidden; 
    transform: translateY(20px);
    transition: all 0.3s ease; 
}
.reader-overlay.active { 
    opacity: 1; visibility: visible; 
    transform: translateY(0);
}
.reader-header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 20px; 
    background: rgba(10,10,14,0.95); 
    border-bottom: 1px solid var(--gold-dim); 
}
.close-reader-btn { 
    background: none; border: none; 
    color: var(--gold); font-size: 2rem; line-height: 1; 
    cursor: pointer; padding: 0 10px 5px 0;
}
.reader-content { 
    flex: 1; position: relative; width: 100%; background: #000; 
}
#reader-iframe { 
    width: 100%; height: 100%; border: none; position: relative; z-index: 2; 
}


/* --- Pembaruan Estetika Drive Blocker (Segel Vault NLS) --- */
.drive-blocker { 
    position: absolute; 
    top: 8px;      /* Posisi menutupi header icon Drive */
    right: 12px;   /* Posisi menutupi header icon Drive */
    width: 44px; 
    height: 44px; 
    background: #121212; /* Warna abu gelap/hitam membaur dengan header Drive */
    z-index: 3; 
    border-radius: 6px;
    border: 1px solid rgba(197, 164, 126, 0.25); /* Frame Emas Redup */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -3px 3px 15px rgba(0,0,0,0.9);
    cursor: not-allowed;
}

.drive-blocker svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
    opacity: 0.7;
    filter: drop-shadow(0 0 5px rgba(197, 164, 126, 0.5));
}


/* =========================================
   TAMBAHAN UI/UX SUPER APP NLS
   ========================================= */

/* Banner Announcement */
.banner-card {
    flex: 0 0 90%;
    height: 140px;
    background: linear-gradient(135deg, rgba(140, 66, 40, 0.4), rgba(10, 8, 7, 0.9)), url('assets/images/bg-mystic.jpg') center/cover;
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
}
.banner-card::after {
    content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 164, 126, 0.1));
}

/* Category Chips (E-Book) */
.cat-chip {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cat-chip.active {
    background: rgba(197, 164, 126, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* VIP ID Card (Tab Diri) */
.vip-card {
    background: linear-gradient(135deg, #1f1f25 0%, #050508 100%);
    border: 1px solid rgba(197, 164, 126, 0.4);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.vip-card::before {
    content: ''; position: absolute; top: -50px; right: -20px;
    width: 150px; height: 150px; background: radial-gradient(circle, rgba(197,164,126,0.15) 0%, transparent 70%);
}
.vip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.vip-logo { font-family: var(--font-serif); font-size: 1.2rem; color: #fff; letter-spacing: 3px; }
.vip-tier { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; padding: 4px 10px; border-radius: 4px; border: 1px solid currentColor; }
.vip-chip { color: var(--gold); opacity: 0.7; margin-bottom: 15px; }
.vip-body h3 { font-family: var(--font-serif); font-size: 1.5rem; color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 1px;}
.vip-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.btn-upgrade-vip { background: var(--gold); color: #000; border: none; padding: 8px 15px; font-size: 0.75rem; font-weight: bold; border-radius: 4px; cursor: pointer; text-transform: uppercase; }

/* Audio / Frekuensi List */
.audio-item {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(197,164,126,0.1);
    padding: 15px; border-radius: 12px;
    margin-bottom: 15px; transition: 0.3s;
}
.audio-item.locked { opacity: 0.5; filter: grayscale(1); }
.audio-item-cover { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(197,164,126,0.3); }
.audio-item-info { flex: 1; }
.audio-item-title { font-family: var(--font-serif); font-size: 1.1rem; color: #fff; margin-bottom: 3px; }
.audio-item-desc { font-size: 0.75rem; color: var(--text-dim); }
.btn-play-audio { width: 35px; height: 35px; border-radius: 50%; background: rgba(197,164,126,0.2); color: var(--gold); border: 1px solid var(--gold); display: flex; justify-content: center; align-items: center; cursor: pointer; }
.audio-item.locked .btn-play-audio { background: transparent; border-color: #ff4c4c; color: #ff4c4c; }