/* =====================================================
   ALKITAB GKPB MDC JOMBANG
   MODERN GLASS UI V4
===================================================== */

:root {
    --primary: #087f8c;
    --primary-dark: #075f6a;
    --secondary: #20b8a7;

    --background: #eef7f7;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;

    --text: #102a36;
    --muted: #71858f;
    --border: rgba(24, 76, 88, 0.10);

    --primary-soft: rgba(8, 127, 140, 0.10);

    --shadow-small:
        0 5px 18px rgba(28, 73, 83, 0.08);

    --shadow-medium:
        0 18px 50px rgba(28, 73, 83, 0.13);

    --shadow-large:
        0 24px 80px rgba(14, 56, 66, 0.20);
}

/* DARK MODE */

body.dark {
    --background: #07161b;
    --surface: rgba(12, 31, 38, 0.88);
    --surface-solid: #0d2229;

    --text: #edfafa;
    --muted: #9bb0b8;
    --border: rgba(216, 248, 248, 0.09);

    --primary-soft: rgba(47, 208, 190, 0.13);

    --shadow-small:
        0 6px 20px rgba(0, 0, 0, 0.22);

    --shadow-medium:
        0 18px 55px rgba(0, 0, 0, 0.34);
}

/* DASAR */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding-bottom: 112px;

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(64, 215, 197, 0.20),
            transparent 27%
        ),
        radial-gradient(
            circle at 94% 6%,
            rgba(87, 148, 255, 0.18),
            transparent 28%
        ),
        var(--background);

    overflow-x: hidden;
}

/* CAHAYA LATAR */

.ambient {
    position: fixed;
    z-index: -1;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    filter: blur(90px);
    opacity: 0.28;

    pointer-events: none;
}

.ambient-one {
    top: -100px;
    left: -100px;
    background: #4be0cf;
}

.ambient-two {
    top: 100px;
    right: -130px;
    background: #71a5ff;
}

/* SVG */

svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo svg,
.daily-orb svg {
    fill: currentColor;
    stroke: none;
}

/* HEADER */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;

    width: 100%;
    max-width: none;
    height: 76px;

    margin: 0;
    padding:
        calc(10px + env(safe-area-inset-top))
        max(18px, calc((100% - 760px) / 2));

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

    background: rgba(238, 247, 247, 0.80);
    border-bottom: 1px solid var(--border);

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

body.dark .topbar {
    background: rgba(7, 22, 27, 0.82);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--text);
    text-decoration: none;
}

.logo {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    color: #ffffff;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 9px 22px rgba(8, 127, 140, 0.25);
}

.logo svg {
    width: 23px;
    height: 23px;
}

.brand-copy b {
    display: block;

    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-copy small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.top-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    padding: 0;

    color: var(--text);

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: var(--shadow-small);

    cursor: pointer;
    transition: 0.2s ease;
}

.icon-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.font-button {
    font-size: 14px;
    font-weight: 850;
}

/* KONTEN */

main {
    width: min(760px, 100%);

    margin: auto;
    padding: 19px 16px 35px;
}

/* FIRMAN HARI INI */

.hero {
    position: relative;
    overflow: hidden;

    padding: 27px 64px 27px 27px;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 25px;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(111, 239, 220, 0.44),
            transparent 33%
        ),
        linear-gradient(
            140deg,
            #075d6b,
            #087f8c 54%,
            #17a696
        );

    box-shadow:
        0 22px 55px rgba(4, 91, 103, 0.27);
}

.hero::after {
    content: "";

    position: absolute;
    right: -48px;
    bottom: -90px;

    width: 220px;
    height: 220px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.daily-orb {
    position: absolute;
    right: 27px;
    bottom: 23px;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(14px);
}

.daily-orb svg {
    width: 25px;
    height: 25px;
}

.daily-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;

    width: 34px;
    height: 34px;

    color: rgba(255, 255, 255, 0.86);
    font-size: 25px;
    line-height: 1;

    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;

    cursor: pointer;
}

.daily-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero.dismissed {
    display: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 10px;

    color: rgba(255, 255, 255, 0.77);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 7px;
    height: 7px;

    background: #76f4df;
    border-radius: 50%;

    box-shadow:
        0 0 12px rgba(118, 244, 223, 0.85);
}

.hero blockquote {
    position: relative;
    z-index: 2;

    max-width: 620px;

    margin: 0 0 18px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.55;
}

.daily-open {
    position: relative;
    z-index: 2;

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

    padding: 10px 14px;

    color: #075d6b;
    font-size: 13px;
    font-weight: 850;

    background: #ffffff;
    border: 0;
    border-radius: 12px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.14);

    cursor: pointer;
    transition: 0.2s ease;
}

.daily-open:hover {
    transform: translateY(-2px);
}

.daily-open span {
    font-size: 17px;
}

/* PENCARIAN */

.search-wrap {
    margin: 14px 0;
}

.search {
    min-height: 57px;

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

    padding: 6px 10px 6px 17px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 17px;

    box-shadow: var(--shadow-small);

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

.search:focus-within {
    border-color: rgba(8, 127, 140, 0.35);

    box-shadow:
        0 0 0 4px rgba(8, 127, 140, 0.08),
        var(--shadow-small);
}

.search-icon {
    display: grid;
    place-items: center;

    color: var(--muted);
}

.search-icon svg {
    width: 21px;
    height: 21px;
}

.search input {
    flex: 1;
    min-width: 0;

    padding: 12px 0;

    color: var(--text);
    font-size: 15px;

    background: transparent;
    border: 0;
    outline: none;
}

.search input::placeholder {
    color: var(--muted);
}

.search kbd {
    padding: 6px 8px;

    color: var(--muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 750;

    background: var(--primary-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.search button {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    padding: 0;

    color: var(--muted);
    font-size: 22px;

    background: transparent;
    border: 0;
    border-radius: 50%;

    cursor: pointer;
}

/* READER */

.reader {
    padding: 20px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 23px;

    box-shadow: var(--shadow-medium);

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

.reader-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.reader-kicker {
    color: var(--primary);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.15em;
}

.reader-label {
    margin-top: 3px;

    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.version-chip {
    min-width: 40px;

    padding: 7px 10px;

    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    text-align: center;

    background: var(--primary-soft);
    border: 1px solid rgba(8, 127, 140, 0.12);
    border-radius: 10px;
}

.selectors {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
    gap: 10px;
}

.select-btn {
    min-width: 0;

    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;

    padding: 12px;

    color: var(--text);
    text-align: left;

    background: rgba(127, 160, 175, 0.07);
    border: 1px solid var(--border);
    border-radius: 15px;

    cursor: pointer;
    transition: 0.2s ease;
}

.select-btn:hover {
    border-color: rgba(8, 127, 140, 0.27);
    transform: translateY(-1px);
}

.select-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    color: var(--primary);

    background: var(--primary-soft);
    border-radius: 12px;
}

.select-icon svg {
    width: 20px;
    height: 20px;
}

.select-copy {
    min-width: 0;
}

.select-copy small,
.select-copy strong {
    display: block;
}

.select-copy small {
    margin-bottom: 3px;

    color: var(--muted);
    font-size: 10px;
}

.select-copy strong {
    overflow: hidden;

    font-size: 15px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron {
    color: var(--muted);
    font-size: 18px;
    text-align: center;
}

/* JUDUL PASAL */

.chapter-head {
    margin-top: 20px;
    padding: 21px 0 15px;

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

    text-align: center;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.chapter-head p {
    margin: 0 0 5px;

    color: var(--muted);
    font-size: 9px;
    font-weight: 850;

    letter-spacing: 0.13em;
}

.chapter-head h1 {
    margin: 0;

    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 700;

    letter-spacing: -0.03em;
}

.round {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    padding: 0;

    color: var(--text);
    font-size: 28px;

    background: var(--primary-soft);
    border: 1px solid var(--border);
    border-radius: 50%;

    cursor: pointer;
    transition: 0.2s ease;
}

.round:hover {
    color: #ffffff;
    background: var(--primary);
}

/* AYAT */

.verses {
    padding: 17px 1px 4px;
}

.verse {
    margin: 0;
    padding: 7px 9px;

    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--font);
    line-height: 1.82;

    border-radius: 11px;

    cursor: pointer;
    transition: 0.18s ease;
}

.verse:hover,
.verse.selected {
    background: var(--primary-soft);
}

.verse sup {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;

    margin-right: 5px;

    color: var(--primary);

    font-family: Inter, Arial, sans-serif;
    font-size: 10px;
    font-weight: 900;
}

/* NAVIGASI BAWAH */

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(11px, env(safe-area-inset-bottom));
    z-index: 50;

    width: min(500px, calc(100% - 22px));

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;

    padding: 7px;

    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 21px;

    box-shadow:
        0 15px 45px rgba(18, 56, 65, 0.22);

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

    transform: translateX(-50%);
}

body.dark .bottom-nav {
    background: rgba(12, 31, 38, 0.90);
    border-color: var(--border);
}

.bottom-nav button {
    min-height: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    padding: 5px 2px;

    color: var(--muted);

    background: transparent;
    border: 0;
    border-radius: 15px;

    cursor: pointer;
    transition: 0.2s ease;
}

.bottom-nav button span {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;
}

.bottom-nav svg {
    width: 21px;
    height: 21px;
}

.bottom-nav button b {
    font-size: 9px;
    font-weight: 750;
}

.bottom-nav button.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.bottom-nav button.active span {
    transform: translateY(-1px);
}

/* DIALOG */

dialog {
    width: min(620px, calc(100% - 22px));
    max-height: 82vh;

    padding: 0;

    color: var(--text);

    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 24px;

    box-shadow: var(--shadow-large);
}

dialog::backdrop {
    background: rgba(2, 13, 17, 0.58);

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

.sheet-head {
    padding: 17px 19px;

    border-bottom: 1px solid var(--border);
}

.sheet-head h2 {
    font-size: 19px;
}

.sheet-body {
    padding: 15px;
}

.choice {
    color: var(--text);

    background: rgba(127, 160, 175, 0.07);
    border: 1px solid var(--border);
    border-radius: 12px;

    transition: 0.18s ease;
}

.choice:hover {
    border-color: rgba(8, 127, 140, 0.30);
}

.choice.active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    border-color: transparent;
}

/* MENU AYAT */

.verse-menu {
    padding: 7px;

    color: #ffffff;

    background: rgba(11, 39, 47, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 15px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.34);

    backdrop-filter: blur(20px);
}

.verse-menu button {
    border-radius: 9px;
}

.verse-menu button:hover {
    background: rgba(255, 255, 255, 0.10);
}

/* HASIL PENCARIAN */

.search-results {
    margin-top: 0;
}

.section-title h2 {
    color: var(--text);
    font-size: 24px;
}

.result {
    padding: 15px 5px;

    border-bottom: 1px solid var(--border);
}

.result b {
    color: var(--primary);
}

/* NOTIFIKASI */

.toast {
    top: 89px;

    color: #ffffff;

    background: rgba(9, 47, 56, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.24);

    backdrop-filter: blur(18px);
}

/* HP */

@media (max-width: 560px) {

    body {
        padding-bottom: 100px;
    }

    .topbar {
        height: 68px;

        padding:
            calc(7px + env(safe-area-inset-top))
            13px;
    }

    .logo {
        width: 39px;
        height: 39px;

        border-radius: 12px;
    }

    .brand-copy b {
        font-size: 16px;
    }

    .brand-copy small {
        font-size: 8px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;

        border-radius: 12px;
    }

    main {
        padding: 12px 11px 30px;
    }

    .hero {
        padding: 21px 48px 21px 18px;

        border-radius: 20px;
    }

    .hero blockquote {
        font-size: 18px;
        line-height: 1.52;
    }

    .daily-orb {
        display: none;
    }

    .search {
        min-height: 54px;

        padding-left: 14px;

        border-radius: 15px;
    }

    .search kbd {
        display: none;
    }

    .reader {
        padding: 13px;

        border-radius: 19px;
    }

    .selectors {
        grid-template-columns:
            minmax(0, 1.65fr)
            minmax(108px, 1fr);

        gap: 8px;
    }

    .select-btn {
        grid-template-columns: 34px minmax(0, 1fr) 18px;

        gap: 8px;

        padding: 9px;

        border-radius: 13px;
    }

    .select-icon {
        width: 34px;
        height: 34px;

        border-radius: 10px;
    }

    .select-copy strong {
        font-size: 14px;
    }

    .chapter-head {
        margin-top: 15px;
        padding: 18px 0 13px;
    }

    .chapter-head h1 {
        font-size: 26px;
    }

    .round {
        width: 39px;
        height: 39px;
    }

    .verses {
        padding-top: 13px;
    }

    .verse {
        padding: 6px 4px;

        line-height: 1.78;
    }

    .bottom-nav {
        bottom: max(7px, env(safe-area-inset-bottom));

        width: calc(100% - 14px);

        padding: 5px;

        border-radius: 18px;
    }

    .bottom-nav button {
        min-height: 55px;

        border-radius: 13px;
    }

    .bottom-nav button b {
        font-size: 8px;
    }
}

/* HP KECIL */

@media (max-width: 370px) {

    .brand-copy small {
        display: none;
    }

    .selectors {
        grid-template-columns: 1fr;
    }

    .select-btn {
        grid-template-columns: 36px minmax(0, 1fr) 20px;
    }

    .bottom-nav button b {
        font-size: 7px;
    }
}