* {  
  margin: 0;  
  padding: 0;  
  box-sizing: border-box;  
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

/* =====================================================
   SCYRA CUSTOM SCROLLBAR — Global (Chromium + Firefox)
   ===================================================== */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(135, 168, 120, 0.35) transparent;
}

/* Chromium / Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(135, 168, 120, 0.35);
    border-radius: 999px;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 143, 92, 0.6);
}
/* Hapus tombol panah atas/bawah/kiri/kanan */
::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
::-webkit-scrollbar-corner {
    background: transparent;
}
/* ================= CSS VARIABLES (SAGE & GOLD THEME) ================= */
:root {
    /* LIGHT MODE (Cream & Sage) */
    --bg-primary: #F5F5DC;      /* Cream - Background utama */
    --bg-secondary: #FFFFFF;    /* Putih murni - Untuk card agar pop-out */
    --bg-tertiary: #FAFAF0;     /* Cream terang */
    --text-primary: #2C2C2C;    /* Dark Gray (bukan hitam pekat, lebih lembut) */
    --text-secondary: #555555;  
    --text-muted: #888888;      
    --brand-primary: #87A878;       /* Sage Green */
    --brand-primary-light: #A3C491; /* Sage Light (hover) */
    --brand-primary-dark: #6B8F5C;  /* Sage Dark (active/success) */
    --brand-accent: #D4AF37;        /* Soft Gold */
    --border-color: #E0DFD0;    /* Border lembut turunan cream */
    --shadow-color: rgba(107, 143, 92, 0.08); /* Shadow dengan hint sage */
    --footer-bg: #1A1A1A;       /* Charcoal */
    --footer-text: #B8B8B8;
    
    /* Functional Colors */
    --success: #6B8F5C;   /* Sage Dark */
    --error: #E57373;     /* Soft Red */
    --warning: #FFB74D;   /* Soft Orange */
    --info: #A8D8EA;      /* Sky Blue */
    
    /* Accent Colors (untuk kategori mapel) */
    --accent-lavender: #9B89B3;
    --accent-pink: #F4C2C2;
    --accent-sky: #A8D8EA;
    --accent-peach: #FFDAB9;
}

/* DARK MODE (Rich Black & Sage Light) */
body.dark-mode {
    --bg-primary: #0A0A0A;      /* Rich Black */
    --bg-secondary: #1A1A1A;    /* Charcoal - Untuk card */
    --bg-tertiary: #2C2C2C;     /* Dark Gray */
    --text-primary: #F0F0F0;    /* Off White */
    --text-secondary: #B8B8B8;  
    --text-muted: #888888;      
    --brand-primary: #A3C491;       /* Sage Light (lebih terang agar terbaca) */
    --brand-primary-light: #87A878; 
    --brand-primary-dark: #6B8F5C;  
    --brand-accent: #D4AF37;        /* Gold (tetap mewah di dark mode) */
    --border-color: #2C2C2C;    
    --shadow-color: rgba(0, 0, 0, 0.5); 
    --footer-bg: #000000;       
    --footer-text: #B8B8B8;
}

/* Override scrollbar Firefox (dark mode) */
body.dark-mode * {
    scrollbar-color: rgba(163, 196, 145, 0.35) transparent;
}
/* Override scrollbar Chrome/Safari (dark mode) */
body.dark-mode::-webkit-scrollbar-thumb,
body.dark-mode *::-webkit-scrollbar-thumb {
    background: rgba(163, 196, 145, 0.35);
}
body.dark-mode::-webkit-scrollbar-thumb:hover,
body.dark-mode *::-webkit-scrollbar-thumb:hover {
    background: rgba(135, 168, 120, 0.6);
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 85px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ================= HEADER ================= */
.site-header {
    background: var(--bg-primary); /* Sewarna dengan background halaman */
    padding: 1rem 2rem;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    z-index: 900;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

/* Efek Blur saat Scroll untuk Header Landing Page */
.site-header.scrolled {
    background: rgba(245, 245, 220, 0.7); /* Cream transparan */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .site-header.scrolled {
    background: rgba(10, 10, 10, 0.7); /* Rich Black transparan */
}

.header-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

/* ================= LOGO BRANDING ================= */
.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(-3deg);
}

.logo h2 {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ================= DESKTOP NAVIGATION ================= */
.desktop-nav ul { display: flex; list-style: none; gap: 2rem; }
.desktop-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s ease;
}
.desktop-nav a.active, .desktop-nav a:hover { color: var(--brand-primary); }

/* ================= HEADER ACTIONS ================= */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle {
    background: transparent; border: none; cursor: pointer;
    font-size: 1.3rem; padding: 0.4rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease; color: var(--text-primary);
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); }
.icon-moon { display: none; }
body.dark-mode .icon-sun { display: none; }
body.dark-mode .icon-moon { display: inline-block; }
.auth-buttons { display: flex; gap: 0.5rem; }
.auth-buttons a {
    padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none;
    transition: all 0.2s ease; font-weight: 500; font-size: 0.95rem;
}
.btn-login { color: var(--brand-primary); border: 1.5px solid var(--brand-primary); }
.btn-login:hover { background: rgba(135, 168, 120, 0.1); }
.btn-daftar { background: var(--brand-primary); color: white; }
.btn-daftar:hover { background: var(--brand-primary-dark); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 998;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

/* ================= USER PROFILE DROPDOWN ================= */
.profile-dropdown-container { position: relative; display: none; }
.profile-dropdown-container.active { display: flex; align-items: center; }
/* =========================================================
   KUNCI UKURAN AVATAR (ANTI MBLUDAK)
   ========================================================= */

/* 1. Kurungan untuk tombol avatar di Topbar & Header */
.avatar-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 2px solid var(--brand-primary) !important;
    overflow: hidden !important; /* Kunci rahasianya: potong gambar yang lewat batas */
    padding: 0 !important;
    background: var(--bg-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important; /* Biar tombolnya gak gepeng ditekan elemen lain */
}

/* 2. Gambar di dalam tombol (Pasti proporsional) */
.avatar-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Biar gambar gak penyok/melar */
    display: block !important;
}

/* 3. Kurungan untuk avatar yang agak gede di dalam Dropdown Menu */
.dropdown-header img, 
.avatar-large, 
#dropdownAvatar, 
#mobileAvatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 1px solid var(--border-color);
}

.avatar-btn:hover { transform: scale(1.05); }
.profile-dropdown {
    position: absolute; top: calc(100% + 15px); right: 0;
    width: 320px; background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: 12px;
    box-shadow: 0 10px 25px var(--shadow-color);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1001;
}
.profile-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 1rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 1rem; }
.avatar, .avatar-large { background: var(--brand-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.avatar { width: 38px; height: 38px; font-size: 1rem; }
.avatar-large { width: 48px; height: 48px; font-size: 1.2rem; flex-shrink: 0; }
.dropdown-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.dropdown-email { font-size: 0.8rem; color: var(--text-muted); word-break: break-all; }
.dropdown-menu { padding: 0.5rem; }
.dropdown-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem; border-radius: 8px; text-decoration: none;
    color: var(--text-primary); width: 100%; text-align: left;
    background: transparent; border: none; cursor: pointer;
    font-size: 0.95rem; transition: background 0.2s; font-family: inherit;
}
.dropdown-item:hover { background: var(--bg-tertiary); }
.nav-soon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}
body.dark-mode .nav-soon-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}
.logout-btn { color: var(--error); font-weight: 500; }
.logout-btn:hover { background: rgba(229, 115, 115, 0.1); }
.mobile-profile-container { display: none; width: 100%; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.mobile-profile-header { display: flex; align-items: center; gap: 1rem; padding: 0 0.5rem 1rem 0.5rem; }

/* ================= MAIN CONTENT ================= */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.container h1 { color: var(--brand-primary); margin-bottom: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
    background: var(--bg-secondary); padding: 1.5rem; border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color); transition: transform 0.2s, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px var(--shadow-color); }
.card h3 { color: var(--brand-primary); margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); margin-bottom: 1rem; }
.card a { display: inline-block; margin-top: 0.5rem; color: var(--brand-primary); text-decoration: none; font-weight: 600; }

/* ================= FOOTER ================= */
.site-footer {
    background-color: var(--bg-primary); /* Otomatis ngikutin dark/light mode */
    padding: 4rem 2rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Bagian Atas */
.footer-top { margin-bottom: 2.5rem; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    width: fit-content;
    transition: opacity 0.2s;
}
.footer-brand:hover {
    opacity: 0.85;
}
.footer-logo-img { width: 36px; height: 36px; }
.footer-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}
.footer-tagline {
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Sosmed Button */
.social-links { display: flex; gap: 1rem; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
    background: var(--bg-secondary);
}
.social-links a:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-3px);
}

/* Garis Pembatas */
.footer-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

/* Grid Kolom Footer */
.footer-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}
.footer-col a:hover { color: var(--brand-primary); }

/* Copyright */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.micro-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto; /* Mendorong footer selalu ke paling bawah */
    border-top: 1px solid var(--border-color);
    background-color: transparent;
}

/* ================= FEATURE SHOWCASE MODAL ================= */
.feature-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1rem;
}
.feature-modal.active {
    opacity: 1;
    visibility: visible;
}
.feature-modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-align: center;
    overflow: hidden;
}
.feature-modal.active .feature-modal-box {
    transform: scale(1) translateY(0);
}
.feature-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.feature-modal-close:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
    transform: rotate(90deg);
}
.feature-modal-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.8rem;
    background: rgba(135, 168, 120, 0.12);
    border-radius: 999px;
    border: 1px solid rgba(135, 168, 120, 0.2);
}
.feature-animation-stage {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    margin: 0.75rem 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.feature-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.feature-modal-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    padding: 0 0.5rem;
}
.feature-modal-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}
.feature-modal-tags span {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--brand-primary-dark);
    border: 1px solid var(--border-color);
}
.feature-modal-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--brand-primary);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(107, 143, 92, 0.25);
}
.feature-modal-btn:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 143, 92, 0.35);
}

/* Feature Animations */
.scyra-anim-focus { width: 88%; max-width: 320px; }
.anim-focus-screen { background: #131722; border: 1.5px solid #2d3852; border-radius: 10px; padding: 0.65rem; color: #e2e8f0; font-family: inherit; font-size: 0.75rem; position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.anim-focus-topbar { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.4rem; }
.anim-focus-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.anim-focus-dot.red { background: #ff5f56; }
.anim-focus-dot.yellow { background: #ffbd2e; }
.anim-focus-dot.green { background: #27c93f; }
.anim-focus-badge { margin-left: auto; background: rgba(255,189,46,0.18); color: #ffbd2e; padding: 0.15rem 0.4rem; border-radius: 4px; font-weight: 700; font-size: 0.7rem; animation: pulseBadge 1.2s infinite ease-in-out; }
.anim-focus-shield { background: rgba(39,201,63,0.18); color: #27c93f; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.68rem; font-weight: 600; margin-left: 0.3rem; }
.anim-focus-q { color: #f8fafc; font-weight: 600; margin-bottom: 0.35rem; text-align: left; font-size: 0.72rem; }
.anim-focus-opt { background: rgba(255,255,255,0.05); padding: 0.25rem 0.5rem; border-radius: 5px; margin-bottom: 0.25rem; text-align: left; font-size: 0.68rem; color: #94a3b8; }
.anim-focus-opt.correct { background: rgba(107,143,92,0.3); color: #a3c491; border: 1px solid #6b8f5c; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.anim-focus-opt .check-mark { background: #6b8f5c; color: white; width: 14px; height: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6rem; animation: popCheck 1.5s infinite; }
.anim-focus-radar { position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(163,196,145,0.12), transparent); animation: radarSweep 2.5s infinite linear; pointer-events: none; }
@keyframes radarSweep { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes pulseBadge { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes popCheck { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.scyra-anim-marker { width: 88%; max-width: 320px; display: flex; flex-direction: column; align-items: center; }
.anim-paper { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 10px; padding: 0.75rem; position: relative; box-shadow: 0 4px 12px var(--shadow-color); text-align: left; }
.anim-text-line { font-size: 0.72rem; line-height: 1.5; color: var(--text-primary); margin-bottom: 0.35rem; position: relative; display: inline-block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anim-text-line.highlight-yellow { background: linear-gradient(90deg, rgba(255, 217, 122, 0.55) 0%, rgba(255, 217, 122, 0.55) 100%) no-repeat; background-size: 0% 100%; animation: highlightSweepYellow 3s infinite ease-in-out; border-radius: 3px; font-weight: 600; padding: 0 0.2rem; }
.anim-text-line.highlight-green { background: linear-gradient(90deg, rgba(163, 196, 145, 0.55) 0%, rgba(163, 196, 145, 0.55) 100%) no-repeat; background-size: 0% 100%; animation: highlightSweepGreen 3s 0.8s infinite ease-in-out; border-radius: 3px; font-weight: 600; padding: 0 0.2rem; }
.anim-pen-tool { position: absolute; right: 0.5rem; top: 0.5rem; font-size: 1.1rem; animation: penFloat 3s infinite ease-in-out; }
.anim-marker-tooltip { margin-top: 0.45rem; font-size: 0.7rem; font-weight: 700; color: var(--brand-accent); background: rgba(212, 175, 55, 0.12); padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid rgba(212, 175, 55, 0.25); }
@keyframes highlightSweepYellow { 0%, 15% { background-size: 0% 100%; } 45%, 85% { background-size: 100% 100%; } 100% { background-size: 0% 100%; } }
@keyframes highlightSweepGreen { 0%, 25% { background-size: 0% 100%; } 55%, 85% { background-size: 100% 100%; } 100% { background-size: 0% 100%; } }
@keyframes penFloat { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 40% { transform: translate(-10px, 12px) rotate(-15deg); } 70% { transform: translate(-5px, 24px) rotate(-10deg); } }

.scyra-anim-clock { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anim-clock-face { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--brand-accent); position: relative; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
.anim-clock-hand { position: absolute; width: 2.5px; height: 32px; background: var(--brand-primary); bottom: 50%; left: calc(50% - 1.25px); transform-origin: bottom center; border-radius: 2px; animation: tickRotate 3s infinite steps(12); }
.anim-clock-pin { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); z-index: 2; }
.anim-clock-ring { position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--brand-accent); pointer-events: none; animation: pulseRipple 2s infinite cubic-bezier(0.2, 0.8, 0.4, 1); }
.anim-clock-ring.ring-2 { animation-delay: 0.65s; }
.anim-clock-ring.ring-3 { animation-delay: 1.3s; }
.anim-clock-badge { margin-top: 0.65rem; font-size: 0.74rem; font-weight: 700; color: var(--brand-primary-dark); background: rgba(135, 168, 120, 0.15); padding: 0.25rem 0.65rem; border-radius: 999px; }
@keyframes tickRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulseRipple { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.scyra-anim-flow { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 90%; }
.anim-flow-step { display: flex; flex-direction: column; align-items: center; padding: 0.5rem 0.6rem; border-radius: 12px; background: var(--bg-secondary); border: 1.5px solid var(--border-color); box-shadow: 0 4px 10px var(--shadow-color); min-width: 60px; animation: nodePulse 2.4s infinite ease-in-out; }
.anim-flow-step.step-1 { animation-delay: 0s; }
.anim-flow-step.step-2 { animation-delay: 0.8s; }
.anim-flow-step.step-3 { animation-delay: 1.6s; }
.step-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
.step-label { font-size: 0.68rem; font-weight: 700; color: var(--text-primary); }
.anim-flow-line { flex: 1; height: 3px; background: var(--border-color); position: relative; border-radius: 2px; overflow: hidden; }
.flow-particle { position: absolute; width: 14px; height: 100%; background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary)); border-radius: 2px; animation: particleMove 1.6s infinite linear; }
@keyframes particleMove { 0% { left: -20%; } 100% { left: 120%; } }
@keyframes nodePulse { 0%, 100% { transform: translateY(0); border-color: var(--border-color); } 50% { transform: translateY(-4px); border-color: var(--brand-primary); box-shadow: 0 6px 14px rgba(135,168,120,0.3); } }

.scyra-anim-vault { display: flex; align-items: center; justify-content: center; gap: 1rem; width: 88%; }
.anim-vault-door { width: 72px; height: 72px; border-radius: 16px; background: #231d32; border: 2.5px solid var(--brand-accent); position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(212,175,55,0.25); }
.anim-vault-wheel { width: 34px; height: 34px; border-radius: 50%; border: 3px dashed var(--brand-accent); animation: wheelSpin 4s infinite linear; }
.anim-vault-glow { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,217,122,0.3) 0%, transparent 70%); }
.anim-vault-cards { display: flex; flex-direction: column; gap: 0.3rem; }
.vcard { font-size: 0.68rem; font-weight: 600; padding: 0.25rem 0.55rem; border-radius: 6px; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); text-align: left; animation: cardFloat 2.5s infinite ease-in-out; }
.vcard.c1 { animation-delay: 0s; border-left: 3px solid #6b8f5c; }
.vcard.c2 { animation-delay: 0.4s; border-left: 3px solid #e57373; }
.vcard.c3 { animation-delay: 0.8s; border-left: 3px solid #ffb74d; }
@keyframes wheelSpin { 0% { transform: rotate(0deg); } 40% { transform: rotate(180deg); } 60% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes cardFloat { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

.scyra-anim-progress { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 85%; }
.anim-chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 0.75rem; height: 75px; width: 100%; border-bottom: 2px solid var(--border-color); padding-bottom: 0.2rem; }
.anim-bar { width: 26px; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.2rem; animation: growBar 2s infinite ease-in-out alternate; }
.anim-bar span { font-size: 0.6rem; font-weight: 700; color: #FFFFFF; }
.anim-bar.bar-2 { background: linear-gradient(180deg, var(--brand-accent) 0%, #b8860b 100%); animation-delay: 0.3s; }
.anim-bar.bar-3 { background: linear-gradient(180deg, #7fe7c4 0%, #3aa876 100%); animation-delay: 0.6s; }
.anim-bar.bar-4 { background: linear-gradient(180deg, #9b89b3 0%, #685785 100%); animation-delay: 0.9s; }
.anim-chart-badge { margin-top: 0.6rem; font-size: 0.75rem; font-weight: 700; color: var(--success); background: rgba(107,143,92,0.15); padding: 0.22rem 0.65rem; border-radius: 999px; }
@keyframes growBar { 0% { height: 15%; opacity: 0.6; } 100% { height: var(--h); opacity: 1; } }

.scyra-anim-kyra { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.anim-kyra-aura { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(163,196,145,0.4) 0%, transparent 70%); animation: pulseAura 2.5s infinite ease-in-out; }
.anim-kyra-img { width: 62px; height: 62px; object-fit: contain; z-index: 2; animation: floatKyra 2.5s infinite ease-in-out; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); }
.anim-kyra-sparkle { position: absolute; color: var(--brand-accent); font-size: 0.85rem; z-index: 3; animation: sparkleTwinkle 2s infinite ease-in-out; }
.anim-kyra-sparkle.s1 { top: 0; left: 15%; animation-delay: 0.2s; }
.anim-kyra-sparkle.s2 { top: 10px; right: 15%; animation-delay: 0.7s; }
.anim-kyra-sparkle.s3 { bottom: 30px; right: 20%; animation-delay: 1.2s; }
.anim-kyra-bubble { margin-top: 0.45rem; font-size: 0.72rem; font-weight: 600; color: var(--text-primary); background: var(--bg-secondary); border: 1px solid var(--border-color); padding: 0.2rem 0.65rem; border-radius: 999px; box-shadow: 0 2px 6px var(--shadow-color); z-index: 2; }
@keyframes floatKyra { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulseAura { 0%, 100% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.15); opacity: 0.9; } }
@keyframes sparkleTwinkle { 0%, 100% { transform: scale(0.6); opacity: 0.3; } 50% { transform: scale(1.2); opacity: 1; } }

.scyra-anim-streak { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anim-flame-wrapper { position: relative; width: 55px; height: 65px; display: flex; align-items: center; justify-content: center; }
.anim-flame { position: absolute; border-radius: 50% 50% 20% 20%; transform-origin: bottom center; }
.flame-outer { width: 50px; height: 62px; background: linear-gradient(180deg, #ff4d4d 0%, #ff8c00 100%); animation: flameFlicker 1.2s infinite ease-in-out alternate; }
.flame-mid { width: 34px; height: 46px; background: linear-gradient(180deg, #ffae19 0%, #ffd000 100%); animation: flameFlicker 0.9s infinite ease-in-out alternate-reverse; }
.flame-core { width: 18px; height: 26px; background: #fffdf0; animation: flameFlicker 0.6s infinite ease-in-out alternate; }
.anim-ember { position: absolute; color: #ffd700; font-size: 0.7rem; animation: emberRise 2s infinite linear; }
.anim-ember.e1 { left: 10%; animation-delay: 0.3s; }
.anim-ember.e2 { right: 10%; animation-delay: 0.8s; }
.anim-ember.e3 { top: 10%; animation-delay: 1.3s; }
.anim-streak-badge { margin-top: 0.55rem; font-size: 0.74rem; font-weight: 700; color: #d97706; background: rgba(245,158,11,0.15); padding: 0.22rem 0.65rem; border-radius: 999px; }
@keyframes flameFlicker { 0% { transform: scale(0.95) rotate(-2deg); } 100% { transform: scale(1.05) rotate(2deg); } }
@keyframes emberRise { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-35px) scale(0.4); opacity: 0; } }

.scyra-anim-theme { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anim-theme-orb { width: 140px; height: 68px; border-radius: 999px; background: var(--bg-secondary); border: 2px solid var(--border-color); display: flex; overflow: hidden; box-shadow: 0 4px 12px var(--shadow-color); }
.anim-theme-half { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; transition: all 0.3s ease; }
.anim-theme-half.day { background: #fdfbf5; color: #b45309; border-right: 1px dashed #e2e8f0; }
.anim-theme-half.night { background: #131722; color: #cbd5e1; }
.anim-theme-icon { font-size: 1.25rem; animation: iconBob 2s infinite ease-in-out; }
.anim-theme-label { font-size: 0.65rem; font-weight: 700; }
.anim-theme-hint { margin-top: 0.55rem; font-size: 0.72rem; font-weight: 700; color: var(--text-primary); background: var(--bg-tertiary); padding: 0.2rem 0.65rem; border-radius: 999px; border: 1px solid var(--border-color); }
@keyframes iconBob { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ================= MOBILE DRAWER ================= */
.nav-wrapper {
    position: fixed; top: 0; right: 0;
    width: 75%; max-width: 320px; height: 100vh;
    background: var(--bg-secondary);
    box-shadow: -5px 0 15px var(--shadow-color);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 5rem 1.5rem 2rem; flex-direction: column;
    align-items: flex-start; gap: 1rem; z-index: 999;
}
.nav-wrapper.active { transform: translateX(0); }
.mobile-nav ul { list-style: none; width: 100%; }
.mobile-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--border-color); width: 100%; text-decoration: none; color: var(--text-primary); font-weight: 500; }
.mobile-auth-buttons { display: flex; flex-direction: column; width: 100%; gap: 0.8rem; margin-top: 1.5rem; }
.mobile-auth-buttons a { text-align: center; padding: 0.8rem; width: 100%; border-radius: 8px; text-decoration: none; font-weight: 500; }
.mobile-auth-buttons .btn-login { border: 1.5px solid var(--brand-primary); color: var(--brand-primary); background: transparent; }
.mobile-auth-buttons .btn-daftar { background: var(--brand-primary); color: white; }

/* ================= GLOBAL BUTTONS ================= */
.btn-primary-lg {
    background: var(--brand-primary);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 16px rgba(107, 143, 92, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-primary-lg:hover {
    transform: translateY(-3px);
    background: var(--brand-primary-dark);
    box-shadow: 0 12px 20px rgba(107, 143, 92, 0.3);
}
.btn-secondary-lg {
    background: transparent;
    color: var(--text-primary);
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
}
.btn-secondary-lg:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: inherit;
}
.btn-outline:hover {
    background: rgba(135, 168, 120, 0.12);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
}
.btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-baca {
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: inherit;
}
.btn-baca:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 168, 120, 0.3);
}
.btn-baca:disabled, .btn-baca.btn-locked {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tool-btn, .btn-zoom, .btn-zoom-exam {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    min-width: 34px;
    height: 34px;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.tool-btn:hover, .btn-zoom:hover, .btn-zoom-exam:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}
.tool-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* ================= 🎨 GLOBAL SCYRA MODAL ================= */
.scyra-modal {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.scyra-modal.active { opacity: 1; visibility: visible; }
.scyra-modal-box {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scyra-modal.active .scyra-modal-box { transform: scale(1) translateY(0); }
.scyra-modal-icon { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1; }
.scyra-modal-box h3 { color: var(--text-primary); font-size: 1.5rem; margin-bottom: 0.8rem; font-weight: 700; }
.scyra-modal-box p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 2rem; white-space: pre-line; }
.scyra-modal-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-modal { padding: 0.8rem 2rem; border-radius: 12px; border: none; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; min-width: 120px; }
.btn-modal.ok { background: var(--brand-primary); color: white; }
.btn-modal.ok:hover { background: var(--brand-primary-dark); transform: translateY(-2px); }
.btn-modal.cancel { background: transparent; color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-modal.cancel:hover { border-color: var(--error); color: var(--error); }

.btn-modal-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(135, 168, 120, 0.3);
    font-family: inherit;
    text-decoration: none;
}
.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(135, 168, 120, 0.45);
    filter: brightness(1.05);
}
.btn-modal-primary:active {
    transform: translateY(0);
}
.btn-modal-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-modal-secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    text-decoration: none;
}
.btn-modal-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}
.btn-modal-secondary:active {
    transform: translateY(0);
}

.btn-modal-danger, .btn-modal-secondary.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--error, #e57373);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    text-decoration: none;
}
.btn-modal-danger:hover, .btn-modal-secondary.btn-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: var(--error, #e57373);
    color: var(--error, #e57373);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.btn-modal-danger:active, .btn-modal-secondary.btn-danger:active {
    transform: translateY(0);
}

/* ================= TOMBOL SUBMIT (BULLETPROOF) ================= */
.btn-submit {
    width: 100% !important;
    padding: 0.9rem !important;
    background-color: #87A878 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 8px 16px rgba(107, 143, 92, 0.2) !important;
    display: block !important;
    text-align: center !important;
    margin-top: 1rem !important;
}
.btn-submit:hover {
    background-color: #6B8F5C !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 20px rgba(107, 143, 92, 0.3) !important;
}
.btn-submit:disabled {
    background-color: #888888 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================================
   🎯 PROFILE PAGE GRID (Profile Atas, Email & Password Bawah Berdampingan)
   ========================================================= */
.profile-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom untuk Email & Password */
    gap: 2rem;
    align-items: start;
}

/* 🎯 KARTU PROFILE: Span 2 kolom, dibatasi lebar, dipaksa TENGAH */
.main-profile-card {
    grid-column: 1 / -1;
    max-width: 650px;      /* Batasi agar tidak melebar ke pinggir */
    width: 100%;
    margin: 0 auto;        /* KUNCI: Memaksa kartu center horizontal */
    border-left: 5px solid var(--brand-primary);
}

/* Kartu Email & Password otomatis turun ke baris kedua */
.security-card {
    border-left: 5px solid var(--brand-accent);
}

.danger-zone {
    grid-column: 1 / -1;
    border-left: 5px solid var(--error);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.danger-zone .card-header {
    margin: 0;
    padding: 0;
    border: 0;
}
.btn-delete-account {
    flex-shrink: 0;
    background: transparent;
    color: var(--error);
    border: 1.5px solid var(--error);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.btn-delete-account:hover { background: rgba(229, 115, 115, 0.12); }
.btn-delete-account:disabled { opacity: 0.65; cursor: not-allowed; }
@media (max-width: 640px) {
    .danger-zone { align-items: stretch; flex-direction: column; }
}

.delete-account-modal[hidden] { display: none; }
.delete-account-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}
.delete-account-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(5px);
}
.delete-account-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    padding: 2rem;
    border: 1px solid rgba(229, 115, 115, 0.45);
    border-radius: 18px;
    background: var(--bg-secondary);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.delete-account-modal__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.delete-account-modal__dialog h2 { color: var(--error); margin-bottom: 0.65rem; }
.delete-account-modal__dialog > p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.delete-account-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
}
.delete-account-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.btn-delete-cancel,
.btn-delete-confirm {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.btn-delete-cancel {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
}
.btn-delete-confirm {
    color: white;
    background: var(--error);
    border: 1px solid var(--error);
}
.btn-delete-confirm:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 480px) {
    .delete-account-modal__dialog { padding: 1.5rem; }
    .delete-account-modal__actions { flex-direction: column-reverse; }
    .btn-delete-cancel, .btn-delete-confirm { width: 100%; }
}

/* =========================================================
   🃏 KARTU PROFIL (Base Style)
   ========================================================= */
.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.profile-card .card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-card .card-header h2,
.profile-card .card-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.profile-card .card-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================================
   👤 KARTU UTAMA (Profile Info) - Avatar Section
   ========================================================= */
.main-profile-card .avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.main-profile-card .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--brand-primary);
    box-shadow: 0 8px 20px rgba(135, 168, 120, 0.3);
}

.main-profile-card .btn-ganti-foto {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.main-profile-card .btn-ganti-foto:hover {
    background: var(--brand-primary);
    color: white;
}

/* =========================================================
   📝 FORM STYLING (Terisolasi)
   ========================================================= */
.profile-card .security-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-card .form-group {
    margin-bottom: 1.25rem;
}

.profile-card .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-card .form-group input,
.profile-card .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.profile-card .form-group input:focus,
.profile-card .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(135, 168, 120, 0.15);
}

.profile-card .form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   🤖 CAPTCHA WIDGET
   ========================================================= */
.profile-card .captcha-box {
    background: rgba(212, 175, 55, 0.08);
    border: 2px dashed var(--brand-accent);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-card .captcha-box > label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-card .captcha-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.profile-card .captcha-question {
    background: var(--bg-primary);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--brand-accent);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.profile-card .btn-refresh-captcha {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s;
    color: var(--text-primary);
    flex-shrink: 0;
}

.profile-card .btn-refresh-captcha:hover {
    transform: rotate(180deg);
    background: var(--bg-primary);
}

.profile-card .captcha-row input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
    letter-spacing: 2px;
}

.profile-card .captcha-row input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* =========================================================
   🔘 TOMBOL SUBMIT
   ========================================================= */
.profile-card .btn-submit {
    width: 100%;
    padding: 0.9rem;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.profile-card .btn-submit:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(107, 143, 92, 0.3);
}

.profile-card .btn-submit:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   DASHBOARD & SIDEBAR LAYOUT (Khusus User Login)
   ========================================================= */
body.dashboard-page {
    padding-top: 0; /* Hilangkan padding header landing page */
    margin: 0;
    overflow: hidden; /* Biar scroll cuma di area konten */
}

.dashboard-layout {
    display: flex;
    height: 100vh;
    background: var(--bg-primary);
}

/* =========================================================
   SIDEBAR UTAMA (Kiri)
   ========================================================= */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    height: 100vh; 
    position: sticky;
    top: 0;
    flex-shrink: 0;
    overflow-x: hidden !important; /* 💡 FIX: Mencegah scrollbar menyamping */
    box-sizing: border-box;
}

.sidebar * {
    box-sizing: border-box;
}

/* State Sidebar pas ditutup (Desktop) */
.sidebar.collapsed {
    width: 80px;
}

/* --- SIDEBAR HEADER --- */
.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-header {
    padding: 0;
    justify-content: center;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    overflow: hidden;
}

.sidebar .logo h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: opacity 0.2s;
}

.sidebar.collapsed .logo h2 {
    display: none !important; /* 💡 FIX: Hilangkan teks logo saat collapsed */
}

.btn-toggle-sidebar {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.btn-toggle-sidebar:hover {
    background: var(--bg-tertiary);
    color: var(--brand-primary);
}

/* --- SIDEBAR NAV --- */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed .sidebar-nav {
    padding: 1.5rem 0.5rem;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-nav a {
    padding: 0.8rem 0;
    justify-content: center;
    gap: 0;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--bg-tertiary);
    color: var(--brand-primary);
}

.sidebar-nav a.active {
    background: var(--brand-primary);
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
    min-width: 24px;
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .nav-text {
    display: none !important; /* 💡 FIX: Hilangkan teks navigasi saat collapsed */
}

/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: relative;
}

.sidebar-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.sidebar-profile-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--brand-primary);
}

.sidebar-profile-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-profile-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.sidebar-profile-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-credit {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.sidebar-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.sidebar-profile-btn.active .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-profile-dropdown {
    position: absolute;
    bottom: 85px;
    left: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 -5px 15px var(--shadow-color);
    display: none;
    flex-direction: column;
    z-index: 1000;
    max-width: 220px;
}

.sidebar-profile-dropdown.active {
    display: flex;
}

.sidebar-dropdown-item {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    text-align: left;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.sidebar-dropdown-item.logout-btn {
    color: var(--error);
    font-weight: 500;
}

.sidebar-dropdown-item.logout-btn:hover {
    background: rgba(229, 115, 115, 0.1);
}

/* =========================================================
   PENYESUAIAN KHUSUS STATE COLLAPSED & MOBILE
   ========================================================= */

/* 💡 Pemusatan Profil & Avatar saat Sidebar Ditutup */
.sidebar.collapsed .sidebar-footer {
    padding: 1rem 0.5rem;
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .sidebar-profile-btn {
    justify-content: center;
    padding: 0.5rem 0;
    background: transparent;
    border-color: transparent;
    gap: 0;
}

.sidebar.collapsed .sidebar-profile-btn img {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

/* 💡 Hilangkan elemen teks & panah total saat ditutup agar tidak memakan ruang lebar */
.sidebar.collapsed .sidebar-profile-name,
.sidebar.collapsed .sidebar-profile-credit,
.sidebar.collapsed .sidebar-profile-info,
.sidebar.collapsed .sidebar-chevron {
    display: none !important;
}

/* 💡 Pindahkan Dropdown ke samping kanan saat sidebar ditutup */
.sidebar.collapsed .sidebar-profile-dropdown {
    position: absolute;
    left: 85px;
    bottom: 10px;
    right: auto;
    width: 200px;
    max-width: none;
}

@media (max-width: 992px) {
    .sidebar-profile-dropdown {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 280px;
        max-width: 90vw;
    }
}

/* --- MAIN CONTENT & TOPBAR (Kanan) --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 80px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-mobile-sidebar {
    display: none; /* Sembunyi di Desktop */
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Tombol Lingkaran (Notif & Tema) */
.btn-icon-topbar {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* PAKSA KURSOR JARI */
    color: var(--text-secondary);
    transition: all 0.2s;
    position: relative;
    z-index: 10; /* PASTIKAN DI ATAS ELEMEN LAIN */
}

.btn-icon-topbar:hover {
    background: var(--brand-primary-light);
    color: var(--bg-secondary);
    border-color: var(--brand-primary);
}

/* Dot Merah Notifikasi */
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}


/* Area Konten Scrollable */
.dashboard-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: var(--bg-primary);
}

/* Pastikan dropdown ngumpet secara default */
.profile-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    /* ... styling box shadow dan warna kamu ... */
}

/* Ini yang bikin dia muncul pas diklik avatar */
.profile-dropdown.active {
    display: block;
    animation: fadeInDown 0.2s ease-out forwards;
}

/* Untuk menutupi keteledoran innerHTML dari Qwen */
.avatar-btn img, .avatar-large, #mobileAvatar {
    object-fit: cover;
}

/* =========================================================
   REVISI TOPBAR BLUR & SIDEBAR MOBILE
   ========================================================= */

/* Pindahkan scroll dari body ke main-content agar topbar bisa lengket (sticky) */
.main-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    min-height: 0 !important; /* KUNCI ANTI MACET 1 */
    min-width: 0 !important;
    overflow: hidden !important; 
    position: relative;
}

/* 2. Area Konten yang Boleh Di-scroll */
.dashboard-body {
    flex: 1 1 auto !important; /* Paksa dia mengisi sisa ruang secara dinamis */
    overflow-y: auto !important; 
    min-height: 0 !important; /* KUNCI ANTI MACET 2 */
    padding: 2rem;
    overflow-x: hidden;
}

/* 3. Topbar Terkunci Mati (Pinned) */
.topbar {
    flex-shrink: 0 !important; /* Jangan biarkan topbar menyusut */
    z-index: 999 !important; /* Selalu di paling depan */
    background: var(--bg-primary);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

/* 4. Efek Ngeblur Saat Di-scroll */
.topbar.scrolled {
    background: rgba(245, 245, 220, 0.7); /* Cream transparan */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
body.dark-mode .topbar.scrolled {
    background: rgba(30, 30, 30, 0.7); /* Darkmode transparan */
}

/* 5. Logo di Topbar Khusus HP */
.topbar-logo {
    display: none;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.topbar-logo h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0;
}
.topbar-logo img { width: 32px; }

/* ANIMASI SLIDE SIDEBAR MOBILE (Poin 3) */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -260px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Poin 3: Efek Slide HP */
        z-index: 1000;
    }
    .sidebar.mobile-open {
        left: 0;
    }
    .topbar-logo.mobile-only {
        display: flex; /* Poin 4: Tampilkan Logo di Topbar saat di HP */
    }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -260px; /* Ngumpet di luar layar */
        height: 100vh;
        width: 260px !important; /* Paksa lebar utuh pas dibuka */
    }
    
    .sidebar.mobile-open {
        left: 0;
    }

    .btn-toggle-sidebar {
        display: none; /* Hilangkan tombol tutup desktop di HP */
    }

    .btn-mobile-sidebar {
        display: flex; /* Munculkan hamburger di Topbar HP */
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(2px);
        z-index: 95;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }

    .hamburger {
        display: flex !important;
    }

    .site-header .desktop-nav,
    .site-header #guest-area,
    .site-header #profile-area {
        display: none !important;
    }

    /* Pastikan Tombol Tema Tetap Muncul di Luar Hamburger */
    .theme-toggle {
        display: flex !important;
    }
}



/* =========================================================
   📱 RESPONSIVE (Stack di Mobile)
   ========================================================= */
@media (max-width: 1100px) {
    .profile-grid {
        grid-template-columns: 1fr; /* 1 kolom di tablet */
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .main-profile-card {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
    .profile-page-container {
        padding: 1rem;
    }
    .profile-card {
        padding: 1.5rem;
    }
    .profile-card .captcha-row {
        flex-wrap: wrap;
    }
    .profile-card .captcha-question {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .profile-card .captcha-row input {
        width: 100%;
    }
    .footer-grid-4, .footer-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .site-footer { padding: 3rem 1.5rem 1.5rem; }
}

@media (max-width: 480px) {
    .footer-grid-4, .footer-grid-3 { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 400px) {
    .header-right-group {
        gap: 0.75rem !important;
    }
    .desktop-nav ul {
        gap: 0.75rem !important;
    }
    .auth-buttons {
        gap: 0.5rem !important;
    }
    .auth-buttons a {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
    .theme-toggle {
        padding: 0.3rem !important;
        font-size: 1.1rem !important;
    }
    .logo h2 {
        font-size: 1.3rem !important;
    }
    .logo-img {
        height: 32px !important;
    }
    .site-header {
        padding: 0.75rem 1rem !important;
    }
}

/* ===================================================
   DROPDOWN CREDIT BADGE (Compact in Header)
   =================================================== */
.dropdown-credit-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    background: rgba(135, 168, 120, 0.08);
    border: 1px solid rgba(135, 168, 120, 0.2);
    border-radius: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

body.dark-mode .dropdown-credit-badge {
    background: rgba(163, 196, 145, 0.12);
    border-color: rgba(163, 196, 145, 0.25);
}

.dropdown-credit-badge img {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
}

.dropdown-credit-badge span:first-child {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-credit-badge span:last-child {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* =========================================================
   📖 STYLING TEKS BACAAN / STIMULUS SOAL UTBK
   ========================================================= */
.teks-bacaan {
    background: rgba(107, 143, 92, 0.08);
    border-left: 4px solid var(--brand-primary);
    padding: 1.2rem 1.4rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.teks-bacaan-header {
    display: none !important;
}

body.dark-mode .teks-bacaan {
    background: rgba(163, 196, 145, 0.08);
    border-left-color: var(--brand-primary);
    color: var(--text-primary);
}

/* =========================================================
   💡 SCYRA PEMBAHASAN UI (NON-TRYOUT: LATIHAN & DRILL)
   ========================================================= */

/* Wrapper Card */
.scyra-pembahasan-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    animation: fadeInPembahasan 0.35s ease;
    text-align: left;
}

@keyframes fadeInPembahasan {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feedback Banner (Benar / Salah) */
.pembahasan-feedback-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}
.pembahasan-feedback-banner.correct {
    background: rgba(46, 125, 50, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.35);
    color: #2e7d32;
}
body.dark-mode .pembahasan-feedback-banner.correct {
    background: rgba(76, 175, 80, 0.18);
    color: #81c784;
    border-color: rgba(129, 199, 132, 0.4);
}
.pembahasan-feedback-banner.wrong {
    background: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.35);
    color: #c62828;
}
body.dark-mode .pembahasan-feedback-banner.wrong {
    background: rgba(244, 67, 54, 0.16);
    color: #ef9a9a;
    border-color: rgba(239, 154, 154, 0.4);
}

/* 3 Kotak Menyamping (Grid) */
.pembahasan-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.pembahasan-meta-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    min-height: 72px;
}

.pembahasan-meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pembahasan-meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Badges Tingkat Kesulitan */
.diff-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}
.diff-badge .diff-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
/* Mudah - Hijau */
.diff-badge.diff-mudah {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.3);
}
.diff-badge.diff-mudah .diff-dot {
    background-color: #2e7d32;
}
body.dark-mode .diff-badge.diff-mudah {
    background: rgba(76, 175, 80, 0.18);
    color: #81c784;
    border-color: rgba(129, 199, 132, 0.35);
}
body.dark-mode .diff-badge.diff-mudah .diff-dot {
    background-color: #81c784;
}

/* Sedang - Kuning / Amber */
.diff-badge.diff-sedang {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.35);
}
.diff-badge.diff-sedang .diff-dot {
    background-color: #d97706;
}
body.dark-mode .diff-badge.diff-sedang {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
}
body.dark-mode .diff-badge.diff-sedang .diff-dot {
    background-color: #fbbf24;
}

/* Sulit - Merah */
.diff-badge.diff-sulit {
    background: rgba(220, 38, 38, 0.12);
    color: #c62828;
    border: 1px solid rgba(220, 38, 38, 0.3);
}
.diff-badge.diff-sulit .diff-dot {
    background-color: #dc2626;
}
body.dark-mode .diff-badge.diff-sulit {
    background: rgba(239, 68, 68, 0.18);
    color: #ef9a9a;
    border-color: rgba(239, 154, 154, 0.35);
}
body.dark-mode .diff-badge.diff-sulit .diff-dot {
    background-color: #ef9a9a;
}

/* Kunci Jawaban Highlight */
.kunci-jawaban-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2e7d32;
    letter-spacing: 0.5px;
}
body.dark-mode .kunci-jawaban-val {
    color: #81c784;
}

/* Breadcrumb Subtes > Subbab (Opsi A) */
.pembahasan-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
    margin-bottom: 0.85rem;
}
.pembahasan-breadcrumb .bc-icon {
    font-size: 0.95rem;
    margin-right: 0.15rem;
}
.pembahasan-breadcrumb .bc-subtes {
    font-style: italic;
    color: var(--text-secondary);
}
.pembahasan-breadcrumb .bc-sep {
    color: var(--text-muted);
    font-weight: 700;
    user-select: none;
    margin: 0 0.2rem;
}
.pembahasan-breadcrumb .bc-subbab {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--brand-primary);
}

/* Divider Antara Meta & Konten Pembahasan */
.pembahasan-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 0 1.25rem 0;
}

/* Section Blocks (Opsi 2: Clean Divider Block) */
.pembahasan-sections {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.pembahasan-section-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pembahasan-section-block .section-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1.5px solid var(--border-color);
}

.pembahasan-section-block .section-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
    font-family: inherit;
    flex-shrink: 0;
}

.pembahasan-section-block .section-title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.pembahasan-section-block .section-body {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-primary);
    word-break: break-word;
}
.pembahasan-section-block .section-body p {
    margin-bottom: 0.6rem;
}
.pembahasan-section-block .section-body p:last-child {
    margin-bottom: 0;
}

/* Responsif Layar HP */
@media (max-width: 600px) {
    .pembahasan-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .pembahasan-meta-card {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        min-height: auto;
    }
    .scyra-pembahasan-card {
        padding: 1.15rem;
    }
}

