/* =====================================================
   1. ROOT VARIABLES
===================================================== */

:root {
    --bg: #f5f1e8;
    --bg-soft: #f8f5ee;

    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;

    --text: #111111;
    --text-soft: #3f3f3f;
    --text-muted: #6b6b6b;

    --border: rgba(0, 0, 0, 0.06);

    --primary: #c2a36b;
    --primary-strong: #a88b56;
    --primary-soft: rgba(194, 163, 107, 0.15);

    --success: #2e7d32;
    --success-soft: #edf7ee;

    --warning: #b7791f;
    --warning-soft: #fff6e6;

    --danger: #c53030;
    --danger-soft: #fff2f2;

    --neutral-soft: #f3f4f6;

    --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.12);

    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 32px;
}


/* =====================================================
   2. RESET + BASE
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(194,163,107,0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(194,163,107,0.06), transparent 30%),
        var(--bg);
    line-height: 1.55;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.15;
}

h3 {
    font-size: 1.05rem;
    line-height: 1.2;
}

p {
    color: var(--text-soft);
}

small,
.muted {
    color: var(--text-muted);
}


/* =====================================================
   3. GLOBAL LAYOUT
===================================================== */

.page-shell {
    min-height: 100vh;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}


.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1rem;
    letter-spacing: -1px;
}

.section-heading p {
    color: var(--text-muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: fit-content;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}


/* =====================================================
   4. NAVBAR + MOBILE MENU
===================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1rem 2rem;
}

.glass-nav {
    background: rgba(245, 241, 232, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-brand a,
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 700;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white !important;
    box-shadow: 0 10px 24px rgba(194, 163, 107, 0.22);
}

.nav-mini-link {
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(194, 163, 107, 0.10);
    border: 1px solid rgba(194, 163, 107, 0.18);
    color: var(--primary-strong) !important;
    font-size: 0.88rem;
    font-weight: 800;
}

.mobile-logout-link,
.logout-link {
    color: #cf2f2f !important;
    font-weight: 900;
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;

    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);

    cursor: pointer;
    position: relative;
    z-index: 2000;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #111;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* Profile dropdown desktop */

.nav-profile-dropdown {
    position: relative;
}

.nav-profile-trigger {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.nav-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.nav-profile-caret {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-profile-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 180px;
    padding: 0.8rem;

    border-radius: 20px;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(14px);

    display: none;
    z-index: 1200;
}

.nav-profile-dropdown:hover .nav-profile-menu,
.nav-profile-dropdown:focus-within .nav-profile-menu {
    display: grid;
    gap: 0.4rem;
}

.nav-profile-menu a {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}

.nav-profile-menu a:hover {
    background: rgba(245,241,232,0.9);
}


/* =====================================================
   5. BUTTONS
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 14px;
    padding: 0.85rem 1.2rem;

    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white;

    font-weight: 800;
    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 10px 22px rgba(194, 163, 107, 0.25);
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(194, 163, 107, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1rem 1.4rem;
}

.btn-small {
    padding: 0.58rem 0.85rem;
    font-size: 0.9rem;
}

.btn-secondary {
    background: var(--surface-strong);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, #c2410c, var(--danger));
    color: white;
    box-shadow: none;
}


/* =====================================================
   6. FORMS + FLASH
===================================================== */

.toast-wrapper {
    position: fixed;
    top: 5.5rem;
    right: 1.25rem;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1rem 1.1rem;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
    backdrop-filter: blur(16px);

    color: #111;
    font-weight: 800;

    animation: toastIn 0.3s ease forwards;
}

.toast-success {
    border-left: 5px solid #2e7d32;
}

.toast-error,
.toast-danger {
    border-left: 5px solid #c53030;
}

.toast-warning {
    border-left: 5px solid #b7791f;
}

.toast-close {
    border: none;
    background: transparent;
    color: #777;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@media (max-width: 640px) {
    .toast-wrapper {
        top: 5rem;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
    color: var(--text);
}

input,
select {
    width: 100%;
    padding: 0.85rem 0.95rem;

    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);

    color: var(--text);
    font-size: 0.98rem;
    outline: none;

    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus {
    border-color: rgba(194, 163, 107, 0.45);
    box-shadow: 0 0 0 4px rgba(194, 163, 107, 0.10);
}

.flash-wrapper {
    padding-top: 1rem;
}

.flash-message {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.flash-message.success {
    background: #ecfdf3;
    color: #166534;
}

.flash-message.error {
    background: var(--danger-soft);
    color: #8a1f1f;
}


/* =====================================================
   7. LANDING PAGE
===================================================== */



/* =====================================================
   LANDING PAGE CLEAN RESET
===================================================== */

body.landing-page {
    scroll-snap-type: none;
}

body.landing-page .brand-intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.landing-page .hero-section {
    padding: 7rem 0;
}

body.landing-page .section {
    padding: 6rem 0;
}

body.landing-page .alt-section {
    background: rgba(255, 255, 255, 0.45);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.premium-preview-section,
#features,
#how-it-works,
#start-now {
    min-height: auto;
    display: block;
}

.premium-preview-grid,
.feature-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.cta-section {
    padding-bottom: 7rem;
}

@media (max-width: 900px) {
    body.landing-page .hero-section,
    body.landing-page .section {
        padding: 4rem 0;
    }

    .hero-grid,
    .premium-preview-grid,
    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Floating background clocks */

.floating-clocks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-clocks span {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: floatClock linear infinite;
}

.floating-clocks span:nth-child(1) {
    left: 10%;
    top: 80%;
    animation-duration: 18s;
}

.floating-clocks span:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-duration: 22s;
}

.floating-clocks span:nth-child(3) {
    left: 50%;
    top: 85%;
    animation-duration: 20s;
}

.floating-clocks span:nth-child(4) {
    left: 70%;
    top: 70%;
    animation-duration: 24s;
}

.floating-clocks span:nth-child(5) {
    left: 85%;
    top: 90%;
    animation-duration: 19s;
}

.floating-clocks span:nth-child(6) {
    left: 40%;
    top: 75%;
    animation-duration: 26s;
}

.brand-intro-inner,
.hero-grid,
.section .container,
.cta-section .container {
    position: relative;
    z-index: 1;
}

/* =====================================================
   LANDING SECTION SYSTEM
===================================================== */

.hero-section,
.section,
.brand-intro {
    position: relative;

    padding: 7rem 0;
}

.hero-section,
#premium-preview,
#start-now {
    background: rgba(245, 241, 232, 0.68);
}

#features,
#how-it-works {
    background: rgba(248, 246, 241, 0.68);
}

.section .container,
.hero-section .container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .hero-section,
    .section {
        padding: 5rem 0;
    }

    .section-heading {
        margin-bottom: 2.5rem;
    }
}

/* Brand intro */

.brand-intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at top left, rgba(194,163,107,0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(194,163,107,0.10), transparent 32%),
        linear-gradient(180deg, #f8f5ee 0%, #f5f1e8 100%);
}

.brand-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.16), transparent 52%);
    pointer-events: none;
}

.brand-intro-inner {
    width: 100%;
    height: 100%;
    padding: 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-text-logo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.02em;

    margin-bottom: 0.6rem;

    font-size: clamp(3.2rem, 10vw, 7.5rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.brand-deen {
    font-weight: 400;
    color: #111;
    opacity: 0;
    animation: deenFadeIn 0.8s ease forwards;
}

.brand-sync {
    font-weight: 900;
    color: #111;
    opacity: 0;
    transform: translateX(26px);
    animation: syncSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

.brand-dot {
    width: 0.16em;
    height: 0.16em;
    display: inline-block;
    margin-left: 0.12em;

    background-color: #c9a86a;
    box-shadow: 0 0 12px rgba(201, 168, 106, 0.22);

    opacity: 0;
    transform: translateY(-0.03em) scale(0.4);
    animation: dotPopIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.95s;
    align-self: baseline;
}

.brand-tagline {
    margin-top: 0.3rem;
    margin-bottom: 1.4rem;

    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: rgba(0,0,0,0.55);

    opacity: 0;
    transform: translateY(8px);
    animation: taglineFadeIn 0.7s ease forwards;
    animation-delay: 1.15s;
}

.brand-intro-scroll {
    margin-top: 2rem;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;

    opacity: 0;
    transform: translateY(8px);
    animation: scrollCueFadeIn 0.7s ease forwards;
    animation-delay: 1.35s;
}

.brand-intro-scroll span {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
}

.brand-intro-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid rgba(0,0,0,0.35);
    border-bottom: 2px solid rgba(0,0,0,0.35);
    transform: rotate(45deg);
    animation: introArrowBounce 1.8s ease-in-out infinite;
}


/* Hero */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
}

#hero-main {
    scroll-margin-top: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    letter-spacing: -1.5px;
}

.hero-text {
    max-width: 640px;
    margin-bottom: 2rem;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.stat-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.stat-card strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.stat-card span {
    color: var(--text-muted);
    font-size: 0.92rem;
}


/* Hero mockup */

.hero-preview {
    display: flex;
    justify-content: center;
}

.app-mockup {
    width: min(420px, 100%);
    overflow: hidden;

    border-radius: 28px;
    border: 1px solid var(--border);

    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.mockup-topbar {
    display: flex;
    gap: 0.4rem;
    padding: 1rem;

    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.mockup-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.mockup-body {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.mockup-card {
    padding: 1.1rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.mockup-card.soft {
    background: #f8fbfa;
}

.mockup-label {
    margin: 0 0 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mockup-card h3 {
    margin: 0 0 0.8rem;
}

.mockup-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-top: 1px solid #eef2f7;
}

.mockup-row.warning {
    color: #a16207;
}

.mockup-badge {
    display: inline-block;
    margin-top: 0.9rem;
    padding: 0.45rem 0.7rem;

    border-radius: 999px;
    background: var(--danger-soft);
    color: var(--danger);

    font-size: 0.85rem;
    font-weight: 800;
}

.landing-product-preview {
    width: min(560px, 100%);
    padding: 1rem;
    border-radius: 32px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 24px 60px rgba(0,0,0,0.10);
    backdrop-filter: blur(16px);
}

.preview-status {
    margin-bottom: 1rem;
}

.preview-card {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.05);
}

.preview-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.preview-status strong {
    display: block;
    font-size: 1.15rem;
}

.preview-status p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 0.8rem;
    align-items: stretch;
}

.preview-timeline,
.mini-prayer-summary {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(0,0,0,0.05);
}

.preview-title-row {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.preview-title-row h3 {
    margin: 0;
    font-size: 0.95rem;
}

.preview-title-row span {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.mini-dashboard-grid {
    position: relative;
    height: 360px;
    border-radius: 18px;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 8.25%,
            rgba(0,0,0,0.06) 8.5%,
            transparent 8.75%
        ),
        rgba(248,250,252,0.75);
    overflow: hidden;
}

.mini-dashboard-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 36%;
    width: 1px;
    background: rgba(0,0,0,0.07);
}

.mini-time {
    position: absolute;
    left: 0.45rem;
    color: var(--text-muted);
    background: rgba(245,241,232,0.9);
    font-size: 0.56rem;
    font-weight: 900;
    z-index: 2;
}

.mini-time-7 { top: 2%; }
.mini-time-8 { top: 10%; }
.mini-time-9 { top: 18%; }
.mini-time-10 { top: 26%; }
.mini-time-11 { top: 34%; }
.mini-time-12 { top: 42%; }
.mini-time-1 { top: 50%; }
.mini-time-2 { top: 58%; }
.mini-time-3 { top: 66%; }
.mini-time-4 { top: 74%; }
.mini-time-5 { top: 82%; }
.mini-time-6 { top: 90%; }
.mini-time-7pm { top: 96%; }
.mini-time-8pm { top: 101%; }

.mini-prayer {
    position: absolute;
    left: 20%;
    width: 31%;
    padding: 0.55rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    z-index: 8;
}

.mini-prayer strong,
.mini-class-block strong {
    display: block;
    font-size: 0.72rem;
}

.mini-prayer small,
.mini-class-block small {
    display: block;
    color: var(--text-muted);
    font-size: 0.56rem;
    font-weight: 800;
}

.mini-prayer span {
    position: absolute;
    right: 0.45rem;
    top: 0.45rem;
    padding: 0.22rem 0.4rem;
    border-radius: 999px;
    font-size: 0.5rem;
    font-weight: 900;
}

.mini-prayer-conflict {
    top: 49%;
    background: #fff2f2;
    border-left: 4px solid var(--danger);
}

.mini-prayer-conflict span {
    color: var(--danger);
    background: #ffe1e1;
}

.mini-prayer-clear {
    top: 80%;
    background: #edf7ee;
    border-left: 4px solid var(--success);
}

.mini-prayer-clear span {
    color: var(--success);
    background: #dcfce7;
}

.mini-class-block {
    position: absolute;
    left: 55%;
    top: 42%;
    width: 40%;
    height: 24%;
    padding: 0.65rem;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(194,163,107,0.22), rgba(194,163,107,0.08)),
        repeating-linear-gradient(-45deg, rgba(194,163,107,0.08), rgba(194,163,107,0.08) 8px, transparent 8px, transparent 16px);
    border-left: 4px solid var(--primary);
    z-index: 6;
}

.mini-current-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 68%;
    height: 2px;
    background: rgba(220,38,38,0.65);
    z-index: 10;
}

.mini-current-dot {
    position: absolute;
    left: 0;
    top: 68%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(220,38,38,0.95);
    transform: translateY(-50%);
    box-shadow: 0 0 0 5px rgba(220,38,38,0.12);
    z-index: 11;
}

.mini-prayer-summary {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mini-summary-card {
    padding: 0.8rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.78rem;
}

.mini-summary-card strong,
.mini-summary-card small {
    display: block;
}

.mini-summary-card small {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-weight: 800;
}

.mini-summary-card span {
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
}

.mini-summary-card.conflict {
    background: #fff2f2;
    border-left: 4px solid var(--danger);
}

.mini-summary-card.conflict span {
    color: var(--danger);
    background: #ffe1e1;
}

.mini-summary-card.clear {
    background: #edf7ee;
    border-left: 4px solid var(--success);
}

.mini-summary-card.clear span {
    color: var(--success);
    background: #dcfce7;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-preview {
        width: 100%;
        display: block;
        margin-top: 2rem;
    }

    .landing-product-preview {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 0.8rem;
        border-radius: 28px;
    }

    .preview-layout {
        grid-template-columns: 1fr;
    }

    .mini-prayer-summary {
        padding: 0;
        background: transparent;
        border: none;
        flex-direction: column;
        margin-top: 0.75rem;
    }

    .mini-dashboard-grid {
        height: 320px;
    }

    .mini-prayer {
        left: 18%;
        width: 33%;
        padding: 0.5rem;
    }

    .mini-class-block {
        left: 55%;
        width: 40%;
        height: 24%;
        padding: 0.5rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-preview {
        display: block !important;
    }

    .landing-product-preview {
        max-width: 100%;
        transform: none;
    }

    .mini-dashboard-grid {
        height: 300px;
    }

    .mini-time {
        font-size: 0.5rem;
    }

    .mini-prayer {
        left: 16%;
        width: 35%;
        padding: 0.42rem;
    }

    .mini-class-block {
        left: 55%;
        width: 40%;
        height: 24%;
        padding: 0.42rem;
    }

    .mini-prayer strong,
    .mini-class-block strong {
        font-size: 0.6rem;
    }

    .mini-prayer small,
    .mini-class-block small {
        font-size: 0.5rem;
    }

    .mini-prayer span {
        display: none;
    }
}

/*REALLLLLLLLLLLLLLLL */

/* HERO TEASER MOCKUP */
.teaser-preview {
    padding: 1rem;
}

.teaser-preview .preview-status,
.teaser-preview .mini-prayer-summary {
    display: none;
}

.teaser-preview .preview-layout {
    display: block;
}

.teaser-preview .preview-timeline {
    width: 100%;
}

.teaser-grid {
    min-height: 320px;
}

.teaser-class {
    top: 25%;
    height: 50%;
    left: 58%;
    width: 34%;
}

.teaser-prayer {
    top: 42%;
    left: 18%;
    width: 38%;
}

@media (max-width: 700px) {
    .teaser-grid {
        min-height: 300px;
    }

    .teaser-class {
        left: 54%;
        width: 38%;
    }

    .teaser-prayer {
        left: 12%;
        width: 42%;
    }
}

/* Landing feature / step / CTA cards */

.feature-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.feature-card,
.step-card,
.cta-box {
    padding: 1.25rem;

    border-radius: var(--radius-lg);
    border: 1px solid var(--border);

    background: var(--surface);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.feature-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.feature-card h3,
.step-card h3 {
    margin-bottom: 0.6rem;
}

.feature-card p,
.step-card p,
.cta-box p {
    color: var(--text-muted);
    line-height: 1.65;
}

.step-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;

    margin-bottom: 1rem;

    border-radius: 50%;
    background: var(--primary);
    color: white;

    font-weight: 800;
}

.cta-section {
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.cta-box {
    text-align: center;
    padding: 3rem 2rem;
}


/* Newsletter signup */

.newsletter-section {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.newsletter-box {
    text-align: center;
    padding: 3rem 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.6rem;
    max-width: 460px;
    margin: 1.6rem auto 0;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface-strong);
    color: var(--text);

    font-size: 1rem;
    font-family: inherit;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.newsletter-form .btn {
    white-space: nowrap;
}

@media (max-width: 540px) {
    .newsletter-form {
        flex-direction: column;
    }
}


/* Landing premium preview */

.premium-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.premium-preview-card {
    padding: 1.6rem;

    border-radius: 28px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-md);
}

.premium-icon {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.premium-preview-card h3 {
    margin-bottom: 0.7rem;
}

.premium-preview-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.premium-preview-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.premium-note {
    margin-top: 1rem;
    color: var(--primary-strong);
    font-weight: 800;
}

/* =====================================================
   8. AUTH + ONBOARDING
===================================================== */

.auth-card,
.card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.onboarding-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.onboarding-card {
    width: min(720px, 100%);
    padding: 2.5rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.onboarding-logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.02em;
    margin-bottom: 2rem;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.onboarding-copy h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.onboarding-copy p {
    max-width: 560px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.onboarding-points {
    display: grid;
    gap: 0.8rem;
    margin: 1.5rem 0 2rem;
}

.onboarding-points div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(245, 241, 232, 0.75);
    border: 1px solid rgba(0,0,0,0.05);
}

.onboarding-points strong {
    display: block;
    margin-bottom: 0.25rem;
}

.onboarding-points span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.onboarding-form label {
    margin-top: 0;
}

.city-select {
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.92);
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    appearance: none;
}

.emotion-screen {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.emotion-screen h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.emotion-screen p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.05rem;
}

.emotion-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: left;
    padding: 1.2rem;
    margin-top: 2rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.06);
}

.emotion-card span {
    font-size: 1.8rem;
}

.emotion-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.emotion-card p {
    margin: 0;
}

.premium-quote {
    margin: 1rem 0 1.5rem;
    text-align: center;
}

.premium-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary-strong);
    font-weight: 700;
}

/* =====================================================
   9. DASHBOARD
===================================================== */

.dashboard {
    width: min(1120px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.dashboard-header h1 {
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.summary-card {
    min-height: 150px;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.summary-card .label {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.summary-card h2 {
    font-size: 1.5rem;
    line-height: 1.1;
    margin: 0 0 0.6rem;
}

.summary-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1rem;
}

.date-gregorian {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.date-hijri {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.section-title-row h2 {
    margin-bottom: 0;
}

.section-title-row span {
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.95rem;
}


/* Timeline day navigation */

.timeline-nav-row {
    align-items: center;
}

.timeline-day-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-nav-label {
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.95rem;
    min-width: 7.5rem;
    text-align: center;
}

.timeline-nav-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--surface-strong);
    color: var(--text);

    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;

    transition: background 0.18s ease, border-color 0.18s ease;
}

.timeline-nav-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.timeline-back-today {
    display: inline-block;
    margin-bottom: 1rem;

    color: var(--primary-strong);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.timeline-back-today:hover {
    text-decoration: underline;
}

.timeline-loading {
    opacity: 0.55;
    transition: opacity 0.15s ease;
}


/* Dashboard highlight cards */

.dashboard-highlight-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
    margin: 1.5rem 0;
    align-items: stretch;
}

.dashboard-highlight-grid .daily-hadith-card,
.dashboard-highlight-grid .premium-dashboard-card {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    box-sizing: border-box;
}

.daily-hadith-card,
.premium-dashboard-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(201,168,106,0.15), transparent 35%),
        rgba(255,255,255,0.82);
    border: 1px solid rgba(201,168,106,0.12);
    box-shadow: 0 14px 40px rgba(15,23,42,0.05);
    backdrop-filter: blur(16px);
}

.daily-hadith-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    isolation: isolate;
}

.daily-hadith-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(201, 165, 92, 0.12), transparent 45%);
    z-index: -2;
}

.daily-hadith-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-image: url("/static/images/book.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.07;
    pointer-events: none;
    z-index: -1;
}

.hadith-label-row,
.daily-hadith-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.hadith-label-row .tool-icon,
.daily-hadith-card .tool-icon {
    margin: 0;
    font-size: 1.4rem;
}

.daily-hadith-card .eyebrow,
.premium-dashboard-card .eyebrow {
    margin: 0 0 1rem;
}

.hadith-text,
.daily-hadith-text {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 1.2rem 0 1.5rem;
    color: #111;
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hadith-reference,
.daily-hadith-reference {
    position: relative;
    z-index: 2;
    margin-top: auto;
    color: #6f6f6f;
    font-size: 0.95rem;
    font-weight: 800;
}

.locked-hadith-card {
    position: relative;
    overflow: hidden;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 2rem;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
}

.locked-overlay-content {
    max-width: 320px;
}

.lock-icon {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 2rem;
}

.locked-overlay-content h3 {
    margin-bottom: 0.6rem;
}

.locked-overlay-content p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.blurred-text {
    filter: blur(6px);
    user-select: none;
}

.premium-dashboard-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.premium-dashboard-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.8rem;
}

.premium-dashboard-card p {
    margin-bottom: 1.4rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.premium-dashboard-card .btn {
    align-self: flex-start;
}


/* =====================================================
   10. GUIDANCE + STATUS BADGES
===================================================== */

.guidance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.guidance-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guidance-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.guidance-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.guidance-top p {
    margin: 0.25rem 0 0;
}

.guidance-suggestion {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.guidance-clear {
    background: var(--success-soft);
    border-left: 5px solid var(--success);
}

.guidance-tight {
    background: #fff8e8;
    border-left: 5px solid var(--warning);
}

.guidance-conflict {
    background: var(--danger-soft);
    border-left: 5px solid var(--danger);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge-clear {
    background: var(--success-soft);
    color: var(--success);
}

.badge-tight {
    background: #fff4db;
    color: var(--warning);
}

.badge-conflict {
    background: #ffe6e6;
    color: var(--danger);
}

.badge-none,
.badge-unknown {
    background: var(--neutral-soft);
    color: #4b5563;
}

.mobile-prayer-summary {
    display: none;
}

.mobile-prayer-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    background: white;
    overflow: hidden;
}

.mobile-prayer-item summary {
    list-style: none;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem;
    font-weight: 700;
}

.mobile-prayer-item summary::-webkit-details-marker {
    display: none;
}

.mobile-prayer-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-prayer-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mobile-prayer-details {
    padding: 0 1rem 1rem;
    color: var(--text-muted);
}

.mobile-prayer-details p {
    margin-top: 0.6rem;
}

/* =====================================================
   11. TIME-BLOCK PLANNER
===================================================== */

.timeline-scroll-wrap {
    width: 100%;
}

.time-planner {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
    min-height: 1260px;
    align-items: start;
}

.time-axis {
    position: relative;
    height: 1260px;
    min-width: 0;
}

.time-label {
    position: absolute;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.time-label span {
    display: inline-block;
    padding-right: 0.4rem;
    color: var(--text-muted);
    background: var(--bg);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.time-grid {
    position: relative;
    height: 1260px;
    min-width: 0;
    padding-left: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.92));
    border: 1px solid var(--border);
    overflow: visible;
}

.time-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(15, 23, 42, 0.07);
}

.current-time-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    opacity: 0.8;
    background: rgba(220, 38, 38, 0.7);
    z-index: 30;
}

.current-time-dot {
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.12);
}

/* Class lane */

.planner-block {
    position: absolute;
    left: 34%;
    width: 64%;
    right: auto;
    z-index: 5;
    min-height: 52px;
    overflow: hidden;

    border-radius: 18px;
    border: 1px solid rgba(194, 163, 107, 0.18);
    box-shadow: var(--shadow-sm);
}

.planner-class {
    background:
        linear-gradient(135deg, rgba(194,163,107,0.25), rgba(194,163,107,0.10)),
        repeating-linear-gradient(
            -45deg,
            rgba(194,163,107,0.08),
            rgba(194,163,107,0.08) 8px,
            transparent 8px,
            transparent 16px
        );
    border-left: 5px solid var(--primary);
}

.planner-block-inner {
    height: 100%;
    padding: 0.9rem 1rem;
}

.planner-block-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.planner-block-top strong {
    display: block;
    min-width: 0;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.planner-block-top span {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.planner-block p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.planner-professor {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Prayer lane */

.planner-marker {
    position: absolute;
    left: 2%;
    width: 30%;
    right: auto;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;

    transform: translateY(-50%);
    pointer-events: none;
}

.planner-marker > * {
    pointer-events: auto;
}

.planner-marker-line {
    display: none;
}

.planner-marker-card {
    position: relative;
    overflow: hidden;

    flex: 1;
    width: 100%;
    max-width: 100%;
    min-height: 62px;

    padding: 0.55rem 0.65rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.planner-marker-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/static/images/Mat.png");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 48px 48px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.planner-marker-card > * {
    position: relative;
    z-index: 1;
}

.planner-marker-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.planner-marker-top strong {
    font-size: 0.9rem;
}

.planner-marker-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.planner-marker-card small {
    display: none;
}

.planner-marker-card .status-badge {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
}

.planner-prayer-time {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

/* Prayer states */

.planner-clear .planner-marker-card {
    background:
        radial-gradient(circle at top right, rgba(21, 128, 61, 0.08), transparent 35%),
        linear-gradient(180deg, var(--success-soft), rgba(236,253,243,0.84));
    border-left: 4px solid var(--success);
}

.planner-tight .planner-marker-card {
    background:
        radial-gradient(circle at top right, rgba(180, 83, 9, 0.10), transparent 35%),
        linear-gradient(180deg, #fff8e8, #fffdf7);
    border-left: 4px solid var(--warning);
}

.planner-conflict {
    justify-content: flex-start;
}

.planner-conflict .planner-marker-card {
    background:
        linear-gradient(135deg, rgba(255,242,242,0.96), rgba(255,248,248,0.90));
    border-left: 4px solid var(--danger);
    box-shadow: var(--shadow-sm);
}


/* =====================================================
   12. SCHEDULE PAGE
===================================================== */

.weekly-overview-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.weekday-card {
    min-height: 220px;
    padding: 0.8rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.weekday-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.weekday-card strong {
    font-size: 1rem;
}

.weekday-card p {
    margin: 0.7rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.weekday-card-top,
.weekday-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
}

.weekday-card-top .status-badge,
.weekday-header .status-badge {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
}

.weekday-class-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.weekday-class-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.05);
}

.weekday-class-name {
    display: block;
    max-width: 100%;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.weekday-class-time {
    display: block;
    white-space: normal;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.weekday-class-location {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.weekday-banner {
    margin-top: auto;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
}

.weekday-banner-clear {
    background: var(--success-soft);
    color: var(--success);
}

.weekday-banner-tight {
    background: #fff4db;
    color: var(--warning);
}

.weekday-banner-conflict {
    background: #ffe6e6;
    color: var(--danger);
}

.weekday-banner-none,
.weekday-banner-unknown {
    background: #f3f4f6;
    color: #4b5563;
}

.weekday-empty {
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.45);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.weekday-clear {
    border-left: 5px solid var(--success);
    background: var(--success-soft);
}

.weekday-tight {
    border-left: 5px solid var(--warning);
    background: #fff8e8;
}

.weekday-conflict {
    border-left: 5px solid var(--danger);
    background: var(--danger-soft);
}

.weekday-none {
    border-left: 5px solid #9ca3af;
    background: #f3f4f6;
}

.weekday-unknown {
    border-left: 5px solid #6b7280;
    background: #f3f4f6;
}


/* Class cards */

.class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.class-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.class-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.class-card p {
    margin: 0.45rem 0;
}

.class-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.class-actions {
    display: flex;
    gap: 0.5rem;
}

.class-dates {
    margin-top: -0.15rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    opacity: 0.88;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}


/* Prayer list / generic list */

.prayer-list,
.list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.prayer-item,
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: #f7fafc;
}

.conflict-conflict {
    border-left: 5px solid var(--danger);
    background: var(--danger-soft);
}

.conflict-free {
    border-left: 5px solid var(--success);
    background: #eefbf3;
}

.conflict-message {
    max-width: 60%;
    text-align: right;
    font-size: 0.95rem;
}


/* Empty states */

.empty-state {
    text-align: center;
    padding: 2.25rem;
}

.small-empty {
    padding: 1rem 0;
}

.empty-state h2 {
    margin-bottom: 0.6rem;
}

/* =====================================================
   13. PREMIUM PAGE + PREMIUM DASHBOARD
===================================================== */

.premium-page {
    gap: 1.5rem;
}

.premium-main-hero {
    padding: 3rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(201,168,106,0.22), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,0.86), rgba(245,241,232,0.82));
    border: 1px solid rgba(201,168,106,0.22);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.premium-main-hero h1 {
    max-width: 780px;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.premium-main-hero p {
    max-width: 720px;
    font-size: 1.08rem;
    line-height: 1.7;
}

.premium-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.premium-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.premium-feature-card {
    padding: 1.3rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.74);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.premium-feature-card span {
    display: inline-flex;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.premium-feature-card h3 {
    margin-bottom: 0.5rem;
}

.premium-feature-card p {
    margin: 0;
    color: var(--text-muted);
}

.upcoming-feature-card {
    position: relative;
    opacity: 0.88;
}

.coming-soon-mini {
    display: inline-flex !important;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(201,168,106,0.14);
    color: var(--primary-strong);
    font-size: 0.72rem !important;
    font-weight: 900;
    margin-bottom: 0.6rem !important;
}

.premium-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.premium-insight-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.premium-insight-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.premium-insight-card p {
    margin: 0;
}

.premium-locked-banner {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 242, 242, 0.86);
    border: 1px solid rgba(197, 48, 48, 0.14);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.premium-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.premium-tool-card,
.focus-mode-premium-card,
.community-coming-card,
.premium-hero-card,
.premium-custom-card {
    padding: 2rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(201,168,106,0.15), transparent 35%),
        rgba(255,255,255,0.78);
    border: 1px solid rgba(201,168,106,0.12);
    box-shadow: 0 14px 40px rgba(15,23,42,0.05);
    backdrop-filter: blur(16px);
}

.premium-custom-card {
    margin-top: 1.5rem;
}

.premium-tool-card.wide {
    grid-column: 1 / -1;
}

.tool-icon {
    display: inline-block;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.premium-feature-grid div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(245,241,232,0.72);
    border: 1px solid rgba(0,0,0,0.05);
}

.premium-feature-grid strong {
    display: block;
    margin-bottom: 0.35rem;
}

.premium-feature-grid span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.premium-network-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.premium-network-grid div {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(245,241,232,0.68);
}

.premium-network-grid p {
    margin: 0.35rem 0;
    color: var(--text-muted);
}

.community-coming-card {
    position: relative;
    overflow: hidden;
}

.community-coming-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.28) 50%,
            rgba(255,255,255,0) 100%
        );
    transform: translateX(-100%);
    animation: shimmer 5s infinite;
    pointer-events: none;
}

.coming-soon-badge {
    margin-top: 1.4rem;
    display: inline-flex;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(201,168,106,0.14);
    color: #9f7a2f;
    font-size: 0.9rem;
    font-weight: 800;
}

.focus-mode-premium-card {
    min-height: 100%;
}

.focus-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.focus-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background:
        linear-gradient(
            145deg,
            rgba(201,168,106,0.2),
            rgba(201,168,106,0.08)
        );
}

.focus-card-top h2 {
    margin-top: 0.3rem;
    font-size: 2.2rem;
    line-height: 1.05;
}

.focus-main-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.6rem;
}

.focus-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2.2rem;
}

.focus-benefit {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1rem;
    border-left: 3px solid rgba(194, 155, 82, 0.22);
}

.focus-benefit strong {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
}

.focus-benefit span {
    font-size: 0.98rem;
    line-height: 1.5;
    color: #666;
}

.focus-launch-btn {
    width: 100%;
}

.timer-progress {
    width: 100%;
    height: 12px;
    background: #eee7d8;
    border-radius: 999px;
    overflow: hidden;
    margin: 14px 0 24px;
}

#timerProgressFill {
    height: 100%;
    width: 100%;
    background: #c4a76a;
    border-radius: inherit;
    transition: width 1s linear;
}

.timer-complete #timerProgressFill {
    width: 100% !important;
    background: #1f4d3a;
    animation: completePulse 1s ease-in-out infinite alternate;
}

@keyframes completePulse {
    from { opacity: 0.75; }
    to { opacity: 1; }
}

/* =====================================================
   14. PROFILE PAGE
===================================================== */

.profile-page {
    min-height: calc(100vh - 90px);
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
}

.profile-card {
    width: min(760px, 100%);
    padding: 2rem;
    border-radius: 32px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(201,168,106,0.14);
    box-shadow: 0 18px 45px rgba(15,23,42,0.06);
    backdrop-filter: blur(16px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: rgba(201,168,106,0.16);
    color: #b49152;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
}

.profile-header h1 {
    margin: 0.35rem 0 0.2rem;
}

.profile-header p {
    margin: 0;
    color: var(--text-muted);
}

.profile-plan-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(245,241,232,0.72);
    margin-bottom: 1.5rem;
}

.profile-plan-card h2 {
    margin: 0.4rem 0;
}

.profile-plan-card p {
    margin: 0;
    color: var(--text-muted);
}

.profile-form {
    margin-top: 1rem;
}

.profile-form h2 {
    margin-bottom: 1rem;
}

.profile-danger-zone {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}


/*NEW*/

.profile-page {
    min-height: calc(100vh - 90px);
    padding: 3rem 1rem;
}

.profile-shell {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.profile-hero-card {
    position: relative;
    text-align: center;
    padding: 2rem;
    border-radius: 36px;
    background:
        radial-gradient(circle at top, rgba(194,163,107,0.18), transparent 35%),
        rgba(255,255,255,0.82);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 24px 70px rgba(15,23,42,0.10);
    margin-bottom: 1.2rem;
}

.profile-top-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.profile-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(245,241,232,0.9);
    color: #111;
    text-decoration: none;
    font-weight: 900;
}

.profile-icon-btn.danger {
    color: #c53030;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 3rem;
    background: #f5f1e8;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.profile-hero-card h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    margin: 0;
    letter-spacing: -0.05em;
}

.profile-hero-card p {
    color: var(--text-muted);
    margin: 0.4rem 0 1rem;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-badge {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(245,241,232,0.9);
    color: var(--primary-strong);
}

.profile-badge.premium {
    background: rgba(194,163,107,0.18);
}

.profile-badge.free {
    color: var(--text-muted);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.profile-panel {
    padding: 1.5rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 18px 45px rgba(15,23,42,0.07);
}

.profile-panel.full {
    grid-column: 1 / -1;
}

.profile-panel h2 {
    margin: 0.4rem 0 1rem;
}

.profile-form .btn,
.profile-upgrade-btn {
    width: 100%;
    margin-top: 1rem;
}

.profile-list,
.profile-action-list {
    display: grid;
    gap: 0.7rem;
}

.profile-list-item,
.profile-action-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(245,241,232,0.72);
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: #111;
}

.profile-list-item strong,
.profile-list-item span {
    display: block;
}

.profile-list-item div span {
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.profile-action-list a span {
    flex: 1;
    font-weight: 900;
}

.profile-action-list .logout-row {
    color: #c53030;
}

@media (max-width: 760px) {
    .profile-page {
        padding: 1rem;
    }

    .profile-hero-card {
        border-radius: 0 0 34px 34px;
        margin: -1rem -1rem 1rem;
        padding: 1.4rem 1rem 2rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        border-radius: 26px;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }
}

/* =====================================================
   15. FOCUS MODE PAGE
===================================================== */

.focus-mode-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.focus-mode-page .dashboard-header {
    margin-bottom: 1.5rem;
}

.focus-mode-card {
    padding: 2.2rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(201,168,106,0.16), transparent 35%),
        rgba(255,255,255,0.78);
    border: 1px solid rgba(201,168,106,0.14);
    box-shadow: 0 18px 45px rgba(15,23,42,0.06);
    backdrop-filter: blur(16px);
}

.study-dua-box {
    margin: 1.5rem 0;
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(245,241,232,0.75);
    border: 1px solid rgba(0,0,0,0.05);
}

.arabic-dua {
    font-size: 2.2rem;
    font-weight: 900;
    direction: rtl;
    text-align: right;
    margin-bottom: 0.5rem;
}

.timer-setup {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.focus-timer-display {
    margin-top: 2rem;
    text-align: center;
}

#focusTimer {
    display: block;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.06em;
}

#focusStatus {
    color: var(--text-muted);
    font-weight: 800;
}

/*NEWW*/

.focus-page {
    min-height: calc(100vh - 90px);
    padding: 4rem 1rem;
}

.focus-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.focus-hero {
    max-width: 760px;
    margin-bottom: 2rem;
}

.focus-hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    margin-bottom: 1rem;
}

.focus-hero p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.focus-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
}

.focus-timer-card,
.focus-history-card {
    padding: 2rem;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(194,163,107,0.16), transparent 32%),
        rgba(255,255,255,0.82);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 22px 60px rgba(15,23,42,0.08);
    backdrop-filter: blur(16px);
}

.duration-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.duration-row input {
    max-width: 160px;
}

.duration-row span {
    font-weight: 900;
    color: var(--text-muted);
}

.quick-duration-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0 1.5rem;
}

.quick-duration-row button {
    border: 1px solid rgba(194,163,107,0.2);
    background: rgba(245,241,232,0.8);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 900;
    cursor: pointer;
}

.focus-intention {
    margin: 1.5rem 0;
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(245,241,232,0.72);
    border: 1px solid rgba(0,0,0,0.05);
}

.focus-intention span,
.focus-intention strong {
    display: block;
    margin-bottom: 0.35rem;
}

.focus-intention p {
    margin: 0;
    color: var(--text-muted);
}

.focus-time-display {
    margin: 1.5rem 0;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 0.9;
    font-weight: 950;
    letter-spacing: -0.08em;
    text-align: center;
    color: #111;
}

.focus-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.focus-control-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.focus-icon-btn {
    display: grid;
    place-items: center;
    min-height: 60px;
    padding: 0.9rem;
}

.focus-icon-btn svg {
    width: 26px;
    height: 26px;
}

.save-session-btn {
    margin-top: 1rem;
    width: 100%;
}

.save-session-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.study-session-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.study-session-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(245,241,232,0.72);
    border: 1px solid rgba(0,0,0,0.05);
}

.study-session-item strong,
.study-session-item span {
    display: block;
}

.study-session-item span,
.study-session-item small {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }

    .focus-controls {
        grid-template-columns: 1fr;
    }

    .duration-row {
        align-items: stretch;
        flex-direction: column;
    }

    .duration-row input {
        max-width: 100%;
    }
}


/* =====================================================
   16. FOOTER
===================================================== */

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}


/* =====================================================
   17. ANIMATIONS
===================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-play-state: paused;
}

.fade-in-up.is-visible {
    animation-play-state: running;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatClock {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        transform: translateY(-120px) rotate(20deg);
        opacity: 0.12;
    }
    100% {
        transform: translateY(-240px) rotate(40deg);
        opacity: 0;
    }
}

@keyframes deenFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes syncSlideIn {
    0% {
        opacity: 0;
        transform: translateX(26px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dotPopIn {
    0% {
        opacity: 0;
        transform: translateY(-0.03em) scale(0.4);
    }
    65% {
        opacity: 1;
        transform: translateY(-0.03em) scale(1.14);
    }
    100% {
        opacity: 1;
        transform: translateY(-0.03em) scale(1);
    }
}

@keyframes taglineFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollCueFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes introArrowBounce {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }
    50% {
        transform: rotate(45deg) translate(4px, 4px);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}


/* =====================================================
   18. RESPONSIVE OVERRIDES
===================================================== */

@media (max-width: 1000px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .premium-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .feature-grid,
    .steps-grid,
    .hero-stats,
    .class-grid,
    .premium-preview-grid,
    .premium-insights-grid,
    .premium-section-grid,
    .premium-network-grid,
    .dashboard-highlight-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 12vw, 5rem);
        line-height: 0.95;
    }

    .hero-buttons,
    .premium-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn,
    .premium-hero-actions .btn {
        width: 100%;
    }

    .app-mockup {
        width: 100%;
    }

    .section-heading h2 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .dashboard-header,
    .class-card-top,
    .profile-header,
    .profile-plan-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-highlight-grid .daily-hadith-card,
    .dashboard-highlight-grid .premium-dashboard-card {
        height: auto;
        max-height: none;
        min-height: 260px;
    }

    .focus-card-top {
        align-items: flex-start;
    }

    .focus-card-top h2,
    .premium-tool-card h2,
    .community-coming-card h2 {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .hadith-text,
    .daily-hadith-text {
        font-size: 1.55rem;
        line-height: 1.35;
    }
}

@media (max-width: 820px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav-menu {
        display: grid !important;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1rem;
        left: auto;

        width: min(280px, calc(100vw - 2rem));
        padding: 0.8rem;
        border-radius: 24px;

        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 20px 50px rgba(15,23,42,0.12);
        backdrop-filter: blur(18px);

        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        max-height: 0;
        overflow: hidden;

        transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease;
        z-index: 9999;
    }

    .mobile-nav-menu.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        max-height: 480px;
    }

    .mobile-nav-menu a {
        padding: 0.85rem 1rem;
        border-radius: 16px;
        font-weight: 900;
        text-align: left;
    }

    .dashboard-main-grid .card {
        overflow: hidden;
    }

    .timeline-scroll-wrap {
        width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
        padding-bottom: 0;
    }

    .timeline-scroll-wrap .time-planner {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 0.45rem;
    }

    .timeline-scroll-wrap .time-grid {
        width: 100%;
        min-width: 0;
        padding-left: 0;
        overflow: hidden;
    }

    .time-label span {
        font-size: 0.72rem;
        padding: 0.08rem 0.24rem;
        border-radius: 4px;
    }

    .planner-marker {
        left: 2%;
        width: 31%;
        max-width: 31%;
    }

    .planner-marker-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 52px;
        padding: 0.5rem 0.55rem;
        border-radius: 14px;
        white-space: normal;
    }

    .planner-marker-top {
        gap: 0.25rem;
    }

    .planner-marker-top strong {
        font-size: 0.78rem;
    }

    .planner-marker-card .status-badge {
        font-size: 0.58rem;
        padding: 0.22rem 0.36rem;
    }

    .planner-prayer-time {
        font-size: 0.72rem;
    }

    .planner-marker-card small {
        display: none;
    }

    .planner-block {
        left: 35%;
        width: 63%;
        max-width: 63%;
        min-width: 0;
        border-radius: 14px;
    }

    .planner-block-inner {
        padding: 0.55rem;
        white-space: normal;
        word-break: normal;
    }

    .planner-block-top {
        flex-direction: column;
        gap: 0.15rem;
        margin-bottom: 0.2rem;
    }

    .planner-block-top strong {
        font-size: 0.78rem;
    }

    .planner-block-top span {
        font-size: 0.66rem;
        white-space: normal;
    }

    .planner-block p,
    .planner-professor {
        font-size: 0.68rem;
        line-height: 1.25;
    }
    
    .focus-mode-premium-card,
    .premium-tool-card,
    .community-coming-card,
    .daily-hadith-card,
    .premium-dashboard-card {
        min-height: auto;
        height: auto;
        max-height: none;
        padding: 1.4rem;
        border-radius: 26px;
    }
}

@media (max-width: 700px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .guidance-top,
    .list-item,
    .prayer-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .conflict-message {
        max-width: 100%;
        text-align: left;
    }

    /*
    .time-planner {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 0.75rem;
    } */

    .time-planner {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 0.45rem;
    }

    .premium-main-hero {
        padding: 2rem;
    }

    .premium-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .btn {
        width: 100%;
        text-align: center;
    }

    .onboarding-card {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .mockup-row {
        flex-direction: column;
        gap: 0.2rem;
    }
}

@media (max-width: 500px) {
    .dashboard {
        width: min(100% - 1rem, 1120px);
    }

    .container {
        width: min(100% - 1rem, 1120px);
    }

    .brand-text-logo {
        font-size: clamp(3rem, 16vw, 5rem);
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 3.5rem 0 4rem;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-copy h1 {
        font-size: clamp(3.4rem, 16vw, 4.6rem);
        line-height: 0.95;
        letter-spacing: -0.06em;
        max-width: 100%;
    }

    .hero-text {
        font-size: 1.05rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 58px;
        border-radius: 18px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        width: 100%;
    }

    .stat-card {
        width: 100%;
        padding: 1.1rem;
        border-radius: 18px;
    }

    .hero-preview {
        display: none;
    }
}

/* =====================================================
   19. Onboarding?
===================================================== */

/* ===== Onboarding — full-screen, no-scroll app flow ===== */

.onboarding-view .navbar,
.onboarding-view .site-footer {
    display: none;
}

.onboarding-view main,
.onboarding-view .page-shell {
    padding: 0;
    margin: 0;
    max-width: none;
}

.onboarding-app-page {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(194,163,107,0.10), transparent 60%),
        var(--bg);
}

.onboarding-flow-card {
    width: 100%;
    max-width: 540px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;

    padding:
        calc(env(safe-area-inset-top) + 1.1rem)
        1.5rem
        calc(env(safe-area-inset-bottom) + 1.25rem);

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.onboarding-topbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.ob-back {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-strong);
    color: var(--text);
    cursor: pointer;
}

.ob-back svg {
    width: 18px;
    height: 18px;
}

.onboarding-topbar .progress-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(194,163,107,0.16);
    overflow: hidden;
}

.onboarding-topbar .progress-fill {
    height: 100%;
    width: 12.5%;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-topbar .progress-text {
    flex-shrink: 0;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
}

.onboarding-step {
    display: none;
    flex: 1;
    min-height: 0;
}

.onboarding-step.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    animation: obStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes obStepIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
}

.step-content.step-center {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.onboarding-step h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    line-height: 1.12;
    margin: 0.5rem 0 0.75rem;
}

.onboarding-step .eyebrow {
    color: var(--primary-strong);
}

.step-content > p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.step-content label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ob-illustration {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-bottom: 1rem;
    font-size: 2.8rem;
    border-radius: 50%;
    background: rgba(194,163,107,0.14);
}

.ob-illustration-success {
    background: var(--success-soft);
}

/* Actions pinned to the bottom — always visible, never clipped */
.onboarding-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.5rem;
}

.onboarding-actions .btn {
    width: 100%;
}

.btn-text {
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem;
    cursor: pointer;
}

.btn-text:hover {
    color: var(--text);
}

/* Goal choices */
.onboarding-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.onboarding-choice {
    cursor: pointer;
    padding: 1rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.onboarding-choice:active {
    transform: scale(0.98);
}

.onboarding-choice input { display: none; }

.onboarding-choice span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.onboarding-choice strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
}

.onboarding-choice p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.onboarding-choice:has(input:checked) {
    background: var(--primary-soft);
    border-color: var(--primary);
}

/* Premium feature list */
.premium-onboarding-grid {
    display: grid;
    gap: 0.7rem;
}

.premium-onboarding-grid div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.premium-onboarding-grid span {
    grid-row: span 2;
    font-size: 1.5rem;
}

.premium-onboarding-grid strong { font-size: 0.98rem; }

.premium-onboarding-grid p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

/* Narrative lines (compact, no large gaps) */
.emotion-lines {
    margin: 0.25rem 0 1.25rem;
}

.emotion-lines p {
    margin: 0 0 0.7rem;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.5;
}

.emotion-lines strong { color: var(--text); }

.emotion-screen .emotion-card {
    text-align: left;
    margin-top: 0.5rem;
}

/* Animated checklist (step 6) */
.ob-checklist {
    display: grid;
    gap: 0.7rem;
    width: 100%;
    max-width: 360px;
    margin: 0.5rem auto 1.5rem;
}

.ob-check {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 700;
    text-align: left;
    opacity: 0;
    animation: obCheckIn 0.45s ease forwards;
}

.ob-check span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 0.85rem;
}

.onboarding-step.active .ob-check:nth-child(1) { animation-delay: 0.15s; }
.onboarding-step.active .ob-check:nth-child(2) { animation-delay: 0.35s; }
.onboarding-step.active .ob-check:nth-child(3) { animation-delay: 0.55s; }

@keyframes obCheckIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 360px) {
    .onboarding-choice-grid { grid-template-columns: 1fr; }
}

/*Overfilling*/

@media (max-width: 640px) {
    form,
    .card,
    .class-card,
    .auth-card {
        max-width: 100%;
        overflow-x: hidden;
    }

    input,
    select,
    textarea,
    input[type="time"],
    input[type="date"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    input[type="time"],
    input[type="date"] {
        appearance: none;
        -webkit-appearance: none;
        font-size: 0.95rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .form-row,
    .form-grid,
    .schedule-form-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.9rem;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .hero-preview,
    .landing-product-preview {
        display: block !important;
    }

    .hero-preview {
        margin-top: 2rem;
    }
}

/* =====================================================
   LEGAL / SUPPORT PAGES
===================================================== */

.legal-page {
    min-height: calc(100vh - 90px);
    padding: 5rem 1rem;
    background:
        radial-gradient(circle at top left, rgba(194,163,107,0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(194,163,107,0.10), transparent 36%),
        #f5f1e8;
}

.legal-card {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 34px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 24px 70px rgba(15,23,42,0.08);
    backdrop-filter: blur(16px);
}

.legal-card h1 {
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin: 0.8rem 0 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 2rem;
}

.legal-card h2 {
    margin-top: 2rem;
    margin-bottom: 0.7rem;
    font-size: 1.25rem;
}

.legal-card p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-card a {
    color: var(--primary-strong);
    font-weight: 900;
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.contact-box {
    padding: 1.4rem;
    border-radius: 26px;
    background: rgba(245,241,232,0.75);
    border: 1px solid rgba(0,0,0,0.06);
}

.contact-box span {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.contact-box h2 {
    margin-top: 0;
}

.response-box {
    padding: 1.3rem;
    border-radius: 24px;
    background: rgba(194,163,107,0.12);
    border: 1px solid rgba(194,163,107,0.18);
}

.response-box p {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-strong);
}

@media (max-width: 700px) {
    .legal-page {
        padding: 2rem 1rem;
    }

    .legal-card {
        border-radius: 28px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-card h2 {
        font-size: 1.1rem;
    }
}

/*new*/

.site-footer {
    padding: 2rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.45);
}

.footer-inner {
    width: min(1120px, 100%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer p {
    margin: 0.15rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-strong);
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.8rem 0 1rem;
    font-weight: 800;
    color: var(--text-muted);
}

.remember-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}



.auth-intro {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-switch {
    margin-top: 1.25rem;
    text-align: center;
}

.auth-switch p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.auth-switch a {
    color: var(--primary-strong);
    text-decoration: none;
    font-weight: 800;
}

.auth-switch a:hover {
    text-decoration: underline;
}


/* =====================================================
   FINAL MOBILE DASHBOARD TIMELINE
   Goal: time axis + 30% prayer + 70% class, no horizontal scroll
===================================================== */

@media (max-width: 820px) {
    .dashboard {
        width: calc(100% - 1rem);
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main-grid .card {
        padding: 1rem;
        overflow: hidden;
    }

    .timeline-scroll-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .time-planner,
    .timeline-scroll-wrap .time-planner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 0.35rem;
    }

    .time-axis {
        width: 46px;
        min-width: 46px;
    }

    .time-label span {
        font-size: 0.68rem;
        padding: 0.08rem 0.2rem;
        white-space: nowrap;
    }

    .time-grid,
    .timeline-scroll-wrap .time-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
        overflow: hidden;
    }

    .planner-marker {
        left: 2%;
        width: 30%;
        max-width: 30%;
    }

    .planner-marker-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.48rem 0.5rem;
        min-height: 52px;
        border-radius: 14px;
    }

    .planner-marker-top {
        gap: 0.25rem;
    }

    .planner-marker-top strong {
        font-size: 0.72rem;
    }

    .planner-marker-card .status-badge {
        display: none;
    }

    .planner-prayer-time {
        font-size: 0.68rem;
    }

    .planner-block {
        left: 34%;
        width: 64%;
        max-width: 64%;
        min-width: 0;
        border-radius: 14px;
    }

    .planner-block-inner {
        padding: 0.55rem;
    }

    .planner-block-top {
        flex-direction: column;
        gap: 0.15rem;
    }

    .planner-block-top strong {
        font-size: 0.78rem;
    }

    .planner-block-top span {
        font-size: 0.66rem;
        white-space: normal;
    }

    .planner-block p,
    .planner-professor {
        font-size: 0.66rem;
        line-height: 1.25;
    }

    .mobile-prayer-summary {
        display: block;
    }

    .guidance-list {
        display: none;
    }
}

/* Prevent earliest prayer card from clipping at top */
.planner-marker:first-of-type {
    transform: translateY(0);
}

/*
.welcome-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 26px 24px 58px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.45);
}

.welcome-hero > div:nth-child(2) {
    padding-right: 90px;
}

.welcome-jump-btn {
    position: absolute;
    right: 22px;
    bottom: 18px;

    border: none;
    border-radius: 999px;
    padding: 9px 16px;

    background: #1f4d3a;
    color: white;

    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;

    box-shadow: 0 6px 16px rgba(0,0,0,.14);
}
*/

.dashboard .welcome-hero {
    background: rgba(255,255,255,.55);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.04);
}

.welcome-hero {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-icon {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    background: #ffffff;
    border-radius: 18px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.floating-now-btn {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 9999;

    border: none;
    border-radius: 999px;
    padding: 12px 18px;

    background: rgba(220, 53, 69, 0.85); /* semi-transparent red */
    color: white;

    font-size: 0.95rem;
    font-weight: 800;

    backdrop-filter: blur(8px);

    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.25);
}

.floating-now-btn.is-hidden {
    display: none;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 20px;
}

.icon-option input {
    display: none;
}

.icon-option span {
    display: grid;
    place-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #f7f1e7;
    font-size: 24px;
    cursor: pointer;
}

.icon-option input:checked + span {
    outline: 2px solid #1f4d3a;
    background: #e9f3ec;
}

@media (max-width: 640px) {
    .timeline-scroll-wrap {
        overflow-x: hidden;
    }

    .time-planner {
        min-width: 100%;
    }

}

button.current-floating-btn {
    position: fixed !important;
    right: 18px !important;
    bottom: 22px !important;
    z-index: 99999 !important;

    border: none !important;
    border-radius: 999px !important;
    padding: 12px 18px !important;

    background: rgba(239, 68, 68, 0.78) !important;
    color: white !important;

    font-size: 0.95rem !important;
    font-weight: 800 !important;

    backdrop-filter: blur(8px) !important;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25) !important;
}

button.current-floating-btn.is-hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

.resend-small-link {
    margin-top: 1rem;
    text-align: center;
    color: #777;
    font-weight: 600;
}

.resend-small-link button {
    border: none;
    background: none;
    color: #b89455;
    font-weight: 800;
    cursor: pointer;
}

.resend-confirm-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.resend-confirm-form button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    background: #c4a76a;
    color: white;
    font-weight: 800;
    cursor: pointer;
}