* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --sidebar-width: 250px;
    --sidebar-width-mobile: 280px;
    --pink: #FF6B9D;
    --purple: #C44DFF;
    --blue: #4FC3F7;
    --green: #6BCB77;
    --yellow: #FFD93D;
    --orange: #FF8A5C;
}

html, body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FFF5E4 0%, #FFE3E3 50%, #E8F5E9 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
}

/* ============================================
   SCROLLBAR KEREN
============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

/* ============================================
   BUBBLES
============================================ */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    animation: floatBubble linear infinite;
}

@keyframes floatBubble {
    0% {
        transform: translateY(100vh) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
        transform: translateY(-10vh) scale(1) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   LANDING PAGE
============================================ */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #FFECD2 0%, #FCB69F 50%, #FF9A9E 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 28px;
    padding: 40px 30px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(255,107,157,0.15);
    text-align: center;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.5) rotate(-5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.logo-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 5px;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-glass {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255,107,157,0.2);
    border-radius: 16px;
    background: rgba(255,255,255,0.5);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.input-glass::placeholder {
    color: rgba(0,0,0,0.3);
}

.input-glass:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(255,107,157,0.1);
    background: rgba(255,255,255,0.8);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 25px rgba(255,107,157,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255,107,157,0.4);
}

.error-msg {
    background: rgba(255,107,107,0.1);
    border: 2px solid rgba(255,107,107,0.2);
    color: #FF6B6B;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.hint {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 14px;
    opacity: 0.6;
}

.footer-note {
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ============================================
   DASHBOARD
============================================ */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF5E4 0%, #FFE3E3 50%, #E8F5E9 100%);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 2px solid rgba(255,255,255,0.3);
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-left: 4px;
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(255,107,157,0.08);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(255,107,157,0.12);
    color: var(--pink);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.2rem;
    min-width: 28px;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

.visitor-badge {
    background: rgba(255,107,157,0.08);
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    word-wrap: break-word;
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px 25px 40px;
    flex: 1;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.4);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    flex-wrap: wrap;
    gap: 10px;
}

.content-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    word-wrap: break-word;
}

.date-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-icon {
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.btn-icon:hover {
    background: rgba(255,255,255,0.8);
    transform: rotate(20deg);
}

/* ============================================
   CARDS
============================================ */
.card-glass {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    padding: 20px 22px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,107,157,0.03), transparent 70%);
    pointer-events: none;
}

.card-glass:hover {
    box-shadow: 0 20px 60px rgba(255,107,157,0.12);
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.badge {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   MOOD TRACKER
============================================ */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mood-btn {
    background: rgba(255,255,255,0.4);
    border: 3px solid transparent;
    border-radius: 14px;
    padding: 10px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mood-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 8px 20px rgba(255,107,157,0.12);
}

.mood-btn.active {
    border-color: var(--pink);
    background: rgba(255,107,157,0.1);
    box-shadow: 0 8px 20px rgba(255,107,157,0.15);
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.mood-btn .mood-emoji {
    font-size: 1.8rem;
    display: block;
}

.mood-btn .mood-label {
    font-size: 0.55rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

.mood-note-input {
    margin-top: 12px;
}

.mood-note-input .input-glass {
    padding: 10px 14px;
    font-size: 0.85rem;
}

.chart-container {
    margin-top: 20px;
    height: 170px;
}

/* ============================================
   QUESTION
============================================ */
.question-text {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 12px 18px;
    border-left: 4px solid var(--pink);
    background: rgba(255,255,255,0.3);
    border-radius: 14px;
    margin-bottom: 16px;
    word-wrap: break-word;
}

.question-answer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   MEMORIES
============================================ */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.memory-card {
    background: rgba(255,255,255,0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.memory-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255,107,157,0.15);
}

.memory-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: rgba(255,255,255,0.2);
}

.memory-caption {
    padding: 10px 14px 4px;
    font-size: 0.8rem;
    font-weight: 500;
    word-wrap: break-word;
}

.memory-date {
    display: block;
    padding: 0 14px 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 25px 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   PLAYLIST
============================================ */
.playlist-item {
    padding: 14px 18px;
    background: rgba(255,255,255,0.3);
    border-radius: 14px;
    border-left: 4px solid var(--pink);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}
.playlist-item:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.5);
    box-shadow: 0 5px 15px rgba(255,107,157,0.1);
}
.playlist-item .icon { font-size: 1.8rem; min-width: 40px; text-align: center; }
.playlist-item .info { flex: 1; }
.playlist-item .info .title { font-weight: 600; margin: 0; font-size: 0.95rem; }
.playlist-item .info .desc { color: var(--text-secondary); font-size: 0.8rem; }
.playlist-item .play-btn { font-size: 1.2rem; opacity: 0.5; transition: 0.3s; }
.playlist-item:hover .play-btn { opacity: 1; }
.playlist-item.active {
    background: rgba(255,107,157,0.15) !important;
    border-left-color: var(--pink) !important;
}

.category-label {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}
.category-tulus { background: rgba(255,107,157,0.1); color: var(--pink); border-left: 4px solid var(--pink); }
.category-hivi { background: rgba(79,195,247,0.1); color: var(--blue); border-left: 4px solid var(--blue); }
.category-dewa { background: rgba(161,136,254,0.1); color: #A188FE; border-left: 4px solid #A188FE; }

/* ============================================
   RANDOM FACT
============================================ */
.fact-box {
    padding: 20px 24px;
    background: rgba(255,255,255,0.3);
    border-radius: 16px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.fact-box .fact-emoji { font-size: 3rem; margin-bottom: 10px; }
.fact-box .fact-text { font-size: 1.1rem; font-weight: 500; }
.btn-fact {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(255,107,157,0.25);
}
.btn-fact:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,107,157,0.35);
}

/* ============================================
   UPLOAD FOTO - FIX FULL TIDAK KEPOTONG
============================================ */
#fotoList {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
}

#fotoList .memory-card {
    transition: all 0.3s ease !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.4) !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 100% !important;
}

#fotoList .memory-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(255,107,157,0.15) !important;
}

#fotoList .memory-card img {
    display: block !important;
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    background: #f0f0f0 !important;
    border-radius: 12px 12px 0 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#fotoList .memory-card .caption {
    padding: 10px 14px !important;
    width: 100% !important;
    text-align: center !important;
}

#fotoList .memory-card .caption .title {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

#fotoList .memory-card .caption .time {
    color: var(--text-secondary) !important;
    font-size: 0.7rem !important;
}

#fotoList .memory-card .caption .delete {
    color: #FF6B6B !important;
    font-size: 0.65rem !important;
    cursor: pointer !important;
}

/* UPLOAD FORM */
#upload .input-glass {
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255,107,157,0.2) !important;
    background: rgba(255,255,255,0.5) !important;
}

#upload input[type="file"] {
    width: 100% !important;
    padding: 12px !important;
    border: 2px dashed rgba(255,107,157,0.3) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.2) !important;
    cursor: pointer !important;
    color: var(--text-secondary) !important;
}

#upload input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, var(--pink), var(--purple)) !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
}

/* ============================================
   TOAST
============================================ */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    padding: 14px 20px;
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    z-index: 9999;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
}

.toast-success {
    background: linear-gradient(135deg, var(--green), #2D9B4E);
}
.toast-error {
    background: linear-gradient(135deg, #FF6B6B, #CC0000);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
============================================ */
.btn-save-answer {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255,107,157,0.2);
    width: 100%;
    justify-content: center;
}

.btn-save-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,107,157,0.3);
}

.btn-save-answer:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   ANSWER HISTORY
============================================ */
.answer-history {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}
.answer-history::-webkit-scrollbar { width: 6px; }
.answer-history::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 10px; }
.answer-history::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 10px; }

.answer-item {
    padding: 12px 16px;
    background: rgba(255,255,255,0.3);
    border-radius: 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--pink);
    transition: 0.3s;
}
.answer-item:hover { background: rgba(255,255,255,0.5); transform: translateX(5px); }
.answer-item .answer-date { font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; }
.answer-item .answer-text { font-size: 0.95rem; margin-top: 4px; color: var(--text-primary); }
.answer-item .answer-time { font-size: 0.7rem; color: var(--text-secondary); opacity: 0.6; }

.today-answer-box {
    background: rgba(255,107,157,0.05);
    border: 2px solid rgba(255,107,157,0.15);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 10px;
    transition: all 0.3s ease;
}
.today-answer-box .label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.today-answer-box .answer { font-size: 1.1rem; margin-top: 4px; font-weight: 500; color: var(--text-primary); }
.today-answer-box .time { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
.empty-answer { color: var(--text-secondary); font-style: italic; padding: 10px 0; }

/* ============================================
   HAMBURGER
============================================ */
.hamburger-btn {
    display: none;
    background: none !important;
    border: none !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    color: var(--text-primary) !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.2) !important; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .main-content { padding: 15px 18px 30px; }
    .memories-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .content-header h1 { font-size: 1.2rem; }
    #fotoList { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
    #fotoList .memory-card img { height: 200px !important; min-height: 200px !important; max-height: 200px !important; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width-mobile);
        min-width: var(--sidebar-width-mobile);
        padding: 20px 14px;
        box-shadow: 0 0 40px rgba(0,0,0,0.1);
        border-right: none;
    }
    .sidebar.open { transform: translateX(0); }
    
    .hamburger-btn { display: flex !important; }
    
    .main-content {
        margin-left: 0;
        padding: 12px 14px 30px;
        width: 100%;
        max-width: 100vw;
    }
    .glass-card { padding: 30px 20px; max-width: 100%; margin: 0 4px; }
    .title { font-size: 1.6rem; }
    .logo-icon { font-size: 3rem; }
    .subtitle { font-size: 0.85rem; }
    .content-header { padding: 12px 15px; border-radius: 14px; flex-wrap: wrap; }
    .content-header h1 { font-size: 1rem; }
    .date-text { font-size: 0.7rem; }
    .card-glass { padding: 16px 14px; border-radius: 18px; margin-bottom: 18px; }
    .card-header h3 { font-size: 0.95rem; }
    .badge { font-size: 0.55rem; padding: 3px 10px; }
    .mood-grid { gap: 5px; }
    .mood-btn { padding: 8px 2px; border-radius: 12px; }
    .mood-btn .mood-emoji { font-size: 1.5rem; }
    .mood-btn .mood-label { font-size: 0.45rem; margin-top: 2px; }
    .chart-container { height: 130px; margin-top: 15px; }
    .question-text { font-size: 1rem; padding: 10px 14px; border-radius: 12px; }
    .memories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .memory-placeholder { height: 100px; font-size: 2.8rem; }
    .memory-caption { font-size: 0.7rem; padding: 8px 10px 2px; }
    .memory-date { font-size: 0.6rem; padding: 0 10px 10px; }
    .visitor-badge { font-size: 0.65rem; padding: 6px 10px; }
    .answer-item { padding: 10px 12px; border-radius: 12px; }
    .answer-item .answer-text { font-size: 0.85rem; }
    .today-answer-box { padding: 12px 14px; border-radius: 12px; }
    .today-answer-box .answer { font-size: 0.95rem; }
    .input-glass { padding: 12px 16px; font-size: 0.9rem; }
    .btn-primary { padding: 12px; font-size: 0.9rem; }
    .toast-notification { bottom: 15px; right: 15px; left: 15px; padding: 12px 16px; font-size: 0.85rem; max-width: 100%; }
    #fotoList { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
    #fotoList .memory-card img { height: 180px !important; min-height: 180px !important; max-height: 180px !important; }
}

@media (max-width: 480px) {
    .glass-card { padding: 22px 16px; border-radius: 20px; }
    .title { font-size: 1.3rem; }
    .logo-icon { font-size: 2.5rem; }
    .content-header h1 { font-size: 0.9rem; }
    .card-glass { padding: 14px 12px; border-radius: 16px; margin-bottom: 14px; }
    .mood-grid { gap: 4px; }
    .mood-btn { padding: 6px 2px; border-radius: 10px; }
    .mood-btn .mood-emoji { font-size: 1.2rem; }
    .mood-btn .mood-label { font-size: 0.4rem; }
    .memories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .memory-placeholder { height: 80px; font-size: 2.2rem; }
    .question-text { font-size: 0.9rem; padding: 8px 12px; }
    .chart-container { height: 110px; }
    .sidebar { width: 280px; min-width: 280px; padding: 16px 12px; }
    .sidebar-brand { margin-bottom: 20px; }
    .brand-icon { font-size: 1.5rem; }
    .brand-name { font-size: 1rem; }
    .nav-item { padding: 9px 12px; font-size: 0.8rem; border-radius: 10px; }
    .nav-icon { font-size: 1rem; min-width: 24px; }
    .btn-icon { width: 34px; height: 34px; min-width: 34px; font-size: 0.9rem; }
    #fotoList { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; }
    #fotoList .memory-card img { height: 150px !important; min-height: 150px !important; max-height: 150px !important; }
}

/* ============================================
   DARK MODE
============================================ */
body.light-mode {
    background: linear-gradient(135deg, #2D3436 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
}

body.light-mode .hero-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #2D3436 50%, #16213e 100%);
}

body.light-mode .glass-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

body.light-mode .dashboard-container {
    background: linear-gradient(135deg, #2D3436 0%, #1a1a2e 50%, #16213e 100%);
}

body.light-mode .sidebar {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.05);
}

body.light-mode .card-glass {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
}

body.light-mode .card-glass::before {
    background: radial-gradient(circle at 30% 50%, rgba(255,107,157,0.05), transparent 70%);
}

body.light-mode .content-header {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
}

body.light-mode .input-glass {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}

body.light-mode .input-glass::placeholder {
    color: rgba(255,255,255,0.3);
}

body.light-mode .input-glass:focus {
    background: rgba(255,255,255,0.08);
}

body.light-mode .mood-btn {
    background: rgba(255,255,255,0.03);
}

body.light-mode .mood-btn:hover {
    background: rgba(255,255,255,0.08);
}

body.light-mode .memory-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
}

body.light-mode .btn-icon {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    color: #fff;
}

body.light-mode .btn-icon:hover {
    background: rgba(255,255,255,0.1);
}

body.light-mode .question-text {
    background: rgba(255,255,255,0.03);
}

body.light-mode .visitor-badge {
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.6);
}

body.light-mode .brand-name {
    -webkit-text-fill-color: #fff;
}

body.light-mode .error-msg {
    background: rgba(255,107,107,0.1);
    border-color: rgba(255,107,107,0.2);
    color: #FF6B6B;
}

body.light-mode .answer-item {
    background: rgba(255,255,255,0.05);
}

body.light-mode .answer-item:hover {
    background: rgba(255,255,255,0.1);
}

body.light-mode .today-answer-box {
    background: rgba(255,107,157,0.05);
    border-color: rgba(255,107,157,0.1);
}

body.light-mode .footer-note {
    color: rgba(255,255,255,0.3);
}

body.light-mode .hint {
    color: rgba(255,255,255,0.4);
}

body.light-mode .btn-save-answer {
    box-shadow: 0 6px 20px rgba(255,107,157,0.15);
}

body.light-mode .btn-save-answer:hover {
    box-shadow: 0 10px 30px rgba(255,107,157,0.25);
}

body.light-mode .hamburger-btn {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

body.light-mode .hamburger-btn:hover {
    background: rgba(255,255,255,0.1) !important;
}

body.light-mode .playlist-item {
    background: rgba(255,255,255,0.05);
}

body.light-mode .playlist-item:hover {
    background: rgba(255,255,255,0.1);
}

body.light-mode .playlist-item.active {
    background: rgba(255,107,157,0.15) !important;
}

body.light-mode .fact-box {
    background: rgba(255,255,255,0.05);
}

body.light-mode .category-tulus {
    background: rgba(255,107,157,0.1);
}

body.light-mode .category-hivi {
    background: rgba(79,195,247,0.1);
}

body.light-mode .category-dewa {
    background: rgba(161,136,254,0.1);
}

/* DARK MODE - UPLOAD FOTO */
body.light-mode #fotoList .memory-card {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

body.light-mode #fotoList .memory-card img {
    background: #1a1a2e !important;
}

body.light-mode #upload input[type="file"] {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.6) !important;
}

body.light-mode #upload .input-glass {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

body.light-mode #upload .input-glass::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

body.light-mode .toast-notification {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.light-mode ::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--pink), var(--purple));
}