/* ===========================================================================
   WIRD REMINDER LANDING PAGE
   Uses the EXACT same styles as the extension for consistency
   =========================================================================== */

/* Import the same fonts as the extension */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Tajawal:wght@400;500;700&display=swap');

/* ===========================================================================
   CSS VARIABLES - Copied directly from extension's base.css
   =========================================================================== */
:root {
    /* Shadcn Colors (Light Theme - same as extension) */
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;

    /* Semantic Colors */
    --quran-green: 142.1 76.2% 36.3%;

    /* Semantic Spacing */
    --container-padding: 1.25rem;
    --section-gap: 1.5rem;
    --card-padding: 1rem;
    --card-gap: 0.75rem;
    --input-gap: 1rem;
    --header-padding: 1rem 1.25rem;
    --tabs-margin: 1rem 1.25rem 0.5rem;
}

/* ===========================================================================
   FONT FACES
   =========================================================================== */
@font-face {
    font-family: 'UthmanicHafs';
    src: url('core/assets/fonts/UthmanicHafs.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'SurahNames';
    src: url('core/assets/fonts/SurahNames.woff2') format('woff2');
    font-display: swap;
}

/* ===========================================================================
   BASE RESET
   =========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    direction: rtl;
    line-height: 1.5;
}

/* ===========================================================================
   NAVIGATION (Landing Page Only)
   =========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
    height: 56px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-decoration: none;
}

.nav-logo img {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: hsl(var(--foreground));
}

/* ===========================================================================
   HERO SECTION
   =========================================================================== */
.hero {
    padding: 100px var(--container-padding) 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: hsl(var(--quran-green) / 0.1);
    border: 1px solid hsl(var(--quran-green) / 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: hsl(var(--quran-green));
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.hero-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ===========================================================================
   FEATURES SECTION
   =========================================================================== */
.features {
    padding: 2rem var(--container-padding);
    background-color: hsl(var(--muted));
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.8rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.feature-emoji {
    font-size: 1rem;
}

/* ===========================================================================
   SCREENSHOTS SHOWCASE SECTION
   =========================================================================== */
.screenshots {
    padding: 3rem var(--container-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.screenshots-header {
    text-align: center;
    margin-bottom: 2rem;
}

.screenshots-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.screenshots-header p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.screenshots-gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--border)) transparent;
}

.screenshots-gallery::-webkit-scrollbar {
    height: 8px;
}

.screenshots-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-gallery::-webkit-scrollbar-thumb {
    background-color: hsl(var(--border));
    border-radius: 4px;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-4px);
}

.screenshot-item img {
    width: 280px;
    height: auto;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.screenshot-item:hover img {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 8px 20px -8px rgba(0, 0, 0, 0.1);
}

.screenshot-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background-color: hsl(var(--muted));
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}

/* Center gallery on larger screens */
@media (min-width: 1100px) {
    .screenshots-gallery {
        justify-content: center;
        overflow-x: visible;
    }
}

/* ===========================================================================
   DEMO SECTION WITH PHONE FRAME
   =========================================================================== */
.demo {
    padding: 3rem var(--container-padding);
    max-width: 1100px;
    margin: 0 auto;
}

.demo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.demo-header p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.phone-frame-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-frame {
    width: 380px;
    height: 600px;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 20px;
    background: hsl(var(--muted));
    border-radius: 10px;
    z-index: 10;
}

.demo-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    max-width: 400px;
}

/* Mini Download Buttons for PWA Tab */
.download-btn-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.2s ease;
}

.download-btn-mini:hover {
    background-color: hsl(var(--accent));
    transform: translateX(-4px);
}

.download-text {
    display: flex;
    flex-direction: column;
}

.download-text .browser-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.download-text .browser-desc {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ===========================================================================
   APP MODE (For Android / Installed PWA)
   =========================================================================== */
body.is-app {
    height: auto;
    width: 100%;
    overflow-x: hidden;
    background-color: hsl(var(--background));
}

body.is-app .landing-only {
    display: none;
}

/* Hide demo header and note on mobile/app mode */
body.is-app .demo-header,
body.is-app .demo-note {
    display: none;
}

body.is-app .demo {
    padding: 0;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.is-app .phone-frame-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.is-app .phone-frame {
    width: 100%;
    height: 100%;
    flex: 1;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

body.is-app .phone-notch {
    display: none;
}

body.is-app .app-container {
    padding-top: 0;
    height: 100vh;
    height: 100svh;
}

/* Safe Area Insets for Mobile */
@supports (padding: env(safe-area-inset-top)) {
    body.is-app .app-container {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Reader View Overrides for App Mode */
body.is-app .reader-view {
    padding-top: 0;
}

body.is-app .reader-header {
    background-color: white;
}

@supports (padding: env(safe-area-inset-top)) {
    body.is-app .reader-view {
        padding-top: env(safe-area-inset-top);
    }

    body.is-app .reader-footer {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
}

body.is-app .app-container,
body.is-app .reader-view {
    height: 100vh;
    height: 100svh;
}

/* ===========================================================================
   EXTENSION APP CONTAINER (Inside Phone Frame)
   Uses EXACT extension styles from layout.css
   =========================================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding-top: 28px;
    /* For phone notch */
}

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

header h1 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-area img {
    width: 24px;
    height: 24px;
}

/* Tabs - EXACT copy from extension */
.tabs-nav {
    display: inline-flex;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: hsl(var(--muted));
    padding: 0.25rem;
    margin: var(--tabs-margin);
    width: calc(100% - 2.5rem);
}

.tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    flex: 1;
    font-family: inherit;
}

.tab-trigger:hover {
    color: hsl(var(--foreground));
}

.tab-trigger.active {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: var(--container-padding);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===========================================================================
   REMINDER CARD - EXACT copy from extension
   =========================================================================== */
.reminder-card {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: var(--card-padding);
    margin-bottom: var(--card-gap);
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.card-description {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--border));
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* ===========================================================================
   BUTTONS - EXACT copy from extension
   =========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    height: 2rem;
    padding: 0 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background-color: hsl(var(--quran-green));
    color: white;
}

.btn-primary:hover {
    background-color: hsl(var(--quran-green) / 0.9);
}

.btn-outline {
    border-color: hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-destructive {
    color: hsl(var(--destructive));
}

.btn-destructive:hover {
    background-color: hsl(var(--destructive) / 0.1);
}

.btn-xl {
    width: 100%;
    height: 2.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* ===========================================================================
   TOGGLE SWITCH - EXACT copy from extension
   =========================================================================== */
.switch {
    position: relative;
    display: inline-flex;
    height: 1.25rem;
    width: 2.25rem;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
    border-radius: 9999px;
    border: 2px solid transparent;
    transition: background-color 0.2s;
    background-color: hsl(var(--input));
}

.switch[aria-checked="true"] {
    background-color: hsl(var(--quran-green));
}

.switch-thumb {
    display: block;
    height: 1rem;
    width: 1rem;
    border-radius: 9999px;
    background-color: hsl(var(--background));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    transform: translateX(0);
}

.switch[aria-checked="true"] .switch-thumb {
    transform: translateX(1rem);
}

[dir="rtl"] .switch[aria-checked="true"] .switch-thumb {
    transform: translateX(-1rem);
}

/* ===========================================================================
   FORMS - EXACT copy from extension
   =========================================================================== */
.form-item {
    margin-bottom: var(--input-gap);
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.input {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.1);
}

.submit-area {
    margin-top: var(--section-gap);
}

/* ===========================================================================
   MISC COMPONENTS - EXACT copy from extension
   =========================================================================== */
.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin: var(--section-gap) 0 var(--card-gap);
    letter-spacing: 0.05em;
}

.section-title:first-child {
    margin-top: 0;
}

.divider {
    height: 1px;
    background-color: hsl(var(--border));
    margin: var(--section-gap) 0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.2;
}

.empty-state-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-description {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.danger-zone .section-title {
    color: hsl(var(--destructive));
}

/* ===========================================================================
   CHECKBOX - EXACT copy from extension
   =========================================================================== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    border-radius: calc(var(--radius) - 2px);
    border: 2px solid hsl(var(--input));
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox:hover {
    border-color: hsl(var(--quran-green));
}

.checkbox[aria-checked="true"] {
    background-color: hsl(var(--quran-green));
    border-color: hsl(var(--quran-green));
}

.checkbox-indicator {
    display: none;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

.checkbox[aria-checked="true"] .checkbox-indicator {
    display: block;
}

.checkbox-label {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.checkbox-wrapper:hover .checkbox-label {
    color: hsl(var(--foreground));
}

.checkbox[aria-checked="true"]+.checkbox-label {
    color: hsl(var(--quran-green));
    font-weight: 500;
}

/* ===========================================================================
   MODAL - EXACT copy from extension
   =========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--container-padding);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }

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

/* ===========================================================================
   CALENDAR MODAL - EXACT copy from extension
   =========================================================================== */
.calendar-modal {
    max-width: 360px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.calendar-header .modal-title {
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.calendar-nav {
    padding: 0.25rem;
    height: auto;
}

.calendar-reminder-name {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: var(--radius);
    font-size: 0.75rem;
    position: relative;
    background-color: hsl(var(--background));
}

.calendar-cell.empty {
    background: transparent;
}

.calendar-cell .day-number {
    font-weight: 500;
    line-height: 1;
}

.calendar-cell .status-icon {
    margin-top: 2px;
    font-size: 0.6rem;
    line-height: 1;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell.today {
    background-color: hsl(var(--accent));
    border: 2px solid hsl(var(--quran-green));
}

.calendar-cell.completed {
    background-color: hsl(var(--quran-green) / 0.1);
}

.calendar-cell.completed .status-icon {
    color: hsl(var(--quran-green));
    font-size: 0.7rem;
    font-weight: bold;
}

.calendar-cell.missed {
    background-color: hsl(var(--muted) / 0.3);
}

.calendar-cell.missed .circle {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: hsl(var(--muted-foreground) / 0.4);
}

.calendar-cell.not-scheduled {
    opacity: 0.5;
}

.calendar-cell.future {
    opacity: 0.3;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.legend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: calc(var(--radius) - 2px);
}

.legend-icon.completed {
    background-color: hsl(var(--quran-green) / 0.1);
    color: hsl(var(--quran-green));
    font-size: 0.7rem;
    font-weight: bold;
}

.legend-icon.missed {
    background-color: hsl(var(--muted) / 0.3);
}

.legend-icon.missed::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: hsl(var(--muted-foreground) / 0.4);
}

/* ===========================================================================
   READER VIEW
   =========================================================================== */
.reader-view {
    position: absolute;
    inset: 0;
    height: 100%;
    background: #fcfbf9;
    display: flex;
    flex-direction: column;
    padding-top: 28px;
    z-index: 20;
    overflow: hidden;
}

.reader-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid hsl(var(--border));
    flex-shrink: 0;
}

.back-btn {
    background: none;
    border: none;
    color: hsl(var(--quran-green));
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    flex-shrink: 0;
}

#reader-title {
    font-weight: 500;
    color: hsl(var(--foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.reader-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    direction: rtl;
}

.reader-footer {
    padding: 0.75rem 1rem;
    background: white;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    flex-shrink: 0;
}

/* ===========================================================================
   MUSHAF STYLES (Reader)
   =========================================================================== */
.mushaf-page {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 1.5rem;
}

.mushaf-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    font-size: 22px;
    font-family: 'UthmanicHafs', serif;
    color: #1F2937;
    flex-wrap: wrap;
}

.mushaf-line.centered {
    justify-content: center;
    gap: 10px;
}

.mushaf-word {
    cursor: pointer;
    transition: color 0.2s;
}

.mushaf-word:hover {
    color: hsl(var(--quran-green));
}

.mushaf-word.bookmarked {
    background: hsl(var(--quran-green) / 0.15);
    border-radius: 3px;
    padding: 1px 3px;
}

.ayah-symbol {
    color: hsl(var(--quran-green));
    font-family: 'UthmanicHafs', serif;
    font-size: 0.85em;
    margin: 0 3px;
}

.surah-header {
    font-family: 'SurahNames', serif;
    font-size: 40px;
    text-align: center;
    margin: 15px 0;
    color: #222;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.basmala {
    font-family: 'Amiri', serif;
    font-size: 22px;
    text-align: center;
    margin: 15px 0;
    color: #111;
}

.page-footer {
    text-align: center;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    padding-top: 0.75rem;
    margin-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

/* ===========================================================================
   DOWNLOAD SECTION
   =========================================================================== */
.download {
    padding: 3rem var(--container-padding);
    background-color: hsl(var(--muted));
    text-align: center;
}

.download h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.download-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 2rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.download-btn:hover {
    border-color: hsl(var(--quran-green));
    box-shadow: 0 0 0 2px hsl(var(--quran-green) / 0.1);
}

.browser-icon {
    font-size: 1.5rem;
}

.browser-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.download-extra {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

.download-extra a {
    color: hsl(var(--quran-green));
    text-decoration: none;
    margin-right: 0.25rem;
}

/* ===========================================================================
   FOOTER
   =========================================================================== */
.footer {
    padding: 1.5rem var(--container-padding);
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

.footer p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.footer a {
    color: hsl(var(--quran-green));
    text-decoration: none;
}

/* ===========================================================================
   LOADING STATE
   =========================================================================== */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid hsl(var(--border));
    border-top-color: hsl(var(--quran-green));
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 480px) {
    .phone-frame {
        width: 100%;
        max-width: 360px;
        height: 580px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 200px;
    }
}