
/* =========================================================
   INTERACTIVE COVER — SERI TADABBUR AL-QUR'AN
   KLINIKINDONESIA.COM
   REVISION — DARK PREMIUM EDITION
   FINAL NAVIGATION: SURAH + AYAH
   ========================================================= */


/* =========================================================
   1. COVER SECTION
========================================================= */

.tadabbur-cover-section {
    --td-navy: #082b43;
    --td-blue: #0b4560;
    --td-gold: #d9a441;
    --td-cream: #fffaf0;
    --td-ink: #173247;

    max-width: 1000px;
    margin: 34px auto 48px;
    padding: 0 16px;

    color: #f1f5f9;
}


/* =========================================================
   2. JUDUL COVER
========================================================= */

.tadabbur-cover-heading {
    text-align: center;
    margin: 0 auto 24px;
    max-width: 680px;
}

.tadabbur-eyebrow {
    display: inline-block;
    color: #e5b85c;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tadabbur-cover-heading h2 {
    margin: 8px 0 10px;
    color: #f8fafc !important;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.3;
    font-weight: 800;
}

.tadabbur-cover-heading p {
    margin: 0;
    color: #c0ccdc !important;
    font-size: .96rem;
    line-height: 1.7;
}


/* =========================================================
   3. COVER IMAGE
========================================================= */

.tadabbur-cover-card {
    position: relative;
    width: min(100%, 560px);
    margin: auto;
    overflow: hidden;

    border: 1px solid rgba(217, 164, 65, .25);
    border-radius: 12px;

    background: #071827;

    box-shadow:
        0 18px 48px rgba(0, 0, 0, .30),
        0 0 25px rgba(25, 110, 160, .08);

    isolation: isolate;
}

.tadabbur-cover-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   4. HOTSPOT — AREA KLIK SURAT DAN AYAT
========================================================= */

.cover-hotspot {
    position: absolute;
    z-index: 25;

    display: block;
    padding: 0;

    border: 2px solid transparent;
    border-radius: 8px;

    background: transparent;
    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.cover-hotspot:hover,
.cover-hotspot:focus-visible {
    outline: none;

    border-color: rgba(255, 224, 154, .95);
    background: rgba(255, 220, 130, .12);

    box-shadow:
        0 0 0 3px rgba(255, 220, 130, .16),
        0 0 18px rgba(255, 204, 92, .35);
}

/*
   Posisi dasar berdasarkan sampul asli 960 x 1536.
   Posisi akhir disesuaikan pada bagian FINAL NAVIGATION.
*/

.cover-hotspot-surah {
    left: 26%;
    top: 39.6%;
    width: 30%;
    height: 4.2%;
}

.cover-hotspot-ayah {
    left: 56%;
    top: 39.6%;
    width: 20%;
    height: 4.2%;
}


/* =========================================================
   5. LABEL SURAT DAN AYAT DINAMIS
========================================================= */

.cover-selection {
    position: absolute;

    left: 26%;
    top: 39.7%;

    width: 50%;
    height: 4%;

    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
    padding: 1px 4px;

    border: 0;
    border-radius: 5px;

    background: rgba(255, 249, 230, .30);
    color: #38230e;

    font-size: clamp(9px, 1.8vw, 14px);
    font-weight: 900;

    white-space: nowrap;
    pointer-events: none;
    overflow: hidden;

    text-shadow:
        0 1px 1px rgba(255, 255, 255, .75);
}

.cover-selection-divider {
    color: #9b6c1d;
    font-weight: 900;
}


/* =========================================================
   6. TOMBOL SELEKSI TAMBAHAN
   Dipertahankan jika masih digunakan pada HTML.
========================================================= */

.tadabbur-selection-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 8px;
}

.tadabbur-secondary-btn,
.tadabbur-primary-btn {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;
    border-radius: 999px;

    font: inherit;
    font-size: .94rem;
    font-weight: 750;

    text-decoration: none;
    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.tadabbur-secondary-btn {
    border: 1px solid #c9a45d;
    color: #735018;
    background: #fffdf7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
}

.tadabbur-secondary-btn:hover {
    background: #fff1cf;
    transform: translateY(-2px);
}

.tadabbur-primary-btn {
    border: 1px solid #0b8065;
    color: #fff;

    background: linear-gradient(
        135deg,
        #075b49,
        #0b8065
    );

    box-shadow:
        0 5px 14px rgba(5, 91, 73, .25);
}

.tadabbur-primary-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(5, 91, 73, .35);
}

.tadabbur-url-note {
    text-align: center;
    color: #aab8c8;
    font-size: .78rem;
    line-height: 1.6;
    margin: 10px 0 0;
}


/* =========================================================
   7. MODAL
========================================================= */

.tadabbur-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 16px;
}

.tadabbur-modal.is-open {
    display: flex;
}

.tadabbur-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 16, 28, .78);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tadabbur-modal-panel {
    position: relative;
    z-index: 1;

    width: min(100%, 480px);
    max-height: min(84vh, 720px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(217, 164, 65, .55);
    border-radius: 18px;

    background: #fffdf8;

    box-shadow:
        0 24px 80px rgba(0, 0, 0, .35);
}


/* =========================================================
   8. MODAL HEADER
========================================================= */

.tadabbur-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    padding: 19px 20px 12px;
    border-bottom: 1px solid #eee5d3;
}

.tadabbur-modal-header h3 {
    margin: 4px 0 0;
    color: #092f48;
    font-size: 1.35rem;
}

.tadabbur-modal-subtitle {
    margin: 3px 0 0;
    color: #8b6a2b;
    font-size: .9rem;
}

.tadabbur-modal-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    border: 0;
    border-radius: 50%;

    color: #244256;
    background: #f1eadc;

    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}


/* =========================================================
   9. PENCARIAN SURAT
========================================================= */

.tadabbur-search-label {
    padding: 13px 20px 6px;
    color: #526575;
    font-size: .82rem;
    font-weight: 700;
}

.tadabbur-search {
    width: calc(100% - 40px);
    margin: 0 20px 12px;
    padding: 12px 14px;

    border: 1px solid #d9d2c4;
    border-radius: 10px;

    background: #fff;
    color: #173247;

    font: inherit;
    font-size: 16px;
    outline: none;
}

.tadabbur-search:focus {
    border-color: #b98b36;

    box-shadow:
        0 0 0 3px rgba(217, 164, 65, .16);
}


/* =========================================================
   10. DAFTAR SURAT
========================================================= */

.tadabbur-modal-list {
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 0 12px 12px;

    min-height: 100px;
    max-height: 52vh;

    scrollbar-width: thin;
}

.tadabbur-surah-option {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 12px;

    text-align: left;

    padding: 11px 10px;

    border: 0;
    border-bottom: 1px solid #f0eadf;
    border-radius: 8px;

    background: transparent;
    color: #233e50;

    font: inherit;
    cursor: pointer;
}

.tadabbur-surah-option:hover {
    background: #f8f0df;
}

.tadabbur-surah-option.is-selected {
    background: #e8f4ef;
    color: #075b49;
    font-weight: 800;
}

.tadabbur-surah-number {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex: 0 0 34px;

    border: 1px solid #e1c88f;
    border-radius: 9px;

    color: #8a641d;
    font-size: .85rem;
    font-weight: 800;
}

.tadabbur-surah-name {
    flex: 1;
    font-weight: 700;
}

.tadabbur-surah-meta {
    color: #84909a;
    font-size: .76rem;
    white-space: nowrap;
}


/* =========================================================
   11. MODAL FOOTER
========================================================= */

.tadabbur-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 12px 18px;
    border-top: 1px solid #eee5d3;

    color: #7b8794;
    font-size: .82rem;
}

.tadabbur-done-btn {
    border: 0;
    border-radius: 999px;

    padding: 9px 17px;

    color: #fff;
    background: #0b604e;

    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   12. GRID NOMOR AYAT
========================================================= */

.tadabbur-ayah-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 9px;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 16px;
    max-height: 56vh;

    scrollbar-width: thin;
}

.tadabbur-ayah-option {
    min-height: 43px;

    border: 1px solid #e5d9c2;
    border-radius: 10px;

    color: #264456;
    background: #fff;

    font: inherit;
    font-weight: 750;

    cursor: pointer;
}

.tadabbur-ayah-option:hover {
    border-color: #c49a4b;
    background: #fff6e5;
}

.tadabbur-ayah-option.is-selected {
    border-color: #0b604e;
    color: #fff;
    background: #0b604e;
}


/* =========================================================
   13. AKSESIBILITAS
========================================================= */

.sr-only {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

body.tadabbur-modal-open {
    overflow: hidden;
}


/* =========================================================
   14. RESPONSIVE TABLET DAN HP
========================================================= */

@media (max-width: 768px) {

    .tadabbur-cover-section {
        padding: 0 12px;
    }

    .tadabbur-cover-card {
        width: min(100%, 560px);
    }

    .tadabbur-cover-heading h2 {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
    }

}


/* =========================================================
   15. RESPONSIVE HP
========================================================= */

@media (max-width: 480px) {

    .tadabbur-cover-section {
        padding: 0 10px;
        margin: 24px auto 36px;
    }

    .tadabbur-cover-heading {
        margin-bottom: 18px;
    }

    .tadabbur-cover-card {
        border-radius: 8px;
    }

    .tadabbur-ayah-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        padding: 13px;
    }

    .tadabbur-modal {
        padding: 10px;
    }

    .tadabbur-modal-panel {
        border-radius: 15px;
    }

}


/* =========================================================
   16. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tadabbur-secondary-btn,
    .tadabbur-primary-btn,
    .cover-hotspot {
        transition: none;
    }

}


/* =========================================================
   17. FINAL THEME FIX — LIGHT MODE
========================================================= */

body:not(.dark) .tadabbur-cover-section {
    color: #334155;
}

body:not(.dark) .tadabbur-cover-section
.tadabbur-cover-heading h2 {
    color: #14213D !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

body:not(.dark) .tadabbur-cover-section
.tadabbur-cover-heading p {
    color: #526174 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

body:not(.dark) .tadabbur-cover-section
.tadabbur-eyebrow {
    color: #B58A37 !important;
}

body:not(.dark) .tadabbur-cover-section
.tadabbur-url-note {
    color: #64748B !important;
}

body:not(.dark) .tadabbur-cover-section
.tadabbur-secondary-btn {
    color: #735018;
    background: #FFFFFF;
    border: 1px solid #C9A45D;
}

body:not(.dark) .tadabbur-cover-section
.tadabbur-primary-btn {
    color: #FFFFFF;
    background: linear-gradient(
        135deg,
        #075B49,
        #0B8065
    );
}


/* =========================================================
   18. DARK MODE
========================================================= */

body.dark .tadabbur-cover-section
.tadabbur-cover-heading h2 {
    color: #F8FAFC !important;
    opacity: 1 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

body.dark .tadabbur-cover-section
.tadabbur-cover-heading p {
    color: #CBD5E1 !important;
}

body.dark .tadabbur-cover-section
.tadabbur-eyebrow {
    color: #E5B85C !important;
}

body.dark .tadabbur-cover-section
.tadabbur-url-note {
    color: #AAB8C8 !important;
}


/* =========================================================
   19. LABEL SURAT DAN AYAT PADA SAMPUL
   Tetap krem pada Light Mode dan Dark Mode
========================================================= */

.tadabbur-cover-section .cover-selection {
    background: rgba(255, 244, 216, .98) !important;
    color: #38230E !important;

    border: 1px solid #D6AD62;
    border-radius: 7px;

    height: 4.5%;
    padding: 2px 5px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    text-shadow: none !important;
}

.tadabbur-cover-section .cover-selection-divider {
    color: #A87520 !important;
}


/* =========================================================
   20. FINAL FIX — KOTAK IDENTITAS SURAT & AYAT
========================================================= */

.tadabbur-cover-card .cover-selection {
    translate: 20px -49px;

    width: 40%;
    height: 4.5%;

    box-sizing: border-box;
    padding: 7px 10px;

    font-size: inherit;
    z-index: 20;

    pointer-events: none;
}


/* =========================================================
   21. FINAL NAVIGATION — DUA AREA KETUK
   KIRI  : PILIH SURAT
   KANAN : PILIH AYAT
========================================================= */

/* Area kiri: memilih surat */

.tadabbur-cover-card .cover-hotspot-surah {
    left: 26%;
    top: 39.6%;

    width: 27%;
    height: 4.5%;

    transform: translate(20px, -49px);
    z-index: 25;
}

/* Area kanan: memilih nomor ayat */

.tadabbur-cover-card .cover-hotspot-ayah {
    left: 53%;
    top: 39.6%;

    width: 13%;
    height: 4.5%;

    transform: translate(20px, -49px);
    z-index: 25;
}


/* =========================================================
   22. TOOLTIP DAN INTERAKSI HOTSPOT
========================================================= */

.tadabbur-cover-card .cover-hotspot {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.tadabbur-cover-card .cover-hotspot:focus-visible {
    outline: 2px solid #d9a441;
    outline-offset: 2px;
}

/* Pada komputer, hotspot tetap menggunakan pointer klik */

@media (hover: hover) and (pointer: fine) {

    .tadabbur-cover-card .cover-hotspot-surah,
    .tadabbur-cover-card .cover-hotspot-ayah {
        cursor: pointer;
    }

}

/* =========================================================
   SERI TADABBUR AL-QUR'AN
   PREMIUM ISLAMIC GLASSMORPHISM
   EMERALD & GOLD EDITION
   KLINIKINDONESIA.COM
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
========================================================= */

.tadabbur-modal {
    --td-bg: #041a2b;
    --td-navy: #082b43;
    --td-navy-light: #10445b;
    --td-emerald: #087866;
    --td-emerald-light: #12a58b;
    --td-gold: #e2bb6c;
    --td-gold-light: #ffe6a9;
    --td-white: #f8f5eb;
    --td-muted: #a9c0cc;
    --td-line: rgba(174, 218, 216, .19);
}


/* =========================================================
   2. MODAL BACKDROP
========================================================= */

.tadabbur-modal {
    padding: 14px;
    align-items: center;
    justify-content: center;
}

.tadabbur-modal-backdrop {
    background:
        radial-gradient(
            ellipse at 50% 35%,
            rgba(8, 104, 110, .23),
            transparent 65%
        ),
        rgba(1, 12, 25, .84);

    backdrop-filter: blur(11px) saturate(130%);
    -webkit-backdrop-filter: blur(11px) saturate(130%);
}


/* =========================================================
   3. PREMIUM MODAL PANEL
========================================================= */

.tadabbur-modal-panel {
    width: min(100%, 560px);
    max-height: min(88vh, 790px);
    max-height: min(88dvh, 790px);

    border: 1px solid rgba(80, 215, 199, .72);
    border-radius: 23px;

    color: var(--td-white);

    background:
        radial-gradient(
            ellipse at 95% 0%,
            rgba(15, 150, 135, .22),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #092e47 0%,
            #061f35 48%,
            #031827 100%
        );

    box-shadow:
        0 0 0 1px rgba(226, 187, 108, .15),
        0 0 24px rgba(24, 218, 194, .16),
        0 25px 90px rgba(0, 0, 0, .65);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    animation: tadabburModalEnter .32s ease both;
}

@keyframes tadabburModalEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.975);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Garis cahaya di bagian atas */

.tadabbur-modal-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #54ead7,
        #ffe2a0,
        #54ead7,
        transparent
    );

    box-shadow: 0 0 15px rgba(65, 240, 218, .65);
    z-index: 5;
    pointer-events: none;
}


/* =========================================================
   4. PREMIUM HEADER
========================================================= */

.tadabbur-modal-header {
    position: relative;

    padding: 25px 23px 20px;

    border-bottom: 1px solid var(--td-line);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(22, 162, 146, .23),
            transparent 48%
        ),
        linear-gradient(
            120deg,
            rgba(13, 68, 88, .72),
            rgba(5, 35, 55, .55)
        );
}

.tadabbur-modal-header .tadabbur-eyebrow {
    color: var(--td-gold);
    font-size: .72rem;
    letter-spacing: .17em;
}

.tadabbur-modal-header h3 {
    margin: 7px 0 0;

    color: #fff6df;
    font-size: clamp(1.45rem, 4vw, 1.8rem);
    font-weight: 850;
    letter-spacing: -.025em;

    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.tadabbur-modal-subtitle {
    color: #8edbd0;
    font-weight: 600;
}


/* =========================================================
   5. TOMBOL CLOSE
========================================================= */

.tadabbur-modal-close {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(226, 187, 108, .45);
    border-radius: 50%;

    color: #ffe8b1;

    background: rgba(255, 255, 255, .07);

    font-size: 27px;

    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, .04);

    transition: .25s ease;
}

.tadabbur-modal-close:hover {
    color: #082b43;

    border-color: var(--td-gold-light);

    background: var(--td-gold);

    transform: rotate(90deg);

    box-shadow:
        0 0 18px rgba(226, 187, 108, .4);
}


/* =========================================================
   6. SEARCH LABEL
========================================================= */

.tadabbur-search-label {
    padding: 17px 22px 7px;

    color: #c4d9dc;

    font-size: .84rem;
    font-weight: 750;
}


/* =========================================================
   7. PREMIUM SEARCH INPUT
========================================================= */

.tadabbur-search {
    width: calc(100% - 44px);

    margin: 0 22px 15px;
    padding: 14px 17px;

    box-sizing: border-box;

    border: 1px solid rgba(103, 207, 192, .65);
    border-radius: 13px;

    color: #fff8e8;
    background:
        linear-gradient(
            135deg,
            rgba(17, 80, 99, .82),
            rgba(4, 35, 55, .92)
        );

    font-size: 16px;

    outline: none;

    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, .18),
        0 0 12px rgba(29, 188, 171, .06);

    transition: .25s ease;
}

.tadabbur-search::placeholder {
    color: #9bb4c1;
    opacity: 1;
}

.tadabbur-search:focus {
    border-color: #6ef4dc;

    box-shadow:
        0 0 0 3px rgba(64, 218, 195, .15),
        0 0 20px rgba(64, 218, 195, .17);
}


/* =========================================================
   8. SURAH LIST CONTAINER
========================================================= */

.tadabbur-modal-list {
    flex: 1;
    min-height: 100px;
    max-height: none;

    padding: 3px 15px 15px;

    overflow-y: auto;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: #32b7a5 rgba(255, 255, 255, .06);
}


/* Chrome / Samsung Internet scrollbar */

.tadabbur-modal-list::-webkit-scrollbar,
.tadabbur-ayah-grid::-webkit-scrollbar {
    width: 6px;
}

.tadabbur-modal-list::-webkit-scrollbar-track,
.tadabbur-ayah-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
    border-radius: 10px;
}

.tadabbur-modal-list::-webkit-scrollbar-thumb,
.tadabbur-ayah-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #50d9c4,
        #138d80
    );

    border-radius: 10px;
}


/* =========================================================
   9. PREMIUM SURAH CARD
========================================================= */

.tadabbur-surah-option {
    position: relative;

    min-height: 61px;

    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 8px;
    padding: 10px 13px;

    border: 1px solid rgba(153, 203, 211, .25);
    border-radius: 14px;

    color: #f1f7f6;

    background:
        linear-gradient(
            110deg,
            rgba(24, 78, 99, .88),
            rgba(7, 40, 61, .92)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .045),
        0 4px 12px rgba(0, 0, 0, .13);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.tadabbur-surah-option::after {
    content: "›";

    margin-left: 2px;

    color: #9ee8da;

    font-size: 27px;
    line-height: 1;

    opacity: .85;
}


/* =========================================================
   10. NOMOR SURAT — GOLD MEDALLION
========================================================= */

.tadabbur-surah-number {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;

    display: grid;
    place-items: center;

    border: 1px solid #dfbd71;
    border-radius: 12px;

    color: #ffe4a3;

    background:
        linear-gradient(
            145deg,
            rgba(199, 151, 65, .25),
            rgba(104, 74, 28, .18)
        );

    font-size: .88rem;
    font-weight: 850;

    box-shadow:
        inset 0 0 9px rgba(255, 225, 161, .08),
        0 0 10px rgba(222, 178, 90, .09);
}


/* =========================================================
   11. NAMA SURAT
========================================================= */

.tadabbur-surah-name {
    flex: 1;
    min-width: 0;

    color: #f6f6ee;

    font-size: .98rem;
    font-weight: 750;
    letter-spacing: -.01em;
}

.tadabbur-surah-meta {
    padding: 6px 10px;

    border: 1px solid rgba(141, 205, 206, .29);
    border-radius: 999px;

    color: #c5dcdf;

    background: rgba(2, 26, 44, .52);

    font-size: .73rem;
    font-weight: 650;

    white-space: nowrap;
}


/* =========================================================
   12. SURAH CARD HOVER
========================================================= */

.tadabbur-surah-option:hover {
    transform: translateY(-2px);

    border-color: rgba(87, 227, 208, .75);

    background:
        linear-gradient(
            110deg,
            rgba(20, 115, 105, .8),
            rgba(8, 60, 73, .95)
        );

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .18),
        0 0 15px rgba(49, 210, 185, .10);
}


/* =========================================================
   13. SURAH TERPILIH — GOLD + EMERALD
========================================================= */

.tadabbur-surah-option.is-selected {
    border: 1px solid #f1d18b;

    color: #fff7dc;

    background:
        linear-gradient(
            105deg,
            #147c69 0%,
            #075d59 55%,
            #073e52 100%
        );

    box-shadow:
        inset 0 0 20px rgba(255, 228, 160, .08),
        0 0 0 1px rgba(226, 187, 108, .2),
        0 0 19px rgba(226, 187, 108, .16);
}

.tadabbur-surah-option.is-selected
.tadabbur-surah-number {
    color: #173b3a;

    background: linear-gradient(
        145deg,
        #ffe9a9,
        #d6a84d
    );

    border-color: #fff0bd;

    box-shadow: 0 0 13px rgba(255, 220, 135, .35);
}

.tadabbur-surah-option.is-selected
.tadabbur-surah-name {
    color: #fff4d5;
}

.tadabbur-surah-option.is-selected
.tadabbur-surah-meta {
    color: #ffe9b6;

    border-color: rgba(255, 226, 162, .5);

    background: rgba(2, 39, 46, .4);
}


/* =========================================================
   14. FOOTER PREMIUM
========================================================= */

.tadabbur-modal-footer {
    position: relative;

    flex-shrink: 0;

    padding: 15px 19px;

    border-top: 1px solid rgba(151, 209, 205, .22);

    color: #b7cbd0;

    background:
        linear-gradient(
            100deg,
            rgba(7, 47, 66, .98),
            rgba(4, 30, 48, .99)
        );

    box-shadow:
        0 -8px 20px rgba(0, 0, 0, .13);
}

.tadabbur-modal-footer > span {
    font-size: .82rem;
    font-weight: 650;
}


/* =========================================================
   15. BUTTON SELESAI
========================================================= */

.tadabbur-done-btn {
    min-width: 100px;
    min-height: 42px;

    padding: 10px 21px;

    border: 1px solid #ffe4a1;
    border-radius: 999px;

    color: #163b39;

    background: linear-gradient(
        135deg,
        #ffe9ad,
        #d7a447
    );

    font-size: .88rem;
    font-weight: 850;

    box-shadow:
        0 3px 13px rgba(225, 177, 82, .23);

    transition: .25s ease;
}

.tadabbur-done-btn:hover {
    transform: translateY(-2px);

    background: linear-gradient(
        135deg,
        #fff1c7,
        #e6bb65
    );

    box-shadow:
        0 5px 20px rgba(225, 177, 82, .4);
}


/* =========================================================
   16. AYAH GRID
========================================================= */

.tadabbur-ayah-grid {
    flex: 1;
    min-height: 120px;
    max-height: none;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    align-content: start;

    gap: 10px;

    padding: 19px;

    overflow-y: auto;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: #32b7a5 rgba(255, 255, 255, .06);
}


/* =========================================================
   17. AYAH NUMBER CARD
========================================================= */

.tadabbur-ayah-option {
    position: relative;

    min-height: 46px;

    border: 1px solid rgba(140, 197, 204, .32);
    border-radius: 12px;

    color: #e6f2ef;

    background:
        linear-gradient(
            145deg,
            rgba(22, 77, 97, .85),
            rgba(6, 39, 60, .96)
        );

    font-size: .95rem;
    font-weight: 800;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 3px 8px rgba(0, 0, 0, .12);

    transition: .2s ease;
}

.tadabbur-ayah-option:hover {
    transform: translateY(-2px);

    border-color: #64e6d2;

    color: #fff2c8;

    background: #126d68;

    box-shadow:
        0 0 14px rgba(64, 218, 195, .15);
}


/* =========================================================
   18. AYAH TERPILIH
========================================================= */

.tadabbur-ayah-option.is-selected {
    border: 1px solid #ffe4a1;

    color: #173e3b;

    background: linear-gradient(
        145deg,
        #ffe9ad,
        #d7a447
    );

    box-shadow:
        0 0 0 2px rgba(226, 187, 108, .14),
        0 0 16px rgba(226, 187, 108, .22);
}


/* =========================================================
   19. FOCUS ACCESSIBILITY
========================================================= */

.tadabbur-surah-option:focus-visible,
.tadabbur-ayah-option:focus-visible,
.tadabbur-modal-close:focus-visible,
.tadabbur-done-btn:focus-visible {
    outline: 2px solid #fff0bd;
    outline-offset: 3px;
}


/* =========================================================
   20. RESPONSIVE TABLET
========================================================= */

@media (min-width: 600px) {

    .tadabbur-modal-panel {
        width: min(100%, 580px);
        border-radius: 25px;
    }

    .tadabbur-modal-header {
        padding: 28px 26px 21px;
    }

    .tadabbur-modal-list {
        padding-right: 17px;
        padding-left: 17px;
    }

    .tadabbur-surah-option {
        min-height: 65px;
        padding: 11px 14px;
    }

    .tadabbur-ayah-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        padding: 22px;
    }

}


/* =========================================================
   21. RESPONSIVE HP
========================================================= */

@media (max-width: 599px) {

    .tadabbur-modal {
        padding: 10px;
    }

    .tadabbur-modal-panel {
        width: 100%;
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 19px;
    }

    .tadabbur-modal-header {
        padding: 20px 17px 15px;
    }

    .tadabbur-search-label {
        padding-left: 17px;
    }

    .tadabbur-search {
        width: calc(100% - 34px);
        margin-right: 17px;
        margin-left: 17px;
    }

    .tadabbur-surah-option {
        gap: 9px;
        padding: 10px 9px;
    }

    .tadabbur-surah-name {
        font-size: .91rem;
    }

    .tadabbur-surah-meta {
        padding: 5px 8px;
        font-size: .68rem;
    }

    .tadabbur-ayah-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 9px;
        padding: 14px;
    }

    .tadabbur-ayah-option {
        min-height: 43px;
    }

    .tadabbur-modal-footer {
        padding: 12px 15px;
    }

}


/* =========================================================
   22. LANDSCAPE TABLET
========================================================= */

@media (orientation: landscape) and (min-width: 700px) {

    .tadabbur-modal-panel {
        max-height: 88vh;
        max-height: 88dvh;
        width: min(100%, 620px);
    }

    .tadabbur-modal-header {
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .tadabbur-search-label {
        padding-top: 10px;
    }

    .tadabbur-search {
        margin-bottom: 9px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .tadabbur-modal-footer {
        padding-top: 10px;
        padding-bottom: 10px;
    }

}


/* =========================================================
   23. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tadabbur-modal-panel {
        animation: none;
    }

    .tadabbur-surah-option,
    .tadabbur-ayah-option,
    .tadabbur-modal-close,
    .tadabbur-done-btn {
        transition: none;
    }

}

/* =========================================================
   24. NAMA ARAB SURAT
========================================================= */

.tadabbur-surah-arabic {
    flex: 0 0 auto;

    color: #e6c77f;

    font-family: "Noto Naskh Arabic", "Amiri", serif;
    font-size: 1.15rem;
    font-weight: 600;

    text-align: center;
    white-space: nowrap;

    margin: 0 5px;
}

.tadabbur-surah-option.is-selected
.tadabbur-surah-arabic {
    color: #fff0bd;
}

@media (max-width: 480px) {

    .tadabbur-surah-arabic {
        font-size: .95rem;
        margin: 0 2px;
    }

}
