@import url('menu_account_cards.css');
/* ====================================
   PONPES JAYA BARU - BIMBINGAN TASAWWUF
   TEMA: HIJAU EMAS FUTURISTIK
   ==================================== */

/* ------------------------------------
   VARIABEL & RESET
   ------------------------------------ */
:root {
    /* Warna tema - Hijau gelap kontras */
    --hijau-sangat-gelap: #063a22;
    --hijau-gelap: #0a4d2e;
    --hijau-muda: #e1f5e9;
    
    /* Warna emas - lebih terang */
    --emas: #FFD700;
    --emas-terang: #FFF8C0;
    --emas-gelap: #B8860B;
    --emas-muda: #FFF0B5;
    
    /* Warna netral */
    --putih: #FFFFFF;
    --abu-soft: #f0f4f8;
    --hitam-soft: #1a2a2a;
    
    /* Efek glow */
    --glow-emas: 0 0 20px rgba(255, 215, 0, 0.6);
    --glow-emas-kuat: 0 0 30px rgba(255, 215, 0, 0.9);

    /* Font sizes - bisa diubah via JS */
    --font-arab-size: 28px;
    --font-latin-size: 18px;
    --font-terjemah-size: 16px;
    --font-paragraf-size: 16px;
    
    /* VIDEO - Info di card video_list.html */
    --video-judul-size: 16px;
    --video-info-size: 14px;
    
    /* Heading sizes - ikut ukuran paragraf */
    --h1-size: calc(var(--font-paragraf-size) + 14px);
    --h2-size: calc(var(--font-paragraf-size) + 8px);
    --h3-size: calc(var(--font-paragraf-size) + 4px);
    
    /* Tema */
    --bg-color: #ffffff;
    --text-color: #2c3e50;
    --arab-bg: var(--hijau-muda);
}


/* Reset semua margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: var(--abu-soft);
    padding-top: 90px;
}

/* ------------------------------------
   TOP HEADER FIXED
   ------------------------------------ */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(145deg, 
        var(--hijau-sangat-gelap) 0%,
        var(--hijau-gelap) 50%,
        var(--hijau-sangat-gelap) 100%
    );
    border-bottom: 3px solid var(--emas);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.5),
        inset 0 1px 8px rgba(255, 215, 0, 0.4),
        0 0 20px var(--emas);
    color: var(--putih);
    z-index: 1000;
    backdrop-filter: blur(5px);
    
    /* Flex untuk konten header */
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--emas) 15%,
        #ffffff 50%,
        var(--emas) 85%,
        transparent 100%
    );
    animation: kilau 2.5s infinite;
}

@keyframes kilau {
    0% { opacity: 0.6; }
    50% { opacity: 1; box-shadow: var(--glow-emas-kuat); }
    100% { opacity: 0.6; }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.menu-btn {
    background: rgba(255, 215, 0, 0.15);
    border: 1.5px solid var(--emas);
    color: var(--emas-terang);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(5px);
    font-size: 24px;
    margin-left: -10px !important;
    margin-right: 10px !important;
}

.menu-btn:hover {
    background: var(--emas);
    color: var(--hijau-sangat-gelap);
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--emas);
}

/* ------------------------------------
   LOGO & TEKS
   ------------------------------------ */
.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, 
        rgba(255,215,0,0.4) 0%,
        rgba(255,165,0,0.15) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: sun-rays 4s ease-in-out infinite;
    z-index: 0;
}

.logo-image {
    height: 65px;
    width: auto;
    max-width: 65px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: 
        drop-shadow(0 0 8px #FFD700)
        drop-shadow(0 0 15px #FFA500)
        drop-shadow(0 0 25px #FF8C00)
        brightness(1.2);
    animation: sun-glow 3s ease-in-out infinite;
    transition: all 0.5s ease;
}

.logo-image:hover {
    filter: 
        drop-shadow(0 0 12px #FFD700)
        drop-shadow(0 0 25px #FFA500)
        drop-shadow(0 0 45px #FF4500)
        brightness(1.3);
    transform: scale(1.05);
}

@keyframes sun-glow {
    0% {
        filter: 
            drop-shadow(0 0 5px #FFD700)
            drop-shadow(0 0 10px #FFA500)
            drop-shadow(0 0 15px #FF8C00)
            brightness(1.1);
    }
    50% {
        filter: 
            drop-shadow(0 0 10px #FFD700)
            drop-shadow(0 0 22px #FFA500)
            drop-shadow(0 0 35px #FF4500)
            brightness(1.25);
    }
    100% {
        filter: 
            drop-shadow(0 0 5px #FFD700)
            drop-shadow(0 0 10px #FFA500)
            drop-shadow(0 0 15px #FF8C00)
            brightness(1.1);
    }
}

@keyframes sun-rays {
    0% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.8);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
    margin-left: 10px !important;
}

.pondok-name {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    background: linear-gradient(
        180deg,
        #FFF8E7 0%,
        #FFD700 30%,
        #FFC125 60%,
        #FFB90F 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.5),
        0 0 30px rgba(255,215,0,0.8);
    position: relative;
}

.pondok-name::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #FFD700,
        #FFF8E7,
        #FFD700,
        transparent
    );
    animation: underline-shine 2.5s infinite;
}

@keyframes underline-shine {
    0% {
        opacity: 0.3;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0.3;
        transform: translateX(100%);
    }
}

.pondok-sub {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 1.3;
    background: linear-gradient(
        90deg,
        #FFF8DC 0%,
        #FFE4B5 30%,
        #FFDAB9 70%,
        #FFF8DC 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 15px rgba(255,215,0,0.5),
        0 0 30px rgba(255,215,0,0.3);
    animation: subtitle-float 3s ease-in-out infinite;
}

@keyframes subtitle-float {
    0%, 100% {
        opacity: 0.9;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-1px);
        text-shadow: 0 0 20px rgba(255,215,0,0.7);
    }
}

/* ------------------------------------
   HEADER KANAN
   ------------------------------------ */
.header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.settings-btn {
    background: rgba(255, 215, 0, 0.15);
    border: 1.5px solid var(--emas);
    color: var(--emas-terang);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(5px);
    font-size: 22px;
    margin-right: -10px !important;
}

.settings-btn:hover {
    background: var(--emas);
    color: var(--hijau-sangat-gelap);
    border-color: white;
    transform: scale(1.1) rotate(30deg);
    box-shadow: 0 0 30px var(--emas);
}

/* ------------------------------------
   MAIN CONTENT
   ------------------------------------ */
.main-content {
    max-width: 1000px;
    margin: 90px auto 0;
    padding: 40px 20px;
    background-color: var(--putih);
    min-height: calc(100vh - 90px);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.header-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

/* ------------------------------------
   SIGNATURE ICON
   ------------------------------------ */
.signature-icon {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--emas);
    color: var(--hijau-sangat-gelap);
    width: 48px;
    height: 48px;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: -2px 2px 15px rgba(0,0,0,0.2);
    z-index: 900;
    transition: all 0.3s ease;
}

.signature-icon:hover {
    width: 56px;
    background-color: var(--hijau-gelap);
    color: var(--emas);
}

/* ------------------------------------
   PANEL DASAR
   ------------------------------------ */
.panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background-color: var(--putih);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px;
    overflow-y: auto;
}

.panel.open {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--hijau-muda);
}

.panel-header h3 {
    color: var(--hijau-gelap);
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--hijau-gelap);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.close-btn:hover {
    background-color: var(--hijau-muda);
    color: var(--emas-gelap);
}

/* ------------------------------------
   SETTING PANEL (ASLI)
   ------------------------------------ */
.preview-box {
    background: linear-gradient(135deg, var(--hijau-muda), #d4e8da);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    direction: rtl;
    border: 1px solid var(--emas-muda);
    box-shadow: inset 0 0 10px rgba(255,215,0,0.2);
}

.arab-preview {
    font-size: var(--font-arab-size);
    font-family: 'LPMQ', 'Noto Naskh Arabic', 'Amiri', serif;
    color: var(--hijau-gelap);
    margin-bottom: 12px;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

/* Latin preview di setting panel */
.latin-preview {
    font-size: var(--font-latin-size);
    color: #2c3e50;
    margin-bottom: 8px;
    font-style: italic;
    text-align: left;
    direction: ltr;
}

/* Terjemah preview di setting panel */
.terjemah-preview {
    font-size: var(--font-terjemah-size);
    color: #34495e;
    text-align: left;
    direction: ltr;
    border-top: 1px dashed var(--emas-gelap);
    padding-top: 8px;
}

.setting-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hijau-muda);
}

.setting-group h4 {
    color: var(--hijau-gelap);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-group label {
    display: block;
    margin: 12px 0;
    color: #2c3e50;
    font-weight: 500;
}

.setting-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--hijau-muda);
    border-radius: 8px;
    margin-top: 5px;
    font-size: 15px;
    background-color: white;
    cursor: pointer;
}

.setting-group select:focus {
    outline: none;
    border-color: var(--emas);
}

.setting-group input[type="range"] {
    width: 100%;
    margin: 10px 0;
    accent-color: var(--emas);
    height: 6px;
}

.theme-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.theme-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s;
}

.theme-options label:hover {
    background-color: var(--hijau-muda);
}

.theme-options input[type="radio"] {
    accent-color: var(--emas);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.reset-btn {
    background: linear-gradient(135deg, var(--emas), var(--emas-gelap));
    color: var(--hijau-sangat-gelap);
    border: none;
    padding: 14px;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    margin-top: 10px;
    border: 1px solid var(--emas-terang);
}

.reset-btn:hover {
    background: linear-gradient(135deg, var(--emas-gelap), var(--emas));
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--emas);
    color: var(--hijau-sangat-gelap);
}

/* ====================================
   SETTING OVERLAY - FULL PAGE
   ==================================== */

.setting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    color: var(--text-color);
    overflow-y: auto;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.setting-overlay.active {
    display: flex;
}

.setting-header {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--emas);
    background: white;
    position: sticky;
    top: 0;
    z-index: 2010;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.setting-header-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-header h1 {
    font-size: var(--h1-size);
    color: var(--hijau-gelap);
    margin: 0;
}

.setting-header .close-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--emas);
    color: var(--hijau-gelap);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.setting-header .close-btn:hover {
    background: var(--emas);
    color: var(--hijau-sangat-gelap);
}

.setting-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
    flex: 1;
}

.setting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .setting-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .setting-header {
        padding: 15px 20px;
    }
    
    .setting-header h1 {
        font-size: calc(var(--h1-size) - 4px);
    }
    
    .setting-header .close-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Group setting di dalam overlay */
.setting-overlay .setting-group {
    margin-bottom: 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid var(--hijau-muda);
}

.setting-overlay .setting-group h4 {
    color: var(--hijau-gelap);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-overlay .preview-box {
    margin-bottom: 20px;
}

/* ------------------------------------
   CONTENT ARTICLE
   ------------------------------------ */
.content-article {
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.content-article h1 {
    font-size: var(--h1-size);
    color: var(--hijau-gelap);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--emas);
    padding-bottom: 12px;
}

.content-article h2 {
    font-size: var(--h2-size);
    color: var(--hijau-gelap);
    margin: 35px 0 20px;
}

.content-article h3 {
    font-size: var(--h3-size);
    color: var(--hijau-gelap);
    margin: 25px 0 15px;
}

.content-article p {
    margin: 20px 0 10px 0;
    font-size: var(--font-paragraf-size) !important;  
}

.content-article .arabic-text {
    direction: rtl;
    text-align: right;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(145deg, var(--hijau-muda), #f0f9f0);
    border-radius: 12px;
    border-right: 5px solid var(--emas);
    font-family: 'LPMQ', 'Noto Naskh Arabic', 'Amiri', serif;
    line-height: 2;
    font-size: var(--font-arab-size) !important;
    background-color: var(--arab-bg);
}

/* Kurangi margin paragraf yang diikuti quran block */
.content-article p:has(+ .quran-block) {
    margin-bottom: 5px !important;
}

/* Paragraf setelah quran block */
.content-article .quran-block + p {
    margin-top: 0.2em !important;
}

.content-article ul,
.content-article ol {
    margin: 20px 0 20px 25px;
    font-size: var(--font-paragraf-size);
}

.content-article ul {
    list-style-type: "✅ ";
}

.content-article li {
    margin: 8px 0;
    font-size: inherit;
}

.content-article strong {
    color: var(--hijau-gelap);
}

.content-article em {
    color: var(--emas-gelap);
    font-style: italic;
}

.terjemahan {
    margin: 8px 0;
    font-size: var(--font-terjemah-size);
}

/* ====================================
   VIDEO CARD - UKURAN FONT
   ==================================== */

.video-page .video-title {
    font-size: var(--video-judul-size);
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.4;
}

.video-page .video-info {
    font-size: var(--video-info-size);
    color: #666;
}

.video-page .video-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 8px;
}

.video-page .video-info-icon {
    font-size: calc(var(--video-info-size) + 2px);
    min-width: 20px;
}

/* ====================================
   QURAN LAYOUTS - DENGAN FONT LPMQ
   ==================================== */

@font-face {
    font-family: 'LPMQ';
    src: url('/static/fonts/lpmq.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}   

/* Font LPMQ untuk semua teks Arab di Quran */
.quran-block,
.arab-text,
.arabic-texts,
.arabic-text,
.quran-block .arabic-texts,
.quran-block .arabic-text,
.quran-block.layout-plain .arabic-texts,
.quran-block.layout-plain .arabic-text,
.quran-block.layout-card .arabic-texts,
.quran-block.layout-card .arabic-text,
.quran-block.layout-quote .arabic-texts,
.quran-block.layout-quote .arabic-text,
.quran-block.layout-mutiara .arabic-texts,
.quran-block.layout-mutiara .arabic-text,
.quran-block.layout-malaikat .arabic-texts,
.quran-block.layout-malaikat .arabic-text,
.quran-block.layout-sultan .arabic-texts,
.quran-block.layout-sultan .arabic-text,
.quran-block.layout-pesantren .arabic-texts,
.quran-block.layout-pesantren .arabic-text,
.quran-block.layout-cahaya .arabic-texts,
.quran-block.layout-cahaya .arabic-text {
    font-family: 'LPMQ', 'Noto Naskh Arabic', 'Amiri', serif !important;
    font-size: var(--font-arab-size);
    line-height: 1.8;
    color: #0a0c0b;
    direction: rtl;
    text-align: right;
}

/* Container umum untuk semua layout */
.quran-block {
    margin: 0.5em 0 0.2em 0;
}

/* Arabic texts container */
.arabic-texts {
    direction: rtl;
    text-align: right;
    font-size: var(--font-arab-size);
    line-height: 1.8;
    margin-bottom: 0.3em;
}

/* Latin texts container */
.latin-texts {
    font-size: var(--font-latin-size);
    margin-bottom: 0.2em;
    line-height: 1.6;
    font-style: italic;
    text-align: left; 
}

/* Latin per ayat */
.latin-text {
    font-size: var(--font-latin-size);
    margin-bottom: 0.1em;
    font-style: italic;
    text-align: left;
    direction: ltr;
}

/* Terjemah texts container */
.terjemah-texts {
    font-size: var(--font-terjemah-size);
    margin-bottom: 0.2em !important;
    line-height: 1.6;
    color: #4a5568;
    text-align: left;
    direction: ltr;
}

/* Terjemah per ayat */
.terjemah-text {
    font-size: var(--font-terjemah-size);
    margin-bottom: 0.2em !important;
    color: #4a5568;
    text-align: left;
    direction: ltr;
}

/* Ayat terakhir tidak perlu margin bawah */
.ayat-item:last-child .arabic-texts,
.ayat-item:last-child .latin-texts,
.ayat-item:last-child .terjemah-texts {
    margin-bottom: 0;
}

/* Nomor Arab seperti mushaf - ORNAMEN BARU */
.ayat-nomor-arab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 1.4em;
    height: 1.4em;
    margin: 0 3px;
    font-family: 'LPMQ', 'Noto Naskh Arabic', 'Amiri', serif;
    font-size: 0.7em;
    font-weight: 600;
    color: #131110;
    background: radial-gradient(circle at 30% 30%, #FFD700 0%, #B8860B 80%, #8B6B4D 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 0 1px #F0E68C,
        0 0 0 1px #8B6B4D,
        inset 0 -1px 2px rgba(0,0,0,0.2),
        inset 0 1px 2px rgba(255,255,255,0.5),
        0 1px 2px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.ayat-nomor-arab:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 1px #FFD700,
        0 0 0 1px #B8860B,
        inset 0 -1px 2px rgba(0,0,0,0.2),
        inset 0 1px 3px rgba(255,215,0,0.5),
        0 2px 4px rgba(0,0,0,0.15);
}

.ayat-nomor-arab::before {
    content: "❈";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    color: #B8860B;
    opacity: 0.6;
    text-shadow: 0 0 2px #FFD700;
}

.ayat-nomor-arab::after {
    content: "❈";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    color: #B8860B;
    opacity: 0.6;
    text-shadow: 0 0 2px #FFD700;
}

/* Nomor Latin */
.ayat-nomor-latin {
    display: inline-block;
    font-weight: bold;
    color: #2c1810;
    margin-right: 4px;
    font-size: 0.85em;
    background: rgba(160, 146, 65, 0.1);
    padding: 1px 4px;
    border-radius: 10px;
    border: 1px solid rgba(255,215,0,0.3);
}

.quran-text-prefix {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 0.2em;
    color: var(--hijau-gelap);
}

/* Layout PLAIN */
.quran-block.layout-plain {
    margin: 0.3em 0 0.1em 0;
    padding: 1em;
}

.quran-block.layout-plain .terjemah-texts {
    margin-bottom: 0.1em !important;
}

.quran-block.layout-plain .terjemah-text {
    margin-bottom: 0.1em !important;
}

/* Layout QUOTE */
.quran-block.layout-quote {
    margin: 1.2em 0 0.3em 0;
    padding: 1.8em 2.2em;
    position: relative;
    background: #fcf9f2;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border: 1px solid #f0e6d2;
}

.quran-block.layout-quote::before {
    content: "❝";
    position: absolute;
    top: 0px;
    left: 15px;
    font-size: 70px;
    color: rgba(255,0,0,0.2);
    opacity: 0.15;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.quran-block.layout-quote::after {
    content: "❞";
    position: absolute;
    bottom: -5px;
    right: 15px;
    font-size: 70px;
    color: rgba(255,0,0,0.2);
    opacity: 0.15;
    font-family: 'Georgia', serif;
    line-height: 1;
}

/* Layout CARD */
.quran-block.layout-card {
    margin: 1.2em 0 0.3em 0;
    padding: 1.5em;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,215,0,0.3);
}

.quran-block.layout-card .ayat-item {
    margin-bottom: 1.5em;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-bottom: 1px dashed var(--emas-muda);
}

.quran-block.layout-card .ayat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Layout MUTIARA */
.quran-block.layout-mutiara {
    margin: 1.2em 0 0.3em 0;
    padding: 2em;
    background: linear-gradient(145deg, #fff9e6, #fff);
    border: 2px solid var(--emas);
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(255,215,0,0.2);
    position: relative;
}

.quran-block.layout-mutiara::before {
    content: "۞";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: var(--emas);
    background: white;
    padding: 0 15px;
}

/* Layout MALAIKAT */
.quran-block.layout-malaikat {
    margin: 1.2em 0 0.3em 0;
    padding: 2em;
    background: linear-gradient(145deg, #e6f3ff, #d4e4f5);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(100,150,255,0.2);
    position: relative;
}

.quran-block.layout-malaikat::before,
.quran-block.layout-malaikat::after {
    content: "✧";
    position: absolute;
    font-size: 24px;
    color: #ffd700;
    opacity: 0.6;
}

.quran-block.layout-malaikat::before {
    top: 10px;
    left: 20px;
}

.quran-block.layout-malaikat::after {
    bottom: 10px;
    right: 20px;
}

/* Layout SULTAN */
.quran-block.layout-sultan {
    margin: 0.5em 0 0.2em 0;
    padding: 2em;
    background: linear-gradient(145deg, #fdf5e6, #f5e6d3);
    border: 2px solid #b8860b;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(184,134,11,0.15);
    color: #2c1810;
}

/* Layout PESANTREN */
.quran-block.layout-pesantren {
    margin: 1.2em 0 0.3em 0;
    padding: 2em;
    background: #f4e9d2;
    border: 1px solid #8b6b4d;
    box-shadow: inset 0 0 30px rgba(139,107,77,0.1);
}

/* Layout CAHAYA */
.quran-block.layout-cahaya {
    margin: 1.2em 0 0.3em 0;
    padding: 1em 0;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--emas), transparent);
    border-image-slice: 1;
}

.quran-block.layout-cahaya .ayat-item {
    padding: 0.8em 0;
    margin-bottom: 0.8em;
}

.quran-block.layout-cahaya .ayat-item:last-child {
    margin-bottom: 0;
}

/* ====================================
   TAFSIR - RATA KIRI
   ==================================== */

.tafsir-content {
    margin-top: 15px;
    padding: 20px;
    background: #fcf9f2;
    border-radius: 15px;
    border-left: 5px solid var(--emas);
    line-height: 1.8;
    font-size: 16px;
    color: #2c3e50;
    text-align: left !important;
    direction: ltr !important;    
}

.loading-tafsir {
    text-align: left !important;    
}

/* Tafsir di dalam quran block */
.quran-block .tafsir-content,
.quran-block .tafsir-section,
.quran-block .tafsir-text {
    text-align: left !important;
    direction: ltr !important;
}

/* ------------------------------------
   SIGNATURE PANEL - FILTER & ARTIKEL
   ------------------------------------ */
.filter-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--emas) var(--hijau-muda);
}

.filter-results::-webkit-scrollbar {
    width: 6px;
}

.filter-results::-webkit-scrollbar-track {
    background: var(--hijau-muda);
    border-radius: 10px;
}

.filter-results::-webkit-scrollbar-thumb {
    background: var(--emas);
    border-radius: 10px;
}

.artikel-filter-item {
    padding: 15px 12px;
    margin-bottom: 10px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.artikel-filter-item:hover {
    background: white;
    border-color: var(--emas-muda);
    box-shadow: 0 4px 12px rgba(255,215,0,0.1);
    transform: translateX(3px);
}

.artikel-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.artikel-filter-kategori {
    font-size: 16px;
    background: var(--hijau-muda);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--hijau-gelap);
    font-weight: 500;
}

.artikel-filter-date {
    color: #999;
    font-size: 11px;
}

.artikel-filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--hijau-gelap);
    padding: 5px 0;
}

.artikel-filter-title {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    padding-right: 15px;
    line-height: 1.4;
}

.artikel-filter-read {
    color: var(--emas);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,215,0,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
}

.artikel-filter-item:hover .artikel-filter-read {
    background: var(--emas);
    color: var(--hijau-gelap);
}

.artikel-filter-empty {
    padding: 40px 20px;
    text-align: center;
    color: #aaa;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--emas);
    font-style: italic;
    background: #f9f9f9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid var(--hijau-muda);
    border-top-color: var(--emas);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    padding: 40px 20px;
    text-align: center;
    color: #f44336;
    background: #ffebee;
    border-radius: 12px;
    border: 1px solid #ffcdd2;
}

.kategori-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--hijau-muda);
}

.kategori-tab {
    padding: 8px 14px;
    background: white;
    border: 1px solid var(--hijau-muda);
    border-radius: 30px;
    text-decoration: none;
    color: var(--hijau-gelap);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.kategori-tab:hover {
    background: var(--hijau-muda);
    border-color: var(--emas);
    transform: translateY(-2px);
}

.kategori-tab.active {
    background: var(--hijau-gelap);
    border-color: var(--hijau-gelap);
    color: white;
    box-shadow: 0 4px 8px rgba(11,79,55,0.2);
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--hijau-muda);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--emas);
    box-shadow: 0 0 0 4px rgba(255,215,0,0.1);
}

.search-box input::placeholder {
    color: #aaa;
    font-style: italic;
}

.artikel-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.artikel-sidebar-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--hijau-muda);
}

.artikel-sidebar-item:last-child {
    border-bottom: none;
}

.artikel-sidebar-link {
    text-decoration: none;
    color: var(--hijau-gelap);
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.artikel-sidebar-link:hover {
    background: var(--hijau-muda);
    transform: translateX(5px);
}

.artikel-sidebar-title {
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.artikel-sidebar-date {
    font-size: 12px;
    color: #888;
}

.artikel-sidebar-kategori {
    font-size: 14px;
    margin-right: 5px;
}    

/* ------------------------------------
   RESPONSIVE MOBILE
   ------------------------------------ */
@media (max-width: 768px) {
    .top-header {
        padding: 0 15px;
        height: 70px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .header-left {
        gap: 15px;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-image {
        height: 40px;
        max-width: 40px;
    }
    
    .pondok-name {
        font-size: 16px;
    }
    
    .pondok-sub {
        font-size: 11px;
    }
    
    .menu-btn, .settings-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .panel {
        width: 280px;
    }
    
    .kategori-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .video-page .video-title {
        font-size: calc(var(--video-judul-size) - 1px);
    }
    
    .video-page .video-info {
        font-size: calc(var(--video-info-size) - 1px);
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0 10px;
        height: 65px;
    }
    
    body {
        padding-top: 65px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .logo-image {
        height: 35px;
        max-width: 35px;
    }
    
    .pondok-name {
        font-size: 14px;
    }
    
    .pondok-sub {
        font-size: 10px;
    }
    
    .menu-btn, .settings-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .panel {
        width: 260px;
        padding: 15px;
    }
    
    .kategori-tabs {
        gap: 5px;
    }
    
    .kategori-tab {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .video-page .video-title {
        font-size: calc(var(--video-judul-size) - 2px);
    }
    
    .video-page .video-info {
        font-size: calc(var(--video-info-size) - 2px);
    }
}

@media (max-width: 360px) {
    .top-header {
        padding: 0 10px;
        height: 65px;
    }
    
    body {
        padding-top: 65px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .logo-image {
        height: 35px;
        max-width: 35px;
    }
    
    .pondok-name {
        font-size: 10px !important;
    }
    
    .pondok-sub {
        font-size: 10px;
    }
    
    .menu-btn, .settings-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    .panel {
        width: 260px;
        padding: 15px;
    }
    
    .kategori-tabs {
        gap: 5px;
    }
    
    .kategori-tab {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ====================================
   TOMBOL MUROTAL
   ==================================== */

.audio-controls {
    margin: 15px 0 5px;
    text-align: left;
}

.play-btn {
    background: linear-gradient(145deg, #0a4d2e, #0e6b45);
    border: none;
    border-radius: 40px;
    color: white;
    padding: 8px 20px 8px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,215,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,215,0,0.3);
}

.play-btn::before {
    content: "▶";
    font-size: 16px;
    color: #FFD700;
    filter: drop-shadow(0 0 5px gold);
    transition: all 0.3s ease;
}

.play-btn.range-btn {
    padding: 10px 25px;
    font-size: 15px;
    background: linear-gradient(145deg, #0a4d2e, #1e8b5a);
}

.play-btn:hover {
    background: linear-gradient(145deg, #1e8b5a, #0a4d2e);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3), 0 0 0 2px rgba(255,215,0,0.5);
}

.play-btn:hover::before {
    transform: scale(1.1);
    color: #FFF0B5;
}

.play-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.play-btn.playing {
    background: linear-gradient(145deg, #B8860B, #8B4513);
    box-shadow: 0 0 15px #FFD700;
}

.play-btn.playing::before {
    content: "⏸";
    color: white;
}

.ayat-item .play-btn {
    padding: 5px 12px 5px 8px;
    font-size: 12px;
    min-width: 36px;
}

.ayat-item .play-btn::before {
    font-size: 12px;
}

@media (max-width: 768px) {
    .play-btn {
        padding: 6px 15px 6px 10px;
        font-size: 13px;
    }
    .play-btn.range-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .play-btn {
        padding: 5px 12px 5px 8px;
        font-size: 12px;
    }
    .ayat-item .play-btn {
        padding: 4px 8px;
        min-width: 32px;
    }
}

/* ====================================
   TAG SURAH - NAMA SURAH CANTIK
   ==================================== */

.surah-name {
    font-weight: 700;
    color: var(--hijau-gelap);
    background: linear-gradient(145deg, #f0f9f0, #e1f5e9);
    padding: 3px 3px 3px 3px;
    border-radius: 30px;
    display: inline-block;
    font-size: 0.95em;
    border: 1px solid var(--emas-muda);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.surah-ayat {
    font-weight: 600;
    color: var(--emas-gelap);
    background: white;
    padding: 3px 3px;
    border-radius: 20px;
    margin-left: 0px;
    font-size: 0.85em;
    border: 1px solid var(--emas-muda);
    display: inline-block;
}

.surah-name:hover {
    background: linear-gradient(145deg, #e1f5e9, #c0e0d0);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .surah-name {
        padding: 2px 8px;
        font-size: 0.9em;
    }
    .surah-ayat {
        padding: 2px 6px;
        font-size: 0.8em;
    }
}

/* ====================================
   TAFSIR SECTION
   ==================================== */
.tafsir-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed var(--emas-muda);
}

.tafsir-toggle, .tafsir-toggle-all {
    background: var(--hijau-muda);
    border: 1px solid var(--emas);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hijau-gelap);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    margin-right: 10px;
}

.tafsir-toggle:hover, .tafsir-toggle-all:hover {
    background: var(--emas);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,215,0,0.3);
}

.tafsir-icon {
    transition: transform 0.3s;
}

.tafsir-toggle.active .tafsir-icon,
.tafsir-toggle-all.active .tafsir-icon {
    transform: rotate(90deg);
}

.tafsir-ayat-select {
    padding: 8px 15px;
    border: 2px solid var(--hijau-muda);
    border-radius: 30px;
    font-size: 14px;
    color: var(--hijau-gelap);
    background: white;
    cursor: pointer;
}

.tafsir-ayat-select:focus {
    outline: none;
    border-color: var(--emas);
}

.tafsir-content {
    margin-top: 15px;
    padding: 20px;
    background: #fcf9f2;
    border-radius: 15px;
    border-left: 5px solid var(--emas);
    line-height: 1.8;
    font-size: 16px;
    color: #2c3e50;
}

.loading-tafsir {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

@media (max-width: 768px) {
    .header-content {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* ====================================
   FUTURISTIC MENU OVERLAY
   ==================================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 58, 34, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 2000;
    display: none;
    flex-direction: column;
    color: white;
    overflow-y: auto;
    border: 1px solid rgba(255, 215, 0, 0.05);
}

.menu-overlay.active {
    display: flex;
}

.menu-overlay.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #00ffff, 
        #ff00ff, 
        #00ffff, 
        transparent
    );
    background-size: 200% 100%;
    animation: neonSlide 3s linear infinite;
    z-index: 2001;
}

@keyframes neonSlide {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.menu-header {
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: sticky;
    top: 0;
    background: rgba(6, 58, 34, 0.95);
    z-index: 2010;
    backdrop-filter: blur(10px);
}

.menu-header .close-btn {
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--emas);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: auto;
    height: auto;
}

.menu-header .close-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--emas);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
    letter-spacing: 3px;
}

.menu-header .close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-header .close-btn:hover::before {
    left: 100%;
}

.menu-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    max-width: 1000px;  
    margin: 0 auto;
    width: 100%;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.menu-section-title {
    grid-column: 1 / -1;
    color: var(--emas);
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 0, 255, 0.3);
    animation: textFlicker 3s infinite;
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.3; }
    94% { opacity: 1; }
    96% { opacity: 0.5; }
    97% { opacity: 1; }
}

.menu-section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--emas), #ff00ff, transparent);
    border-radius: 3px;
}

.menu-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emas), #ff00ff, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: 1;
}

.menu-card:hover::before {
    transform: translateX(100%);
}

.menu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-card:hover::after {
    opacity: 1;
}

.menu-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--emas);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.5),
        inset 0 0 40px rgba(255, 215, 0, 0.2);
}

.menu-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    text-decoration: none;
    color: white;
    height: 100%;
    position: relative;
    z-index: 2;
}

.menu-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    transition: all 0.3s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.menu-card:hover .menu-card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--emas)) drop-shadow(0 0 40px #ff00ff);
}

.menu-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff, #fff8e7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.menu-card:hover .menu-card-title {
    background: linear-gradient(135deg, var(--emas), #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.menu-card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    transition: all 0.3s ease;
    max-width: 220px;
}

.menu-card:hover .menu-card-desc {
    color: rgba(255, 255, 255, 0.8);
}

.menu-overlay::-webkit-scrollbar {
    width: 8px;
}

.menu-overlay::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.menu-overlay::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--emas), #ff00ff);
    border-radius: 4px;
}

.menu-overlay::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff00ff, var(--emas));
}

/* ===== RESPONSIVE BREAKPOINTS UNTUK MENU OVERLAY ===== */

@media screen and (max-width: 1024px) {
    .menu-content {
        max-width: 700px;
        padding: 20px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .menu-card-icon {
        font-size: 40px;
    }
    
    .menu-card-title {
        font-size: 16px;
    }
    
    .menu-section-title {
        font-size: 22px;
        margin: 30px 0 15px;
    }
}

@media screen and (max-width: 768px) {
    .menu-content {
        max-width: 600px;
        padding: 15px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .menu-header {
        padding: 15px 20px;
    }
    
    .menu-header .close-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .menu-card-link {
        padding: 25px 15px;
    }
    
    .menu-card-icon {
        font-size: 36px;
    }
    
    .menu-section-title {
        font-size: 20px;
        margin: 25px 0 15px;
    }
}

@media screen and (max-width: 640px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .menu-card-desc {
        font-size: 11px;
    }
    
    .menu-card-title {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .menu-content {
        max-width: 100%;
        padding: 10px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .menu-header {
        padding: 12px 15px;
    }
    
    .menu-header .close-btn {
        padding: 8px 20px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
    
    .menu-card-link {
        padding: 20px 15px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }
    
    .menu-card-icon {
        font-size: 32px;
        margin-bottom: 0;
        min-width: 45px;
        text-align: center;
    }
    
    .menu-card-content {
        flex: 1;
    }
    
    .menu-card-title {
        font-size: 16px;
        margin-bottom: 4px;
        text-align: left;
    }
    
    .menu-card-desc {
        font-size: 11px;
        text-align: left;
        max-width: 100%;
    }
    
    .menu-section-title {
        font-size: 18px;
        margin: 20px 0 10px;
    }
}

@media screen and (max-width: 360px) {
    .menu-card-link {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .menu-card-icon {
        margin-bottom: 5px;
    }
    
    .menu-card-title,
    .menu-card-desc {
        text-align: center;
    }
    
    .menu-header .close-btn {
        font-size: 11px;
        padding: 8px 15px;
    }
}

/* Info Video Tag */
.info-video {
    display: inline-block;
    background: var(--hijau-muda);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.95em;
    color: var(--hijau-gelap);
    border: 1px solid var(--emas-muda);
    margin: 5px 0;
    font-weight: 500;
}

.total-video {
    font-weight: 700;
    color: var(--emas-gelap);
    background: var(--hijau-muda);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    font-size: 0.95em;
}

.video-wrapper.layout-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.video-wrapper.layout-mutiara {
    background: linear-gradient(145deg, #fff9e6, #fff);
    padding: 20px;
    border-radius: 30px;
    border: 2px solid var(--emas);
    box-shadow: 0 0 30px rgba(255,215,0,0.2);
}

.video-wrapper.layout-quote {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
    border-left: 5px solid var(--emas);
}

.video-wrapper.layout-quote::before {
    content: "❝";
    font-size: 40px;
    color: var(--emas);
    opacity: 0.2;
    display: block;
    margin-bottom: -20px;
}

/* ====================================
   VIDEO TAG - RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .video-float-left,
    .video-float-right {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding-bottom: 20px !important;
    }
    
    .video-align-left,
    .video-align-right,
    .video-align-center {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.content-article h3 + p {
    margin-top: 0 !important;
}

.content-article h3 {
    margin-bottom: 5px !important;
}

.next-btn {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    background: var(--hijau-gelap);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.next-btn:hover {
    background: var(--emas);
    color: var(--hijau-gelap);
    transform: scale(1.05);
}

.next-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.statistik {
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

.statistik h4 {
    margin: 0 0 15px;
    color: var(--hijau-gelap);
}

.statistik-list {
    line-height: 1.6;
}


/* ====================================
   SALAM & BISMILLAH
   ==================================== */

.salam-bismillah {
    margin: 25px 0;
    padding: 10px 0;
}

.salam-bismillah .arab-text {
    font-family: 'LPMQ', 'Noto Naskh Arabic', 'Amiri', serif !important;
    line-height: 2;
    direction: rtl;
    unicode-bidi: bidi-override;
    color: var(--hijau-gelap);
    text-align: left;
    font-size: 28px !important;   /* PC */
}

.salam-bismillah.arab-center .arab-text {
    text-align: center;
}

.salam-bismillah.arab-right .arab-text {
    text-align: right;
}

@media (max-width: 1024px) {
    .salam-bismillah .arab-text {
        font-size: 26px !important;   /* Tablet */
    }
}

@media (max-width: 768px) {
    .salam-bismillah .arab-text {
        font-size: 24px !important;   /* HP */
    }
}

@media (max-width: 480px) {
    .salam-bismillah .arab-text {
        font-size: 20px !important;   /* HP kecil */
    }
}



/* ====================================
   E-QURAN - CSS LENGKAP
   ==================================== */

/* Container utama */
.equran-layout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   E-QURAN AYAT - MARGIN NEGATIF RESPONSIF
   ==================================== */

/* Default untuk PC & tablet */
.ayat-item {
    margin: 0 10px !important;
    padding: 15px 40px !important;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .ayat-item {
        margin: 0 -30px !important;
        padding: 15px 30px !important;
    }
}

/* HP (max 768px) */
@media (max-width: 768px) {
    .ayat-item {
        margin: 0 -15px !important;
        padding: 15px 15px !important;
    }
}

/* HP kecil (max 480px) */
@media (max-width: 480px) {
    .ayat-item {
        margin: 0 -20px !important;
        padding: 15px 10px !important;
    }
}

/* ====================================
   LAYOUT MUSHAF
   ==================================== */
.equran-mushaf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fef9e6;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.mushaf-arab {
    direction: rtl;
    text-align: right;
    border-right: 2px solid var(--emas);
    padding-right: 20px;
    font-family: 'LPMQ', 'Noto Naskh Arabic', 'Amiri', serif;
}

.mushaf-latin {
    direction: ltr;
    padding-left: 20px;
    font-family: 'Georgia', serif;
}

.basmalah-mushaf-arab {
    margin-bottom: 30px;
    font-size: 1.4em;
    text-align: center;
    color: var(--emas-gelap);
}

.ayat-arab {
    margin-bottom: 20px;
    line-height: 1.8;
}

.basmalah-mushaf-latin {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px dashed var(--emas-muda);
    padding-bottom: 15px;
}

.ayat-latin {
    margin-bottom: 20px;
}


/* ====================================
   LAYOUT PER AYAT
   ==================================== */
.equran-perayat .basmalah-card {
    background: linear-gradient(145deg, var(--hijau-muda), #f0f9f0);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.equran-perayat .ayat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--emas-muda);
    transition: all 0.3s;
}

.equran-perayat .ayat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ====================================
   LAYOUT CARD
   ==================================== */
.equran-card .basmalah-card {
    background: linear-gradient(145deg, #fff9e6, #fff);
    border: 2px solid var(--emas);
    border-radius: 30px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

/* ====================================
   LAYOUT MUTIARA
   ==================================== */
.equran-mutiara {
    background: linear-gradient(145deg, #fff9e6, #fff);
    border: 2px solid var(--emas);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255,215,0,0.2);
    position: relative;
}

.mutiara-ornamen {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 20px;
    font-size: 24px;
    color: var(--emas);
}

.equran-mutiara .basmalah-mutiara {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 2px solid var(--emas-muda);
}

.equran-mutiara .ayat-mutiara {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 20px;
    background: rgba(255,250,230,0.5);
    transition: all 0.3s;
}

.equran-mutiara .ayat-mutiara:hover {
    background: rgba(255,250,230,0.9);
    transform: scale(1.01);
}

/* ====================================
   LAYOUT PLAIN
   ==================================== */
.equran-plain .basmalah-plain {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.equran-plain .ayat-plain {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.equran-plain .ayat-plain:last-child {
    border-bottom: none;
}

/* ====================================
   ARAB RATA KANAN (SEMUA LAYOUT)
   ==================================== */
.equran-mushaf .mushaf-arab,
.equran-perayat .arabic-texts,
.equran-card .arabic-texts,
.equran-mutiara .arabic-texts,
.equran-plain .arabic-texts {
    direction: rtl !important;
    text-align: right !important;
}

/* Nomor ayat Arab */
.ayat-nomor-arab {
    display: inline-block;
    margin-left: 5px;
    background: radial-gradient(circle at 30% 30%, #FFD700 0%, #B8860B 80%);
    color: rgb(10, 10, 10);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    font-weight: bold;
}

/* Nomor ayat Latin */
.ayat-nomor-latin {
    color: var(--emas-gelap);
    margin-left: 5px;
    font-size: 0.85em;
}

/* Audio controls */
.audio-controls {
    margin-top: 15px;
}

.play-btn {
    background: var(--hijau-gelap);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: var(--emas);
    color: var(--hijau-gelap);
}

/* Tafsir section */
.tafsir-section {
    margin-top: 15px;
}

.tafsir-toggle {
    background: none;
    border: 1px solid var(--emas);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--hijau-gelap);
    transition: all 0.3s;
}

.tafsir-toggle:hover {
    background: var(--emas);
    color: var(--hijau-gelap);
}

.tafsir-content {
    margin-top: 10px;
    padding: 15px;
    background: #fcf9f2;
    border-radius: 12px;
    border-left: 4px solid var(--emas);
    font-size: 0.9rem;
    line-height: 1.6;
    display: none;
}

.tafsir-surah-accordion {
    transition: all 0.3s ease;
}

.tafsir-surah-header:hover {
    background: var(--emas-muda);
}

.accordion-arrow {
    transition: transform 0.3s ease;
}

/* ====================================
   FONT SIZE MENGIKUTI SETTING PANEL
   ==================================== */

/* Arab di Mushaf */
.equran-mushaf .mushaf-arab,
.equran-mushaf .ayat-arab,
.equran-mushaf .basmalah-mushaf-arab {
    font-size: var(--font-arab-size) !important;
}

/* Latin di Mushaf */
.equran-mushaf .mushaf-latin,
.equran-mushaf .latin-texts {
    font-size: var(--font-latin-size) !important;
}

/* Terjemah di Mushaf */
.equran-mushaf .terjemah-texts {
    font-size: var(--font-terjemah-size) !important;
}

/* ====================================
   RESPONSIVE MOBILE
   ==================================== */
@media (max-width: 1024px) {
    .equran-layout-container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .equran-layout-container {
        padding: 0 8px;
    }
    
    /* Mushaf jadi 1 kolom */
    .equran-mushaf {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }
    .mushaf-arab {
        border-right: none !important;
        border-bottom: 2px solid var(--emas);
        padding-right: 0 !important;
        padding-bottom: 15px;
    }
    .mushaf-latin {
        padding-left: 0 !important;
    }
    
    /* Per Ayat */
    .equran-perayat .ayat-card,
    .equran-perayat .basmalah-card {
        padding: 15px !important;
    }
    
    /* Card */
    .equran-card .quran-block.layout-card {
        padding: 15px !important;
    }
    
    /* Mutiara */
    .equran-mutiara {
        padding: 20px !important;
    }
    .equran-mutiara .basmalah-mutiara {
        padding: 15px !important;
        margin-bottom: 25px !important;
    }
    .equran-mutiara .ayat-mutiara {
        padding: 12px !important;
    }
    
    /* Ukuran font */
    .equran-mushaf .arabic-texts,
    .equran-perayat .arabic-texts,
    .equran-card .arabic-texts,
    .equran-mutiara .arabic-texts,
    .equran-plain .arabic-texts {
        font-size: calc(var(--font-arab-size) - 4px) !important;
    }
}

@media (max-width: 480px) {
    .equran-layout-container {
        padding: 0 5px;
        margin-left: -30px !important;
        margin-right: -30px !important;
    }
    
    .equran-mushaf {
        padding: 12px !important;
    }
    
    .equran-perayat .ayat-card,
    .equran-perayat .basmalah-card {
        padding: 12px !important;
    }
    
    .equran-card .quran-block.layout-card {
        padding: 12px !important;
    }
    
    .equran-mutiara {
        padding: 15px !important;
    }
    .equran-mutiara .basmalah-mutiara {
        padding: 10px !important;
    }
    .equran-mutiara .ayat-mutiara {
        padding: 10px !important;
    }
    
    /* Ukuran font lebih kecil */
    .equran-mushaf .arabic-texts,
    .equran-perayat .arabic-texts,
    .equran-card .arabic-texts,
    .equran-mutiara .arabic-texts,
    .equran-plain .arabic-texts {
        font-size: calc(var(--font-arab-size) - 6px) !important;
    }
    
    .ayat-nomor-arab {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
    }
}

/* ====================================
   MUSHAF - CUSTOM MARGIN
   ==================================== */

/* Container luar Mushaf */
.equran-mushaf-container {
    margin-left: -40px !important;
    margin-right: -40px !important;
}

/* Kolom Arab Mushaf */
.equran-mushaf .mushaf-arab {
    margin-left: -30px !important;
    margin-right: 0 !important;
}

/* Kolom Latin Mushaf */
.equran-mushaf .mushaf-latin .ayat-latin {
    margin-left: -40px !important;
    margin-right: -10px !important;
}

@media (max-width: 768px) {
    /* Reset margin negatif di HP agar tidak terlalu lebar */
    .equran-mushaf-container {
        margin-left: -30px !important;
        margin-right: -30px !important;
    }
    
    .equran-mushaf .mushaf-arab {
        margin-left: -15px !important;
    }
    
    .equran-mushaf .mushaf-latin .ayat-latin {
        margin-left: -10px !important;
        margin-right: -5px !important;
        padding-left: 10px !important;
    }
}

/* Tombol play di samping nomor ayat */
.play-ayat-icon {
    background: var(--emas);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 10px;
    cursor: pointer;
    margin-left: 6px;
    color: var(--hijau-gelap);
    box-shadow: 0 0 5px var(--emas);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.play-ayat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--emas);
    background: #ffea80;
}


/* Basmalah kaligrafi - tanpa garis dekoratif */
.basmalah-kaligrafi {
    text-align: center;
    margin: 20px 0 30px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.basmalah-kaligrafi .basmalah-symbol {
    font-family: 'LPMQ', 'Amiri', serif;
    font-size: 3rem;
    color: var(--emas);
    border: none !important;
    background: transparent !important;
}

/* Highlight ayat yang sedang diputar */
.ayat-highlight {
    background: rgba(255, 215, 0, 0.2) !important;
    border-radius: 12px;
    transition: background 0.3s ease;
    animation: pulseHighlight 0.5s ease;
}

@keyframes pulseHighlight {
    0% { background: rgba(255, 215, 0, 0); }
    50% { background: rgba(255, 215, 0, 0.4); }
    100% { background: rgba(255, 215, 0, 0.2); }
}

/* ====================================
   HIGHLIGHT AYAT YANG SEDANG DIPUTAR
   ==================================== */

/* Gaya dasar untuk setiap ayat */
.ayat-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 15px !important;
    margin-bottom: 20px !important;
    scroll-margin-top: 200px; 
}

/* Highlight saat diputar */
.ayat-item.highlight,
.ayat-item[data-ayat].highlight {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0.1)) !important;
    box-shadow: 0 0 20px rgba(255,215,0,0.3) !important;
    border-left: 4px solid var(--emas) !important;
    transform: scale(1.01);
}

/* Animasi pulse untuk highlight */
@keyframes pulseHighlight {
    0% {
        background: rgba(255,215,0,0);
        box-shadow: 0 0 0px rgba(255,215,0,0);
    }
    50% {
        background: rgba(255,215,0,0.3);
        box-shadow: 0 0 15px rgba(255,215,0,0.5);
    }
    100% {
        background: rgba(255,215,0,0.15);
        box-shadow: 0 0 5px rgba(255,215,0,0.2);
    }
}

/* Efek saat ayat diputar */
.ayat-item.playing {
    animation: pulseHighlight 0.5s ease;
}


/* Sticky header di halaman baca Quran */
.equran-baca-page .sticky-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding: 10px 0;
    border-bottom: 1px solid var(--emas-muda);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Status audio tetap terlihat */
#audio-status {
    font-weight: 500;
    background: var(--hijau-muda);
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
}

.arabic-keyboard-wrap {
    display: none;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--emas-muda);
    border-radius: 16px;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.05);
}

.arabic-keyboard-wrap.show {
    display: block;
}

.arabic-keyboard-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hijau-gelap);
    margin-bottom: 10px;
}

.arabic-keyboard-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arabic-keyboard-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.arabic-key {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--hijau-muda);
    border-radius: 10px;
    background: #fafdfb;
    color: var(--hijau-gelap);
    font-size: 1.2rem;
    font-family: 'LPMQ', 'Noto Naskh Arabic', 'Amiri', serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.arabic-key:hover {
    background: var(--hijau-muda);
    border-color: var(--emas);
    transform: translateY(-1px);
}

.arabic-key.action-key {
    font-size: 0.92rem;
    font-family: inherit;
    font-weight: 700;
    min-width: 74px;
}

.arabic-key.wide-key {
    min-width: 96px;
}

@media (max-width: 768px) {
    .arabic-key {
        min-width: 38px;
        height: 40px;
        font-size: 1.1rem;
    }

    .arabic-key.action-key {
        min-width: 68px;
        font-size: 0.88rem;
    }

    .arabic-key.wide-key {
        min-width: 84px;
    }
}

/* ====================================
   AUTH / ROLE / AKUN MENU OVERLAY
   ==================================== */

/* ===== HEADER: tombol menu + badge role ===== */
.menu-btn {
    position: relative;
}

.menu-btn.menu-open {
    border: 2px solid #c62828;
    background: rgba(198, 40, 40, 0.08);
    color: #c62828;
    box-shadow:
        0 0 18px rgba(198, 40, 40, 0.25),
        0 0 6px rgba(255,255,255,0.08) inset;
}

.menu-role-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.2);
    z-index: 2;
}

.menu-role-dot.role-admin {
    background: #FFD700;
}

.menu-role-dot.role-editor {
    background: #2e7d32;
}

.menu-role-dot.role-penulis {
    background: #1565c0;
}

/* ===== CARD AKUN DI MENU OVERLAY ===== */
.menu-user-box {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    margin: 16px 0 8px 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow:
        0 6px 16px rgba(0,0,0,0.08),
        inset 0 0 20px rgba(255,215,0,0.03);
    backdrop-filter: blur(8px);
}

/* ===== STATUS USER SAAT SUDAH LOGIN ===== */
.menu-user-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
    text-align: left;
    flex-wrap: wrap;
}

.menu-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,215,0,0.22);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.menu-user-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.menu-user-name {
    font-weight: 800;
    color: var(--emas-terang);
    font-size: 1rem;
    letter-spacing: .3px;
}

.menu-user-sub {
    font-size: .84rem;
    color: rgba(255,255,255,0.7);
}

.menu-user-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.menu-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .2px;
    background: rgba(255,255,255,0.12);
    color: #f5f5f5;
    border: 1px solid rgba(255,255,255,0.08);
}

.menu-role-badge.role-admin {
    background: #fff4c2;
    color: #8a6700;
    border-color: rgba(255,215,0,0.35);
}

.menu-role-badge.role-editor {
    background: #e7f5ea;
    color: #1f6a31;
    border-color: rgba(46,125,50,0.2);
}

.menu-role-badge.role-penulis {
    background: #e8f0ff;
    color: #1d4fa3;
    border-color: rgba(21,101,192,0.2);
}

/* ===== FORM LOGIN ===== */
.menu-login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

.menu-input {
    display: block;
    width: 100%;
    max-width: 280px;
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255,215,0,0.3);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.menu-input::placeholder {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.menu-input:focus {
    border-color: var(--emas);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.menu-login-btn {
    display: inline-block;
    width: auto;
    min-width: 160px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    color: var(--hijau-sangat-gelap);
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--emas), var(--emas-gelap));
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.menu-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
    background: linear-gradient(135deg, var(--emas-gelap), var(--emas));
}

/* ====================================
   MENU USER LINKS - TAMPILAN MODERN
   ==================================== */

.menu-user-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.menu-user-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 215, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.menu-user-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.menu-user-link:hover::before {
    left: 100%;
}

.menu-user-link .link-icon {
    font-size: 1.4rem;
    min-width: 36px;
    text-align: center;
    transition: transform 0.3s ease;
}

.menu-user-link:hover .link-icon {
    transform: scale(1.1);
}

.menu-user-link .link-text {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--emas-terang);
}

.menu-user-link .link-badge {
    background: rgba(255,215,0,0.15);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--emas);
    transition: all 0.3s ease;
}

.menu-user-link:hover .link-badge {
    background: rgba(255,215,0,0.3);
    transform: scale(1.05);
}

.menu-user-link .link-arrow {
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--emas);
}

.menu-user-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Tombol Editor Kitab - Hijau */
.menu-user-link.kitab-editor-link {
    border-left: 3px solid #2e7d32;
}

.menu-user-link.kitab-editor-link:hover {
    background: linear-gradient(135deg, rgba(46,125,50,0.2), rgba(27,94,32,0.1));
    transform: translateX(5px);
    border-color: #2e7d32;
    box-shadow: 0 0 15px rgba(46,125,50,0.4);
}

/* Tombol Editor Video - Emas */
.menu-user-link.video-editor-link {
    border-left: 3px solid var(--emas);
}

.menu-user-link.video-editor-link:hover {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(184,134,11,0.1));
    transform: translateX(5px);
    border-color: var(--emas);
    box-shadow: 0 0 15px rgba(255,215,0,0.4);
}

/* Tombol Logout - Merah */
.menu-user-link.logout-btn {
    border-left: 3px solid #dc3545;
    background: linear-gradient(135deg, rgba(220,53,69,0.1), rgba(176,42,55,0.05));
}

.menu-user-link.logout-btn:hover {
    background: linear-gradient(135deg, rgba(220,53,69,0.25), rgba(176,42,55,0.15));
    transform: translateX(5px);
    border-color: #dc3545;
    box-shadow: 0 0 15px rgba(220,53,69,0.3);
}

.menu-user-link.logout-btn .link-badge {
    background: rgba(220,53,69,0.2);
    color: #ff6b6b;
}

/* Divider */
.menu-user-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
    margin: 8px 0 4px 0;
}

/* Responsive */
@media (max-width: 480px) {
    .menu-user-link {
        padding: 12px 14px;
    }
    
    .menu-user-link .link-icon {
        font-size: 1.2rem;
        min-width: 30px;
    }
    
    .menu-user-link .link-text {
        font-size: 0.85rem;
    }
    
    .menu-user-link .link-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
}

/* ====================================
   TOAST GLOBAL
   ==================================== */
.global-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 77, 46, 0.96);
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,215,0,0.22);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 700;
    text-align: center;
    min-width: 220px;
}

.global-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


