* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.premium-body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    background: #08130f;
}

.theme-emerald-gold {
    --emerald-1: #08130f;
    --emerald-2: #0d241d;
    --emerald-3: #11362d;
    --emerald-4: #0f4c3d;
    --gold-1: #d4af37;
    --gold-2: #f1d27a;
    --gold-3: #ffecb3;
    --text-soft: #e9f6ef;
}

/* =========================
   BACKGROUND
========================= */
.premium-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: var(--emerald-1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
}

.premium-bg.default-bg {
    background:
        radial-gradient(circle at top left, rgba(212,175,55,0.20), transparent 24%),
        radial-gradient(circle at top right, rgba(30,180,140,0.18), transparent 24%),
        radial-gradient(circle at bottom center, rgba(241,210,122,0.10), transparent 26%),
        linear-gradient(135deg, var(--emerald-1) 0%, var(--emerald-2) 36%, var(--emerald-3) 70%, var(--emerald-4) 100%);
}

.premium-bg.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 12, 10, 0.42), rgba(4, 12, 10, 0.76)),
        radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 55%);
}

.premium-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(2, 9, 7, 0.16), rgba(2, 9, 7, 0.48)),
        radial-gradient(circle at center, rgba(255,255,255,0.02), transparent 56%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.premium-pattern {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.06;
    background-image:
        linear-gradient(30deg, rgba(241,210,122,0.45) 12%, transparent 12.5%, transparent 87%, rgba(241,210,122,0.45) 87.5%, rgba(241,210,122,0.45)),
        linear-gradient(150deg, rgba(241,210,122,0.45) 12%, transparent 12.5%, transparent 87%, rgba(241,210,122,0.45) 87.5%, rgba(241,210,122,0.45));
    background-size: 120px 210px;
}

/* =========================
   SCREEN STATE
========================= */
.screen-state {
    position: relative;
    z-index: 2;
    transition: filter 0.6s ease, transform 0.6s ease, opacity 0.6s ease;
}

.screen-state.blurred-mode {
    filter: blur(10px) brightness(0.75);
    transform: scale(1.01);
}

.premium-screen {
    min-height: 100vh;
    padding: 28px 36px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(241, 210, 122, 0.16);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.premium-shadow {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.hidden {
    display: none !important;
}

/* =========================
   HEADER
========================= */
.hero-header {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.brand-box {
    border-radius: 30px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 140px;
}

.brand-logo {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(241,210,122,0.25), rgba(255,255,255,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241,210,122,0.24);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-fallback {
    font-size: 54px;
    line-height: 1;
}

.brand-text {
    min-width: 0;
}

.brand-text h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
    color: #fff7dc;
    line-height: 1.08;
}

.brand-text p {
    margin: 8px 0 12px;
    font-size: 18px;
    color: var(--text-soft);
    opacity: 0.95;
    line-height: 1.35;
}

.brand-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: 17px;
    font-weight: 600;
    border: 1px solid rgba(241,210,122,0.16);
    max-width: 100%;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #38efb3;
    box-shadow: 0 0 16px rgba(56, 239, 179, 0.8);
    flex-shrink: 0;
}

.right-info {
    display: flex;
}

.date-card {
    border-radius: 30px;
    padding: 22px 24px;
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.82;
    color: #f3e1a0;
}

.big-date {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
}

.hijri-badge {
    margin-top: 16px;
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212,175,55,0.28), rgba(255,255,255,0.08));
    border: 1px solid rgba(212,175,55,0.36);
    color: #ffe8a6;
    font-weight: 800;
    font-size: 14px;
}

/* =========================
   CLOCK PANEL
========================= */
.hero-main {
    display: block;
}

.time-panel {
    border-radius: 34px;
    padding: 28px 30px;
    position: relative;
    overflow: hidden;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.big-clock {
    font-size: 122px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    margin-top: 6px;
    color: #fffdfa;
    text-shadow: 0 0 24px rgba(212,175,55,0.12);
}

.next-prayer-badge {
    min-width: 280px;
    border-radius: 24px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(212,175,55,0.20), rgba(255,255,255,0.08));
    border: 1px solid rgba(212,175,55,0.30);
    text-align: center;
}

.np-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.90;
    font-weight: 700;
    color: #f6e5a6;
}

.np-name {
    margin-top: 8px;
    font-size: 36px;
    font-weight: 900;
    color: #fff9e6;
    line-height: 1.1;
}

.np-time {
    margin-top: 6px;
    font-size: 30px;
    font-weight: 800;
    color: #c8ffe9;
}

.countdown-wrap {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(241,210,122,0.14);
}

.premium-countdown {
    margin-top: 6px;
    font-size: 46px;
    font-weight: 900;
    color: #ffe39c;
    letter-spacing: 2px;
}

/* =========================
   PRAYER GRID
========================= */
.prayer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-title-row h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    color: #fff7dc;
    line-height: 1.1;
}

.section-badge {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(241,210,122,0.18);
    font-weight: 700;
    font-size: 14px;
    color: #effbff;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.prayer-card {
    border-radius: 28px;
    padding: 22px 16px;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.prayer-icon {
    font-size: 34px;
    margin-bottom: 10px;
    line-height: 1;
}

.prayer-name {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #fff9e8;
    line-height: 1.1;
}

.prayer-time {
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}

.prayer-status {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 700;
    opacity: 0.92;
    color: #dff8ea;
    line-height: 1.2;
}

.prayer-card.next-card {
    background: linear-gradient(135deg, rgba(56,239,179,0.16), rgba(255,255,255,0.08));
    border: 2px solid rgba(56,239,179,0.38);
    transform: translateY(-4px);
}

.prayer-card.active-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.22), rgba(255,255,255,0.08));
    border: 2px solid rgba(212,175,55,0.42);
}

/* =========================
   FOOTER
========================= */
.footer-panel {
    border-radius: 22px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(241, 210, 122, 0.15);
    backdrop-filter: blur(10px);
}

.footer-left {
    display: flex;
    align-items: center;
    width: fit-content;
    flex-shrink: 0;
}

.footer-title {
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212,175,55,0.25), rgba(255,255,255,0.08));
    border: 1px solid rgba(212,175,55,0.3);
    font-size: 16px;
    font-weight: 800;
    color: #ffe39c;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(212,175,55,0.15);
}

.footer-right {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.footer-right marquee {
    width: 100%;
    font-size: 18px;
    line-height: 1.3;
    color: #eafff7;
}

/* =========================
   BUTTONS
========================= */
.audio-enable-btn,
.install-app-btn {
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

body.device-tv .audio-enable-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9999;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
    color: #102218;
    background: linear-gradient(135deg, #f1d27a, #d4af37);
    opacity: 0.95;
}

body.device-tv .install-app-btn {
    position: fixed;
    left: 18px;
    bottom: 68px;
    z-index: 9999;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
    color: #102218;
    background: linear-gradient(135deg, #9df7d2, #38efb3);
}

body.device-mobile .audio-enable-btn {
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 9999;
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f1d27a, #d4af37);
    color: #102218;
    opacity: 0.90;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

body.device-mobile .install-app-btn {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 10px;
    background: linear-gradient(135deg, #9df7d2, #38efb3);
    color: #102218;
    opacity: 0.90;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

/* =========================
   MODAL & OVERLAY
========================= */
.prayer-modal,
.azan-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 10, 8, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.prayer-modal-card,
.azan-overlay-card {
    width: min(760px, 90vw);
    border-radius: 30px;
    padding: 34px 28px;
    text-align: center;
    background: linear-gradient(135deg, rgba(14,46,37,0.92), rgba(28,78,62,0.88));
    border: 1px solid rgba(241,210,122,0.28);
    box-shadow: 0 24px 80px rgba(0,0,0,0.38);
}

.modal-badge,
.azan-label {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(212,175,55,0.18);
    color: #ffe39c;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.prayer-modal-card h2,
.azan-name {
    margin: 18px 0 10px;
    font-size: 46px;
    font-weight: 900;
    color: #fff8e1;
    line-height: 1.15;
}

.prayer-modal-card p,
.azan-subtext {
    margin: 0;
    font-size: 24px;
    color: #e2fff3;
    line-height: 1.4;
}

.modal-time {
    margin-top: 18px;
    font-size: 54px;
    font-weight: 900;
    color: #f1d27a;
}

.prayer-modal-card {
    animation: reminderPop 0.45s ease;
}

@keyframes reminderPop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(18px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================
   RESPONSIVE TABLET / SMALL DESKTOP
========================= */
@media (max-width: 1600px) {
    .big-clock {
        font-size: 104px;
    }

    .premium-countdown {
        font-size: 40px;
    }

    .prayer-name {
        font-size: 26px;
    }

    .prayer-time {
        font-size: 40px;
    }
}

@media (max-width: 1400px) {
    .hero-header {
        grid-template-columns: 1.5fr 1fr;
    }

    .big-clock {
        font-size: 92px;
    }

    .premium-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .prayer-card {
        min-height: 185px;
    }
}

@media (max-width: 1100px) {
    body.premium-body {
        overflow-y: auto;
    }

    .premium-screen {
        min-height: auto;
    }

    .hero-header {
        grid-template-columns: 1fr;
    }

    .panel-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .next-prayer-badge {
        width: 100%;
        min-width: 0;
    }

    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-panel {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MOBILE AUTO MODE
========================= */
@media screen and (max-width: 640px) and (orientation: portrait) {
    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 100%;
        overflow: hidden;
    }

    body.device-mobile.auto-device-layout,
    body.device-mobile.premium-body {
        overflow: hidden;
    }

    body.device-mobile .premium-screen {
        height: 100vh;
        min-height: 100vh;
        padding: 8px;
        gap: 8px;
        display: grid;
        grid-template-rows: auto auto auto 1fr auto;
    }

    body.device-mobile .hero-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.device-mobile .brand-box {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 16px;
        min-height: auto;
    }

    body.device-mobile .brand-logo {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    body.device-mobile .logo-fallback {
        font-size: 24px;
    }

    body.device-mobile .brand-text h1 {
        font-size: 16px;
        line-height: 1.1;
        margin: 0;
    }

    body.device-mobile .brand-text p {
        font-size: 10px;
        margin: 3px 0 5px;
        line-height: 1.2;
    }

    body.device-mobile .brand-location {
        font-size: 10px;
        padding: 4px 8px;
        gap: 6px;
    }

    body.device-mobile .dot {
        width: 6px;
        height: 6px;
    }

    body.device-mobile .date-card {
        padding: 10px 12px;
        border-radius: 16px;
    }

    body.device-mobile .small-label {
        font-size: 9px;
        letter-spacing: .5px;
    }

    body.device-mobile .big-date {
        font-size: 14px;
        line-height: 1.25;
        margin-top: 4px;
    }

    body.device-mobile .hijri-badge {
        margin-top: 6px;
        font-size: 9px;
        padding: 4px 8px;
    }

    body.device-mobile .time-panel {
        padding: 10px 12px;
        border-radius: 18px;
    }

    body.device-mobile .panel-top {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    body.device-mobile .panel-top > div:first-child {
        flex: 1;
        min-width: 0;
    }

    body.device-mobile .big-clock {
        font-size: 30px;
        letter-spacing: 1px;
        text-align: left;
        margin-top: 2px;
    }

    body.device-mobile .next-prayer-badge {
        width: 42%;
        min-width: 120px;
        padding: 10px;
        border-radius: 14px;
    }

    body.device-mobile .np-title {
        font-size: 9px;
    }

    body.device-mobile .np-name {
        font-size: 14px;
        margin-top: 4px;
    }

    body.device-mobile .np-time {
        font-size: 13px;
        margin-top: 2px;
    }

    body.device-mobile .countdown-wrap {
        margin-top: 8px;
        padding-top: 8px;
        text-align: center;
    }

    body.device-mobile .premium-countdown {
        font-size: 20px;
        letter-spacing: 1px;
        margin-top: 2px;
    }

    body.device-mobile .prayer-section {
        gap: 8px;
        min-height: 0;
    }

    body.device-mobile .section-title-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }

    body.device-mobile .section-title-row h2 {
        font-size: 14px;
        margin: 0;
    }

    body.device-mobile .section-badge {
        font-size: 9px;
        padding: 4px 8px;
        max-width: 44%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.device-mobile .premium-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    body.device-mobile .prayer-card {
        min-height: 78px;
        padding: 8px 6px;
        border-radius: 14px;
    }

    body.device-mobile .prayer-icon {
        font-size: 14px;
        margin-bottom: 3px;
    }

    body.device-mobile .prayer-name {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.1;
    }

    body.device-mobile .prayer-time {
        font-size: 16px;
        line-height: 1;
    }

    body.device-mobile .prayer-status {
        margin-top: 4px;
        font-size: 8px;
        line-height: 1.1;
    }

    body.device-mobile .footer-panel {
        grid-template-columns: auto 1fr;
        gap: 6px;
        padding: 6px 8px;
        border-radius: 14px;
        max-height: 32px;
        overflow: hidden;
    }

    body.device-mobile .footer-title {
        font-size: 10px;
        padding: 4px 8px;
    }

    body.device-mobile .footer-right marquee {
        font-size: 10px;
        line-height: 1.2;
        height: 16px;
    }

    body.device-mobile .prayer-modal,
    body.device-mobile .azan-overlay {
        padding: 10px;
    }

    body.device-mobile .prayer-modal-card,
    body.device-mobile .azan-overlay-card {
        width: 100%;
        border-radius: 16px;
        padding: 18px 14px;
    }

    body.device-mobile .modal-badge,
    body.device-mobile .azan-label {
        font-size: 9px;
        padding: 5px 8px;
    }

    body.device-mobile .prayer-modal-card h2,
    body.device-mobile .azan-name {
        font-size: 20px;
        margin: 10px 0 6px;
    }

    body.device-mobile .prayer-modal-card p,
    body.device-mobile .azan-subtext {
        font-size: 12px;
        line-height: 1.3;
    }

    body.device-mobile .modal-time {
        font-size: 26px;
        margin-top: 10px;
    }
}

/* =========================
   STANDALONE SAFE AREA
========================= */
@media screen and (display-mode: standalone) and (max-width: 640px) and (orientation: portrait) {
    body.auto-device-layout .premium-screen {
        padding-top: max(8px, env(safe-area-inset-top));
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* =========================
   EXTRA ROW / QIBLA
========================= */
.extras-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.qibla-card {
    border-radius: 24px;
    padding: 18px 22px;
}

.qibla-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 10px;
}

.qibla-compass {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(212,175,55,0.26);
}

.compass-ring {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.20);
}

.compass-needle {
    position: absolute;
    left: 50%;
    top: 16px;
    width: 4px;
    height: 54px;
    background: linear-gradient(180deg, #f1d27a, #38efb3);
    border-radius: 999px;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: center 54px;
    box-shadow: 0 0 14px rgba(241,210,122,0.25);
}

.compass-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f1d27a;
    transform: translate(-50%, -50%);
}

.compass-n {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    color: #ffecb3;
}

.qibla-info {
    flex: 1;
}

.qibla-angle {
    font-size: 34px;
    font-weight: 900;
    color: #fff7dc;
}

.qibla-text {
    margin-top: 6px;
    color: #dff8ea;
    font-size: 16px;
}

.qibla-btn {
    margin-top: 12px;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #f1d27a, #d4af37);
    color: #102218;
    cursor: pointer;
}

/* =========================
   DZIKIR OVERLAY
========================= */
.dzikir-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 10, 8, 0.58);
    backdrop-filter: blur(10px);
}

.dzikir-card {
    width: min(900px, 92vw);
    border-radius: 30px;
    padding: 34px 26px;
    text-align: center;
    background: linear-gradient(135deg, rgba(14,46,37,0.94), rgba(20,66,52,0.92));
    border: 1px solid rgba(241,210,122,0.24);
    box-shadow: 0 24px 80px rgba(0,0,0,0.38);
}

.dzikir-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(212,175,55,0.18);
    color: #ffe39c;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dzikir-title {
    margin-top: 18px;
    font-size: 34px;
    font-weight: 900;
    color: #fff8e1;
}

.dzikir-arab {
    margin-top: 18px;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.6;
    color: #ffffff;
}

.dzikir-latin {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    color: #f1d27a;
}

.dzikir-arti {
    margin-top: 8px;
    font-size: 20px;
    color: #e2fff3;
}

/* =========================
   TIME THEMES
========================= */
body.theme-subuh .premium-bg.default-bg {
    background:
        radial-gradient(circle at top left, rgba(120,170,255,0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(212,175,55,0.16), transparent 24%),
        linear-gradient(135deg, #06111d 0%, #0a1f38 38%, #0f3555 70%, #174d63 100%);
}

body.theme-dzuhur .premium-bg.default-bg {
    background:
        radial-gradient(circle at top left, rgba(255,220,140,0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(30,180,140,0.14), transparent 24%),
        linear-gradient(135deg, #11362d 0%, #175442 36%, #1e6852 70%, #2f7a65 100%);
}

body.theme-ashar .premium-bg.default-bg {
    background:
        radial-gradient(circle at top left, rgba(241,210,122,0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(56,239,179,0.14), transparent 24%),
        linear-gradient(135deg, #0d241d 0%, #11362d 36%, #18493c 70%, #1e5d4d 100%);
}

body.theme-maghrib .premium-bg.default-bg {
    background:
        radial-gradient(circle at top left, rgba(255,165,90,0.22), transparent 24%),
        radial-gradient(circle at top right, rgba(212,175,55,0.16), transparent 24%),
        linear-gradient(135deg, #26120a 0%, #4a1f0f 38%, #6b2d15 70%, #8d4320 100%);
}

body.theme-isya .premium-bg.default-bg {
    background:
        radial-gradient(circle at top left, rgba(212,175,55,0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(30,180,140,0.12), transparent 24%),
        linear-gradient(135deg, #08130f 0%, #0d241d 36%, #11362d 70%, #0f4c3d 100%);
}

@media screen and (max-width: 640px) and (orientation: portrait) {
    .qibla-card {
        padding: 12px;
        border-radius: 18px;
    }

    .qibla-wrap {
        gap: 12px;
    }

    .qibla-compass {
        width: 92px;
        height: 92px;
    }

    .compass-needle {
        top: 10px;
        height: 36px;
        transform-origin: center 36px;
    }

    .compass-center {
        width: 12px;
        height: 12px;
    }

    .qibla-angle {
        font-size: 20px;
    }

    .qibla-text {
        font-size: 11px;
        line-height: 1.3;
    }

    .qibla-btn {
        margin-top: 8px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .dzikir-card {
        border-radius: 18px;
        padding: 20px 14px;
    }

    .dzikir-badge {
        font-size: 10px;
        padding: 6px 10px;
    }

    .dzikir-title {
        font-size: 18px;
    }

    .dzikir-arab {
        font-size: 28px;
        line-height: 1.8;
    }

    .dzikir-latin {
        font-size: 16px;
    }

    .dzikir-arti {
        font-size: 12px;
    }
}
.hijri-date-display {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #ffe39c;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(212,175,55,0.12);
}
body.device-mobile .hijri-date-display {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
}
