.ad2-eyebrow {
    display: inline-block;

    color: var(--ad-gold-dark);

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

    letter-spacing: .16em;
}

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

    margin-bottom: 18px;

    color: var(--ad-text-soft);

    font-size: 12px;
    font-weight: 600;
}

.ad2-location-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--ad-gold);
}

.ad2-prayer-hero {
    min-height: 430px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    overflow: hidden;

    border-radius: var(--ad-radius-lg);

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(185, 154, 69, .17),
            transparent 30%
        ),
        #161616;

    color: #fff;

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

.ad2-hero-copy {
    padding: 70px;
}

.ad2-hero-copy h1 {
    margin: 12px 0 8px;

    font-size: clamp(48px, 7vw, 92px);
    line-height: .9;

    letter-spacing: -.055em;
}

.ad2-hero-time {
    color: var(--ad-gold);

    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;

    letter-spacing: -.04em;
}

 .ad2-countdown {
    margin-top: 28px;

    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    color: rgba(255, 255, 255, .85);

    font-size: 20px;
    font-weight: 500;
}

.ad2-countdown-label,
.ad2-countdown-value {
    display: inline;
}

@media (max-width: 720px) {
    .ad2-countdown {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        font-size: 15px;
        line-height: 1.45;
    }
}

.ad2-hero-date {
    margin-top: 12px;

    color: rgba(255, 255, 255, .45);

    font-size: 12px;
}

.ad2-prayer-orbit {
    display: grid;
    place-items: center;

    min-height: 100%;
}

.ad2-orbit-ring {
    width: min(280px, 55vw);
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(185, 154, 69, .45);

    border-radius: 50%;

    box-shadow:
        0 0 0 30px rgba(185, 154, 69, .035),
        0 0 0 60px rgba(185, 154, 69, .02);
}

.ad2-orbit-ring span {
    color: var(--ad-gold);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .3em;
}

.ad2-section {
    margin-top: 70px;
}

.ad2-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 20px;
}

.ad2-section-heading h2,
.ad2-page-heading h1 {
    margin: 5px 0 0;

    font-size: 28px;
    letter-spacing: -.035em;
}

.ad2-text-link {
    color: var(--ad-gold-dark);

    font-size: 12px;
    font-weight: 700;
}

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

    gap: 10px;
}

.ad2-prayer-time-card {
    padding: 22px;

    border:
        1px solid
        var(--ad-border);

    border-radius: var(--ad-radius-md);

    background: rgba(255, 255, 255, .65);
}

.ad2-prayer-time-card span {
    display: block;

    margin-bottom: 14px;

    color: var(--ad-text-soft);

    font-size: 11px;
    font-weight: 600;
}

.ad2-prayer-time-card strong {
    font-size: 21px;
    letter-spacing: -.04em;
}

.ad2-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    margin-top: 16px;
}

.ad2-feature-card {
    min-height: 250px;

    padding: 32px;

    border-radius: var(--ad-radius-md);

    background: var(--ad-surface);

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

.ad2-feature-card h2 {
    max-width: 400px;

    margin: 12px 0;

    font-size: 27px;
    letter-spacing: -.04em;
}

.ad2-feature-card p {
    max-width: 460px;

    color: var(--ad-text-soft);

    line-height: 1.7;
    font-size: 14px;
}

.ad2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 16px;
    padding: 11px 18px;

    border-radius: 999px;

    background: var(--ad-text);
    color: #fff;

    font-size: 12px;
    font-weight: 700;
}

.ad2-button-secondary {
    background: var(--ad-surface-soft);
    color: var(--ad-text);
}

.ad2-page-heading {
    max-width: 720px;

    margin-bottom: 45px;
}

.ad2-page-heading p {
    color: var(--ad-text-soft);
    line-height: 1.7;
}

.ad2-empty-state {
    padding: 70px 30px;

    text-align: center;

    border-radius: var(--ad-radius-lg);

    background: var(--ad-surface);
    border: 1px solid var(--ad-border);
}

.ad2-empty-icon {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--ad-text);
    color: var(--ad-gold);

    font-size: 24px;
}

.ad2-empty-state h2 {
    margin: 0;

    font-size: 25px;
}

.ad2-empty-state p {
    max-width: 500px;

    margin: 12px auto 0;

    color: var(--ad-text-soft);

    line-height: 1.7;
    font-size: 14px;
}

.ad2-loading {
    min-height: 60vh;

    display: grid;
    place-items: center;

    align-content: center;
}

.ad2-spinner {
    width: 30px;
    height: 30px;

    border:
        2px solid
        rgba(21, 21, 21, .1);

    border-top-color: var(--ad-gold);

    border-radius: 50%;

    animation: ad2-spin .8s linear infinite;
}

.ad2-loading p {
    color: var(--ad-text-soft);
    font-size: 13px;
}

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


/* =========================================================
   V2 PRAYER CENTER
   ========================================================= */

.page-heading,
.quran-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.page-heading h1,
.quran-heading h1 {
    margin: 6px 0 8px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.page-heading p,
.quran-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.page-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .9rem;
    white-space: nowrap;
}

.location-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.prayer-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 42px;
    margin-bottom: 52px;
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, .12),
            rgba(255, 255, 255, .02)
        ),
        var(--surface);
    border: 1px solid var(--border);
}

.prayer-hero-main h2 {
    margin: 8px 0;
    font-size: 2rem;
}

.prayer-hero-time {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: .95;
}

.prayer-countdown {
    margin-top: 24px;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.prayer-hero-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 24px;
    min-width: 220px;
}

.prayer-hero-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prayer-hero-meta span {
    color: var(--text-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.prayer-hero-meta strong {
    font-size: .95rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: 1.7rem;
    letter-spacing: -.03em;
}

.section-count {
    color: var(--text-muted);
    font-size: .85rem;
}

.prayer-grid-large {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 52px;
}

.prayer-time-card {
    min-height: 145px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.prayer-time-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, .35);
}

.prayer-time-card.is-next {
    border-color: rgba(212, 175, 55, .65);
    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, .1),
            transparent
        ),
        var(--surface);
}

.prayer-time-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.prayer-name {
    font-size: .95rem;
    color: var(--text-muted);
}

.prayer-status {
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--accent);
}

.prayer-time {
    display: block;
    margin-top: 22px;
    font-size: 2.2rem;
    letter-spacing: -.04em;
}

.prayer-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.feature-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.feature-panel-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-alt);
    color: var(--accent);
    font-size: 1.25rem;
}

.feature-panel h3 {
    margin: 5px 0 8px;
    font-size: 1.15rem;
}

.feature-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: .9rem;
}

.feature-panel .secondary-button {
    margin-top: auto;
    align-self: flex-start;
}

/* Secondary navigation action */
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
    color: var(--text);

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;

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

.secondary-button:hover {
    border-color: color-mix(
        in srgb,
        var(--accent) 55%,
        var(--border)
    );
    background: color-mix(
        in srgb,
        var(--accent) 7%,
        var(--surface)
    );
    color: var(--accent);
    transform: translateY(-1px);
}

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

.secondary-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .prayer-settings-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .secondary-button {
        width: 100%;
        min-height: 42px;
    }
}

.prayer-settings-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-alt);
}

.prayer-settings-panel h3 {
    margin: 5px 0;
}

.prayer-settings-panel p {
    margin: 0;
    color: var(--text-muted);
    font-size: .9rem;
}


/* =========================================================
   V2 QURAN
   ========================================================= */

.quran-continue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    margin-bottom: 48px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, .1),
            transparent
        ),
        var(--surface);
}

.quran-continue h2 {
    margin: 8px 0 6px;
    font-size: 1.8rem;
}

.quran-continue p {
    margin: 0;
    color: var(--text-muted);
}

.quran-heading-actions {
    display: flex;
    gap: 10px;
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 50px;
}

.surah-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px;
    text-align: left;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    cursor: pointer;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.surah-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, .4);
}

.surah-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-alt);
    color: var(--accent);
    font-size: .8rem;
}

.surah-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.surah-info strong {
    font-size: .95rem;
}

.surah-info small {
    color: var(--text-muted);
    font-size: .75rem;
}

.surah-arabic {
    font-size: 1.35rem;
    direction: rtl;
}

.quran-reader-shell {
    min-height: 300px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
}

.reader-empty,
.reader-loading {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.reader-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--surface-alt);
    color: var(--accent);
    font-size: 1.5rem;
}

.reader-empty h2 {
    margin: 0 0 8px;
}

.reader-empty p,
.reader-loading p {
    margin: 0;
    color: var(--text-muted);
}

.reader-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    padding-bottom: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.reader-header h2 {
    margin: 6px 0;
    font-size: 2rem;
}

.reader-header p {
    margin: 0;
    color: var(--text-muted);
}

.reader-arabic-title {
    font-family: serif;
    font-size: 2.3rem;
    direction: rtl;
}

.ayah {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.ayah:last-child {
    border-bottom: 0;
}

.ayah-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--accent);
    font-size: .75rem;
}

.ayah-content {
    min-width: 0;
}

.ayah-arabic {
    font-family: "Amiri", "Noto Naskh Arabic", serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 2.1;
    text-align: right;
}

.ayah-translation {
    max-width: 850px;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: .98rem;
    line-height: 1.8;
}

.reader-error {
    color: var(--text-muted);
}


/* =========================================================
   PRAYER CENTER 2.0
   ========================================================= */

.prayer-center-hero {
    position: relative;
    overflow: hidden;
}

.prayer-center-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -140px;
    top: -150px;
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow:
        0 0 0 40px rgba(214,184,90,.025),
        0 0 0 80px rgba(214,184,90,.018);
    pointer-events: none;
}

.prayer-section-heading {
    margin-top: 42px;
}

.prayer-next-indicator {
    color: var(--accent);
    font-size: .72rem;
    font-weight: 600;
}

.prayer-time-card {
    position: relative;
    min-height: 130px;
}

.prayer-time-card-next {
    border-color: rgba(214,184,90,.55);
    background:
        linear-gradient(
            145deg,
            var(--surface),
            rgba(214,184,90,.07)
        );
}

.prayer-time-card-passed {
    opacity: .55;
}

.prayer-time-card-passed .prayer-time {
    text-decoration: none;
}

.prayer-status-muted {
    opacity: .55;
}

.prayer-tool-panel {
    min-height: 190px;
}

.prayer-month-panel {
    margin-top: 42px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.prayer-month-panel .section-heading {
    margin-top: 0;
}

.prayer-month-table {
    overflow-x: auto;
}

.prayer-month-head,
.prayer-month-row {
    min-width: 650px;
    display: grid;
    grid-template-columns:
        1.3fr
        repeat(5, 1fr);
    gap: 12px;
    align-items: center;
}

.prayer-month-head {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prayer-month-row {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    font-size: .76rem;
}

.prayer-month-row:last-child {
    border-bottom: 0;
}

.prayer-month-row.is-today {
    color: var(--accent);
    font-weight: 700;
    background: rgba(214,184,90,.05);
    border-radius: 8px;
}

.prayer-empty {
    padding: 30px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text-muted);
    text-align: center;
}

.prayer-settings-panel {
    margin-top: 28px;
}



/* =========================================================
   PRAYER TOOLS 2.0
   ========================================================= */

.prayer-tool-view {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 0 64px;
}

.prayer-tool-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.prayer-tool-header h2 {
    margin: 6px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.prayer-tool-header p {
    margin: 0;
    max-width: 620px;
    color: var(--text-muted);
    line-height: 1.6;
}

.prayer-tool-empty {
    padding: 80px 24px;
    text-align: center;
    color: var(--text-muted);
}


/* ---------------------------------------------------------
   MONTHLY TIMETABLE
   --------------------------------------------------------- */

.prayer-month-full {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.prayer-month-full-head,
.prayer-month-full-row {
    display: grid;
    grid-template-columns:
        minmax(150px, 1.5fr)
        repeat(6, minmax(80px, 1fr));
    align-items: center;
}

.prayer-month-full-head {
    min-height: 52px;
    padding: 0 22px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prayer-month-full-row {
    min-height: 66px;
    padding: 0 22px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.prayer-month-full-row:last-child {
    border-bottom: 0;
}

.prayer-month-full-row:hover {
    background: var(--surface-soft);
}

.prayer-month-full-row.is-today {
    background:
        linear-gradient(
            90deg,
            rgba(196, 164, 89, 0.12),
            rgba(196, 164, 89, 0.035)
        );
    box-shadow:
        inset 3px 0 0 var(--accent);
}

.prayer-month-full-row > span:not(.prayer-month-date) {
    font-variant-numeric: tabular-nums;
}

.prayer-month-date {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-weight: 600;
}

.prayer-month-date small {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   QIBLA
   --------------------------------------------------------- */

.qibla-tool-layout {
    display: grid;
    grid-template-columns:
        minmax(360px, 1fr)
        minmax(280px, 0.75fr);
    gap: 56px;
    align-items: center;
    min-height: 520px;
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 28% 50%,
            rgba(196, 164, 89, 0.08),
            transparent 42%
        ),
        var(--surface);
    box-shadow: var(--shadow-sm);
}

.qibla-compass {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qibla-compass-ring {
    position: relative;
    width: min(420px, 75vw);
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            var(--surface-soft) 0%,
            var(--surface-soft) 54%,
            transparent 55%
        );
    box-shadow:
        0 0 0 14px color-mix(
            in srgb,
            var(--accent) 5%,
            transparent
        ),
        0 0 0 15px var(--border);
}

.qibla-compass-ring::before,
.qibla-compass-ring::after {
    content: '';
    position: absolute;
    inset: 10%;
    border: 1px solid var(--border);
    border-radius: 50%;
}

.qibla-compass-ring::after {
    inset: 25%;
    border-color: color-mix(
        in srgb,
        var(--accent) 35%,
        var(--border)
    );
}

.qibla-north,
.qibla-east,
.qibla-south,
.qibla-west {
    position: absolute;
    z-index: 3;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.qibla-north {
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
}

.qibla-east {
    top: 50%;
    right: 7%;
    transform: translateY(-50%);
}

.qibla-south {
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
}

.qibla-west {
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
}

.qibla-needle {
    position: absolute;
    z-index: 4;
    inset: 50% auto auto 50%;
    width: 2px;
    height: 43%;
    transform-origin: 50% 100%;
    background: var(--accent);
    border-radius: 999px;
}

.qibla-needle::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 13px solid var(--accent);
}

.qibla-needle span {
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--surface);
}

.qibla-center {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    display: flex;
    width: 88px;
    height: 88px;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.qibla-center span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.qibla-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.qibla-degree {
    margin: 10px 0 8px;
    color: var(--text);
    font-size: clamp(4rem, 8vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
}

.qibla-info > p {
    max-width: 340px;
    margin: 0 0 30px;
    color: var(--text-muted);
    line-height: 1.6;
}

.qibla-location {
    width: 100%;
    max-width: 340px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.qibla-location span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qibla-location strong {
    font-size: 1rem;
}


/* ---------------------------------------------------------
   PRAYER TRACKER
   --------------------------------------------------------- */

.tracker-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.tracker-stat {
    min-height: 120px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.tracker-stat span {
    display: block;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.tracker-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tracker-list {
    display: grid;
    gap: 12px;
}

.tracker-day {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.tracker-day-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.tracker-day-heading strong {
    display: block;
    font-size: 1rem;
}

.tracker-day-heading small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.tracker-day-score {
    min-width: 54px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.tracker-prayers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.tracker-prayer {
    display: flex;
    min-height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.tracker-prayer:hover {
    transform: translateY(-1px);
    border-color: color-mix(
        in srgb,
        var(--accent) 45%,
        var(--border)
    );
}

.tracker-prayer.is-complete {
    border-color: var(--accent);
    background:
        color-mix(
            in srgb,
            var(--accent) 12%,
            var(--surface)
        );
    color: var(--accent);
}

.tracker-check {
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
}

.tracker-prayer.is-complete .tracker-check {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--surface);
}



/* =========================================================
   PRAYER TRACKER INTERACTION
   ========================================================= */

.tracker-prayer {
    position: relative;
    min-height: 68px;
    border: 1px solid color-mix(
        in srgb,
        var(--accent) 28%,
        var(--border)
    );
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease,
        color 180ms ease;
}

.tracker-prayer:hover {
    transform: translateY(-2px);
    border-color: color-mix(
        in srgb,
        var(--accent) 65%,
        var(--border)
    );
    background: color-mix(
        in srgb,
        var(--accent) 4%,
        var(--surface)
    );
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.06);
}

.tracker-prayer:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.tracker-prayer .tracker-check {
    width: 23px;
    height: 23px;
    border: 1px solid color-mix(
        in srgb,
        var(--accent) 45%,
        var(--border)
    );
    border-radius: 50%;
    background: var(--surface);
    color: transparent;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}


/* ---------------------------------------------------------
   COMPLETED PRAYER
   --------------------------------------------------------- */

.tracker-prayer.is-complete {
    border-color: color-mix(
        in srgb,
        var(--accent) 72%,
        var(--border)
    );
    background: color-mix(
        in srgb,
        var(--accent) 11%,
        var(--surface)
    );
    color: var(--text);
    box-shadow:
        inset 0 0 0 1px color-mix(
            in srgb,
            var(--accent) 8%,
            transparent
        );
}

.tracker-prayer.is-complete:hover {
    background: color-mix(
        in srgb,
        var(--accent) 15%,
        var(--surface)
    );
}

.tracker-prayer.is-complete .tracker-check {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--surface);
    transform: scale(1.04);
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .tracker-prayer {
        min-height: 62px;
    }

}

/* =========================================================
   Islamic Tools
   ========================================================= */

.islamic-tool-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 142px;
    padding: 22px 52px 22px 22px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--accent) 2%,
                var(--surface)
            )
        );

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

    cursor: pointer;

    font: inherit;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.islamic-tool-card:hover {
    transform: translateY(-3px);

    border-color: color-mix(
        in srgb,
        var(--accent) 55%,
        var(--border)
    );

    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--accent) 6%,
                var(--surface)
            )
        );

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.07);
}

.islamic-tool-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.islamic-tool-label {
    display: block;

    margin-bottom: 9px;

    color: var(--accent);

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

    letter-spacing: 0.14em;
    line-height: 1.2;

    text-transform: uppercase;
}

.islamic-tool-card strong {
    display: block;

    margin-bottom: 7px;

    font-size: 18px;
    font-weight: 650;
    line-height: 1.25;
}

.islamic-tool-description {
    display: block;

    max-width: 270px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.55;
}

.islamic-tool-arrow {
    position: absolute;

    top: 50%;
    right: 21px;

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

    width: 32px;
    height: 32px;

    border: 1px solid color-mix(
        in srgb,
        var(--accent) 28%,
        var(--border)
    );

    border-radius: 50%;

    color: var(--accent);

    font-size: 17px;
    font-weight: 400;

    transform: translateY(-50%);

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.islamic-tool-card:hover .islamic-tool-arrow {
    transform: translate(
        3px,
        -50%
    );

    border-color: var(--accent);

    background: color-mix(
        in srgb,
        var(--accent) 10%,
        var(--surface)
    );
}

/* Dark mode */

[data-theme="dark"] .islamic-tool-card {
    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--accent) 3%,
                var(--surface)
            )
        );

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .islamic-tool-card:hover {
    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--accent) 8%,
                var(--surface)
            )
        );

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.25);
}

/* Tablet */

@media (max-width: 900px) {
    .islamic-tool-card {
        min-height: 135px;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .islamic-tool-card {
        min-height: 122px;

        padding: 19px 50px 19px 19px;

        border-radius: 15px;
    }

    .islamic-tool-card strong {
        font-size: 17px;
    }

    .islamic-tool-description {
        font-size: 12px;
    }
}


/* =========================================================
   Islamic Tools Grid
   ========================================================= */

.islamic-tools {
    display: grid;

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

    gap: 16px;

    margin-top: 28px;
}

.islamic-tool-card {
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* Tablet */

@media (max-width: 900px) {
    .islamic-tools {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 640px) {
    .islamic-tools {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 22px;
    }
}


/* =========================================================
   99 Names Reader
   ========================================================= */

.names-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin: 26px 0 18px;
}

.names-search {
    position: relative;

    display: flex;
    align-items: center;

    width: min(440px, 100%);
}

.names-search input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 16px 0 42px;

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

    background: var(--surface);
    color: var(--text);

    font: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

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

.names-search input:focus {
    border-color: color-mix(
        in srgb,
        var(--accent) 65%,
        var(--border)
    );

    box-shadow:
        0 0 0 3px color-mix(
            in srgb,
            var(--accent) 10%,
            transparent
        );
}

.names-search-icon {
    position: absolute;
    left: 15px;

    z-index: 1;

    color: var(--muted);

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

    pointer-events: none;
}

.names-count {
    flex-shrink: 0;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.04em;
}

.names-grid {
    display: grid;

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

    gap: 14px;
}

.name-card {
    position: relative;

    min-width: 0;
    min-height: 190px;

    box-sizing: border-box;

    padding: 22px;

    overflow: hidden;

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

    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--accent) 2%,
                var(--surface)
            )
        );

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.name-card:hover {
    transform: translateY(-3px);

    border-color: color-mix(
        in srgb,
        var(--accent) 48%,
        var(--border)
    );

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.07);
}

.name-card[hidden] {
    display: none;
}

.name-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border: 1px solid color-mix(
        in srgb,
        var(--accent) 30%,
        var(--border)
    );

    border-radius: 50%;

    color: var(--accent);

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

    letter-spacing: 0.04em;
}

.name-arabic {
    margin-top: 17px;

    min-height: 58px;

    color: var(--text);

    font-family:
        "Noto Naskh Arabic",
        "Amiri",
        serif;

    font-size: 30px;
    font-weight: 500;

    line-height: 1.7;
}

.name-card strong {
    display: block;

    margin-top: 10px;

    color: var(--text);

    font-size: 16px;
    font-weight: 650;

    line-height: 1.3;
}

.name-card p {
    margin: 6px 0 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}

/* Subtle accent line */

.name-card::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: color-mix(
        in srgb,
        var(--accent) 35%,
        transparent
    );

    opacity: 0;

    transition: opacity 180ms ease;
}

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

/* Dark mode */

[data-theme="dark"] .name-card {
    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--accent) 3%,
                var(--surface)
            )
        );

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

[data-theme="dark"] .name-card:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Tablet */

@media (max-width: 1000px) {
    .names-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 640px) {
    .names-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .names-search {
        width: 100%;
    }

    .names-count {
        align-self: flex-start;
    }

    .names-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .name-card {
        min-height: 170px;
        padding: 19px;
    }

    .name-arabic {
        font-size: 27px;
    }
}


/* =========================================================
   Adhkar Reader
   ========================================================= */

.adhkar-list {
    display: flex;
    flex-direction: column;

    gap: 14px;

    margin-top: 28px;
}

.adhkar-card {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;

    align-items: center;

    gap: 28px;

    min-height: 170px;

    padding: 24px;

    box-sizing: border-box;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--accent) 2%,
                var(--surface)
            )
        );

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.adhkar-card:hover {
    transform: translateY(-2px);

    border-color: color-mix(
        in srgb,
        var(--accent) 45%,
        var(--border)
    );

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.07);
}

.adhkar-card::before {
    content: attr(data-adhkar-index);

    position: absolute;

    top: 18px;
    left: 20px;

    color: var(--accent);

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

    letter-spacing: 0.08em;
}

.adhkar-content {
    min-width: 0;

    padding-left: 34px;
}

.adhkar-arabic {
    margin-bottom: 14px;

    color: var(--text);

    font-family:
        "Noto Naskh Arabic",
        "Amiri",
        serif;

    font-size: 27px;
    font-weight: 500;

    line-height: 1.9;
}

.adhkar-content p {
    max-width: 720px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.65;
}

.adhkar-count-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 88px;
    height: 88px;

    border: 1px solid color-mix(
        in srgb,
        var(--accent) 35%,
        var(--border)
    );

    border-radius: 50%;

    background: color-mix(
        in srgb,
        var(--accent) 4%,
        var(--surface)
    );

    color: var(--text);

    cursor: pointer;

    font: inherit;

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.adhkar-count-button:hover {
    transform: scale(1.04);

    border-color: var(--accent);

    background: color-mix(
        in srgb,
        var(--accent) 9%,
        var(--surface)
    );

    box-shadow:
        0 6px 18px color-mix(
            in srgb,
            var(--accent) 12%,
            transparent
        );
}

.adhkar-count-button:active {
    transform: scale(0.96);
}

.adhkar-count-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.adhkar-count-button strong {
    font-size: 21px;
    font-weight: 650;

    line-height: 1.1;
}

.adhkar-count-button span {
    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}

.adhkar-count-button.is-complete {
    border-color: var(--accent);

    background: color-mix(
        in srgb,
        var(--accent) 13%,
        var(--surface)
    );
}

.adhkar-count-button.is-complete strong {
    color: var(--accent);
}

/* Dark mode */

[data-theme="dark"] .adhkar-card {
    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--accent) 3%,
                var(--surface)
            )
        );

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

[data-theme="dark"] .adhkar-card:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Tablet */

@media (max-width: 760px) {
    .adhkar-card {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .adhkar-count-button {
        width: 76px;
        height: 76px;

        justify-self: end;
    }
}

/* Mobile */

@media (max-width: 520px) {
    .adhkar-list {
        gap: 11px;
    }

    .adhkar-card {
        min-height: 0;

        padding: 22px 18px 18px;
    }

    .adhkar-content {
        padding-left: 26px;
    }

    .adhkar-arabic {
        font-size: 24px;
        line-height: 1.8;
    }

    .adhkar-content p {
        font-size: 12px;
    }

    .adhkar-count-button {
        width: 70px;
        height: 70px;

        justify-self: center;
    }
}


/* =========================================================
   Tasbih
   ========================================================= */

.tasbih-view .islamic-tool-header {
    margin-bottom: 8px;
}

.tasbih-container {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.tasbih-counter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(620px, 100%);
    padding: 48px 40px 40px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 50% 25%,
            color-mix(in srgb, var(--accent) 9%, transparent),
            transparent 48%
        ),
        var(--surface);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.tasbih-counter > .ad2-eyebrow {
    margin-bottom: 12px;
}

.tasbih-counter > strong[data-tasbih-count] {
    color: var(--text);
    font-size: clamp(64px, 9vw, 104px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tasbih-tap-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 154px;
    height: 154px;
    margin-top: 34px;
    flex: 0 0 154px;
    box-sizing: border-box;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            color-mix(in srgb, var(--accent) 14%, var(--surface)),
            var(--surface)
        );
    box-shadow:
        0 12px 30px color-mix(in srgb, var(--accent) 14%, transparent),
        inset 0 0 0 8px color-mix(in srgb, var(--accent) 5%, transparent);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.tasbih-main-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    appearance: none;
}

.tasbih-main-button span {
    position: relative;
    z-index: 1;
}

.tasbih-tap-shell:hover {
    transform: scale(1.035);
    border-color: var(--accent);
    background:
        radial-gradient(
            circle at 35% 30%,
            color-mix(in srgb, var(--accent) 22%, var(--surface)),
            var(--surface)
        );
    box-shadow:
        0 15px 36px color-mix(in srgb, var(--accent) 18%, transparent),
        inset 0 0 0 8px color-mix(in srgb, var(--accent) 7%, transparent);
}

.tasbih-tap-shell:active {
    transform: scale(0.96);
}

.tasbih-main-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -6px;
}

.tasbih-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.tasbih-actions .ad2-button {
    min-width: 104px;
}

[data-theme="dark"] .tasbih-counter {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

@media (max-width: 640px) {
    .tasbih-container {
        margin-top: 24px;
    }

    .tasbih-counter {
        padding: 38px 22px 28px;
        border-radius: 22px;
    }

    .tasbih-tap-shell {
        width: 132px;
        height: 132px;
        flex-basis: 132px;
        margin-top: 28px;
    }

    .tasbih-actions {
        width: 100%;
    }

    .tasbih-actions .ad2-button {
        flex: 1;
        min-width: 0;
    }
}


/* =========================================================
   Ramadan
   ========================================================= */

.ramadan-tool {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 30px;
}

.ramadan-intro {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 85% 15%,
            color-mix(in srgb, var(--accent) 8%, transparent),
            transparent 42%
        ),
        var(--surface);
}

.ramadan-intro h2 {
    margin: 10px 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.ramadan-intro p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.ramadan-progress {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.ramadan-progress-label,
.ramadan-progress-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ramadan-progress-label span,
.ramadan-progress-times span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ramadan-progress-label strong {
    color: var(--accent);
    font-size: 13px;
}

.ramadan-progress-track {
    height: 8px;
    margin: 14px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(
        in srgb,
        var(--accent) 10%,
        var(--surface)
    );
}

.ramadan-progress-track span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: var(--accent);
    transition: width 400ms ease;
}

.ramadan-progress-times span {
    font-size: 10px;
    letter-spacing: 0.04em;
}

.ramadan-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.ramadan-time-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.ramadan-time-card strong {
    display: block;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.ramadan-time-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

/* =========================================================
   Islamic Calendar
   ========================================================= */

.calendar-tool {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
    gap: 18px;
    margin-top: 30px;
}

.calendar-current {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    padding: 32px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 50% 25%,
            color-mix(in srgb, var(--accent) 9%, transparent),
            transparent 55%
        ),
        var(--surface);
    text-align: center;
}

.calendar-current strong {
    margin-top: 12px;
    color: var(--text);
    font-size: clamp(72px, 9vw, 110px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.calendar-current h2 {
    margin: 16px 0 4px;
    font-size: 25px;
    letter-spacing: -0.025em;
}

.calendar-current p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.calendar-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.calendar-events-header > span:last-child {
    color: var(--muted);
    font-size: 11px;
}

.calendar-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--border);
}

.calendar-event:last-child {
    border-bottom: 0;
}

.calendar-event > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-event strong {
    font-size: 14px;
    font-weight: 600;
}

.calendar-event span {
    color: var(--muted);
    font-size: 11px;
}

.calendar-event.is-current {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 12px;
    background: color-mix(
        in srgb,
        var(--accent) 5%,
        var(--surface)
    );
}

.calendar-event-badge {
    flex-shrink: 0;
    padding: 5px 8px;
    border: 1px solid color-mix(
        in srgb,
        var(--accent) 35%,
        var(--border)
    );
    border-radius: 999px;
    color: var(--accent) !important;
    font-size: 9px !important;
    font-weight: 700;
    letter-spacing: 0.06em;
}

@media (max-width: 760px) {
    .ramadan-times {
        grid-template-columns: 1fr;
    }

    .calendar-tool {
        grid-template-columns: 1fr;
    }

    .calendar-current {
        min-height: 240px;
    }
}

@media (max-width: 520px) {
    .ramadan-intro,
    .ramadan-progress,
    .ramadan-time-card,
    .calendar-current,
    .calendar-events {
        padding: 20px;
    }

    .calendar-event {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .calendar-event.is-current {
        margin-left: -6px;
        margin-right: -6px;
    }
}



/* AD2 DASHBOARD CONTENT CARDS */

.ad2-content-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 90% 10%,
            color-mix(in srgb, var(--accent) 7%, transparent),
            transparent 38%
        ),
        var(--surface);
    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, .08);
}

.ad2-card-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.3;
}

.ad2-card-text {
    max-width: 680px;
    margin-top: 22px;
    color: var(--text);
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: -.015em;
}

.ad2-card-source {
    margin-top: auto;
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
}

.ad2-card-action {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 18px;
    padding: 0 16px;
    border: 1px solid color-mix(
        in srgb,
        var(--accent) 55%,
        var(--border)
    );
    border-radius: 10px;
    background: transparent;
    color: var(--accent);
    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.ad2-card-action:hover:not(:disabled) {
    border-color: var(--accent);
    background: color-mix(
        in srgb,
        var(--accent) 10%,
        transparent
    );
    transform: translateY(-1px);
}

.ad2-card-action:active:not(:disabled) {
    transform: translateY(0);
}

.ad2-card-action:disabled {
    opacity: .45;
    cursor: default;
}

@media (max-width: 720px) {
    .ad2-card-action {
        min-height: 36px;
        padding: 0 14px;
        font-size: 10px;
    }
}

.ad2-content-card:hover {
    border-color: color-mix(
        in srgb,
        var(--accent) 28%,
        var(--border)
    );
}

@media (max-width: 720px) {
    .ad2-content-card {
        min-height: 220px;
        padding: 24px;
    }

    .ad2-card-text {
        margin-top: 18px;
        font-size: 17px;
    }
}

/* Dashboard section rhythm */
.ad2-section + .ad2-section {
    margin-top: 44px;
}

/* Dashboard Ayah presentation */

.ad2-ayah-arabic {
    margin-top: 2px;
    color: var(--text);
    direction: rtl;
    text-align: right;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0;
}

.ad2-ayah-translation {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
}

@media (max-width: 720px) {
    .ad2-ayah-arabic {
        font-size: 21px;
        line-height: 1.9;
    }

    .ad2-ayah-translation {
        margin-top: 18px;
        padding-top: 18px;
        font-size: 14px;
    }
}


/* Dashboard Prayer Tracker card */
.dashboard-tracker-card {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 22px 24px;
    border: 1px solid var(--ad-gold, #d4af37);
    border-radius: var(--ad-radius-lg, 18px);
    background: linear-gradient(
        110deg,
        rgba(212, 175, 55, 0.13),
        rgba(255, 255, 255, 0.025)
    );
    box-shadow: var(--ad-shadow, none);
    color: var(--ad-text, inherit);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease;
}

.dashboard-tracker-card:hover {
    border-color: var(--ad-gold, #d4af37);
    transform: translateY(-2px);
}

.dashboard-tracker-card:focus-visible {
    outline: 3px solid var(--ad-gold, #d4af37);
    outline-offset: 4px;
}

.dashboard-tracker-card__icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--ad-gold, #d4af37);
    color: #171717;
    font-size: 25px;
    font-weight: 700;
}

.dashboard-tracker-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashboard-tracker-card__eyebrow {
    color: var(--ad-gold, #d4af37);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.dashboard-tracker-card__title {
    color: var(--ad-text, inherit);
    font-size: 1.15rem;
    font-weight: 700;
}

.dashboard-tracker-card__description {
    color: var(--ad-text-soft, inherit);
    font-size: 0.9rem;
    line-height: 1.5;
}

.dashboard-tracker-card__action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--ad-gold, #d4af37);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 600px) {
    .dashboard-tracker-card {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px;
    }

    .dashboard-tracker-card__content {
        flex-basis: calc(100% - 64px);
    }

    .dashboard-tracker-card__action {
        margin-left: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-tracker-card {
        transition: none;
    }

    .dashboard-tracker-card:hover {
        transform: none;
    }
}

/* Prayer Tracker contrast improvements (dark theme) */
:root[data-theme="dark"] .prayer-tool-view .ad2-eyebrow {
    color: #f0d987;
}

:root[data-theme="dark"] .prayer-tool-view .prayer-tool-header h2 {
    color: #ffffff;
}

:root[data-theme="dark"] .prayer-tool-view .prayer-tool-header p,
:root[data-theme="dark"] .prayer-tool-view .tracker-stat span,
:root[data-theme="dark"] .prayer-tool-view .tracker-day-heading small,
:root[data-theme="dark"] .prayer-tool-view .tracker-day-score {
    color: #c4c4bf;
}

/* Dashboard Prayer Tracker title contrast in dark theme */
:root[data-theme="dark"] .dashboard-tracker-card__title {
    color: #ffffff;
}
