@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #0b3a2f;
    --secondary: #143a52;
    --accent: #836645;
    --bg: #f7f5f0;
    --text: #1f2a26;
    --muted: #61726a;
    --quran-arti: #0b3a8a;
    --quran-tafsir: #6b4f25;
    --quran-latin: #0b6a3d;
    --card: #ffffff;
    --card-surface: color-mix(in srgb, var(--card) 86%, transparent);
    --badge-surface: color-mix(in srgb, var(--primary) 10%, transparent);
    --badge-surface-strong: color-mix(in srgb, var(--primary) 16%, transparent);
    --badge-surface-secondary: color-mix(in srgb, var(--secondary) 12%, transparent);
    --badge-surface-gold: color-mix(in srgb, var(--mushaf-gold) 16%, transparent);
    --border: #e0e0d8;
    --page-padding: clamp(16px, 4vw, 2cm);
    --ornament-side-size: clamp(140px, 18vw, 280px);
    --ornament-side-size-sm: var(--ornament-side-size);
    --ornament-side-inset: 1cm;
    --ornament-side-inset-sm: clamp(18px, 3vw, 40px);
    --mushaf-gold: #b28a2e;
    --mushaf-gold-2: #836645;
    --mushaf-ornament-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 60'%3E%3Cdefs%3E%3Cpattern id='k' width='72' height='60' patternUnits='userSpaceOnUse'%3E%3Cg transform='translate(36 30)'%3E%3Cellipse cx='-18' cy='0' rx='16' ry='10' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Cellipse cx='18' cy='0' rx='16' ry='10' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Cellipse cx='0' cy='-18' rx='10' ry='16' fill='none' stroke='%23836645' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='18' rx='10' ry='16' fill='none' stroke='%23836645' stroke-width='1.2'/%3E%3Ccircle cx='0' cy='0' r='3.5' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3Cpath d='M-28 22L-18 12M18 -12L28 -22' stroke='%23b28a2e' stroke-width='1' opacity='.45' stroke-linecap='round'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='900' height='60' fill='url(%23k)' opacity='.32'/%3E%3Cpath d='M52 30H368' stroke='%23b28a2e' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M532 30H848' stroke='%23b28a2e' stroke-width='2' stroke-linecap='round'/%3E%3Cg transform='translate(450 30)'%3E%3Cpath d='M0-22L14 0 0 22 -14 0Z' fill='none' stroke='%23b28a2e' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle r='13' fill='none' stroke='%23836645' stroke-width='1.4'/%3E%3Cellipse cx='-10' cy='0' rx='9' ry='6' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3Cellipse cx='10' cy='0' rx='9' ry='6' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='-10' rx='6' ry='9' fill='none' stroke='%23836645' stroke-width='1.1'/%3E%3Cellipse cx='0' cy='10' rx='6' ry='9' fill='none' stroke='%23836645' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E");
    --mushaf-ornament-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 60'%3E%3Cdefs%3E%3Cpattern id='k' width='72' height='60' patternUnits='userSpaceOnUse'%3E%3Cg transform='translate(36 30)'%3E%3Cellipse cx='-18' cy='0' rx='16' ry='10' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Cellipse cx='18' cy='0' rx='16' ry='10' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Cellipse cx='0' cy='-18' rx='10' ry='16' fill='none' stroke='%23836645' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='18' rx='10' ry='16' fill='none' stroke='%23836645' stroke-width='1.2'/%3E%3Ccircle cx='0' cy='0' r='3.5' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3Cpath d='M-28 22L-18 12M18 -12L28 -22' stroke='%23b28a2e' stroke-width='1' opacity='.45' stroke-linecap='round'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='900' height='60' fill='url(%23k)' opacity='.32'/%3E%3Cpath d='M52 30H368' stroke='%23b28a2e' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M532 30H848' stroke='%23b28a2e' stroke-width='2' stroke-linecap='round'/%3E%3Cg transform='translate(450 30)'%3E%3Cpath d='M0-22L14 0 0 22 -14 0Z' fill='none' stroke='%23b28a2e' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle r='13' fill='none' stroke='%23836645' stroke-width='1.4'/%3E%3Cellipse cx='-10' cy='0' rx='9' ry='6' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3Cellipse cx='10' cy='0' rx='9' ry='6' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='-10' rx='6' ry='9' fill='none' stroke='%23836645' stroke-width='1.1'/%3E%3Cellipse cx='0' cy='10' rx='6' ry='9' fill='none' stroke='%23836645' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E");
    --mushaf-ornament-corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 116C40 92 40 40 116 4' stroke='%23b28a2e' stroke-width='2.2'/%3E%3Cpath d='M4 96C30 80 46 62 66 42 84 24 102 8 116 4' stroke='%23b28a2e' stroke-width='1.2' opacity='.6'/%3E%3Cpath d='M26 116C46 90 60 78 80 66 94 56 108 44 116 26' stroke='%23836645' stroke-width='1.5' opacity='.75'/%3E%3C/g%3E%3Cg transform='translate(34 34)'%3E%3Cellipse cx='-12' cy='0' rx='11' ry='7' fill='none' stroke='%23836645' stroke-width='1.6'/%3E%3Cellipse cx='12' cy='0' rx='11' ry='7' fill='none' stroke='%23836645' stroke-width='1.6'/%3E%3Cellipse cx='0' cy='-12' rx='7' ry='11' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Cellipse cx='0' cy='12' rx='7' ry='11' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Ccircle r='3' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3C/g%3E%3Cpath d='M20 64c8-10 20-10 28 0s20 10 28 0' stroke='%23b28a2e' stroke-width='1.2' opacity='.45' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    --mushaf-ornament-corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg transform='translate(120 0) scale(-1 1)'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 116C40 92 40 40 116 4' stroke='%23b28a2e' stroke-width='2.2'/%3E%3Cpath d='M4 96C30 80 46 62 66 42 84 24 102 8 116 4' stroke='%23b28a2e' stroke-width='1.2' opacity='.6'/%3E%3Cpath d='M26 116C46 90 60 78 80 66 94 56 108 44 116 26' stroke='%23836645' stroke-width='1.5' opacity='.75'/%3E%3C/g%3E%3Cg transform='translate(34 34)'%3E%3Cellipse cx='-12' cy='0' rx='11' ry='7' fill='none' stroke='%23836645' stroke-width='1.6'/%3E%3Cellipse cx='12' cy='0' rx='11' ry='7' fill='none' stroke='%23836645' stroke-width='1.6'/%3E%3Cellipse cx='0' cy='-12' rx='7' ry='11' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Cellipse cx='0' cy='12' rx='7' ry='11' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Ccircle r='3' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3C/g%3E%3Cpath d='M20 64c8-10 20-10 28 0s20 10 28 0' stroke='%23b28a2e' stroke-width='1.2' opacity='.45' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
    --mushaf-ornament-corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg transform='translate(0 120) scale(1 -1)'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 116C40 92 40 40 116 4' stroke='%23b28a2e' stroke-width='2.2'/%3E%3Cpath d='M4 96C30 80 46 62 66 42 84 24 102 8 116 4' stroke='%23b28a2e' stroke-width='1.2' opacity='.6'/%3E%3Cpath d='M26 116C46 90 60 78 80 66 94 56 108 44 116 26' stroke='%23836645' stroke-width='1.5' opacity='.75'/%3E%3C/g%3E%3Cg transform='translate(34 34)'%3E%3Cellipse cx='-12' cy='0' rx='11' ry='7' fill='none' stroke='%23836645' stroke-width='1.6'/%3E%3Cellipse cx='12' cy='0' rx='11' ry='7' fill='none' stroke='%23836645' stroke-width='1.6'/%3E%3Cellipse cx='0' cy='-12' rx='7' ry='11' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Cellipse cx='0' cy='12' rx='7' ry='11' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Ccircle r='3' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3C/g%3E%3Cpath d='M20 64c8-10 20-10 28 0s20 10 28 0' stroke='%23b28a2e' stroke-width='1.2' opacity='.45' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
    --mushaf-ornament-corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg transform='translate(120 120) scale(-1 -1)'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 116C40 92 40 40 116 4' stroke='%23b28a2e' stroke-width='2.2'/%3E%3Cpath d='M4 96C30 80 46 62 66 42 84 24 102 8 116 4' stroke='%23b28a2e' stroke-width='1.2' opacity='.6'/%3E%3Cpath d='M26 116C46 90 60 78 80 66 94 56 108 44 116 26' stroke='%23836645' stroke-width='1.5' opacity='.75'/%3E%3C/g%3E%3Cg transform='translate(34 34)'%3E%3Cellipse cx='-12' cy='0' rx='11' ry='7' fill='none' stroke='%23836645' stroke-width='1.6'/%3E%3Cellipse cx='12' cy='0' rx='11' ry='7' fill='none' stroke='%23836645' stroke-width='1.6'/%3E%3Cellipse cx='0' cy='-12' rx='7' ry='11' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Cellipse cx='0' cy='12' rx='7' ry='11' fill='none' stroke='%23b28a2e' stroke-width='1.4'/%3E%3Ccircle r='3' fill='none' stroke='%23b28a2e' stroke-width='1.2'/%3E%3C/g%3E%3Cpath d='M20 64c8-10 20-10 28 0s20 10 28 0' stroke='%23b28a2e' stroke-width='1.2' opacity='.45' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

@media (min-width: 1280px) {
    html {
        zoom: 0.80;
    }
}

body.dark {
    --badge-surface: color-mix(in srgb, var(--mushaf-gold) 14%, transparent);
    --badge-surface-strong: color-mix(in srgb, var(--mushaf-gold) 22%, transparent);
    --badge-surface-secondary: color-mix(in srgb, #7fd2ff 18%, transparent);
    --badge-surface-gold: color-mix(in srgb, var(--mushaf-gold) 24%, transparent);
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

img[src$="/assets/ornament.png"],
img[src$="assets/ornament.png"],
img[src$="ornament.png"] {
    height: auto;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.nav {
    position: sticky;
    top: 0;
    background: rgba(247, 245, 240, 0.82);
    border-bottom: 1px solid rgba(224, 224, 216, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    isolation: isolate;
    z-index: 10;
}

.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.72;
    background-image:
        linear-gradient(to bottom, rgba(247, 245, 240, 0.05), rgba(247, 245, 240, 0.95) 72%, rgba(247, 245, 240, 1)),
        var(--mushaf-ornament-top),
        var(--mushaf-ornament-top),
        var(--mushaf-ornament-bottom),
        var(--mushaf-ornament-corner-tl),
        var(--mushaf-ornament-corner-tr),
        var(--mushaf-ornament-corner-bl),
        var(--mushaf-ornament-corner-br);
    background-repeat: no-repeat, repeat-x, repeat-x, repeat-x, no-repeat, no-repeat, no-repeat, no-repeat;
    background-size:
        100% 100%,
        clamp(520px, 70vw, 900px) 44px,
        clamp(420px, 58vw, 760px) 34px,
        clamp(520px, 70vw, 900px) 44px,
        64px 64px,
        64px 64px,
        64px 64px,
        64px 64px;
    background-position:
        0 0,
        50% 0,
        50% 22px,
        50% 100%,
        0 0,
        100% 0,
        0 100%,
        100% 100%;
    z-index: 0;
    filter: saturate(1.1) contrast(1.05);
}

.nav::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background:
        conic-gradient(from 210deg at 50% 0, rgba(127, 210, 255, 0.14), rgba(255, 92, 213, 0.12), rgba(255, 221, 111, 0.14), rgba(89, 255, 196, 0.12), rgba(127, 210, 255, 0.14)),
        radial-gradient(520px 220px at 50% 0, rgba(178, 138, 46, 0.16), rgba(178, 138, 46, 0) 64%),
        radial-gradient(520px 220px at 0 0, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 60%),
        radial-gradient(520px 220px at 100% 0, rgba(20, 58, 82, 0.12), rgba(20, 58, 82, 0) 60%);
    background-blend-mode: screen, normal, normal, normal;
    z-index: 0;
    filter: saturate(1.15);
}

body.dark .nav {
    background: rgba(13, 18, 17, 0.72);
    border-bottom: 1px solid rgba(31, 42, 38, 0.9);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

body.dark .nav::before {
    opacity: 0.58;
    background-image:
        linear-gradient(to bottom, rgba(13, 18, 17, 0.05), rgba(13, 18, 17, 0.92) 72%, rgba(13, 18, 17, 1)),
        var(--mushaf-ornament-top),
        var(--mushaf-ornament-top),
        var(--mushaf-ornament-bottom),
        var(--mushaf-ornament-corner-tl),
        var(--mushaf-ornament-corner-tr),
        var(--mushaf-ornament-corner-bl),
        var(--mushaf-ornament-corner-br);
    filter: saturate(1.15) contrast(1.05);
}

body.dark .nav::after {
    opacity: 0.34;
    background:
        conic-gradient(from 210deg at 50% 0, rgba(127, 210, 255, 0.16), rgba(255, 92, 213, 0.12), rgba(255, 221, 111, 0.14), rgba(89, 255, 196, 0.12), rgba(127, 210, 255, 0.16)),
        radial-gradient(520px 220px at 50% 0, rgba(202, 162, 76, 0.18), rgba(202, 162, 76, 0) 64%),
        radial-gradient(520px 220px at 0 0, rgba(127, 210, 255, 0.14), rgba(127, 210, 255, 0) 60%),
        radial-gradient(520px 220px at 100% 0, rgba(202, 162, 76, 0.14), rgba(202, 162, 76, 0) 60%);
    background-blend-mode: screen, normal, normal, normal;
    filter: saturate(1.2);
}

.nav-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0 6px;
    min-height: 104px;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.nav-menu-toggle {
    display: none;
    margin-top: auto;
    margin-bottom: 2px;
}

@media (min-width: 769px) {
    .nav-menu-toggle {
        display: none !important;
    }
}

.nav-divider {
    width: 100%;
    height: 8px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0),
        var(--mushaf-gold),
        var(--mushaf-gold-2),
        var(--mushaf-gold),
        rgba(0, 0, 0, 0)
    );
    position: relative;
    z-index: 2;
}

.nav-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    align-self: center;
}

.nav-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 34px;
}

.nav-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav .sholat-countdown-widget.nav-countdown-widget {
    position: static;
    right: auto;
    top: auto;
    width: auto;
    margin-top: 2px;
    z-index: 1;
    pointer-events: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.nav .sholat-countdown-widget.nav-countdown-widget .sholat-countdown-body {
    padding: 0;
    gap: 4px;
    width: 100%;
    justify-content: flex-start;
}

.nav .sholat-countdown-widget.nav-countdown-widget .sholat-countdown-main {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
}

.nav .sholat-countdown-widget.nav-countdown-widget[data-collapsed="1"] {
    width: auto;
    height: auto;
}

.nav-home-button {
    padding: 10px;
    border-radius: 12px;
    min-width: 42px;
    min-height: 44px;
    color: #0b6a3d;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.18);
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    align-self: center;
}

.nav-home-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.nav-home-icon path {
    fill: currentColor;
}

.nav-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-top: 0;
}

.nav-brand-link:hover {
    color: var(--primary);
}

body.dark .nav-brand-link:hover {
    color: #7a4b00;
}

.nav-brand-logo {
    height: 34px;
    width: auto;
    border-radius: 10px;
}

.nav-brand-name {
    font-family: 'Amiri', serif;
    font-size: clamp(22px, 3.2vw, 28px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    position: relative;
    padding: 0 18px;
    background: linear-gradient(135deg, #0b6a3d, #1b8f5a, #0b3a2f);
    -webkit-background-clip: text;
    background-clip: text;
    color: #0b6a3d;
    text-shadow: 0 1px 1px rgba(0, 40, 24, 0.5), 0 0 14px rgba(11, 106, 61, 0.45);
}

.nav-brand-name::before,
.nav-brand-name::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #0b6a3d;
    text-shadow: 0 0 10px rgba(11, 106, 61, 0.55);
}

.nav-brand-name::before {
    left: 0;
}

.nav-brand-name::after {
    right: 0;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 500;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 2px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(178, 138, 46, 0.38);
    color: var(--quran-latin);
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    font-weight: 600;
    font-size: 16px;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
    box-shadow: 0 8px 18px rgba(63, 118, 255, 0.08);
}

.nav-quran-link .nav-quran-word,
.nav-quran-link .nav-quran-sep {
    transition: color 160ms ease, transform 160ms ease;
}

.nav-quran-link .nav-quran-word {
    display: inline-block;
}

.nav-quran-link .nav-quran-word-1:hover {
    color: #0b3a2f;
    transform: translateY(-0.5px);
}

.nav-quran-link .nav-quran-sep:hover {
    color: rgba(0, 0, 0, 0.55);
}

.nav-quran-link .nav-quran-word-2:hover {
    color: #1f5f86;
    transform: translateY(-0.5px);
}

body.dark .nav-quran-link .nav-quran-word-1:hover {
    color: #081f1a;
}

body.dark .nav-quran-link .nav-quran-sep:hover {
    color: rgba(0, 0, 0, 0.6);
}

body.dark .nav-quran-link .nav-quran-word-2:hover {
    color: #0c3d58;
}

.nav-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(178, 138, 46, 0.62);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
    color: var(--quran-latin);
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
}

body.dark .nav-links a:hover {
    border-color: rgba(202, 162, 76, 0.62);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
    color: var(--quran-latin);
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
}

body.dark .nav-links a {
    border-color: rgba(202, 162, 76, 0.38);
    color: var(--quran-latin);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.nav-links a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 58, 47, 0.14);
}

body.dark .nav-links a:focus-visible {
    box-shadow: 0 0 0 4px rgba(202, 162, 76, 0.16);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: auto;
    margin-bottom: 2px;
}

.nav-actions .button {
    border-radius: 10px;
    padding: 12px 16px;
    min-height: 44px;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    color: var(--quran-latin);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.18);
    border-color: rgba(178, 138, 46, 0.38);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.nav .button-icon {
    width: 22px;
    height: 22px;
    color: var(--quran-latin);
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.nav .button.ghost {
    border-color: rgba(178, 138, 46, 0.38);
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    color: var(--quran-latin);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.18);
}

body.dark .nav .button.ghost {
    border-color: rgba(202, 162, 76, 0.38);
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    color: var(--quran-latin);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.18);
}

.nav .button.icon-button {
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    border-color: rgba(63, 118, 255, 0.42);
    color: var(--quran-latin);
}

body.dark .nav .button.icon-button {
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    border-color: rgba(122, 170, 255, 0.5);
    color: var(--quran-latin);
}

.nav .nav-home-button {
    color: #0b6a3d;
}

.nav .nav-home-button .nav-home-icon {
    color: #0b6a3d;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-surface);
    color: var(--text);
    font-weight: 600;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 58, 47, 0.22);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

body.dark .button:hover {
    border-color: rgba(202, 162, 76, 0.22);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 58, 47, 0.18);
}

body.dark .button:focus-visible {
    box-shadow: 0 0 0 4px rgba(202, 162, 76, 0.2);
}

.button.primary {
    background: linear-gradient(135deg, var(--primary), #1b6b57);
    border-color: rgba(11, 58, 47, 0.28);
    color: #fff;
}

body.dark .button.primary {
    background: linear-gradient(135deg, #1b6b57, #2a8c73);
    border-color: rgba(202, 162, 76, 0.28);
}

.button.secondary {
    background: linear-gradient(135deg, var(--secondary), #1f5f86);
    border-color: rgba(20, 58, 82, 0.28);
    color: #fff;
}

body.dark .button.secondary {
    background: linear-gradient(135deg, #1f5f86, #2e7aa6);
    border-color: rgba(127, 210, 255, 0.22);
}

.button.accent {
    background: linear-gradient(135deg, var(--mushaf-gold), var(--mushaf-gold-2));
    border-color: rgba(178, 138, 46, 0.35);
    color: #fff;
}

body.dark .button.accent {
    border-color: rgba(202, 162, 76, 0.3);
}

.button.ghost {
    background: transparent;
    color: var(--text);
}

body.dark .button.ghost {
    color: #e6edea;
}

.button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.button.icon-button,
.nav-links a.icon-button {
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    border-color: rgba(178, 138, 46, 0.38);
    color: var(--quran-latin);
}

body.dark .button.icon-button,
body.dark .nav-links a.icon-button {
    background: linear-gradient(135deg, #ffffff, var(--mushaf-gold));
    border-color: rgba(202, 162, 76, 0.38);
    color: var(--quran-latin);
}

.button.icon-button:hover,
.nav-links a.icon-button:hover {
    border-color: rgba(178, 138, 46, 0.62);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

body.dark .button.icon-button:hover,
body.dark .nav-links a.icon-button:hover {
    border-color: rgba(202, 162, 76, 0.62);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.nav .nav-home-button {
    color: #0b6a3d;
}

.nav .nav-home-button .nav-home-icon,
.nav .nav-home-button .nav-home-icon path {
    color: #0b6a3d;
    fill: #0b6a3d;
}

.hero {
    padding: 64px 0;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero-card {
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.hero-title {
    font-size: 38px;
    margin: 0 0 12px;
}

.home-shell .hero-title {
    letter-spacing: -0.2px;
    color: var(--primary);
}

@supports (-webkit-background-clip: text) {
    .home-shell .hero-title {
        background: linear-gradient(135deg, var(--primary), var(--mushaf-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    body.dark .home-shell .hero-title {
        background: linear-gradient(135deg, #7fd2ff, var(--mushaf-gold));
    }
}

.hero-subtitle {
    color: var(--muted);
    margin: 0 0 24px;
}

.home-shell .hero-subtitle {
    color: var(--accent);
    font-size: clamp(18px, 2.1vw, 26px);
    font-weight: 700;
    letter-spacing: -0.12px;
    line-height: 1.25;
}

body.dark .home-shell .hero-subtitle {
    color: var(--mushaf-gold);
}

.quick-actions {
    display: grid;
    gap: 16px;
}

.home-shell .hero {
    align-items: start;
    justify-items: center;
    text-align: center;
}

.home-shell .quick-actions {
    max-width: 520px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-left: auto;
    margin-right: auto;
}

.home-shell .quick-actions .button {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    letter-spacing: 0.1px;
}

.home-progress-card {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.home-progress-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.home-progress-header .badge {
    margin: 0;
}

.home-progress-meta {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.home-progress-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-progress-value {
    font-weight: 600;
    color: var(--primary);
}

body.dark .home-progress-value {
    color: #7fd2ff;
}

.section {
    padding: 48px 0;
}

.section.quran-surah {
    padding: 28px 0;
}

.section.quran-surah + .section.quran-surah {
    padding-top: 8px;
}

.section.quran-surah:first-of-type {
    padding-bottom: 8px;
}

.section-title {
    font-size: 24px;
    margin: 0 0 20px;
    color: var(--primary);
}

.home-shell section.section > .section-title {
    color: var(--primary);
}

body.dark .home-shell section.section > .section-title {
    color: var(--primary);
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1200px) {
    .home-hero-card .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.surah-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.card .section-title,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    text-align: center;
}

.card > .badge {
    display: flex;
    width: fit-content;
    margin: 0 auto 12px;
    justify-content: center;
    font-size: 14px;
    padding: 6px 14px;
}

.card .translation,
.card .tafsir {
    text-align: center;
}

.sholat-related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.home-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 18px;
    padding: 20px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

a.home-card {
    text-decoration: none;
    color: inherit;
}

.home-card:hover {
    transform: translateY(-2px);
    border-color: rgba(178, 138, 46, 0.45);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

body.dark .home-card:hover {
    border-color: rgba(202, 162, 76, 0.45);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.home-card .section-title {
    font-size: 18px;
    margin: 6px 0 4px;
    color: var(--primary);
}

.home-card h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.home-card .translation {
    margin: 0;
    color: var(--accent);
    line-height: 1.65;
}

body.dark .home-card .section-title {
    color: var(--mushaf-gold);
}

body.dark .home-card .translation {
    color: rgba(230, 237, 234, 0.88);
}

.home-card.mushaf-illumination:hover {
    transform: translateY(-3px);
}

.home-intro-card {
    padding: 1cm;
    padding-top: calc(1cm + 12px);
    padding-bottom: calc(1cm + 12px);
    border-radius: 18px;
    margin: 0 0 22px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);
}

.home-intro-card .translation {
    text-align: left;
    color: var(--text);
    line-height: 1.75;
    margin: 0 0 12px;
}

.home-intro-card .translation:last-child {
    margin-bottom: 0;
}

body.dark .home-intro-card .translation {
    color: #e6edea;
}

.home-shell {
    position: relative;
    isolation: isolate;
}

.home-shell::before {
    content: "";
    position: absolute;
    inset: -18px 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    background-repeat: no-repeat;
    background-image:
        var(--mushaf-ornament-corner-tl),
        var(--mushaf-ornament-corner-tr),
        var(--mushaf-ornament-corner-bl),
        var(--mushaf-ornament-corner-br);
    background-size:
        clamp(70px, 9vw, 120px) clamp(70px, 9vw, 120px),
        clamp(70px, 9vw, 120px) clamp(70px, 9vw, 120px),
        clamp(70px, 9vw, 120px) clamp(70px, 9vw, 120px),
        clamp(70px, 9vw, 120px) clamp(70px, 9vw, 120px);
    background-position:
        0 0,
        100% 0,
        0 100%,
        100% 100%;
}

.home-shell::after {
    content: "";
    position: absolute;
    inset: -18px 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background:
        radial-gradient(420px 280px at 12% 8%, rgba(178, 138, 46, 0.18), rgba(178, 138, 46, 0) 62%),
        radial-gradient(420px 280px at 88% 18%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        radial-gradient(520px 340px at 50% 70%, rgba(131, 102, 69, 0.14), rgba(131, 102, 69, 0) 60%);
}

body.dark .home-shell::after {
    opacity: 0.26;
    background:
        radial-gradient(420px 280px at 12% 8%, rgba(202, 162, 76, 0.22), rgba(202, 162, 76, 0) 62%),
        radial-gradient(420px 280px at 88% 18%, rgba(127, 210, 255, 0.14), rgba(127, 210, 255, 0) 62%),
        radial-gradient(520px 340px at 50% 70%, rgba(138, 106, 68, 0.2), rgba(138, 106, 68, 0) 60%);
}

.home-hero-card.mushaf-illumination::after {
    opacity: 0.35;
}

.home-hero-card {
    transform: translateX(-0.5cm);
    margin-top: clamp(92px, 6vw, 130px);
    padding: 1cm;
    padding-top: calc(1cm + 12px);
    padding-bottom: calc(1cm + 12px);
}

.home-hero-card .home-card {
    border-radius: 18px;
    border-color: rgba(11, 58, 47, 0.14);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);
}

.home-hero-card .home-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(11, 58, 47, 0.12), rgba(127, 210, 255, 0.06)), var(--card-surface);
}

.home-hero-card .home-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(178, 138, 46, 0.18), rgba(131, 102, 69, 0.08)), var(--card-surface);
}

.home-hero-card .home-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(11, 106, 61, 0.14), rgba(20, 58, 82, 0.08)), var(--card-surface);
}

.home-hero-card .home-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(20, 58, 82, 0.18), rgba(127, 210, 255, 0.08)), var(--card-surface);
}

.home-hero-card .home-card:nth-child(1) .icon-3d {
    background: radial-gradient(80px 80px at 25% 20%, rgba(11, 58, 47, 0.22), rgba(11, 58, 47, 0) 60%), var(--card-surface);
    color: var(--primary);
}

.home-hero-card .home-card:nth-child(2) .icon-3d {
    background: radial-gradient(80px 80px at 25% 20%, rgba(178, 138, 46, 0.22), rgba(178, 138, 46, 0) 60%), var(--card-surface);
    color: var(--mushaf-gold);
}

.home-hero-card .home-card:nth-child(3) .icon-3d {
    background: radial-gradient(80px 80px at 25% 20%, rgba(11, 106, 61, 0.2), rgba(11, 106, 61, 0) 60%), var(--card-surface);
    color: var(--quran-latin);
}

.home-hero-card .home-card:nth-child(4) .icon-3d {
    background: radial-gradient(80px 80px at 25% 20%, rgba(20, 58, 82, 0.22), rgba(20, 58, 82, 0) 60%), var(--card-surface);
    color: var(--secondary);
}

body.dark .home-hero-card .home-card {
    border-color: rgba(202, 162, 76, 0.25);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

body.dark .home-hero-card .home-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(127, 210, 255, 0.14), rgba(202, 162, 76, 0.06)), var(--card-surface);
}

body.dark .home-hero-card .home-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(202, 162, 76, 0.18), rgba(127, 210, 255, 0.04)), var(--card-surface);
}

body.dark .home-hero-card .home-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(127, 227, 200, 0.14), rgba(127, 210, 255, 0.05)), var(--card-surface);
}

body.dark .home-hero-card .home-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(127, 210, 255, 0.16), rgba(202, 162, 76, 0.05)), var(--card-surface);
}

body.dark .home-hero-card .home-card:nth-child(1) .icon-3d {
    border-color: rgba(202, 162, 76, 0.22);
    background: radial-gradient(80px 80px at 25% 20%, rgba(127, 210, 255, 0.22), rgba(127, 210, 255, 0) 60%), rgba(15, 19, 25, 0.72);
    color: #7fd2ff;
}

body.dark .home-hero-card .home-card:nth-child(2) .icon-3d {
    border-color: rgba(202, 162, 76, 0.22);
    background: radial-gradient(80px 80px at 25% 20%, rgba(202, 162, 76, 0.22), rgba(202, 162, 76, 0) 60%), rgba(15, 19, 25, 0.72);
    color: var(--mushaf-gold);
}

body.dark .home-hero-card .home-card:nth-child(3) .icon-3d {
    border-color: rgba(202, 162, 76, 0.22);
    background: radial-gradient(80px 80px at 25% 20%, rgba(127, 227, 200, 0.22), rgba(127, 227, 200, 0) 60%), rgba(15, 19, 25, 0.72);
    color: #7fe3c8;
}

body.dark .home-hero-card .home-card:nth-child(4) .icon-3d {
    border-color: rgba(202, 162, 76, 0.22);
    background: radial-gradient(80px 80px at 25% 20%, rgba(130, 177, 255, 0.22), rgba(130, 177, 255, 0) 60%), rgba(15, 19, 25, 0.72);
    color: #82b1ff;
}

.home-surah-card {
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 1cm;
    padding-top: calc(1cm + 12px);
    padding-bottom: calc(1cm + 12px);
}

.home-surah-card .badge {
    margin-left: auto;
    margin-right: auto;
}

.home-surah-card h3 {
    font-size: 20px;
}

.home-surah-card .translation {
    max-width: 26ch;
    line-height: 1.6;
}

.surah-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
    padding: 18px 18px 20px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.surah-card:hover {
    transform: translateY(-3px);
    border-color: rgba(178, 138, 46, 0.55);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

body.dark .surah-card:hover {
    border-color: rgba(202, 162, 76, 0.55);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.surah-card:focus-visible {
    outline: 3px solid rgba(178, 138, 46, 0.42);
    outline-offset: 4px;
}

body.dark .surah-card:focus-visible {
    outline-color: rgba(202, 162, 76, 0.42);
}

.surah-card-link:focus-visible {
    outline: 3px solid rgba(178, 138, 46, 0.42);
    outline-offset: 4px;
    border-radius: 14px;
}

body.dark .surah-card-link:focus-visible {
    outline-color: rgba(202, 162, 76, 0.42);
}

.surah-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.surah-card-badge {
    background: var(--badge-surface-strong);
    flex: 0 0 auto;
    align-self: center;
    margin: 0 auto 4px;
}

body.dark .surah-card-badge {
    background: var(--badge-surface-strong);
    color: var(--mushaf-gold);
}

.surah-card-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(22px, 6vw, 26px);
    line-height: 1.15;
    text-align: right;
    color: var(--quran-tafsir);
    font-weight: 700;
    letter-spacing: 0.2px;
    flex: 0 0 100%;
    padding-right: clamp(28px, 7vw, 64px);
}

.surah-card-name {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.2px;
    text-align: center;
}

.surah-card-name-id {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.surah-card .translation {
    margin: 0;
}

.surah-card-meaning {
    text-align: center;
}

.surah-card-link {
    display: block;
    flex: 1 1 auto;
}

.surah-card-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.surah-card-actions .surah-info-btn {
    min-width: 140px;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 14px;
    background: rgba(11, 58, 47, 0.06);
    border-color: rgba(11, 58, 47, 0.35);
    color: var(--primary);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.surah-card-actions .surah-info-btn:hover {
    background: rgba(11, 58, 47, 0.12);
    border-color: rgba(11, 58, 47, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

body.dark .surah-card-actions .surah-info-btn {
    background: rgba(202, 162, 76, 0.12);
    border-color: rgba(202, 162, 76, 0.45);
    color: var(--mushaf-gold);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.dark .surah-card-actions .surah-info-btn:hover {
    background: rgba(202, 162, 76, 0.18);
    border-color: rgba(202, 162, 76, 0.65);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.surah-info-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.15;
    text-align: center;
    color: var(--quran-tafsir);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.surah-info-name {
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 18px;
    text-align: center;
}

.surah-info-meaning {
    text-align: center;
}

.surah-info-desc {
    white-space: pre-line;
}

.surah-card.mushaf-illumination::after {
    opacity: 0.58;
    background-size:
        clamp(200px, 56vw, 420px) 24px,
        clamp(200px, 56vw, 420px) 24px,
        clamp(46px, 7vw, 60px) clamp(46px, 7vw, 60px),
        clamp(46px, 7vw, 60px) clamp(46px, 7vw, 60px),
        clamp(46px, 7vw, 60px) clamp(46px, 7vw, 60px),
        clamp(46px, 7vw, 60px) clamp(46px, 7vw, 60px);
}

.surah-card.mushaf-illumination {
    padding-top: 26px;
    padding-bottom: 24px;
}

.quran-list {
    text-align: center;
}

.quran-list .section-title {
    font-size: 50px;
}

.quran-list-header {
    width: 100%;
    max-width: none;
    margin: 0 0 26px;
    padding: clamp(24px, 3vw, 38px) clamp(18px, 3vw, 32px);
}

.quran-list-header .section-title {
    margin-top: 10px;
}

.quran-list-intro {
    max-width: none;
    margin-top: 6px;
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text);
}

.quran-surah .card {
    padding: clamp(12px, 1.8vw, 18px);
    padding-top: 12px;
    padding-bottom: clamp(22px, 3vw, 34px);
}

.quran-surah .media-grid .card.mushaf-illumination {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8px;
    padding-bottom: calc(clamp(22px, 3vw, 34px) + 14px);
}

.quran-surah .ayah-card-head {
    padding-top: 4px;
}

.quran-surah .surah-header {
    --card: #fbf7ee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(20px, 2.4vw, 38px) clamp(22px, 2.6vw, 40px);
}

.quran-surah .surah-header.quran-list-header {
    padding: clamp(48px, 6vw, 82px) clamp(22px, 3vw, 40px);
}

body.dark .quran-surah .surah-header {
    --card: #141b19;
}

.quran-surah .surah-header .badge {
    padding: 4px 12px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.quran-surah .surah-header .translation {
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.4;
}

.quran-surah .surah-header .tafsir {
    font-size: clamp(32px, 4.8vw, 56px);
    line-height: 1.2;
}

.quran-surah .surah-name-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: clamp(440px, 62vw, 860px);
    padding: clamp(10px, 1.2vw, 14px) clamp(28px, 3.4vw, 60px);
    margin: 6px 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(178, 138, 46, 0.55);
    background:
        radial-gradient(140px 120px at 18% 32%, rgba(178, 138, 46, 0.18), rgba(178, 138, 46, 0) 62%),
        radial-gradient(140px 120px at 82% 68%, rgba(11, 58, 47, 0.1), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, rgba(247, 245, 240, 0.9), rgba(247, 245, 240, 0.9));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
}

.quran-surah .surah-name-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.6),
        inset 0 0 0 2px rgba(11, 58, 47, 0.06);
    z-index: 0;
}

.quran-surah .surah-name-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.72;
    background-repeat: no-repeat;
    background-image:
        var(--mushaf-ornament-top),
        var(--mushaf-ornament-bottom),
        var(--mushaf-ornament-corner-tl),
        var(--mushaf-ornament-corner-tr),
        var(--mushaf-ornament-corner-bl),
        var(--mushaf-ornament-corner-br);
    background-size:
        clamp(180px, 32vw, 320px) 16px,
        clamp(180px, 32vw, 320px) 16px,
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px;
    background-position:
        50% 10px,
        50% calc(100% - 10px),
        10px 10px,
        calc(100% - 10px) 10px,
        10px calc(100% - 10px),
        calc(100% - 10px) calc(100% - 10px);
}

.quran-surah .surah-name-frame .surah-name {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.quran-list .surah-name-frame .surah-name {
    font-size: 40px;
}

.quran-surah .surah-header.has-side-ornaments .surah-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(10px, 1.6vw, 22px);
    padding-left: clamp(130px, 17vw, 220px);
    padding-right: clamp(130px, 17vw, 220px);
}

.quran-surah .surah-header.has-side-ornaments .card-side-ornament {
    display: block;
    position: absolute;
    top: 50%;
    width: var(--ornament-side-size);
    max-width: none;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    border-radius: 999px;
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(178, 138, 46, 0.2), rgba(178, 138, 46, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, rgba(247, 245, 240, 0.72), rgba(247, 245, 240, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.28),
        0 12px 22px rgba(0, 0, 0, 0.06);
}

.quran-surah .surah-header.has-side-ornaments .card-side-ornament.left {
    left: var(--ornament-side-inset);
    transform: translateY(-50%);
}

.quran-surah .surah-header.has-side-ornaments .card-side-ornament.right {
    right: var(--ornament-side-inset);
    transform: translateY(-50%);
}

.quran-list-header.has-side-ornaments .card-side-ornament,
.audio-tilawah-header.has-side-ornaments .card-side-ornament {
    width: var(--ornament-side-size-sm);
}

@media (max-width: 640px) {
    .quran-surah .surah-header.has-side-ornaments .card-side-ornament {
        display: none;
    }
    .quran-surah .surah-header.has-side-ornaments .surah-header-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.quran-surah .surah-header .nav-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.quran-surah .surah-header .nav-actions .button {
    padding: 7px 10px;
    font-size: 15px;
}

.quran-surah .surah-header .nav-actions .button.primary {
    background: linear-gradient(135deg, var(--primary), #1b6b57);
    border-color: rgba(11, 58, 47, 0.28);
    color: #fff;
}

.quran-surah .surah-header .nav-actions .button.ghost {
    border-color: rgba(11, 58, 47, 0.35);
    background: rgba(11, 58, 47, 0.04);
    color: var(--primary);
}

body.dark .quran-surah .surah-header .nav-actions .button.ghost {
    border-color: rgba(202, 162, 76, 0.28);
    background: rgba(202, 162, 76, 0.08);
    color: var(--mushaf-gold);
}

.quran-surah .surah-header .surah-header-divider {
    width: min(720px, 92%);
    height: 8px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0),
        var(--mushaf-gold),
        var(--mushaf-gold-2),
        var(--mushaf-gold),
        rgba(0, 0, 0, 0)
    );
    box-shadow: 0 10px 20px rgba(178, 138, 46, 0.18);
    position: relative;
    z-index: 3;
}

body.dark .quran-surah .surah-header .surah-header-divider {
    box-shadow: 0 10px 22px rgba(202, 162, 76, 0.22);
}

.mushaf-illumination {
    position: relative;
    overflow: hidden;
    border-color: rgba(178, 138, 46, 0.35);
    background:
        radial-gradient(140px 140px at 18px 18px, rgba(178, 138, 46, 0.16), rgba(178, 138, 46, 0) 60%),
        radial-gradient(140px 140px at calc(100% - 18px) 18px, rgba(131, 102, 69, 0.14), rgba(131, 102, 69, 0) 60%),
        radial-gradient(140px 140px at 18px calc(100% - 18px), rgba(131, 102, 69, 0.14), rgba(131, 102, 69, 0) 60%),
        radial-gradient(140px 140px at calc(100% - 18px) calc(100% - 18px), rgba(178, 138, 46, 0.16), rgba(178, 138, 46, 0) 60%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.quran-surah .mushaf-illumination {
    padding: 46px 28px;
    background:
        radial-gradient(140px 140px at 18px 18px, rgba(178, 138, 46, 0.05), rgba(178, 138, 46, 0) 60%),
        radial-gradient(140px 140px at calc(100% - 18px) 18px, rgba(131, 102, 69, 0.04), rgba(131, 102, 69, 0) 60%),
        radial-gradient(140px 140px at 18px calc(100% - 18px), rgba(131, 102, 69, 0.04), rgba(131, 102, 69, 0) 60%),
        radial-gradient(140px 140px at calc(100% - 18px) calc(100% - 18px), rgba(178, 138, 46, 0.05), rgba(178, 138, 46, 0) 60%),
        linear-gradient(135deg, rgba(11, 58, 47, 0.03), rgba(178, 138, 46, 0.04) 55%, rgba(178, 138, 46, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.mushaf-illumination::before {
    content: "";
    position: absolute;
    inset: clamp(8px, 1.1vw, 12px);
    border-radius: 12px;
    z-index: 0;
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.65),
        inset 0 0 0 2px rgba(11, 58, 47, 0.08);
    pointer-events: none;
}

.mushaf-illumination::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    background-repeat: no-repeat;
    background-image:
        var(--mushaf-ornament-top),
        var(--mushaf-ornament-bottom),
        var(--mushaf-ornament-corner-tl),
        var(--mushaf-ornament-corner-tr),
        var(--mushaf-ornament-corner-bl),
        var(--mushaf-ornament-corner-br);
    background-size:
        clamp(260px, 74vw, 640px) 34px,
        clamp(260px, 74vw, 640px) 34px,
        clamp(56px, 8vw, 76px) clamp(56px, 8vw, 76px),
        clamp(56px, 8vw, 76px) clamp(56px, 8vw, 76px),
        clamp(56px, 8vw, 76px) clamp(56px, 8vw, 76px),
        clamp(56px, 8vw, 76px) clamp(56px, 8vw, 76px);
    background-position:
        50% clamp(10px, 1.2vw, 14px),
        50% calc(100% - clamp(10px, 1.2vw, 14px)),
        clamp(8px, 1.1vw, 12px) clamp(8px, 1.1vw, 12px),
        calc(100% - clamp(8px, 1.1vw, 12px)) clamp(8px, 1.1vw, 12px),
        clamp(8px, 1.1vw, 12px) calc(100% - clamp(8px, 1.1vw, 12px)),
        calc(100% - clamp(8px, 1.1vw, 12px)) calc(100% - clamp(8px, 1.1vw, 12px));
}

.mushaf-illumination > * {
    position: relative;
    z-index: 1;
}

body.dark .mushaf-illumination {
    border-color: rgba(202, 162, 76, 0.35);
    background:
        radial-gradient(160px 160px at 18px 18px, rgba(202, 162, 76, 0.16), rgba(202, 162, 76, 0) 60%),
        radial-gradient(160px 160px at calc(100% - 18px) 18px, rgba(138, 106, 68, 0.14), rgba(138, 106, 68, 0) 60%),
        radial-gradient(160px 160px at 18px calc(100% - 18px), rgba(138, 106, 68, 0.14), rgba(138, 106, 68, 0) 60%),
        radial-gradient(160px 160px at calc(100% - 18px) calc(100% - 18px), rgba(202, 162, 76, 0.16), rgba(202, 162, 76, 0) 60%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

body.dark .quran-surah .mushaf-illumination {
    background:
        radial-gradient(160px 160px at 18px 18px, rgba(202, 162, 76, 0.06), rgba(202, 162, 76, 0) 60%),
        radial-gradient(160px 160px at calc(100% - 18px) 18px, rgba(138, 106, 68, 0.05), rgba(138, 106, 68, 0) 60%),
        radial-gradient(160px 160px at 18px calc(100% - 18px), rgba(138, 106, 68, 0.05), rgba(138, 106, 68, 0) 60%),
        radial-gradient(160px 160px at calc(100% - 18px) calc(100% - 18px), rgba(202, 162, 76, 0.06), rgba(202, 162, 76, 0) 60%),
        linear-gradient(135deg, rgba(11, 58, 47, 0.06), rgba(202, 162, 76, 0.06) 55%, rgba(202, 162, 76, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

body.dark .quran-surah .surah-header.has-side-ornaments .card-side-ornament {
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(202, 162, 76, 0.2), rgba(202, 162, 76, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(230, 237, 234, 0.08), rgba(230, 237, 234, 0) 62%),
        linear-gradient(0deg, rgba(13, 18, 17, 0.72), rgba(13, 18, 17, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(202, 162, 76, 0.24),
        0 12px 22px rgba(0, 0, 0, 0.22);
}

body.dark .quran-surah .surah-name-frame {
    border-color: rgba(202, 162, 76, 0.5);
    background:
        radial-gradient(140px 120px at 18% 32%, rgba(202, 162, 76, 0.16), rgba(202, 162, 76, 0) 62%),
        radial-gradient(140px 120px at 82% 68%, rgba(230, 237, 234, 0.06), rgba(230, 237, 234, 0) 62%),
        linear-gradient(0deg, rgba(13, 18, 17, 0.86), rgba(13, 18, 17, 0.86));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

body.dark .quran-surah .surah-name-frame::before {
    box-shadow:
        inset 0 0 0 1px rgba(202, 162, 76, 0.52),
        inset 0 0 0 2px rgba(230, 237, 234, 0.05);
}

body.dark .mushaf-illumination::before {
    box-shadow:
        inset 0 0 0 1px rgba(202, 162, 76, 0.55),
        inset 0 0 0 2px rgba(230, 237, 234, 0.06);
}

.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--badge-surface);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.quran-surah .ayah-badge {
    margin: 0;
    background: linear-gradient(135deg, rgba(178, 138, 46, 0.7), rgba(131, 102, 69, 0.7));
    border: 1px solid rgba(178, 138, 46, 0.35);
    color: #fff;
}

body.dark .quran-surah .ayah-badge {
    border-color: rgba(202, 162, 76, 0.3);
}

.quran-surah .ayah-card-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-right: 0;
    padding-top: 22px;
}

.quran-surah .ayah-card-head .ayah-badge {
    align-self: center;
    margin-top: 18px;
}

.quran-surah .ayah-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 0;
    transform: translate(-14px, -10px);
    align-self: flex-end;
}

.quran-surah .ayah-icon-btn {
    padding: 7px 9px;
    border-radius: 12px;
    line-height: 1;
    border-color: rgba(20, 58, 82, 0.22);
    color: #fff;
    box-shadow: 0 8px 18px rgba(9, 27, 22, 0.12);
}

.quran-surah .ayah-icon-btn[data-ayah-action="toggle-audio"] {
    background: linear-gradient(135deg, #1f5f86, #2a8c73);
}

.quran-surah .ayah-icon-btn[data-ayah-action="copy"] {
    background: linear-gradient(135deg, var(--mushaf-gold), #ff7a18);
    border-color: rgba(178, 138, 46, 0.35);
}

body.dark .quran-surah .ayah-icon-btn {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.quran-surah .ayah-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(9, 27, 22, 0.18);
}

body.dark .quran-surah .ayah-icon-btn:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.quran-surah .ayah-icon-btn:active {
    transform: translateY(0);
}

.quran-surah .ayah-icon-btn[data-state="playing"] {
    box-shadow: 0 14px 30px rgba(31, 95, 134, 0.25), 0 0 0 3px rgba(127, 210, 255, 0.22);
}

.quran-surah .ayah-icon-btn[data-state="copied"] {
    box-shadow: 0 14px 30px rgba(255, 122, 24, 0.22), 0 0 0 3px rgba(202, 162, 76, 0.22);
}

.quran-surah .ayah-filter {
    margin: 0;
    padding-top: 14px;
}

.quran-surah .ayah-filter-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 280px) minmax(160px, 220px) auto;
    align-items: start;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.quran-surah .ayah-filter-field {
    display: grid;
    gap: 8px;
}

.quran-surah .ayah-filter-field > span {
    font-weight: 800;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.quran-surah .ayah-filter-field .form-control {
    font-size: 16px;
}

.quran-surah .ayah-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-self: end;
    grid-column: -1;
}

.quran-surah .ayah-filter-actions > .button {
    min-height: 46px;
    padding: 12px 18px;
}

@media (max-width: 720px) {
    .quran-surah .ayah-card-head {
        padding-right: 0;
    }
}

@media (max-width: 860px) {
    .quran-surah .ayah-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .quran-surah .ayah-filter-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
        width: 100%;
    }
    .quran-surah .ayah-filter-actions {
        justify-content: stretch;
    }
    .quran-surah .ayah-filter-actions > .button {
        width: 100%;
    }
    .quran-surah .ayah-card-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-right: 0;
    }
    .quran-surah .ayah-card-actions {
        justify-content: flex-start;
        transform: none;
    }
    .quran-surah .ayah {
        padding-right: 14px;
    }
    .quran-surah .ayah-meta {
        padding-left: 0;
        padding-right: 0;
    }
}

.ayah {
    font-family: 'Amiri', serif;
    font-size: clamp(30px, 3.4vw, 38px);
    line-height: 1.9;
    text-align: right;
    margin: 0;
}

.quran-surah .ayah {
    font-size: clamp(36px, 4.3vw, 48px);
    line-height: 1.85;
    padding-right: clamp(14px, 4vw, 38px);
}

.quran-surah .media-grid .ayah {
    margin-top: 6px;
}

.ayah.surah-ayahs {
    font-size: clamp(32px, 3.7vw, 42px);
    line-height: 2.05;
    word-spacing: 2px;
}

.quran-surah .ayah.surah-ayahs {
    font-size: clamp(36px, 4.2vw, 48px);
    line-height: 2.1;
}

.ayah-marker {
    display: inline-block;
    margin: 0 6px;
    font-size: 16px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    vertical-align: middle;
}

.quran-surah .ayah-marker {
    font-size: 18px;
}

.quran-surah .ayah.surah-ayahs .ayah-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

body.dark .quran-surah .ayah.surah-ayahs .ayah-marker {
    background: #1b6b57;
}

.surah-translation {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.surah-latin {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.quran-surah .card.surah-latin,
.quran-surah .card.surah-translation {
    padding-left: 2cm;
    padding-right: 1cm;
}

.surah-latin-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--quran-latin);
    font-size: 22px;
    line-height: 1.75;
    font-style: italic;
    font-weight: 600;
}

.surah-latin-num {
    color: var(--text);
    font-weight: 700;
    font-style: normal;
}

.surah-translation-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--quran-arti);
    font-size: 21px;
    line-height: 1.75;
    font-weight: 600;
}

.surah-translation-num {
    color: var(--text);
    font-weight: 700;
}

.ayah .tajweed {
    text-shadow: none;
}

.ayah-text {
    cursor: pointer;
}

.ayah-word {
    display: inline;
    padding: 0;
    margin: 0;
    border-radius: 0;
    transition: color 120ms ease;
}

.ayah-word:hover {
    color: var(--mushaf-gold);
}

.ayah-word:hover .tajweed {
    color: inherit !important;
}

body.dark .ayah-word:hover {
    color: var(--mushaf-gold);
}

.ayah-word-highlight-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 55;
}

.ayah-word-highlight {
    position: absolute;
    border-radius: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
}

body.dark .ayah-word-highlight {
    background: transparent;
    border: 0;
    box-shadow: none;
}

@keyframes ayah-word-pulse {
    0% {
        opacity: 0.35;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ayah-word-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 56;
    max-width: min(300px, 78vw);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(178, 138, 46, 0.32);
    background:
        radial-gradient(120px 90px at 18px 18px, rgba(178, 138, 46, 0.14), rgba(178, 138, 46, 0) 62%),
        radial-gradient(120px 90px at calc(100% - 18px) calc(100% - 18px), rgba(11, 58, 47, 0.1), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

body.dark .ayah-word-tooltip {
    border-color: rgba(202, 162, 76, 0.32);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
}

.ayah-word-tooltip::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(178, 138, 46, 0.9), rgba(0, 0, 0, 0));
    opacity: 0.75;
}

.ayah-word-tooltip-ar {
    font-family: 'Amiri', serif;
    font-size: 28px;
    line-height: 1.4;
    text-align: right;
    direction: rtl;
    font-weight: 700;
    color: var(--text);
}

.ayah-word-tooltip-id {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--quran-arti);
}

.ayah-word-tooltip-latin {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--quran-latin);
    font-style: italic;
}

.ayah .tajweed.ham_wasl,
.ayah .tajweed.slnt,
.ayah .tajweed.laam_shamsiyah {
    color: #AAAAAA;
}

.ayah .tajweed.madda_normal {
    color: #537FFF;
}

.ayah .tajweed.madda_permissible {
    color: #4050FF;
}

.ayah .tajweed.madda_necessary {
    color: #000EBC;
}

.ayah .tajweed.madda_obligatory {
    color: #2144C1;
}

.ayah .tajweed.qlq,
.ayah .tajweed.qalaqah {
    color: #DD0008;
}

.ayah .tajweed.ikhf_shfw,
.ayah .tajweed.ikhafa_shafawi {
    color: #D500B7;
}

.ayah .tajweed.ikhf,
.ayah .tajweed.ikhafa {
    color: #9400A8;
}

.ayah .tajweed.idghm_shfw,
.ayah .tajweed.idgham_shafawi {
    color: #58B800;
}

.ayah .tajweed.iqlb,
.ayah .tajweed.iqlab {
    color: #26BFFD;
}

.ayah .tajweed.idgh_ghn,
.ayah .tajweed.idgham_ghunnah,
.ayah .tajweed.idgham_with_ghunnah {
    color: #169777;
}

.ayah .tajweed.idgh_w_ghn,
.ayah .tajweed.idgham_wo_ghunnah,
.ayah .tajweed.idgham_without_ghunnah {
    color: #169200;
}

.ayah .tajweed.idgh_mus,
.ayah .tajweed.idgham_mutajanisayn,
.ayah .tajweed.idgham_mutaqaribayn {
    color: #A1A1A1;
}

.ayah .tajweed.ghn,
.ayah .tajweed.ghunnah {
    color: #FF7E1E;
}

.ayah .tajweed.tafkhim {
    color: #2962ff;
}

body.dark .ayah .tajweed {
    text-shadow: none;
}

body.dark .ayah .tajweed.ham_wasl,
body.dark .ayah .tajweed.slnt,
body.dark .ayah .tajweed.laam_shamsiyah {
    color: #AAAAAA;
}

body.dark .ayah .tajweed.madda_normal {
    color: #537FFF;
}

body.dark .ayah .tajweed.madda_permissible {
    color: #4050FF;
}

body.dark .ayah .tajweed.madda_necessary {
    color: #000EBC;
}

body.dark .ayah .tajweed.madda_obligatory {
    color: #2144C1;
}

body.dark .ayah .tajweed.qlq,
body.dark .ayah .tajweed.qalaqah {
    color: #DD0008;
}

body.dark .ayah .tajweed.ikhf_shfw,
body.dark .ayah .tajweed.ikhafa_shafawi {
    color: #D500B7;
}

body.dark .ayah .tajweed.ikhf,
body.dark .ayah .tajweed.ikhafa {
    color: #9400A8;
}

body.dark .ayah .tajweed.idghm_shfw,
body.dark .ayah .tajweed.idgham_shafawi {
    color: #58B800;
}

body.dark .ayah .tajweed.iqlb,
body.dark .ayah .tajweed.iqlab {
    color: #26BFFD;
}

body.dark .ayah .tajweed.idgh_ghn,
body.dark .ayah .tajweed.idgham_ghunnah,
body.dark .ayah .tajweed.idgham_with_ghunnah {
    color: #169777;
}

body.dark .ayah .tajweed.idgh_w_ghn,
body.dark .ayah .tajweed.idgham_wo_ghunnah,
body.dark .ayah .tajweed.idgham_without_ghunnah {
    color: #169200;
}

body.dark .ayah .tajweed.idgh_mus,
body.dark .ayah .tajweed.idgham_mutajanisayn,
body.dark .ayah .tajweed.idgham_mutaqaribayn {
    color: #A1A1A1;
}

body.dark .ayah .tajweed.ghn,
body.dark .ayah .tajweed.ghunnah {
    color: #FF7E1E;
}

body.dark .ayah .tajweed.tafkhim {
    color: #82b1ff;
}

.tajweed-legend-item .tajweed {
    text-shadow: none;
}

.tajweed-legend-item .tajweed.ham_wasl,
.tajweed-legend-item .tajweed.slnt,
.tajweed-legend-item .tajweed.laam_shamsiyah {
    color: #AAAAAA;
}

.tajweed-legend-item .tajweed.madda_normal {
    color: #537FFF;
}

.tajweed-legend-item .tajweed.madda_permissible {
    color: #4050FF;
}

.tajweed-legend-item .tajweed.madda_necessary {
    color: #000EBC;
}

.tajweed-legend-item .tajweed.madda_obligatory {
    color: #2144C1;
}

.tajweed-legend-item .tajweed.qlq,
.tajweed-legend-item .tajweed.qalaqah {
    color: #DD0008;
}

.tajweed-legend-item .tajweed.ikhf_shfw,
.tajweed-legend-item .tajweed.ikhafa_shafawi {
    color: #D500B7;
}

.tajweed-legend-item .tajweed.ikhf,
.tajweed-legend-item .tajweed.ikhafa {
    color: #9400A8;
}

.tajweed-legend-item .tajweed.idghm_shfw,
.tajweed-legend-item .tajweed.idgham_shafawi {
    color: #58B800;
}

.tajweed-legend-item .tajweed.iqlb,
.tajweed-legend-item .tajweed.iqlab {
    color: #26BFFD;
}

.tajweed-legend-item .tajweed.idgh_ghn,
.tajweed-legend-item .tajweed.idgham_ghunnah,
.tajweed-legend-item .tajweed.idgham_with_ghunnah {
    color: #169777;
}

.tajweed-legend-item .tajweed.idgh_w_ghn,
.tajweed-legend-item .tajweed.idgham_wo_ghunnah,
.tajweed-legend-item .tajweed.idgham_without_ghunnah {
    color: #169200;
}

.tajweed-legend-item .tajweed.idgh_mus,
.tajweed-legend-item .tajweed.idgham_mutajanisayn,
.tajweed-legend-item .tajweed.idgham_mutaqaribayn {
    color: #A1A1A1;
}

.tajweed-legend-item .tajweed.ghn,
.tajweed-legend-item .tajweed.ghunnah {
    color: #FF7E1E;
}

.tajweed-legend-item .tajweed.tafkhim {
    color: #2962ff;
}

body.dark .tajweed-legend-item .tajweed {
    text-shadow: none;
}

body.dark .tajweed-legend-item .tajweed.ham_wasl,
body.dark .tajweed-legend-item .tajweed.slnt,
body.dark .tajweed-legend-item .tajweed.laam_shamsiyah {
    color: #AAAAAA;
}

body.dark .tajweed-legend-item .tajweed.madda_normal {
    color: #537FFF;
}

body.dark .tajweed-legend-item .tajweed.madda_permissible {
    color: #4050FF;
}

body.dark .tajweed-legend-item .tajweed.madda_necessary {
    color: #000EBC;
}

body.dark .tajweed-legend-item .tajweed.madda_obligatory {
    color: #2144C1;
}

body.dark .tajweed-legend-item .tajweed.qlq,
body.dark .tajweed-legend-item .tajweed.qalaqah {
    color: #DD0008;
}

body.dark .tajweed-legend-item .tajweed.ikhf_shfw,
body.dark .tajweed-legend-item .tajweed.ikhafa_shafawi {
    color: #D500B7;
}

body.dark .tajweed-legend-item .tajweed.ikhf,
body.dark .tajweed-legend-item .tajweed.ikhafa {
    color: #9400A8;
}

body.dark .tajweed-legend-item .tajweed.idghm_shfw,
body.dark .tajweed-legend-item .tajweed.idgham_shafawi {
    color: #58B800;
}

body.dark .tajweed-legend-item .tajweed.iqlb,
body.dark .tajweed-legend-item .tajweed.iqlab {
    color: #26BFFD;
}

body.dark .tajweed-legend-item .tajweed.idgh_ghn,
body.dark .tajweed-legend-item .tajweed.idgham_ghunnah,
body.dark .tajweed-legend-item .tajweed.idgham_with_ghunnah {
    color: #169777;
}

body.dark .tajweed-legend-item .tajweed.idgh_w_ghn,
body.dark .tajweed-legend-item .tajweed.idgham_wo_ghunnah,
body.dark .tajweed-legend-item .tajweed.idgham_without_ghunnah {
    color: #169200;
}

body.dark .tajweed-legend-item .tajweed.idgh_mus,
body.dark .tajweed-legend-item .tajweed.idgham_mutajanisayn,
body.dark .tajweed-legend-item .tajweed.idgham_mutaqaribayn {
    color: #A1A1A1;
}

body.dark .tajweed-legend-item .tajweed.ghn,
body.dark .tajweed-legend-item .tajweed.ghunnah {
    color: #FF7E1E;
}

body.dark .tajweed-legend-item .tajweed.tafkhim {
    color: #82b1ff;
}

.translation {
    margin: 12px 0;
    color: var(--muted);
}

.quran-surah .translation {
    color: var(--text);
    font-size: 19px;
    line-height: 1.65;
    margin: 10px 0;
}

.quran-surah.quran-list .translation.quran-list-intro {
    font-size: 15px;
    line-height: 1,7;
}

.quran-surah .ayah-latin {
    font-size: 21px;
    line-height: 1.65;
    color: var(--quran-latin);
    margin-top: 8px;
    padding-left: 1cm;
    padding-right: 1cm;
    font-style: italic;
    font-weight: 600;
}

.quran-surah .card:not(.surah-header) .badge {
    padding: 5px 12px;
    font-size: 13px;
}

.quran-surah .ayah-nav {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quran-surah .ayah-nav form {
    margin: 0;
}

.quran-surah .ayah-nav .ayah-nav-btn {
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 15px;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.quran-surah .ayah-nav .ayah-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

body.dark .quran-surah .ayah-nav .ayah-nav-btn:hover {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.quran-surah .ayah-nav .ayah-nav-btn.ghost {
    border-color: rgba(11, 58, 47, 0.35);
    background: rgba(11, 58, 47, 0.04);
    color: var(--primary);
}

body.dark .quran-surah .ayah-nav .ayah-nav-btn.ghost {
    border-color: rgba(202, 162, 76, 0.28);
    background: rgba(202, 162, 76, 0.08);
    color: var(--mushaf-gold);
}

.quran-surah .ayah-nav .ayah-nav-btn.primary {
    background: linear-gradient(135deg, var(--primary), #1b6b57);
    border-color: rgba(11, 58, 47, 0.25);
}

body.dark .quran-surah .ayah-nav .ayah-nav-btn.primary {
    background: linear-gradient(135deg, #1b6b57, #2a8c73);
    border-color: rgba(202, 162, 76, 0.28);
}

.quran-surah .ayah-nav .ayah-nav-btn.bookmark-btn {
    background: linear-gradient(135deg, var(--mushaf-gold), var(--mushaf-gold-2));
    border-color: rgba(178, 138, 46, 0.35);
    color: #fff;
}

body.dark .quran-surah .ayah-nav .ayah-nav-btn.bookmark-btn {
    border-color: rgba(202, 162, 76, 0.3);
}

.tafsir {
    font-size: 14px;
    color: var(--muted);
}

.quran-surah .ayah-translation {
    color: var(--quran-arti);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.7;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.quran-surah .ayah-tafsir {
    color: var(--quran-tafsir);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.7;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.quran-surah .ayah-meta {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: clamp(14px, 4vw, 38px);
    padding-right: clamp(14px, 4vw, 38px);
}

.quran-surah .ayah-meta-block {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(178, 138, 46, 0.18);
    background:
        radial-gradient(220px 160px at 18px 18px, rgba(11, 58, 47, 0.06), rgba(11, 58, 47, 0) 64%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.quran-surah .ayah-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.quran-surah .tafsir-switch {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr max-content max-content;
    gap: 6px;
    align-items: center;
}

.quran-surah .tafsir-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quran-surah .tafsir-switch-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(11, 58, 47, 0.04);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.quran-surah .tafsir-switch-label-id {
    grid-column: 2;
    grid-row: 1;
}

.quran-surah .tafsir-switch-label-ar {
    grid-column: 3;
    grid-row: 1;
}

body.dark .quran-surah .tafsir-switch-label {
    background: rgba(202, 162, 76, 0.08);
    color: var(--mushaf-gold);
}

.quran-surah .tafsir-switch-input:checked + .tafsir-switch-label {
    background: linear-gradient(135deg, var(--primary), #1b6b57);
    border-color: rgba(11, 58, 47, 0.25);
    color: #fff;
}

body.dark .quran-surah .tafsir-switch-input:checked + .tafsir-switch-label {
    background: linear-gradient(135deg, #1b6b57, #2a8c73);
    border-color: rgba(202, 162, 76, 0.28);
    color: #fff;
}

.quran-surah .tafsir-switch-input:disabled + .tafsir-switch-label {
    opacity: 0.55;
    cursor: not-allowed;
}

.quran-surah .tafsir-switch-content {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
}

.quran-surah .tafsir-switch-id:checked ~ .tafsir-switch-content-id {
    display: block;
}

.quran-surah .tafsir-switch-ar:checked ~ .tafsir-switch-content-ar {
    display: block;
}

.quran-surah .ayah-meta-label {
    justify-self: start;
    background: rgba(11, 58, 47, 0.1);
    color: var(--primary);
    border: 1px solid rgba(11, 58, 47, 0.18);
}

body.dark .quran-surah .ayah-meta-label {
    background: rgba(202, 162, 76, 0.12);
    color: var(--mushaf-gold);
    border-color: rgba(202, 162, 76, 0.22);
}

.quran-surah .ayah-meta .ayah-translation,
.quran-surah .ayah-meta .ayah-tafsir {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    text-align: justify;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-surface);
    color: var(--text);
}

.form-group {
    display: grid;
    gap: 10px;
}

.media-grid {
    display: grid;
    gap: 16px;
}

.hadith-shell .hadith-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.hadith-header {
    padding: 26px;
    padding-top: clamp(36px, 3.4vw, 52px);
    padding-bottom: clamp(26px, 2.6vw, 38px);
    min-height: clamp(240px, 20vw, 330px);
    display: grid;
    gap: 14px;
    text-align: center;
    position: relative;
    z-index: 0;
    overflow: hidden;
    --hadith-side-inset: var(--ornament-side-inset);
    --hadith-side-size: var(--ornament-side-size);
}

.hadith-header.mushaf-illumination {
    background:
        radial-gradient(280px 240px at 18% 22%, rgba(11, 58, 47, 0.08), rgba(11, 58, 47, 0) 62%),
        radial-gradient(260px 220px at 82% 78%, rgba(178, 138, 46, 0.14), rgba(178, 138, 46, 0) 62%),
        radial-gradient(240px 200px at 18% 86%, rgba(131, 102, 69, 0.12), rgba(131, 102, 69, 0) 64%),
        radial-gradient(240px 200px at 82% 18%, rgba(178, 138, 46, 0.1), rgba(178, 138, 46, 0) 64%),
        linear-gradient(135deg, rgba(11, 58, 47, 0.05), rgba(178, 138, 46, 0.06) 55%, rgba(178, 138, 46, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

body.dark .hadith-header.mushaf-illumination {
    background:
        radial-gradient(300px 260px at 18% 22%, rgba(11, 58, 47, 0.1), rgba(11, 58, 47, 0) 62%),
        radial-gradient(280px 240px at 82% 78%, rgba(202, 162, 76, 0.12), rgba(202, 162, 76, 0) 62%),
        radial-gradient(260px 220px at 18% 86%, rgba(138, 106, 68, 0.12), rgba(138, 106, 68, 0) 64%),
        radial-gradient(260px 220px at 82% 18%, rgba(202, 162, 76, 0.1), rgba(202, 162, 76, 0) 64%),
        linear-gradient(135deg, rgba(11, 58, 47, 0.09), rgba(202, 162, 76, 0.08) 55%, rgba(202, 162, 76, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.hadith-header > :not(.hadith-side-image) {
    position: relative;
    z-index: 2;
}

.hadith-header .hadith-side-image {
    max-width: none;
}

.hadith-side-image {
    position: absolute;
    top: 50%;
    width: var(--hadith-side-size);
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    border-radius: 999px;
    border: 1px solid rgba(178, 138, 46, 0.28);
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(178, 138, 46, 0.2), rgba(178, 138, 46, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, rgba(247, 245, 240, 0.72), rgba(247, 245, 240, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.28),
        0 12px 22px rgba(0, 0, 0, 0.06);
    object-fit: contain;
    filter: contrast(1.12) saturate(1.06) brightness(1.03);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    max-width: none;
    transform: translateY(-50%);
}

.hadith-side-image-left {
    left: var(--hadith-side-inset);
}

.hadith-side-image-right {
    right: var(--hadith-side-inset);
}

body.dark .hadith-side-image {
    opacity: 0.9;
    border-color: rgba(202, 162, 76, 0.24);
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(202, 162, 76, 0.2), rgba(202, 162, 76, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(230, 237, 234, 0.08), rgba(230, 237, 234, 0) 62%),
        linear-gradient(0deg, rgba(13, 18, 17, 0.72), rgba(13, 18, 17, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(202, 162, 76, 0.24),
        0 12px 22px rgba(0, 0, 0, 0.22);
    filter: contrast(1.14) saturate(1.04) brightness(1.04);
}

@media (max-width: 720px) {
    .hadith-header {
        padding-top: 44px;
        padding-bottom: 28px;
        min-height: 260px;
        --hadith-side-inset: var(--ornament-side-inset-sm);
    }
    .hadith-side-image {
        opacity: 0.5;
        padding: 11px;
    }
    body.dark .hadith-side-image {
        opacity: 0.37;
    }
}

@media (max-width: 640px) {
    .hadith-side-image {
        display: none;
    }
}

.hadith-chapter-strip {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(178, 138, 46, 0.18);
    background: rgba(11, 58, 47, 0.03);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

body.dark .hadith-chapter-strip {
    border-color: rgba(202, 162, 76, 0.18);
    background: rgba(202, 162, 76, 0.06);
}

.hadith-chapter-left {
    font-weight: 700;
    color: var(--text);
}

.hadith-chapter-right {
    font-family: 'Amiri', serif;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.35;
    text-align: right;
    direction: rtl;
    color: var(--text);
}

body.dark .hadith-chapter-right {
    color: #e6edea;
}

@media (max-width: 720px) {
    .hadith-chapter-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .hadith-chapter-right {
        text-align: right;
    }
}

.hadith-meta {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 8px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.hadith-meta-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
    align-items: baseline;
    padding: 0 0 8px;
    border-bottom: 1px dashed rgba(178, 138, 46, 0.28);
    background: transparent;
}

body.dark .hadith-meta-row {
    border-bottom-color: rgba(202, 162, 76, 0.28);
}

.hadith-meta-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hadith-meta-row dt {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.hadith-meta-row dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .hadith-meta {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

@media (max-width: 560px) {
    .hadith-meta-row {
        grid-template-columns: 1fr;
    }
    .hadith-meta-row dd {
        text-align: left;
    }
}

.hadith-header-top {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: clamp(12px, 6vw, 160px);
    padding-right: clamp(12px, 6vw, 160px);
    margin-top: 6px;
}

.hadith-header-top > .badge.hadith-badge {
    font-size: 16px;
    padding: 8px 16px;
}

.hadith-header-top > .nav-actions {
    position: absolute;
    right: max(
        clamp(34px, 4.8vw, 64px),
        calc(var(--hadith-side-inset) + var(--hadith-side-size) + 18px)
    );
    top: 50%;
    transform: translateY(-50%);
}

.badge.hadith-badge {
    background: linear-gradient(135deg, rgba(178, 138, 46, 0.7), rgba(131, 102, 69, 0.7));
    border: 1px solid rgba(178, 138, 46, 0.35);
    color: #fff;
}

body.dark .badge.hadith-badge {
    border-color: rgba(202, 162, 76, 0.3);
}

.hadith-filter-card {
    padding: 18px;
    border-radius: 18px;
    text-align: left;
    background:
        radial-gradient(260px 180px at 18px 18px, rgba(11, 58, 47, 0.08), rgba(11, 58, 47, 0) 66%),
        radial-gradient(260px 180px at calc(100% - 18px) calc(100% - 18px), rgba(20, 58, 82, 0.08), rgba(20, 58, 82, 0) 66%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.hadith-filter-card-compact {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hadith-filter-card-compact .hadith-filter-actions {
    justify-content: flex-end;
}

.hadith-filter-card-compact .hadith-filter-grid {
    grid-template-columns: minmax(180px, 260px) auto;
    align-items: end;
}

.hadith-section-compact {
    padding-top: 0.3cm;
    padding-bottom: 0.3cm;
}

.hadith-section-compact > .section-title {
    margin-bottom: 0.25cm;
}

.hadith-filter-inline {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8px;
    margin-bottom: 4px;
}

.hadith-filter-inline.hadith-filter-grid {
    grid-template-columns: minmax(180px, 260px) auto;
}

@media (max-width: 560px) {
    .hadith-filter-card-compact {
        max-width: none;
    }
    .hadith-filter-card-compact .hadith-filter-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .hadith-filter-card-compact .hadith-filter-actions {
        justify-content: stretch;
    }
    .hadith-filter-card-compact .hadith-filter-submit {
        width: 100%;
    }

    .hadith-filter-inline {
        max-width: none;
    }

    .hadith-filter-inline.hadith-filter-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .hadith-filter-inline .hadith-filter-actions {
        justify-content: stretch;
    }

    .hadith-filter-inline .hadith-filter-submit {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .hadith-header-top {
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }
    .hadith-header-top > .nav-actions {
        position: static;
        transform: none;
    }
}

.hadith-filter-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr auto;
    align-items: start;
}

.hadith-filter-grid-wide {
    grid-template-columns: 1.2fr 1fr 0.7fr auto;
}

.hadith-shell .hadith-filter-grid-wide {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    grid-template-columns: 1.2fr 1fr 0.7fr auto;
    align-items: end;
}

.hadith-shell .hadith-filter-grid-wide .hadith-filter-actions {
    grid-column: 4;
    justify-content: flex-end;
}

.hadith-filter-field {
    display: grid;
    gap: 8px;
}

.hadith-filter-field > span {
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
}

.hadith-filter-field-small {
    max-width: 200px;
}

.hadith-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.hadith-filter-submit {
    white-space: nowrap;
    min-height: 46px;
    padding: 12px 18px;
}

.hadith-collection-grid,
.hadith-book-grid,
.hadith-chapter-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hadith-collection-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.hadith-book-grid > a.card.hadith-card > .badge.hadith-badge {
    align-self: center;
    padding: 6px 12px;
    font-size: 13px;
}

.hadith-book-grid > a.card.hadith-card {
    align-items: center;
    text-align: center;
}

.hadith-shell .hadith-book-grid .hadith-card-title {
    text-align: center;
}

.hadith-shell .hadith-book-grid .hadith-card-ar {
    text-align: center;
}

.hadith-hadith-grid > a.card.hadith-card > .badge.hadith-badge {
    align-self: flex-start;
    padding: 6px 12px;
    font-size: 13px;
}

.hadith-chapter-grid > a.card.hadith-card > .badge.hadith-badge {
    align-self: flex-start;
}

.hadith-collection-grid > a.card.hadith-card {
    align-items: center;
    text-align: center;
    min-height: 158px;
}

.hadith-collection-grid > a.card.hadith-card > .badge.hadith-badge {
    display: none;
}

.hadith-collection-grid > a.card.hadith-card > .hadith-card-title {
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 19px;
}

.hadith-collection-grid > a.card.hadith-card > .hadith-card-meta {
    margin-top: auto;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(178, 138, 46, 0.18);
    background: var(--badge-surface);
}

body.dark .hadith-collection-grid > a.card.hadith-card > .hadith-card-meta {
    border-color: rgba(202, 162, 76, 0.18);
    background: var(--badge-surface);
}

.hadith-hadith-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

a.card.hadith-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 18px;
    padding: 20px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

a.card.hadith-card.mushaf-illumination {
    padding: clamp(24px, 3vw, 34px);
    padding-top: calc(clamp(24px, 3vw, 34px) + 12px);
    padding-bottom: calc(clamp(24px, 3vw, 34px) + 6px);
}

a.card.hadith-card:hover {
    transform: translateY(-2px);
    border-color: rgba(178, 138, 46, 0.45);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

body.dark a.card.hadith-card:hover {
    border-color: rgba(202, 162, 76, 0.45);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.hadith-card-title {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.1px;
}

.hadith-shell .hadith-card-title,
.hadith-shell .hadith-subtitle {
    text-align: left;
}

.hadith-subtitle {
    margin: 0;
    font-size: 18px;
}

.hadith-collection-grid > a.card.hadith-card > .hadith-card-title,
.hadith-collection-grid > a.card.hadith-card > .hadith-subtitle {
    text-align: center;
}

.hadith-card-ar {
    font-family: 'Amiri', serif;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    margin: 0;
    color: var(--quran-tafsir);
}

body.dark .hadith-card-ar {
    color: #e6edea;
}

.hadith-snippet-ar {
    font-family: 'Amiri', serif;
    font-size: 20px;
    line-height: 1.9;
    text-align: right;
    direction: rtl;
    margin: 0;
    color: var(--quran-tafsir);
}

body.dark .hadith-snippet-ar {
    color: #e6edea;
}

.hadith-snippet-id {
    color: var(--text);
    opacity: 0.92;
    font-size: 15px;
    line-height: 1.7;
}

body.dark .hadith-snippet-id {
    color: #e6edea;
    opacity: 0.9;
}

.hadith-card-meta {
    margin: 0;
}

.hadith-book-grid > a.card.hadith-card > .hadith-card-meta,
.hadith-hadith-grid > a.card.hadith-card > .hadith-card-meta,
.hadith-chapter-grid > a.card.hadith-card > .hadith-card-meta {
    align-self: flex-end;
    text-align: right;
}

.hadith-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.hadith-detail-grid > .card.mushaf-illumination {
    padding: clamp(20px, 2.8vw, 30px);
    padding-top: calc(clamp(20px, 2.8vw, 30px) + 14px);
    padding-bottom: calc(clamp(20px, 2.8vw, 30px) + 18px);
}

.hadith-detail-grid > .card.mushaf-illumination .hadith-text-ar,
.hadith-detail-grid > .card.mushaf-illumination .hadith-text-id {
    margin-top: 12px;
}

.hadith-text-ar {
    font-family: 'Amiri', serif;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.95;
    text-align: right;
    direction: rtl;
    margin: 0;
    color: var(--text);
}

body.dark .hadith-text-ar {
    color: #e6edea;
}

.hadith-text-id {
    color: var(--text);
    font-size: 19px;
    line-height: 1.75;
    text-align: justify;
    text-justify: inter-word;
}

body.dark .hadith-text-id {
    color: #e6edea;
}

.hadith-alert {
    border-color: rgba(186, 56, 56, 0.22);
    background:
        radial-gradient(260px 180px at 18px 18px, rgba(186, 56, 56, 0.1), rgba(186, 56, 56, 0) 66%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

body.dark .hadith-alert {
    border-color: rgba(255, 140, 140, 0.22);
    background:
        radial-gradient(260px 180px at 18px 18px, rgba(255, 140, 140, 0.12), rgba(255, 140, 140, 0) 66%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.hadith-pager {
    justify-content: center;
}

@media (max-width: 980px) {
    .hadith-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hadith-filter-grid-wide {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .hadith-filter-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .hadith-filter-submit {
        width: 100%;
    }
    .hadith-filter-field-small {
        max-width: none;
    }

    .hadith-shell .hadith-filter-grid-wide {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .hadith-shell .hadith-filter-grid-wide .hadith-filter-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .hadith-shell .hadith-filter-grid-wide .hadith-filter-submit {
        width: 100%;
    }
}

.quran-surah .media-grid {
    gap: 12px;
    margin-top: 16px;
}

.media-player {
    width: 100%;
}

.audio-tilawah .audio-filter-card {
    border-radius: 18px;
    padding: clamp(18px, 4vw, 2cm);
}

.audio-tilawah-header {
    width: 100%;
    max-width: none;
    text-align: center;
    margin-bottom: 18px;
    padding: clamp(22px, 3.2vw, 34px) clamp(18px, 3vw, 32px);
}

.audio-tilawah-header.has-side-ornaments {
    position: relative;
    overflow: hidden;
    z-index: 0;
    min-height: calc(var(--ornament-side-size) + 80px);
    display: flex;
    align-items: center;
}

.audio-tilawah-header.has-side-ornaments .audio-tilawah-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    gap: 8px;
    justify-items: center;
    padding-left: clamp(130px, 17vw, 220px);
    padding-right: clamp(130px, 17vw, 220px);
}

.audio-tilawah-header.has-side-ornaments .card-side-ornament {
    display: block;
    position: absolute;
    top: 50%;
    max-width: none;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    border-radius: 999px;
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(178, 138, 46, 0.2), rgba(178, 138, 46, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, rgba(247, 245, 240, 0.72), rgba(247, 245, 240, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.28),
        0 12px 22px rgba(0, 0, 0, 0.06);
}

.audio-tilawah-header.has-side-ornaments .card-side-ornament.left {
    left: var(--ornament-side-inset);
    transform: translateY(-50%);
}

.audio-tilawah-header.has-side-ornaments .card-side-ornament.right {
    right: var(--ornament-side-inset);
    transform: translateY(-50%);
}

@media (max-width: 640px) {
    .audio-tilawah-header.has-side-ornaments {
        min-height: auto;
        align-items: stretch;
    }
    .audio-tilawah-header.has-side-ornaments .card-side-ornament {
        display: none;
    }
    .audio-tilawah-header.has-side-ornaments .audio-tilawah-header-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.audio-tilawah-header .section-title {
    font-size: 26px;
    margin-top: 10px;
    margin-bottom: 8px;
}

.audio-tilawah-intro {
    max-width: none;
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
}

.audio-tilawah .audio-filter-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.2fr 1fr 0.9fr auto;
    align-items: start;
}

.audio-tilawah .audio-filter-field {
    display: grid;
    gap: 8px;
}

.audio-compact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-surface);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.audio-compact input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--secondary);
}

.audio-tilawah.is-compact .audio-card-body {
    gap: 10px;
}

.audio-tilawah.is-compact .audio-card-body .translation {
    display: none;
}

.audio-tilawah .audio-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.audio-tilawah .audio-filter-submit {
    white-space: nowrap;
    min-height: 46px;
    padding: 12px 18px;
}

@media (max-width: 860px) {
    .audio-tilawah .audio-filter-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .audio-tilawah .audio-filter-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .audio-tilawah .audio-filter-submit {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .audio-tilawah .audio-filter-grid {
        grid-template-columns: 1fr;
    }
}

.audio-tilawah .audio-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

@media (max-width: 520px) {
    .audio-tilawah .audio-grid {
        grid-template-columns: 1fr;
    }
}

.audio-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: clamp(20px, 4vw, 2cm);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.audio-card:hover {
    transform: translateY(-2px);
    border-color: rgba(178, 138, 46, 0.55);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.09);
}

body.dark .audio-card:hover {
    border-color: rgba(202, 162, 76, 0.55);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

.audio-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.audio-download {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(20, 58, 82, 0.06);
}

body.dark .audio-download {
    background: rgba(127, 210, 255, 0.08);
}

.audio-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audio-badge-secondary {
    background: var(--badge-surface-secondary);
    color: var(--secondary);
}

body.dark .audio-badge-secondary {
    background: var(--badge-surface-secondary);
    color: #7fd2ff;
}

.audio-title {
    margin: 6px 0 12px;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.audio-card-body {
    display: grid;
    gap: 12px;
}

.audio-card-body .audio-title {
    margin: 0;
}

.audio-card-body .translation {
    margin: 0;
}

.audio-card-body .audio-player {
    margin-top: 0;
}

.audio-tilawah .audio-card .ayah {
    font-size: clamp(26px, 3.1vw, 34px);
    line-height: 1.85;
}

.audio-player {
    margin-top: 14px;
}

.audio-el {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    background: rgba(20, 58, 82, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body.dark .audio-controls {
    background: rgba(127, 210, 255, 0.06);
}

.audio-card[data-state="playing"] .audio-controls {
    border-color: rgba(20, 58, 82, 0.45);
    box-shadow: 0 0 0 4px rgba(20, 58, 82, 0.12);
}

body.dark .audio-card[data-state="playing"] .audio-controls {
    border-color: rgba(127, 210, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(127, 210, 255, 0.12);
}

.audio-play {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(20, 58, 82, 0.35);
    background: linear-gradient(135deg, var(--secondary), #1f5f86);
    color: #fff;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.audio-play:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.audio-play:active {
    transform: translateY(0);
}

.audio-play:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 58, 82, 0.18), 0 16px 30px rgba(0, 0, 0, 0.16);
}

body.dark .audio-play:focus-visible {
    box-shadow: 0 0 0 4px rgba(127, 210, 255, 0.18), 0 16px 30px rgba(0, 0, 0, 0.4);
}

.audio-icon {
    width: 20px;
    height: 20px;
}

.audio-icon-pause {
    display: none;
}

.audio-card[data-state="playing"] .audio-icon-play {
    display: none;
}

.audio-card[data-state="playing"] .audio-icon-pause {
    display: block;
}

.audio-scrub {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 6px;
}

@media (max-width: 520px) {
    .audio-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .audio-controls {
        flex-wrap: wrap;
    }

    .audio-scrub {
        flex: 1 0 100%;
    }
}

.audio-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.audio-seek {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(20, 58, 82, 0.16);
    outline: none;
}

body.dark .audio-seek {
    background: rgba(127, 210, 255, 0.18);
}

.audio-seek::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), #2e7aa6);
    border: 2px solid var(--card-surface);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.16);
}

.audio-seek::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(20, 58, 82, 0.16);
}

body.dark .audio-seek::-moz-range-track {
    background: rgba(127, 210, 255, 0.18);
}

.audio-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), #2e7aa6);
    border: 2px solid var(--card-surface);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.16);
}

.sholat-shell .sholat-header {
    padding: 1cm 2cm;
    display: grid;
    gap: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sholat-shell .sholat-header.mushaf-illumination {
    background:
        radial-gradient(360px 260px at 18% 26%, rgba(11, 58, 47, 0.09), rgba(11, 58, 47, 0) 62%),
        radial-gradient(320px 240px at 82% 74%, rgba(178, 138, 46, 0.14), rgba(178, 138, 46, 0) 62%),
        radial-gradient(280px 220px at 22% 92%, rgba(131, 102, 69, 0.12), rgba(131, 102, 69, 0) 64%),
        linear-gradient(135deg, rgba(11, 58, 47, 0.05), rgba(178, 138, 46, 0.06) 55%, rgba(178, 138, 46, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

body.dark .sholat-shell .sholat-header.mushaf-illumination {
    background:
        radial-gradient(380px 280px at 18% 26%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        radial-gradient(340px 260px at 82% 74%, rgba(202, 162, 76, 0.12), rgba(202, 162, 76, 0) 62%),
        radial-gradient(300px 240px at 22% 92%, rgba(138, 106, 68, 0.12), rgba(138, 106, 68, 0) 64%),
        linear-gradient(135deg, rgba(11, 58, 47, 0.1), rgba(202, 162, 76, 0.08) 55%, rgba(202, 162, 76, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.sholat-shell .sholat-header.has-side-ornaments .sholat-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding-top: clamp(10px, 1.6vw, 22px);
    padding-left: clamp(130px, 17vw, 220px);
    padding-right: clamp(130px, 17vw, 220px);
}

.sholat-shell .sholat-header.has-side-ornaments .card-side-ornament,
.sholat-shell .sholat-monthly-card.has-side-ornaments .card-side-ornament {
    display: block;
    position: absolute;
    top: 50%;
    width: var(--ornament-side-size-sm);
    max-width: none;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    border-radius: 999px;
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(178, 138, 46, 0.2), rgba(178, 138, 46, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, rgba(247, 245, 240, 0.72), rgba(247, 245, 240, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.28),
        0 12px 22px rgba(0, 0, 0, 0.06);
}

.sholat-shell .sholat-header.has-side-ornaments .card-side-ornament.left,
.sholat-shell .sholat-monthly-card.has-side-ornaments .card-side-ornament.left {
    left: 1cm;
    transform: translateY(-50%);
}

.sholat-shell .sholat-header.has-side-ornaments .card-side-ornament.right,
.sholat-shell .sholat-monthly-card.has-side-ornaments .card-side-ornament.right {
    right: 1cm;
    transform: translateY(-50%);
}

.sholat-shell .sholat-monthly-card.has-side-ornaments .card-side-ornament {
    top: 4cm;
    width: clamp(110px, 13vw, 180px);
    transform: none;
}

.sholat-shell .sholat-monthly-card.has-side-ornaments .card-side-ornament.left {
    left: 3cm;
}

.sholat-shell .sholat-monthly-card.has-side-ornaments .card-side-ornament.right {
    right: 3cm;
}

.sholat-shell .sholat-header-top {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.sholat-shell .sholat-title {
    margin: 0;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.2px;
    color: var(--primary);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .sholat-shell .sholat-title {
        background: linear-gradient(135deg, var(--primary), var(--mushaf-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.sholat-shell .sholat-subtitle {
    margin: 0;
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}

.sholat-shell .sholat-name-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: clamp(440px, 62vw, 860px);
    padding: clamp(10px, 1.2vw, 14px) clamp(28px, 3.4vw, 60px);
    margin: 6px 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(178, 138, 46, 0.55);
    background:
        radial-gradient(140px 120px at 18% 32%, rgba(178, 138, 46, 0.18), rgba(178, 138, 46, 0) 62%),
        radial-gradient(140px 120px at 82% 68%, rgba(11, 58, 47, 0.1), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, rgba(247, 245, 240, 0.9), rgba(247, 245, 240, 0.9));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
}

.sholat-shell .sholat-name-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.6),
        inset 0 0 0 2px rgba(11, 58, 47, 0.06);
    z-index: 0;
}

.sholat-shell .sholat-name-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.72;
    background-repeat: no-repeat;
    background-image:
        var(--mushaf-ornament-top),
        var(--mushaf-ornament-bottom),
        var(--mushaf-ornament-corner-tl),
        var(--mushaf-ornament-corner-tr),
        var(--mushaf-ornament-corner-bl),
        var(--mushaf-ornament-corner-br);
    background-size:
        clamp(220px, 40vw, 420px) 20px,
        clamp(220px, 40vw, 420px) 20px,
        44px 44px,
        44px 44px,
        44px 44px,
        44px 44px;
    background-position:
        50% 10px,
        50% calc(100% - 10px),
        10px 10px,
        calc(100% - 10px) 10px,
        10px calc(100% - 10px),
        calc(100% - 10px) calc(100% - 10px);
}

.sholat-shell .sholat-filter-card {
    padding: 1cm 2cm;
    border-radius: 18px;
    text-align: left;
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    border-color: rgba(178, 138, 46, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

body.dark .sholat-shell .sholat-filter-card {
    border-color: rgba(202, 162, 76, 0.22);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.sholat-shell .sholat-filter-grid {
    gap: 10px;
    align-items: end;
}

.sholat-shell .sholat-filter-card .hadith-filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.sholat-shell .sholat-filter-card .hadith-filter-actions .button {
    min-height: 38px;
    padding: 8px 14px;
}

.sholat-shell .sholat-filter-card [data-sholat-use-location="true"] {
    font-size: 13px;
    padding-inline: 10px;
    white-space: nowrap;
}

.sholat-shell .sholat-filter-grid .hadith-filter-field > span {
    font-weight: 800;
    font-size: 11px;
    line-height: 1.1;
}

.sholat-shell .sholat-filter-card .hadith-filter-field {
    gap: 5px;
}

.sholat-shell .sholat-filter-card .form-control {
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 14px;
}

.sholat-shell .hadith-filter-submit {
    min-height: 38px;
    padding: 8px 14px;
}

.sholat-shell .sholat-header-top > .badge,
.sholat-summary-card > .badge,
.sholat-today-card > .badge,
.sholat-monthly-card > .badge,
.badge.sholat-time-badge {
    background: linear-gradient(135deg, rgba(178, 138, 46, 0.7), rgba(131, 102, 69, 0.7));
    border: 1px solid rgba(178, 138, 46, 0.35);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2px;
}

body.dark .sholat-shell .sholat-header-top > .badge,
body.dark .sholat-summary-card > .badge,
body.dark .sholat-today-card > .badge,
body.dark .sholat-monthly-card > .badge,
body.dark .badge.sholat-time-badge {
    border-color: rgba(202, 162, 76, 0.3);
}

.sholat-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sholat-summary-card {
    padding: 1cm 2cm;
    display: grid;
    gap: 10px;
    text-align: center;
}

.sholat-summary-card > .badge {
    display: flex;
    width: fit-content;
    margin: 10px auto 0;
}

.sholat-summary-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.1px;
    font-weight: 900;
}

.sholat-next-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.sholat-next-label {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--text);
}

.sholat-next-time {
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 0.4px;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

body.dark .sholat-next-time {
    color: #7fd2ff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .sholat-next-time {
        background: linear-gradient(135deg, var(--primary), var(--mushaf-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    body.dark .sholat-next-time {
        background: linear-gradient(135deg, #7fd2ff, var(--mushaf-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.sholat-today-card {
    padding: 1cm 2cm;
    text-align: center;
}

.sholat-today-card > .badge {
    display: flex;
    width: fit-content;
    margin: 10px auto 0;
}

.sholat-times-grid {
    margin-top: 16px;
    width: min(1400px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(178, 138, 46, 0.16);
    background:
        radial-gradient(420px 260px at 18% 26%, rgba(11, 58, 47, 0.05), rgba(11, 58, 47, 0) 62%),
        radial-gradient(420px 260px at 82% 74%, rgba(178, 138, 46, 0.08), rgba(178, 138, 46, 0) 62%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: stretch;
    overflow-x: hidden;
}

@media (max-width: 1080px) {
    .sholat-times-grid {
        grid-template-columns: repeat(8, minmax(140px, 1fr));
        overflow-x: auto;
    }
}

@media (max-width: 720px) {
    .sholat-times-grid {
        grid-template-columns: repeat(8, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .sholat-times-grid {
        grid-template-columns: repeat(8, minmax(140px, 1fr));
    }
}

body.dark .sholat-times-grid {
    border-color: rgba(202, 162, 76, 0.18);
    background:
        radial-gradient(420px 260px at 18% 26%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        radial-gradient(420px 260px at 82% 74%, rgba(202, 162, 76, 0.1), rgba(202, 162, 76, 0) 62%),
        linear-gradient(0deg, rgba(15, 19, 25, 0.55), rgba(15, 19, 25, 0.55));
}

.sholat-time-card {
    border-radius: 18px;
    padding: 18px 18px 16px;
    display: grid;
    justify-items: center;
    gap: 10px;
    align-content: center;
    min-height: 104px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sholat-time-card.mushaf-illumination {
    padding-top: 26px;
    padding-bottom: 24px;
}

.sholat-time-card:hover {
    transform: translateY(-2px);
    border-color: rgba(178, 138, 46, 0.45);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

body.dark .sholat-time-card:hover {
    border-color: rgba(202, 162, 76, 0.45);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.sholat-time-badge {
    margin: 6px auto 0;
    font-size: 12px;
    letter-spacing: 0.4px;
    padding: 6px 12px;
}

.sholat-time {
    font-weight: 900;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: 0.8px;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

body.dark .sholat-time {
    color: #7fd2ff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .sholat-time {
        background: linear-gradient(135deg, var(--primary), var(--mushaf-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    body.dark .sholat-time {
        background: linear-gradient(135deg, #7fd2ff, var(--mushaf-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.sholat-monthly-card {
    padding: 1cm 2cm;
    position: relative;
    overflow: hidden;
}

.sholat-monthly-card > .badge {
    display: flex;
    width: fit-content;
    margin: 10px auto 0;
}

.sholat-monthly-heading {
    margin-top: 8px;
    display: grid;
    gap: 6px;
    text-align: center;
    justify-items: center;
}

.sholat-monthly-title {
    margin: 0;
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 950;
    letter-spacing: -0.25px;
    line-height: 1.1;
    color: var(--primary);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .sholat-monthly-title {
        background: linear-gradient(135deg, var(--primary), var(--mushaf-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.sholat-monthly-period {
    font-family: 'Amiri', serif;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--text);
}

.sholat-monthly-ornament {
    height: 22px;
    width: min(680px, 100%);
    background-image: var(--mushaf-ornament-top);
    background-size: 680px 22px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.72;
    filter: saturate(1.05);
}

body.dark .sholat-monthly-ornament {
    opacity: 0.85;
    filter: saturate(1.08) brightness(1.05);
}

.sholat-monthly-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.sholat-date-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sholat-clock-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 auto;
}

.sholat-table-wrap {
    margin-top: 14px;
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card-surface);
    box-shadow: inset 0 0 0 1px rgba(178, 138, 46, 0.08);
}

.sholat-table-wrap .table {
    min-width: 860px;
}

.sholat-table-wrap .table th {
    position: sticky;
    top: 0;
    font-weight: 900;
    letter-spacing: 0.15px;
    color: var(--text);
    background:
        radial-gradient(240px 160px at 18px 18px, rgba(11, 58, 47, 0.06), rgba(11, 58, 47, 0) 66%),
        radial-gradient(240px 160px at calc(100% - 18px) calc(100% - 18px), rgba(178, 138, 46, 0.1), rgba(178, 138, 46, 0) 66%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
    z-index: 1;
}

body.dark .sholat-table-wrap {
    box-shadow: inset 0 0 0 1px rgba(202, 162, 76, 0.1);
}

body.dark .sholat-table-wrap .table th {
    background:
        radial-gradient(240px 160px at 18px 18px, rgba(11, 58, 47, 0.14), rgba(11, 58, 47, 0) 66%),
        radial-gradient(240px 160px at calc(100% - 18px) calc(100% - 18px), rgba(202, 162, 76, 0.12), rgba(202, 162, 76, 0) 66%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.sholat-table-wrap .table tbody tr:hover td {
    background: rgba(11, 58, 47, 0.04);
}

body.dark .sholat-table-wrap .table tbody tr:hover td {
    background: rgba(202, 162, 76, 0.07);
}

.sholat-row-today td {
    font-weight: 800;
    background: rgba(11, 58, 47, 0.06);
}

body.dark .sholat-row-today td {
    background: rgba(202, 162, 76, 0.08);
}

@media (max-width: 560px) {
    .sholat-shell .sholat-filter-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .sholat-shell .hadith-filter-actions {
        justify-content: stretch;
    }
    .sholat-shell .hadith-filter-submit {
        width: 100%;
    }
    .sholat-table-wrap .table {
        min-width: 760px;
    }
}

.sholat-countdown-widget {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 55;
    width: min(300px, calc(100vw - 32px));
    border-radius: 18px;
    border: 1px solid rgba(178, 138, 46, 0.28);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(247, 245, 240, 0.9)),
        linear-gradient(140deg, rgba(178, 138, 46, 0.1), rgba(11, 58, 47, 0.06));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    pointer-events: none;
}

body.dark .sholat-countdown-widget {
    border-color: rgba(202, 162, 76, 0.25);
    background:
        linear-gradient(140deg, rgba(15, 19, 25, 0.9), rgba(18, 23, 30, 0.86)),
        linear-gradient(140deg, rgba(202, 162, 76, 0.16), rgba(20, 58, 82, 0.12));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.sholat-countdown-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(178, 138, 46, 0.28);
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    pointer-events: auto;
}

body.dark .sholat-countdown-toggle {
    background: rgba(15, 19, 25, 0.62);
    border-color: rgba(202, 162, 76, 0.32);
}

.sholat-countdown-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 0 0 0 rgba(178, 138, 46, 0.55);
    animation: sholatPulse 1.6s ease-in-out infinite;
}

.sholat-countdown-alarm {
    display: none;
    width: 20px;
    height: 20px;
    fill: #ffffff;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
}

.sholat-countdown-toggle-label {
    display: none;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.6px;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 10px 16px rgba(0, 0, 0, 0.24);
}

.sholat-countdown-widget[data-collapsed="1"] .sholat-countdown-toggle {
    background: linear-gradient(135deg, #ff2d55, #ffb200);
    border-color: rgba(255, 178, 0, 0.55);
    box-shadow: 0 14px 34px rgba(255, 45, 85, 0.35);
}

body.dark .sholat-countdown-widget[data-collapsed="1"] .sholat-countdown-toggle {
    border-color: rgba(255, 178, 0, 0.65);
    box-shadow: 0 14px 34px rgba(255, 45, 85, 0.5);
}

.sholat-countdown-widget[data-collapsed="1"] .sholat-countdown-dot {
    display: none;
}

.sholat-countdown-widget[data-collapsed="1"] .sholat-countdown-alarm {
    display: block;
    animation: sholatAlarmWiggle 0.9s ease-in-out infinite;
}

.sholat-countdown-widget[data-collapsed="1"] .sholat-countdown-toggle-label {
    display: block;
    animation: sholatAlarmWiggle 0.9s ease-in-out infinite;
}

@keyframes sholatAlarmWiggle {
    0% { transform: rotate(0deg) translateY(0); }
    10% { transform: rotate(-12deg) translateY(-1px); }
    20% { transform: rotate(12deg) translateY(-1px); }
    30% { transform: rotate(-10deg) translateY(0); }
    40% { transform: rotate(10deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(0); }
    60% { transform: rotate(6deg) translateY(0); }
    100% { transform: rotate(0deg) translateY(0); }
}

@keyframes sholatClock3D {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-1px) scale(1.06) rotate(-5deg);
    }
    50% {
        transform: translateY(0) scale(1.04) rotate(3deg);
    }
    75% {
        transform: translateY(1px) scale(1.02) rotate(-2deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes sholatPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(178, 138, 46, 0.5);
    }
    60% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px rgba(178, 138, 46, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(178, 138, 46, 0);
    }
}

.sholat-countdown-body {
    padding: 16px;
    padding-right: 16px;
    display: grid;
    gap: 12px;
    pointer-events: auto;
}

.sholat-countdown-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sholat-countdown-title {
    font-weight: 900;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #ff2d55, #ffb200);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sholat-countdown-loc {
    font-size: 12px;
    color: #39414a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.sholat-countdown-main {
    display: grid;
    gap: 6px;
}

.sholat-countdown-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sholat-countdown-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    color: var(--quran-latin);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    animation: sholatClock3D 1.8s ease-in-out infinite;
    transform-origin: center;
}

.sholat-countdown-name {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.2px;
    color: var(--quran-latin);
}

.sholat-countdown-time {
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 0.6px;
    color: var(--quran-latin);
    text-shadow: 0 2px 10px rgba(11, 106, 61, 0.25);
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.sholat-countdown-sub {
    font-size: 12px;
    color: #4b545d;
}

body.dark .sholat-countdown-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

body.dark .sholat-countdown-name {
    color: var(--quran-latin);
}

body.dark .sholat-countdown-time {
    color: var(--quran-latin);
}

body.dark .sholat-countdown-loc,
body.dark .sholat-countdown-sub {
    color: rgba(230, 237, 234, 0.82);
}

.sholat-countdown-widget[data-collapsed="1"] {
    width: 74px;
    height: 74px;
    border-radius: 999px;
}

.sholat-countdown-widget[data-collapsed="1"] .sholat-countdown-toggle {
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
}

@media (max-width: 520px) {
    .sholat-countdown-widget {
        left: 12px;
        right: 12px;
        width: auto;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 8px;
    text-align: left;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    color: var(--muted);
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-left: 6px;
    margin-right: 0;
    vertical-align: middle;
    border-radius: 10px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal-card {
    position: relative;
    width: min(860px, 100%);
    max-height: min(80vh, 720px);
    overflow: auto;
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

@media (min-width: 1200px) {
    .modal[data-sources-modal="true"] .modal-card {
        width: min(1180px, calc(100% - 40px));
        max-height: none;
        overflow: visible;
    }
}

body.dark .modal-card {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.modal-card.mushaf-illumination {
    overflow: hidden;
    padding: 0;
    border-color: rgba(178, 138, 46, 0.35);
    background:
        radial-gradient(140px 140px at 18px 18px, rgba(178, 138, 46, 0.12), rgba(178, 138, 46, 0) 60%),
        radial-gradient(140px 140px at calc(100% - 18px) 18px, rgba(131, 102, 69, 0.1), rgba(131, 102, 69, 0) 60%),
        radial-gradient(140px 140px at 18px calc(100% - 18px), rgba(131, 102, 69, 0.1), rgba(131, 102, 69, 0) 60%),
        radial-gradient(140px 140px at calc(100% - 18px) calc(100% - 18px), rgba(178, 138, 46, 0.12), rgba(178, 138, 46, 0) 60%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

body.dark .modal-card.mushaf-illumination {
    border-color: rgba(202, 162, 76, 0.35);
    background:
        radial-gradient(160px 160px at 18px 18px, rgba(202, 162, 76, 0.14), rgba(202, 162, 76, 0) 60%),
        radial-gradient(160px 160px at calc(100% - 18px) 18px, rgba(138, 106, 68, 0.12), rgba(138, 106, 68, 0) 60%),
        radial-gradient(160px 160px at 18px calc(100% - 18px), rgba(138, 106, 68, 0.12), rgba(138, 106, 68, 0) 60%),
        radial-gradient(160px 160px at calc(100% - 18px) calc(100% - 18px), rgba(202, 162, 76, 0.14), rgba(202, 162, 76, 0) 60%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.sholat-modal-card {
    max-width: 460px;
    text-align: center;
    padding: 22px 22px 20px;
    border-radius: 22px;
    border-color: rgba(11, 58, 47, 0.2);
    background:
        radial-gradient(160px 160px at 12px 12px, rgba(127, 210, 255, 0.18), rgba(127, 210, 255, 0) 60%),
        radial-gradient(200px 180px at calc(100% - 18px) 18px, rgba(202, 162, 76, 0.24), rgba(202, 162, 76, 0) 62%),
        linear-gradient(135deg, #0b3a2f, #103c4f);
    color: #fdfaf3;
}

body.dark .sholat-modal-card {
    border-color: rgba(202, 162, 76, 0.4);
    background:
        radial-gradient(180px 180px at 14px 14px, rgba(127, 210, 255, 0.2), rgba(127, 210, 255, 0) 60%),
        radial-gradient(220px 200px at calc(100% - 18px) 18px, rgba(202, 162, 76, 0.3), rgba(202, 162, 76, 0) 62%),
        linear-gradient(140deg, #071b17, #0b3a2f);
}

.sholat-modal-orbit {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(255, 255, 255, 0.2), transparent 70%),
        conic-gradient(from 210deg, rgba(127, 210, 255, 0.8), rgba(202, 162, 76, 0.9), rgba(11, 58, 47, 0.9), rgba(127, 210, 255, 0.8));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.sholat-modal-moon {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #ffffff, #ffe9c9 55%, #f2c27a 100%);
    box-shadow: 0 0 18px rgba(255, 235, 195, 0.9);
}

.sholat-modal-star {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #fffae6;
    box-shadow: 0 0 12px rgba(255, 250, 230, 0.9);
}

.sholat-modal-star-1 {
    top: 18px;
    left: 12px;
}

.sholat-modal-star-2 {
    top: 10px;
    right: 24px;
}

.sholat-modal-star-3 {
    bottom: 18px;
    right: 10px;
}

.sholat-modal-body {
    display: grid;
    gap: 10px;
}

.sholat-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.18);
    color: #ffe9c9;
}

.sholat-modal-title {
    font-size: 22px;
    margin: 4px 0;
}

.sholat-modal-name {
    color: #ffe08a;
}

.sholat-modal-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(252, 247, 232, 0.96);
}

.sholat-modal-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sholat-modal-actions .button {
    min-width: 120px;
}

.modal-scroll {
    height: 100%;
    max-height: min(80vh, 720px);
    overflow: auto;
    padding: 16px;
}

.modal-card.mushaf-illumination .modal-scroll {
    padding: 22px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.modal-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 18px;
}

.modal-body {
    display: grid;
    gap: 12px;
}

.modal-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.source-card-name {
    font-weight: 700;
    letter-spacing: 0.1px;
    text-align: center;
}

.source-card-desc {
    text-align: center;
}

.source-card-endpoint {
    font-size: 14px;
    text-align: center;
    color: var(--muted);
    word-break: break-all;
}

.surah-info-header {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.surah-info-header .badge {
    margin: 0 auto;
}

.surah-info-header .surah-info-name {
    margin: 2px 0 0;
    font-weight: 900;
    letter-spacing: 0.2px;
    font-size: 16px;
}

.surah-info-header .surah-info-arabic {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
}

.surah-info-meta-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: center;
    gap: 10px;
    padding: 16px 18px;
}

.surah-info-meta-label {
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.2px;
    background: var(--badge-surface);
    padding: 6px 12px;
    border-radius: 999px;
}

.surah-info-meta-value {
    font-weight: 900;
    letter-spacing: 0.2px;
    font-size: 18px;
    text-align: center;
}

.ayah-words-verse {
    font-weight: 800;
    font-size: 16px;
    color: var(--muted);
    text-align: center;
}

.ayah-words-sections {
    display: grid;
    gap: 12px;
}

.ayah-words-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    direction: rtl;
    justify-content: flex-start;
}

.ayah-words-item {
    flex: 1 1 120px;
    min-width: 120px;
    max-width: 220px;
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card-surface);
    text-align: center;
    direction: ltr;
}

body.dark .ayah-words-item {
    background: var(--card-surface);
}

.ayah-words-ar {
    font-family: 'Amiri', serif;
    font-size: 28px;
    line-height: 1.5;
    direction: rtl;
    text-align: center;
    color: var(--text);
}

.ayah-words-bottom {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.ayah-words-id {
    color: var(--quran-arti);
}

.ayah-words-latin {
    color: var(--quran-latin);
    font-style: italic;
}

@media (max-width: 560px) {
    .surah-info-header .surah-info-arabic {
        font-size: 26px;
    }
    .ayah-words-item {
        min-width: 104px;
        padding: 9px 10px;
    }
    .ayah-words-ar {
        font-size: 24px;
    }
}

.icon-3d {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.icon-3d svg {
    width: 38px;
    height: 38px;
}

.icon-3d.icon-3d-quran {
    background: radial-gradient(80px 80px at 25% 20%, rgba(11, 58, 47, 0.18), rgba(11, 58, 47, 0) 60%), var(--card-surface);
    color: var(--primary);
}

body.dark .icon-3d.icon-3d-quran {
    background: radial-gradient(80px 80px at 25% 20%, rgba(202, 162, 76, 0.16), rgba(202, 162, 76, 0) 60%), var(--card-surface);
    color: var(--mushaf-gold);
}

.icon-3d.icon-3d-audio {
    background: radial-gradient(80px 80px at 25% 20%, rgba(20, 58, 82, 0.18), rgba(20, 58, 82, 0) 60%), var(--card-surface);
    color: var(--secondary);
}

body.dark .icon-3d.icon-3d-audio {
    background: radial-gradient(80px 80px at 25% 20%, rgba(127, 210, 255, 0.18), rgba(127, 210, 255, 0) 60%), var(--card-surface);
    color: var(--quran-arti);
}

.icon-3d.icon-3d-hadith {
    background: radial-gradient(80px 80px at 25% 20%, rgba(178, 138, 46, 0.18), rgba(178, 138, 46, 0) 60%), var(--card-surface);
    color: var(--mushaf-gold-2);
}

body.dark .icon-3d.icon-3d-hadith {
    background: radial-gradient(80px 80px at 25% 20%, rgba(202, 162, 76, 0.16), rgba(202, 162, 76, 0) 60%), var(--card-surface);
    color: var(--mushaf-gold);
}

.icon-3d.icon-3d-sholat {
    background: radial-gradient(80px 80px at 25% 20%, rgba(11, 106, 61, 0.16), rgba(11, 106, 61, 0) 60%), var(--card-surface);
    color: var(--quran-latin);
}

body.dark .icon-3d.icon-3d-sholat {
    background: radial-gradient(80px 80px at 25% 20%, rgba(22, 151, 119, 0.16), rgba(22, 151, 119, 0) 60%), var(--card-surface);
    color: #7fe3c8;
}

.icon-3d:hover {
    transform: scale(1.05);
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.notice {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(131, 102, 69, 0.12);
    color: var(--accent);
    font-size: 14px;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 80;
    max-width: min(560px, calc(100% - 32px));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border);
}

.copy-popover {
    position: fixed;
    z-index: 90;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--card-surface);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    pointer-events: none;
    white-space: nowrap;
}

.learn-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.learn-progress {
    height: 10px;
    background: rgba(20, 58, 82, 0.12);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
}

.learn-progress-bar {
    height: 100%;
    width: 0;
    background: var(--secondary);
    border-radius: 999px;
}

.learn-percent {
    min-width: 44px;
    text-align: right;
    font-weight: 700;
}

.learn-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.learn-header {
    padding-top: clamp(10px, 1.4vw, 20px);
    padding-left: 2cm;
    padding-right: 2cm;
}

.learn-header .section {
    padding-top: 16px;
    padding-bottom: 12px;
}

.learn-shell .learn-header.has-side-ornaments {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.learn-shell .learn-header.has-side-ornaments .learn-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding-left: clamp(130px, 17vw, 220px);
    padding-right: clamp(130px, 17vw, 220px);
}

.learn-shell .learn-header.has-side-ornaments .card-side-ornament {
    display: block;
    position: absolute;
    top: 48%;
    width: var(--ornament-side-size-sm);
    max-width: none;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    border-radius: 999px;
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(178, 138, 46, 0.2), rgba(178, 138, 46, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, rgba(247, 245, 240, 0.72), rgba(247, 245, 240, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.28),
        0 12px 22px rgba(0, 0, 0, 0.06);
    transform: translateY(-50%);
}

.learn-shell .learn-header.has-side-ornaments .card-side-ornament.left {
    left: var(--ornament-side-inset);
}

.learn-shell .learn-header.has-side-ornaments .card-side-ornament.right {
    right: var(--ornament-side-inset);
}

@media (max-width: 640px) {
    .learn-shell .learn-header.has-side-ornaments .card-side-ornament {
        display: none;
    }
    .learn-shell .learn-header.has-side-ornaments .learn-header-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.learn-header .learn-controls {
    margin-bottom: 10px;
}

.learn-header > .learn-mode {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.learn-lesson-link {
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: var(--bg);
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.learn-lesson-link:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 58, 82, 0.35);
}

.learn-lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.learn-lesson-title {
    font-weight: 700;
}

.learn-lesson-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 120px;
}

.learn-lesson-list {
    gap: 2cm;
}

.learn-lesson-link.is-locked {
    opacity: 0.55;
    transform: none;
}

.learn-item {
    width: 100%;
    cursor: pointer;
    text-align: left;
    appearance: none;
    font: inherit;
    padding: 2cm;
}

.learn-items {
    gap: 2cm;
}

[data-type="letters"] .learn-items .learn-item,
[data-type="patterns"] .learn-items .learn-item {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 6px;
    padding: 28px 20px;
}

[data-type="letters"] .learn-items .learn-arabic,
[data-type="patterns"] .learn-items .learn-arabic {
    text-align: center;
}

.learn-item.is-playing {
    border-color: rgba(20, 58, 82, 0.6);
    box-shadow: 0 0 0 3px rgba(20, 58, 82, 0.12);
}

.learn-item.is-playing .learn-ayah {
    background: rgba(20, 58, 82, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.learn-summary-box {
    display: grid;
    gap: 2cm;
}

.learn-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}

.learn-arabic {
    font-family: 'Amiri', serif;
    font-size: 54px;
    text-align: center;
    line-height: 1.1;
}

.learn-item-label {
    font-weight: 700;
    margin-top: 10px;
}

.learn-ayah {
    margin: 10px 0 14px;
}

.learn-inline-card {
    margin-top: 16px;
    padding: 16px;
    background: rgba(11, 58, 47, 0.04);
}

.learn-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.learn-link {
    text-decoration: underline;
}

.learn-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
}

.learn-check input {
    margin-top: 4px;
}

.learn-follow {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 22px;
    z-index: 50;
}

.learn-follow-card {
    width: min(520px, 100%);
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-inner {
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }
    .nav-brand-wrap {
        margin-left: 0;
    }
    .nav-menu-toggle {
        display: inline-flex;
    }
    .nav-links-wrap {
        width: 100%;
        order: 3;
        align-items: stretch;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-actions {
        margin-left: auto;
    }
    .hero-title {
        font-size: 30px;
    }
    .home-shell .hero {
        justify-items: start;
        text-align: left;
    }
    .home-shell .quick-actions {
        margin-left: 0;
        margin-right: 0;
    }
    .home-hero-card {
        transform: none;
        margin-top: 0;
    }
    .surah-card-row {
        flex-direction: column;
        align-items: stretch;
    }
    .surah-card-arabic {
        min-width: 0;
    }
    .learn-lesson-meta {
        min-width: 92px;
    }
    .learn-arabic {
        font-size: 46px;
    }
}

.tajweed-legend-note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.tajweed-legend-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tajweed-legend-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px 12px;
    align-content: start;
}

.tajweed-legend-swatch {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(178, 138, 46, 0.22);
    background:
        radial-gradient(120px 90px at 16px 16px, rgba(178, 138, 46, 0.12), rgba(178, 138, 46, 0) 62%),
        radial-gradient(120px 90px at calc(100% - 16px) calc(100% - 16px), rgba(11, 58, 47, 0.08), rgba(11, 58, 47, 0) 62%),
        rgba(11, 58, 47, 0.03);
    min-height: 92px;
}

body.dark .tajweed-legend-swatch {
    border-color: rgba(202, 162, 76, 0.22);
    background:
        radial-gradient(120px 90px at 16px 16px, rgba(202, 162, 76, 0.14), rgba(202, 162, 76, 0) 62%),
        radial-gradient(120px 90px at calc(100% - 16px) calc(100% - 16px), rgba(127, 210, 255, 0.1), rgba(127, 210, 255, 0) 62%),
        rgba(202, 162, 76, 0.06);
}

.tajweed-legend-chip {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: currentColor;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
}

body.dark .tajweed-legend-chip {
    border-color: rgba(255, 255, 255, 0.2);
}

.tajweed-legend-sample {
    font-family: 'Amiri', serif;
    font-size: 30px;
    line-height: 1.2;
    direction: rtl;
    text-align: center;
    flex: 1 1 auto;
}

.tajweed-legend-title {
    grid-column: 2;
    font-weight: 900;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.tajweed-legend-desc {
    grid-column: 2;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.doa-shell {
    display: grid;
    gap: 14px;
}

.doa-header {
    padding: clamp(20px, 3vw, 30px);
    padding-top: clamp(40px, 4.4vw, 64px);
    padding-bottom: clamp(30px, 3.6vw, 48px);
    min-height: clamp(300px, 26vw, 420px);
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
    z-index: 0;
    overflow: hidden;
    --doa-side-inset: var(--ornament-side-inset);
    --doa-side-size: var(--ornament-side-size);
}

.doa-header-doa.mushaf-illumination {
    background:
        radial-gradient(260px 220px at 18% 22%, rgba(11, 58, 47, 0.08), rgba(11, 58, 47, 0) 62%),
        radial-gradient(260px 220px at 82% 78%, rgba(178, 138, 46, 0.14), rgba(178, 138, 46, 0) 62%),
        radial-gradient(220px 200px at 18% 86%, rgba(131, 102, 69, 0.12), rgba(131, 102, 69, 0) 64%),
        radial-gradient(220px 200px at 82% 18%, rgba(178, 138, 46, 0.1), rgba(178, 138, 46, 0) 64%),
        linear-gradient(135deg, rgba(11, 58, 47, 0.04), rgba(178, 138, 46, 0.06) 55%, rgba(178, 138, 46, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

body.dark .doa-header-doa.mushaf-illumination {
    background:
        radial-gradient(280px 240px at 18% 22%, rgba(202, 162, 76, 0.16), rgba(202, 162, 76, 0) 62%),
        radial-gradient(260px 220px at 82% 78%, rgba(230, 237, 234, 0.12), rgba(230, 237, 234, 0) 62%),
        radial-gradient(240px 200px at 18% 86%, rgba(138, 106, 68, 0.14), rgba(138, 106, 68, 0) 64%),
        radial-gradient(240px 200px at 82% 18%, rgba(202, 162, 76, 0.14), rgba(202, 162, 76, 0) 64%),
        linear-gradient(135deg, rgba(11, 58, 47, 0.08), rgba(202, 162, 76, 0.08) 55%, rgba(202, 162, 76, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.doa-header-asma.mushaf-illumination {
    background:
        radial-gradient(260px 220px at 18% 22%, rgba(20, 58, 82, 0.09), rgba(20, 58, 82, 0) 62%),
        radial-gradient(260px 220px at 82% 78%, rgba(127, 210, 255, 0.14), rgba(127, 210, 255, 0) 62%),
        radial-gradient(220px 200px at 18% 86%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 64%),
        radial-gradient(220px 200px at 82% 18%, rgba(178, 138, 46, 0.12), rgba(178, 138, 46, 0) 64%),
        linear-gradient(135deg, rgba(20, 58, 82, 0.06), rgba(127, 210, 255, 0.08) 55%, rgba(127, 210, 255, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

body.dark .doa-header-asma.mushaf-illumination {
    background:
        radial-gradient(280px 240px at 18% 22%, rgba(127, 210, 255, 0.16), rgba(127, 210, 255, 0) 62%),
        radial-gradient(260px 220px at 82% 78%, rgba(202, 162, 76, 0.16), rgba(202, 162, 76, 0) 62%),
        radial-gradient(240px 200px at 18% 86%, rgba(11, 58, 47, 0.18), rgba(11, 58, 47, 0) 64%),
        radial-gradient(240px 200px at 82% 18%, rgba(127, 210, 255, 0.16), rgba(127, 210, 255, 0) 64%),
        linear-gradient(135deg, rgba(20, 58, 82, 0.14), rgba(127, 210, 255, 0.16) 55%, rgba(127, 210, 255, 0) 100%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
}

.doa-header > :not(.doa-side-image) {
    position: relative;
    z-index: 2;
}

.doa-side-image {
    position: absolute;
    top: 50%;
    width: var(--doa-side-size);
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    border-radius: 999px;
    border: 1px solid rgba(178, 138, 46, 0.28);
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(178, 138, 46, 0.2), rgba(178, 138, 46, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(11, 58, 47, 0.12), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, rgba(247, 245, 240, 0.72), rgba(247, 245, 240, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(178, 138, 46, 0.28),
        0 12px 22px rgba(0, 0, 0, 0.06);
    object-fit: contain;
    filter: contrast(1.1) saturate(1.05) brightness(1.03);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    max-width: none;
    transform: translateY(-50%);
}

.doa-side-image-left {
    left: var(--doa-side-inset);
}

.doa-side-image-right {
    right: var(--doa-side-inset);
}

body.dark .doa-side-image {
    opacity: 0.9;
    border-color: rgba(202, 162, 76, 0.24);
    background:
        radial-gradient(110px 110px at 22% 28%, rgba(202, 162, 76, 0.2), rgba(202, 162, 76, 0) 62%),
        radial-gradient(110px 110px at 78% 72%, rgba(230, 237, 234, 0.08), rgba(230, 237, 234, 0) 62%),
        linear-gradient(0deg, rgba(13, 18, 17, 0.72), rgba(13, 18, 17, 0.72));
    box-shadow:
        inset 0 0 0 1px rgba(202, 162, 76, 0.24),
        0 12px 22px rgba(0, 0, 0, 0.22);
    filter: contrast(1.14) saturate(1.04) brightness(1.04);
}

@media (max-width: 720px) {
    .doa-header {
        --doa-side-inset: var(--ornament-side-inset-sm);
        --doa-side-size: clamp(160px, 30vw, 230px);
    }
    .doa-side-image {
        opacity: 0.5;
        padding: 10px;
    }
    body.dark .doa-side-image {
        opacity: 0.36;
    }
}

@media (max-width: 640px) {
    .doa-side-image {
        display: none;
    }
}

.doa-header-top {
    display: flex;
    justify-content: center;
    width: 100%;
}

.doa-badge {
    background: var(--badge-surface-strong);
}

body.dark .doa-badge {
    background: var(--badge-surface-strong);
    color: var(--mushaf-gold);
}

.doa-page-title {
    margin: 0;
}

.doa-subtitle {
    margin: 0;
    max-width: 74ch;
}

.doa-header-divider {
    width: min(720px, 92%);
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0),
        var(--mushaf-gold),
        var(--mushaf-gold-2),
        var(--mushaf-gold),
        rgba(0, 0, 0, 0)
    );
    box-shadow: 0 10px 20px rgba(178, 138, 46, 0.16);
}

body.dark .doa-header-divider {
    box-shadow: 0 10px 22px rgba(202, 162, 76, 0.22);
}

.doa-toolbar-card {
    width: min(860px, 100%);
    padding: 14px 16px;
    border-radius: 18px;
    border-color: rgba(178, 138, 46, 0.22);
    background:
        radial-gradient(120px 90px at 18px 18px, rgba(178, 138, 46, 0.1), rgba(178, 138, 46, 0) 62%),
        radial-gradient(120px 90px at calc(100% - 18px) calc(100% - 18px), rgba(11, 58, 47, 0.08), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

body.dark .doa-toolbar-card {
    border-color: rgba(202, 162, 76, 0.24);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.doa-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.doa-toolbar .form-control {
    flex: 1 1 320px;
}

.doa-count {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(178, 138, 46, 0.2);
    background: rgba(11, 58, 47, 0.04);
}

body.dark .doa-count {
    border-color: rgba(202, 162, 76, 0.24);
    background: rgba(202, 162, 76, 0.08);
}

.doa-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

@media (min-width: 980px) {
    .doa-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .doa-list > .doa-item[open] {
        grid-column: 1 / -1;
    }
}

.doa-item {
    padding: 14px 16px;
    border-color: rgba(178, 138, 46, 0.12);
    background:
        radial-gradient(120px 90px at 16px 16px, rgba(178, 138, 46, 0.08), rgba(178, 138, 46, 0) 62%),
        radial-gradient(120px 90px at calc(100% - 16px) calc(100% - 16px), rgba(11, 58, 47, 0.06), rgba(11, 58, 47, 0) 62%),
        linear-gradient(0deg, var(--card-surface), var(--card-surface));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.doa-item:hover {
    transform: translateY(-2px);
    border-color: rgba(178, 138, 46, 0.32);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.12);
}

body.dark .doa-item {
    border-color: rgba(202, 162, 76, 0.14);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
}

body.dark .doa-item:hover {
    border-color: rgba(202, 162, 76, 0.34);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.56);
}

.doa-item:focus-within {
    outline: 3px solid rgba(178, 138, 46, 0.32);
    outline-offset: 4px;
}

body.dark .doa-item:focus-within {
    outline-color: rgba(202, 162, 76, 0.34);
}

.doa-item[hidden] {
    display: none;
}

.doa-item > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    user-select: none;
    padding: 8px 8px;
    border-radius: 14px;
    transition: background 160ms ease;
}

.doa-item > summary .badge {
    margin-left: auto;
    border: 1px solid rgba(178, 138, 46, 0.2);
    background: rgba(178, 138, 46, 0.12);
    color: var(--mushaf-gold-2);
    font-weight: 800;
}

body.dark .doa-item > summary .badge {
    border-color: rgba(202, 162, 76, 0.22);
    background: rgba(202, 162, 76, 0.14);
    color: var(--mushaf-gold);
}

.doa-item > summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(11, 58, 47, 0.62);
    border-bottom: 2px solid rgba(11, 58, 47, 0.62);
    transform: rotate(45deg);
    flex: 0 0 auto;
    margin-left: 2px;
    transition: transform 160ms ease, border-color 160ms ease;
}

body.dark .doa-item > summary::after {
    border-right-color: rgba(230, 237, 234, 0.6);
    border-bottom-color: rgba(230, 237, 234, 0.6);
}

.doa-item[open] > summary::after {
    transform: rotate(-135deg);
}

.doa-item > summary:hover {
    background: rgba(11, 58, 47, 0.04);
}

body.dark .doa-item > summary:hover {
    background: rgba(202, 162, 76, 0.08);
}

.doa-item[open] > summary {
    background: rgba(11, 58, 47, 0.035);
    border: 1px solid rgba(178, 138, 46, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.dark .doa-item[open] > summary {
    background: rgba(202, 162, 76, 0.06);
    border-color: rgba(202, 162, 76, 0.18);
}

.doa-item > summary::-webkit-details-marker {
    display: none;
}

.doa-title {
    font-weight: 900;
    letter-spacing: 0.2px;
    color: var(--text);
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(18px, 2.4vw, 22px);
}

.doa-body {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    padding-left: 8px;
    padding-right: 8px;
}

.doa-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.85;
    color: var(--quran-tafsir);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.doa-latin {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    font-style: italic;
}

.doa-meaning {
    font-size: 17px;
    line-height: 1.75;
}

.doa-source {
    margin-top: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--muted);
}
