/* ===== AISH — Smart Home Dashboard Style ===== */
:root {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-alt: rgba(244, 184, 212, 0.08);
    --bg-card-dark: rgba(18, 18, 18, 0.95);
    --accent: #f4b8d4;
    --accent-light: #f9d4e6;
    --accent-dark: #e890b8;
    --text-dark: #1a1a2e;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8be;
    --text-muted: #5a5a70;
    --text-on-card: #ececf0;
    --text-on-card-muted: #9a9ab0;
    --text-arabic: #ffffff;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 32px rgba(244, 184, 212, 0.1);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.5);
    --header-height: 70px;
    --bottom-nav-height: 72px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-arabic: 'Amiri', serif;
}

/* Light theme */
body.light-theme {
    --bg-primary: #f0f0f5;
    --bg-secondary: #e8e8f0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-alt: rgba(252, 231, 243, 0.5);
    --bg-card-dark: #e0e0ea;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a60;
    --text-muted: #8a8a9e;
    --text-on-card: #2d2d3f;
    --text-on-card-muted: #6a6a80;
    --text-arabic: #1a1a2e;
    --border-subtle: rgba(190, 24, 93, 0.08);
    --border-card: rgba(190, 24, 93, 0.12);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 30px rgba(236, 72, 153, 0.1);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .nav-item {
    color: #8a8a9e;
}

body.light-theme .nav-item.active {
    color: var(--accent);
}

body.light-theme .quran-header {
    background: rgba(240, 240, 245, 0.92);
}

body.light-theme .verse-card {
    background: var(--bg-card);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .verse-arabic {
    color: #1a1a2e;
}

body.light-theme .verse-transliteration {
    color: var(--accent);
}

body.light-theme .verse-translation {
    color: #4a4a60;
}

body.light-theme .modal {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .surah-item:hover {
    background: rgba(236, 72, 153, 0.06);
}

body.light-theme .tasbeeh-phrase {
    background: #f4f4f8;
    color: #4a4a60;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .tasbeeh-phrase.active {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

::selection {
    background: rgba(236, 72, 153, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.4);
}

/* ===== LANDING PAGE ===== */
.landing {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.landing .landing-ornament {
    color: #000000;
}

.landing .landing-title {
    background: linear-gradient(135deg, #ec4899, #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing .landing-subtitle {
    color: #8a8a9e;
}

.landing .landing-divider {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.landing .landing-translation {
    color: #4a4a60;
}

.landing .landing-btn {
    color: #fff;
    background: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.landing.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.landing-content {
    text-align: center;
    max-width: 520px;
    padding: 40px;
}

.landing-ornament {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0;
    animation: landingFadeIn 0.8s 0.2s ease-out forwards;
}

.landing-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 6px;
    opacity: 0;
    animation: landingFadeIn 0.8s 0.4s ease-out forwards;
}

.landing-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: landingFadeIn 0.8s 0.6s ease-out forwards;
}

.landing-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    margin: 0 auto 28px;
    border-radius: 3px;
    opacity: 0;
    animation: landingFadeIn 0.8s 0.7s ease-out forwards;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.landing-bismillah {
    font-family: var(--font-arabic);
    font-size: 2.2rem;
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.8;
    margin-bottom: 10px;
    opacity: 0;
    animation: landingFadeIn 0.8s 0.8s ease-out forwards;
}

.landing-translation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0;
    animation: landingFadeIn 0.8s 1s ease-out forwards;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
    transition: all 0.3s ease;
    opacity: 0;
    animation: landingFadeIn 0.8s 1.2s ease-out forwards;
}

.landing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

.landing-btn:hover svg {
    transform: translateX(4px);
}

.landing-btn svg {
    transition: transform 0.3s ease;
}

@keyframes landingFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Landing — floating particles */
.landing-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.landing-particles span {
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    background: rgba(236, 72, 153, 0.25);
    border-radius: 50%;
    bottom: -10px;
    animation: particleFloat linear infinite;
}

.landing-particles span:nth-child(1) {
    left: 8%;
    width: 5px;
    height: 5px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.landing-particles span:nth-child(2) {
    left: 18%;
    width: 4px;
    height: 4px;
    animation-duration: 10s;
    animation-delay: 1s;
}

.landing-particles span:nth-child(3) {
    left: 30%;
    width: 7px;
    height: 7px;
    animation-duration: 14s;
    animation-delay: 2s;
}

.landing-particles span:nth-child(4) {
    left: 42%;
    width: 5px;
    height: 5px;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.landing-particles span:nth-child(5) {
    left: 55%;
    width: 3px;
    height: 3px;
    animation-duration: 13s;
    animation-delay: 3s;
}

.landing-particles span:nth-child(6) {
    left: 65%;
    width: 6px;
    height: 6px;
    animation-duration: 9s;
    animation-delay: 1.5s;
}

.landing-particles span:nth-child(7) {
    left: 75%;
    width: 4px;
    height: 4px;
    animation-duration: 15s;
    animation-delay: 4s;
}

.landing-particles span:nth-child(8) {
    left: 85%;
    width: 5px;
    height: 5px;
    animation-duration: 11s;
    animation-delay: 2.5s;
}

.landing-particles span:nth-child(9) {
    left: 12%;
    width: 3px;
    height: 3px;
    animation-duration: 16s;
    animation-delay: 5s;
}

.landing-particles span:nth-child(10) {
    left: 48%;
    width: 6px;
    height: 6px;
    animation-duration: 10s;
    animation-delay: 3.5s;
}

.landing-particles span:nth-child(11) {
    left: 90%;
    width: 4px;
    height: 4px;
    animation-duration: 13s;
    animation-delay: 1s;
}

.landing-particles span:nth-child(12) {
    left: 35%;
    width: 5px;
    height: 5px;
    animation-duration: 12s;
    animation-delay: 6s;
}

.landing-particles span:nth-child(13) {
    left: 5%;
    width: 4px;
    height: 4px;
    animation-duration: 14s;
    animation-delay: 0.8s;
}

.landing-particles span:nth-child(14) {
    left: 22%;
    width: 6px;
    height: 6px;
    animation-duration: 9s;
    animation-delay: 2.2s;
}

.landing-particles span:nth-child(15) {
    left: 38%;
    width: 3px;
    height: 3px;
    animation-duration: 16s;
    animation-delay: 4.5s;
}

.landing-particles span:nth-child(16) {
    left: 52%;
    width: 5px;
    height: 5px;
    animation-duration: 11s;
    animation-delay: 1.2s;
}

.landing-particles span:nth-child(17) {
    left: 60%;
    width: 4px;
    height: 4px;
    animation-duration: 13s;
    animation-delay: 5.5s;
}

.landing-particles span:nth-child(18) {
    left: 70%;
    width: 7px;
    height: 7px;
    animation-duration: 10s;
    animation-delay: 0.3s;
}

.landing-particles span:nth-child(19) {
    left: 78%;
    width: 3px;
    height: 3px;
    animation-duration: 15s;
    animation-delay: 3.8s;
}

.landing-particles span:nth-child(20) {
    left: 92%;
    width: 5px;
    height: 5px;
    animation-duration: 12s;
    animation-delay: 2.8s;
}

.landing-particles span:nth-child(21) {
    left: 15%;
    width: 6px;
    height: 6px;
    animation-duration: 10s;
    animation-delay: 4.2s;
}

.landing-particles span:nth-child(22) {
    left: 45%;
    width: 4px;
    height: 4px;
    animation-duration: 14s;
    animation-delay: 1.8s;
}

.landing-particles span:nth-child(23) {
    left: 82%;
    width: 5px;
    height: 5px;
    animation-duration: 11s;
    animation-delay: 6.5s;
}

.landing-particles span:nth-child(24) {
    left: 28%;
    width: 3px;
    height: 3px;
    animation-duration: 13s;
    animation-delay: 3.2s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) translateX(40px);
        opacity: 0;
    }
}

/* Landing — extra animations */
.landing-ornament {
    animation: landingFadeIn 0.8s 0.2s ease-out forwards;
}

.landing .landing-title {
    animation: landingFadeIn 0.8s 0.4s ease-out forwards, titleShimmer 4s 2s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes titleShimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.landing-divider {
    animation: landingFadeIn 0.8s 0.7s ease-out forwards, dividerPulse 3s 2s ease-in-out infinite;
}

@keyframes dividerPulse {

    0%,
    100% {
        width: 60px;
        opacity: 1;
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    }

    50% {
        width: 80px;
        opacity: 0.8;
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
    }
}

.landing-btn {
    animation: landingFadeIn 0.8s 1.2s ease-out forwards, btnFloat 3s 2.5s ease-in-out infinite;
}

@keyframes btnFloat {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
    }

    50% {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(236, 72, 153, 0.45);
    }
}

/* Soft background glow circles */
.landing::before,
.landing::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: landingFadeIn 1s 1.5s ease-out forwards, glowDrift 8s 2s ease-in-out infinite;
}

.landing::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    top: 10%;
    right: -80px;
}

.landing::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -60px;
    animation-delay: 2s;
}

@keyframes glowDrift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10px, -15px) scale(1.05);
    }

    66% {
        transform: translate(-10px, 10px) scale(0.95);
    }
}

/* Ambient background */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: blobFloat 20s ease-in-out infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4), transparent 70%);
    top: -10%;
    right: -5%;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(190, 24, 93, 0.3), transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(232, 160, 191, 0.25), transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    100% {
        transform: translate(15px, -20px) scale(1.05);
    }
}

body.light-theme .blob {
    opacity: 0.08;
}

/* ===== APP SHELL ===== */
.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
}

.view {
    display: none;
    min-height: 100vh;
}

.view-active {
    display: block;
}

.view-scroll {
    padding-bottom: calc(var(--bottom-nav-height) + 20px + env(safe-area-inset-bottom));
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 440px;
    height: 64px;
    background: #2a2a42;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding: 0 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-family: inherit;
}

.nav-item span {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nav-item:hover {
    color: var(--accent-light);
}

.nav-item.active {
    color: var(--accent);
    position: relative;
}

.nav-item.active svg {
    filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.4));
}

/* ===== HOME DASHBOARD ===== */
/* Hero Section */
.dash-hero {
    margin: 20px 20px 0;
    padding: 28px 24px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.dash-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 24px 0;
}

.dash-greeting {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 auto;
    padding: 10px 28px;
    direction: rtl;
    line-height: 1.8;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.06), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: var(--radius-full);
}

.dash-ornament {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 12px;
    margin: 14px 0 10px;
    opacity: 0.6;
}

.dash-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.dash-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.dash-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 16px auto 0;
    border-radius: 2px;
}

.dash-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dash-avatar:hover {
    color: var(--accent);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.15);
}

/* Daily Verse (Weather widget style) */
.daily-verse-card {
    margin: 20px 24px 0;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.daily-verse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.08), transparent 60%);
    pointer-events: none;
}

.daily-verse-arabic {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: var(--text-on-card);
    direction: rtl;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
}

.daily-verse-translation {
    font-size: 0.82rem;
    color: var(--text-on-card-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
}

.daily-verse-ref {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    position: relative;
    text-align: center;
}

/* Dash Search */
.dash-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 24px 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.dash-search:hover {
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}

/* Tab toggle */
.dash-tabs {
    display: flex;
    margin: 24px 24px 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    padding: 4px;
    border: 1px solid var(--border-subtle);
}

.dash-tab {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dash-tab.active {
    background: var(--bg-card);
    color: var(--text-on-card);
    box-shadow: var(--shadow-card);
}

.dash-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 24px 24px 12px;
}

/* Feature Grid — Device cards style */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 24px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.feature-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.feature-card:active {
    transform: translateY(0);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
    color: var(--text-on-card);
    transition: var(--transition-fast);
}

.feature-card:hover .feature-card-icon {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent);
}

.feature-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.feature-card-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-on-card);
}

.feature-card-info p {
    font-size: 0.72rem;
    color: var(--text-on-card-muted);
    margin-top: 2px;
}

.feature-card-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    pointer-events: none;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.feature-card-decor:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}

.butterfly-icon {
    width: 100px;
    height: 100px;
    opacity: 0.8;
    animation: butterfly-float 5s ease-in-out infinite;
}

@keyframes butterfly-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-4px) rotate(3deg);
    }

    75% {
        transform: translateY(2px) rotate(-3deg);
    }
}

/* Last Read Card */
.last-read-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 24px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.last-read-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.last-read-left {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 72, 153, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    color: var(--accent);
}

.last-read-left svg {
    width: 22px;
    height: 22px;
}

.last-read-info {
    flex: 1;
    min-width: 0;
}

.last-read-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-on-card);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.last-read-info p {
    font-size: 0.75rem;
    color: var(--text-on-card-muted);
    margin-top: 2px;
}

.last-read-card>svg {
    color: var(--text-on-card-muted);
    flex-shrink: 0;
}

/* ===== QURAN VIEW ===== */
.quran-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.quran-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quran-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.back-btn:hover {
    color: var(--accent);
    border-color: rgba(236, 72, 153, 0.3);
}

.quran-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quran-header-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-btn:hover {
    color: var(--accent);
    border-color: rgba(236, 72, 153, 0.3);
    background: rgba(236, 72, 153, 0.08);
}

.header-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(236, 72, 153, 0.1);
}

/* Surah List */
.surah-list-view {
    padding: 12px 16px;
}

.surah-list-search {
    margin-bottom: 12px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    font-family: inherit;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

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

.search-input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

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

.surah-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.surah-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-subtle);
}

.surah-item.active {
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}

.surah-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.surah-number span {
    transform: rotate(-45deg);
}

.surah-info {
    flex: 1;
    min-width: 0;
}

.surah-name-en {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.surah-name-ar {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--text-secondary);
    direction: rtl;
}

.surah-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.surah-list-loading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-item {
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Verse cards */
.verses-container {
    padding: 10px 16px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.verses {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.surah-header-card {
    display: flex;
    align-items: stretch;
    margin: 10px auto;
    max-width: 900px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.surah-header-left {
    position: relative;
    width: 140px;
    min-height: 100px;
    flex-shrink: 0;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark), #8b1a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.surah-header-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.18;
}

.pattern-line {
    position: absolute;
    width: 200%;
    height: 2px;
    background: #fff;
    transform-origin: 0 0;
}

.pattern-line:nth-child(1) {
    top: 15%;
    left: -20%;
    transform: rotate(35deg);
}

.pattern-line:nth-child(2) {
    top: 35%;
    left: -20%;
    transform: rotate(35deg);
}

.pattern-line:nth-child(3) {
    top: 55%;
    left: -20%;
    transform: rotate(35deg);
}

.pattern-line:nth-child(4) {
    top: 75%;
    left: -20%;
    transform: rotate(35deg);
}

.pattern-line:nth-child(5) {
    top: 95%;
    left: -20%;
    transform: rotate(35deg);
}

.surah-header-number {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transform: rotate(45deg);
}

.surah-header-number span {
    transform: rotate(-45deg);
    display: block;
}

.surah-header-right {
    flex: 1;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.surah-header-info {
    font-size: 0.75rem;
    color: var(--text-on-card-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.surah-header-arabic {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    color: var(--text-on-card);
    direction: rtl;
    line-height: 1.5;
}

.surah-header-english {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
}

.verse-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(15px);
    animation: verseSlideIn 0.4s ease-out forwards;
}

.verse-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(236, 72, 153, 0.15);
    box-shadow: var(--shadow-dark);
}

.verse-card.playing {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.15);
    background: rgba(236, 72, 153, 0.04);
}

@keyframes verseSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.verse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.verse-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 8px;
    transform: rotate(45deg);
}

.verse-number span {
    transform: rotate(-45deg);
}

.verse-actions {
    display: flex;
    gap: 6px;
}

.verse-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.verse-action-btn:hover {
    color: var(--accent);
    border-color: rgba(236, 72, 153, 0.3);
    background: rgba(236, 72, 153, 0.08);
}

.verse-action-btn.playing-btn {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(236, 72, 153, 0.1);
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.3);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(236, 72, 153, 0);
    }
}

.verse-arabic {
    font-family: var(--font-arabic);
    font-size: 1.7rem;
    line-height: 2.2;
    color: var(--text-arabic);
    direction: rtl;
    text-align: right;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    word-spacing: 4px;
}

.verse-transliteration {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--accent-light);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    font-style: italic;
    letter-spacing: 0.3px;
}

.verse-translation {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

body.hide-translation .verse-translation {
    display: none;
}

/* Loading */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.loader {
    text-align: center;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loader p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== TASBEEH ===== */
.tasbeeh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.tasbeeh-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.tasbeeh-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 24px;
}

.tasbeeh-phrases {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tasbeeh-phrase {
    font-family: var(--font-arabic);
    font-size: 1rem;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tasbeeh-phrase:hover {
    border-color: rgba(236, 72, 153, 0.3);
}

.tasbeeh-phrase.active {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.15);
}

.tasbeeh-target {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tasbeeh-target select {
    width: auto;
    padding: 6px 30px 6px 12px;
    font-size: 0.85rem;
}

/* Tasbeeh Controller — Smart Home style circular dial */
.tasbeeh-counter {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tasbeeh-counter:active .tasbeeh-count {
    transform: scale(0.95);
}

.tasbeeh-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.tasbeeh-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.tasbeeh-ring-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.4));
}

.tasbeeh-count {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform 0.1s ease;
    z-index: 1;
}

.tasbeeh-tap-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    z-index: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tasbeeh-labels {
    display: flex;
    justify-content: space-between;
    width: 260px;
    padding: 0 10px;
}

.tasbeeh-labels span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tasbeeh-labels span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.tasbeeh-total {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
}

.tasbeeh-total strong {
    color: var(--accent);
}

/* Tasbeeh stats card */
.tasbeeh-stats {
    display: flex;
    gap: 24px;
    padding: 18px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.tasbeeh-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tasbeeh-stat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 72, 153, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.tasbeeh-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-on-card);
}

.tasbeeh-stat-label {
    font-size: 0.7rem;
    color: var(--text-on-card-muted);
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateY(-10px) scale(0.97);
    transition: var(--transition-normal);
    overflow: hidden;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent);
    background: rgba(236, 72, 153, 0.08);
}

.modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
}

.modal-search {
    margin-bottom: 16px;
}

.modal-search input {
    font-size: 1rem;
    padding: 12px 16px 12px 46px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
    font-size: 0.9rem;
}

.search-result-item {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: rgba(236, 72, 153, 0.06);
    border-color: rgba(236, 72, 153, 0.2);
}

.search-result-ref {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.search-result-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.search-result-text mark {
    background: rgba(236, 72, 153, 0.25);
    color: var(--accent-light);
    border-radius: 3px;
    padding: 0 2px;
}

/* Settings */
.settings-modal {
    max-width: 420px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
}

.settings-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.settings-item-stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 26px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

.font-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.font-select {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e8a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.font-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.font-select option {
    background: var(--bg-card-dark);
    color: var(--text-primary);
}

.font-preview {
    direction: rtl;
    text-align: center;
    font-size: 1.5rem;
    line-height: 2;
    color: var(--text-primary);
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 30px);
    right: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .landing-title {
        font-size: 3rem;
    }

    .landing-bismillah {
        font-size: 1.7rem;
    }

    .feature-grid {
        gap: 10px;
        padding: 0 16px;
    }

    .feature-card {
        padding: 16px 14px;
    }

    .dash-section-title {
        padding: 20px 16px 10px;
    }

    .dash-header {
        padding: 20px 16px 0;
    }

    .dash-search {
        margin: 16px 16px 0;
    }

    .last-read-card {
        margin: 0 16px;
    }

    .daily-verse-card {
        margin: 16px 16px 0;
    }

    .verses-container {
        padding: 10px 12px 30px;
    }

    .verse-card {
        padding: 18px 14px;
    }

    .verse-arabic {
        font-size: 1.4rem;
        line-height: 2;
    }

    .surah-header-card {
        flex-direction: column;
    }

    .surah-header-left {
        width: 100%;
        min-height: 80px;
        border-radius: 0;
    }

    .surah-header-right {
        padding: 12px 16px;
    }

    .surah-header-arabic {
        font-size: 1.5rem;
    }

    .tasbeeh-counter {
        width: 220px;
        height: 220px;
    }

    .tasbeeh-count {
        font-size: 3rem;
    }

    .tasbeeh-labels {
        width: 220px;
    }
}

/* ===== DUA VIEW ===== */
.dua-categories {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dua-category-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px 34px;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dua-category-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.dua-category-card:active {
    transform: translateY(0);
}

.dua-category-icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 72, 153, 0.12);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.dua-category-icon-box svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.dua-category-info {
    flex: 1;
    min-width: 0;
}

.dua-category-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-on-card);
    margin-bottom: 4px;
}

.dua-category-info .dua-category-tagline {
    font-size: 0.72rem;
    color: var(--text-on-card);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 6px;
}

.dua-category-info p {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}

.dua-category-count {
    position: absolute;
    bottom: 10px;
    right: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
}

.dua-category-card>svg {
    display: none;
}

/* Zikr Cards */
.dua-zikr-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dua-zikr-card {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.dua-zikr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.dua-zikr-arabic {
    font-family: var(--font-arabic);
    font-size: 1.35rem;
    color: var(--text-on-card);
    direction: rtl;
    line-height: 2;
    text-align: center;
    margin-bottom: 14px;
}

.dua-zikr-translit {
    font-size: 0.82rem;
    color: var(--accent-light);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 8px;
}

.dua-zikr-translation {
    font-size: 0.82rem;
    color: var(--text-on-card-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.dua-zikr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
}

.dua-zikr-source {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}

.dua-zikr-count-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.25);
}

.dua-zikr-count-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

.dua-zikr-count-btn:active {
    transform: translateY(0);
}

/* Custom Dua in Tasbeeh */
.tasbeeh-custom-dua {
    text-align: center;
    padding: 16px 20px;
    margin: 0 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.tasbeeh-custom-arabic {
    font-family: var(--font-arabic);
    font-size: 1.15rem;
    color: var(--text-on-card);
    direction: rtl;
    line-height: 1.9;
    margin-bottom: 6px;
}

.tasbeeh-custom-translit {
    font-size: 0.72rem;
    color: var(--accent-light);
    font-style: italic;
    line-height: 1.4;
}

/* ===== DUA COUNTER ===== */
.dua-counter-section {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dua-counter-dua {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
}

.dua-counter-arabic {
    font-family: var(--font-arabic);
    font-size: 1.25rem;
    color: var(--text-on-card);
    direction: rtl;
    line-height: 2;
    margin-bottom: 8px;
}

.dua-counter-translit {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-style: italic;
    line-height: 1.4;
}

.dua-counter-target {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dua-counter-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 24px rgba(236, 72, 153, 0.15);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 20px;
}

.dua-counter-circle:active,
.dua-counter-circle.pulse {
    transform: scale(0.95);
    box-shadow: 0 2px 16px rgba(236, 72, 153, 0.3);
}

.dua-counter-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dua-counter-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.dua-counter-actions {
    margin-top: 8px;
}

.dua-counter-reset {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--radius-full);
    padding: 10px 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dua-counter-reset:hover {
    background: rgba(236, 72, 153, 0.2);
}