﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Islamic Theme - Ø·Ø§Ø¨Ø¹ Ø¥Ø³Ù„Ø§Ù…ÙŠ
   Subtle geometric/arabesque-style background for light and dark mode.
   Does not require a user preference; always applied.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Theme tokens (kept subtle; works for light/dark). */
:root {
    --islamic-ornament-opacity: 0.06;
    --islamic-ornament-opacity-2: 0.035;
    --islamic-ink: rgba(33, 37, 41, 0.96);
    --islamic-ink-muted: rgba(33, 37, 41, 0.72);
    --islamic-card-border: rgba(0, 0, 0, 0.08);
    --islamic-card-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    --islamic-gold: #b9922f; /* muted gold */
}

[data-theme="dark"] {
    --islamic-ornament-opacity: 0.055;
    --islamic-ornament-opacity-2: 0.03;
    --islamic-ink: rgba(255, 255, 255, 0.92);
    --islamic-ink-muted: rgba(255, 255, 255, 0.70);
    --islamic-card-border: rgba(255, 255, 255, 0.10);
    --islamic-card-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* Body: keep main background; add a single overlay layer for the pattern */
body {
    position: relative;
}

/* Islamic ornament overlay (pattern layer) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/images/patterns/islamic-gold-outline.png");
    background-repeat: repeat;
    background-position: 0 0;
    background-size: 520px 520px;
    opacity: 0.055; /* light mode: very subtle */
}

/* Dark mode: keep it even lighter, slightly desaturated */
[data-theme="dark"] body::before {
    opacity: 0.035;
    filter: saturate(0.75) brightness(1.15);
}

/* Vignette + subtle color glows (separate layer above the pattern) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Neutral vignette only (avoid colored bands) */
    background-image:
        radial-gradient(circle at 50% 70%, rgba(0, 0, 0, 0.055), transparent 60%);
    background-size: 100% 100%;
}

[data-theme="dark"] body::after {
    background-image:
        radial-gradient(circle at 50% 70%, rgba(0, 0, 0, 0.22), transparent 65%);
}

/* Ensure main content and modals sit above the pattern */
body > .navbar,
body > main,
body > .container,
body > #app,
body > [role="main"],
.dropdown-menu,
.toast-container {
    position: relative;
    z-index: 1;
}

/* Subtle decorative line under navbar - Islamic style accent */
.navbar {
    border-bottom: 1px solid transparent;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .navbar {
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Reusable Islamic UI utilities (cards, icon badges, readable ink)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.islamic-ink { color: var(--islamic-ink) !important; }
.islamic-ink-muted { color: var(--islamic-ink-muted) !important; }

.islamic-card {
    border-radius: 20px;
    border: 1px solid var(--islamic-card-border);
    box-shadow: var(--islamic-card-shadow);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
}

[data-theme="dark"] .islamic-card {
    background: rgba(33, 37, 41, 0.66);
}

.islamic-icon-badge {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185, 146, 47, 0.24);
    background:
        radial-gradient(circle at 30% 30%, rgba(185, 146, 47, 0.14), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(13, 110, 253, 0.10), transparent 58%);
}

[data-theme="dark"] .islamic-icon-badge {
    border-color: rgba(185, 146, 47, 0.28);
    background:
        radial-gradient(circle at 30% 30%, rgba(185, 146, 47, 0.20), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(13, 110, 253, 0.16), transparent 60%);
}

/* Public sections: calmer card motion + better dark readability */
body.public-home .public-hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10) !important;
}

body.public-home .public-feature-card .card-text {
    line-height: 1.75;
}

[data-theme="dark"] body.public-home .islamic-card .text-muted,
[data-theme="dark"] body.public-home .public-feature-card .card-text {
    color: rgba(255, 255, 255, 0.72) !important;
}

[data-theme="dark"] body.public-home .islamic-card {
    border-color: rgba(255, 255, 255, 0.10);
}

.islamic-divider {
    position: relative;
}
.islamic-divider::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 0.75rem;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(185, 146, 47, 0.55),
        rgba(13, 110, 253, 0.35),
        transparent
    );
}

/* Public landing: hero wrapper (Islamic marriage feel; still subtle) */
.public-hero-islamic {
    border-radius: 20px;
    margin-top: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(185, 146, 47, 0.35), transparent 45%),
        radial-gradient(circle at 85% 5%, rgba(13, 110, 253, 0.28), transparent 52%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(76, 29, 149, 0.82) 45%, rgba(11, 94, 215, 0.78) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
}

/* Full-bleed hero (break out of Layout container) */
.hero-section-public.public-hero-fullbleed {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-radius: 0 !important;
    /* Allow navbar to overlay the hero (public home). Default keeps a small gap. */
    margin-top: 0.75rem !important;
    overflow: clip; /* avoid 100vw scrollbar artifacts */
}

.public-hero-islamic.public-hero-fullbleed {
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
    box-shadow: none;
}

.public-hero-islamic.public-hero-fullbleed .public-hero-media,
.public-hero-islamic.public-hero-fullbleed .public-hero-media::after {
    border-radius: 0 !important;
}

.hero-section-public.public-hero-fullbleed .min-vh-50 {
    min-height: 62vh;
}

@media (min-width: 992px) {
    .hero-section-public.public-hero-fullbleed .min-vh-50 {
        min-height: 72vh;
    }
}

/* Public home: let navbar sit on top of hero */
body.public-home .hero-section-public.public-hero-fullbleed {
    --public-nav-h: 56px;
    margin-top: calc(-1 * var(--public-nav-h)) !important;
    padding-top: calc(var(--public-nav-h) + 3rem) !important;
}
@media (min-width: 992px) {
    body.public-home .hero-section-public.public-hero-fullbleed {
        --public-nav-h: 72px;
        padding-top: calc(var(--public-nav-h) + 3.25rem) !important;
    }
}

/* Public home: glass navbar over hero */
body.public-home #navbarMain {
    /* Light mode: keep readable on bright hero images */
    /* Ø¯Ù‡ Ø¨ÙŠØ®Ù„ÙŠ Ø®Ù„ÙÙŠØ© Ø§Ù„Ù†Ø§ÙØ¨Ø§Ø± Ø´ÙØ§ÙØ© Ø¨ÙŠØ¶Ø§Ø¡ Ù…Ø¹ Ù†Ø³Ø¨Ø© Ø´ÙØ§ÙÙŠØ© 72% */
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding-inline: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}
body.public-home .navbar {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}
[data-theme="light"] body.public-home #navbarMain,
body.public-home #navbarMain {
    color: rgba(17, 24, 39, 0.92);
}
body.public-home #navbarMain .navbar-brand,
body.public-home #navbarMain .nav-link,
body.public-home #navbarMain .navbar-toggler,
body.public-home #navbarMain .dropdown-toggle {
    color: rgba(17, 24, 39, 0.92) !important;
    text-shadow: none;
}
body.public-home #navbarMain .nav-link:hover,
body.public-home #navbarMain .navbar-brand:hover {
    color: rgba(185, 146, 47, 0.95) !important;
}
[data-theme="dark"] body.public-home #navbarMain {
    background: rgba(17, 24, 39, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] body.public-home #navbarMain .navbar-brand,
[data-theme="dark"] body.public-home #navbarMain .nav-link,
[data-theme="dark"] body.public-home #navbarMain .navbar-toggler,
[data-theme="dark"] body.public-home #navbarMain .dropdown-toggle {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Public home: remove hero base gradient (prevents blue bands when images use contain) */
body.public-home .public-hero-islamic.public-hero-fullbleed {
    background: transparent !important;
    border: none !important;
}

/* Public home: remove hero overlay layer (prevents dark band) */
body.public-home .public-hero-islamic.public-hero-fullbleed .public-hero-media::after {
    background: none !important;
}

/* For journey images: show full image (no cropping) */
body.public-home .public-hero-islamic.public-hero-fullbleed .public-hero-carousel-img {
    object-fit: contain;
    object-position: center;
    transform: none;
}

.public-hero-islamic .public-hero-title {
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.public-hero-islamic .public-hero-subtitle {
    opacity: 0.96;
    text-shadow: 0 1px 6px rgba(0,0,0,0.20);
}

.public-hero-islamic .public-hero-desc {
    opacity: 0.94;
}

/* Hero text panel: ensures readability on bright/sunset images */
.public-hero-islamic .public-hero-content {
    padding: clamp(1.05rem, 1.2vw + 0.85rem, 1.55rem);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.22),
        rgba(0, 0, 0, 0.14)
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .public-hero-islamic .public-hero-content {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.30),
        rgba(0, 0, 0, 0.20)
    );
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.40);
}

.public-hero-islamic .public-hero-title {
    text-shadow: 0 2px 18px rgba(0,0,0,0.38);
}

.public-hero-islamic .public-hero-subtitle {
    text-shadow: 0 2px 14px rgba(0,0,0,0.32);
}

/* Public hero: background carousel (behind text, with readable overlay) */
.public-hero-islamic .public-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.public-hero-islamic .public-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 15%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.0) 55%),
        radial-gradient(circle at 80% 0%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.0) 55%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.28) 100%);
    pointer-events: none;
}

.public-hero-islamic .public-hero-carousel,
.public-hero-islamic .public-hero-carousel .carousel-inner,
.public-hero-islamic .public-hero-carousel .carousel-item {
    height: 100%;
}

.public-hero-islamic .public-hero-carousel .carousel-item {
    position: relative;
    overflow: hidden;
}

.public-hero-islamic .public-hero-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slight dim to keep hero text readable without heavy panels */
    filter: saturate(1.06) contrast(1.02) brightness(0.93);
    transform: scale(1.03);
}

[data-theme="dark"] .public-hero-islamic .public-hero-carousel-img {
    /* Dark mode: stronger dim to counter â€œsunsetâ€ brightness */
    filter: saturate(1.04) contrast(1.03) brightness(0.86);
}

/* Hero carousel: images are assigned dynamically per theme.
   Hide the placeholder until a real image is assigned. */
body.public-home .public-hero-islamic .public-hero-carousel-img:not([data-loaded-theme]) {
    opacity: 0;
}

.public-hero-islamic .public-hero-ayah {
    position: absolute;
    inset-inline: 0;
    bottom: calc(2.5rem);
    padding-inline: 1.25rem;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    text-align: center;
}

.public-hero-islamic .public-hero-ayah-text {
    max-width: min(980px, 92vw);
    font-weight: 700;
    line-height: 1.8;
    font-size: clamp(1.05rem, 0.9vw + 0.85rem, 1.5rem);
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
    padding: 0.65rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(6px);
}

.public-hero-islamic .public-hero-ayah-ref-inline {
    display: inline;
    margin-inline-start: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Make carousel indicators always visible (above ayah box) */
.public-hero-islamic .public-hero-carousel .carousel-indicators {
    z-index: 4;
    margin-bottom: 0.15rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    backdrop-filter: blur(6px);
}

@media (max-width: 575.98px) {
    .public-hero-islamic .public-hero-ayah {
        bottom: calc(0.85rem + 1px);
        padding-inline: 0.75rem;
    }
    .public-hero-islamic .public-hero-ayah-text {
        padding: 0.55rem 0.85rem;
        border-radius: 14px;
    }
    .public-hero-islamic .public-hero-ayah-ref-inline {
        font-size: 0.9rem;
    }
}

.public-hero-islamic .public-hero-carousel .carousel-control-prev,
.public-hero-islamic .public-hero-carousel .carousel-control-next,
.public-hero-islamic .public-hero-carousel .carousel-indicators {
    z-index: 2;
}

.public-hero-islamic .public-hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-inline: 4px;
}

/* Public hero: centered content */
.public-hero-islamic .container-lg {
    position: relative;
    z-index: 3;
    /* Let swipes/clicks reach the carousel behind, except on actual buttons/links */
    pointer-events: none;
}

.public-hero-islamic .public-hero-content {
    max-width: 52rem;
    margin-inline: auto;
    pointer-events: auto;
}

/* EN hero copy: give a bit more width and avoid awkward single-word lines. */
html[dir="ltr"] body.public-home .public-hero-islamic .public-hero-content {
    max-width: 58rem;
}

@supports (text-wrap: balance) {
    html[dir="ltr"] body.public-home .public-hero-islamic .public-hero-title,
    html[dir="ltr"] body.public-home .public-hero-islamic .public-hero-subtitle,
    html[dir="ltr"] body.public-home .public-hero-islamic .public-hero-desc {
        text-wrap: balance;
    }
}

html[dir="ltr"] body.public-home .public-hero-islamic .public-hero-subtitle,
html[dir="ltr"] body.public-home .public-hero-islamic .public-hero-desc {
    hyphens: auto;
}

.public-hero-islamic .public-hero-content a,
.public-hero-islamic .public-hero-content button,
.public-hero-islamic .public-hero-content [role="button"] {
    pointer-events: auto;
}

.public-hero-islamic .public-hero-subtitle {
    font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.35rem);
}

.public-hero-islamic .public-hero-desc {
    font-size: clamp(1.0rem, 0.8vw + 0.75rem, 1.15rem);
}

.public-hero-islamic .public-hero-btn {
    padding: 12px 30px;
    font-weight: 600;
}

.public-hero-islamic .public-hero-btn-outline {
    border-width: 2px;
}

/* Hero CTA bridge - button below carousel (sunset palette) */
.public-hero-cta-bridge {
    background: linear-gradient(to bottom, rgba(74, 52, 92, 0.6), rgba(33, 37, 41, 0.12));
    position: relative;
}

.public-hero-btn-violet {
    background-color: #6b5b95;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(107, 91, 149, 0.4);
}

.public-hero-btn-violet:hover {
    background-color: #5a4a82;
    color: #fff !important;
}

/* Dark mode: keep text crisp above the overlay */
[data-theme="dark"] .public-hero-islamic {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575.98px) {
    .public-hero-islamic {
        margin-top: 1rem;
    }
    .public-hero-islamic .public-hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Public success stories: horizontal scroller (no images) */
.public-success-stories {
    position: relative;
}

.public-success-stories-nav {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* buttons re-enable */
    z-index: 5;
}

.public-success-stories-nav .public-scroll-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .public-success-stories-nav .public-scroll-btn {
    background: rgba(33, 37, 41, 0.70);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.90);
}

.public-success-stories-scroller {
    /* Force consistent scroll behavior (LTR), while cards can stay RTL */
    direction: ltr;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    padding: 0.25rem 0.75rem;
    margin-inline: -0.75rem;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.public-success-stories-scroller::-webkit-scrollbar {
    display: none;
}

.public-story-card {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: min(520px, 86vw);
    max-width: 520px;
    min-height: 210px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Solid background so the global pattern never shows through */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    padding: 1.25rem 1.25rem 1.1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-theme="dark"] .public-story-card {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.92), rgba(33, 37, 41, 0.82));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.public-story-quote {
    position: absolute;
    top: 0.6rem;
    inset-inline-start: 0.9rem;
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 800;
    color: rgba(185, 146, 47, 0.55); /* gold accent */
    user-select: none;
}

[data-theme="dark"] .public-story-quote {
    color: rgba(185, 146, 47, 0.60);
}

.public-story-body {
    padding-top: 0.75rem;
}

.public-story-text {
    color: rgba(33, 37, 41, 0.92);
    text-align: center;
    line-height: 1.85;
    font-size: 1.02rem;
    padding-inline: 0.25rem;
}

[data-theme="dark"] .public-story-text {
    color: rgba(255, 255, 255, 0.90);
}

.public-story-footer {
    text-align: center;
    margin-top: 0.85rem;
}

.public-story-author {
    color: rgba(33, 37, 41, 0.92);
}

[data-theme="dark"] .public-story-author {
    color: rgba(255, 255, 255, 0.92);
}

.public-story-meta {
    color: rgba(33, 37, 41, 0.66);
}

[data-theme="dark"] .public-story-meta {
    color: rgba(255, 255, 255, 0.70);
}

.public-story-sentinel {
    flex: 0 0 auto;
    width: 1px;
    height: 1px;
    scroll-snap-align: end;
}

@media (max-width: 575.98px) {
    .public-success-stories-nav .public-scroll-btn {
        width: 40px;
        height: 40px;
    }
}

/* Count-up numbers: reduce layout shift */
.countup-value {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Public CTA + Footer polish (calm, Islamic, light/dark)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

body.public-home .public-cta {
    border-radius: 20px;
    border: 1px solid var(--islamic-card-border);
    box-shadow: var(--islamic-card-shadow);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

body.public-home .public-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/patterns/islamic-gold-outline.png");
    background-repeat: repeat;
    background-size: 520px 520px;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

body.public-home .public-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(185, 146, 47, 0.12), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(13, 110, 253, 0.08), transparent 50%);
    pointer-events: none;
}

body.public-home .public-cta .container-lg {
    position: relative;
    z-index: 1;
}

body.public-home .public-cta-title {
    color: var(--islamic-ink);
    text-shadow: none;
}

body.public-home .public-cta-desc {
    color: var(--islamic-ink-muted);
}

body.public-home .public-cta-btn {
    background: linear-gradient(135deg, rgba(185, 146, 47, 0.96), rgba(185, 146, 47, 0.82));
    border: 1px solid rgba(185, 146, 47, 0.38);
    color: rgba(17, 24, 39, 0.92);
    font-weight: 700;
    padding: 0.9rem 2.1rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.public-home .public-cta-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.03) brightness(1.02);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] body.public-home .public-cta {
    background: rgba(33, 37, 41, 0.66);
    border-color: rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] body.public-home .public-cta::after {
    background:
        radial-gradient(circle at 20% 20%, rgba(185, 146, 47, 0.16), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(13, 110, 253, 0.10), transparent 55%);
}

[data-theme="dark"] body.public-home .public-cta-title {
    color: rgba(255, 255, 255, 0.94);
}

[data-theme="dark"] body.public-home .public-cta-desc {
    color: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] body.public-home .public-cta-btn {
    color: rgba(17, 24, 39, 0.92);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
}

/* Footer */
.islamic-footer {
    border-top: 1px solid var(--islamic-card-border) !important;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.islamic-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/patterns/islamic-gold-outline.png");
    background-repeat: repeat;
    background-size: 680px 680px;
    background-position: center;
    opacity: 0.035;
    pointer-events: none;
}

.islamic-footer .container-lg {
    position: relative;
    z-index: 1;
}

.islamic-footer a {
    color: var(--islamic-ink-muted) !important;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.islamic-footer a:hover {
    color: rgba(185, 146, 47, 0.95) !important;
    opacity: 1;
}

[data-theme="dark"] .islamic-footer {
    background: rgba(17, 24, 39, 0.72);
    border-top-color: rgba(255, 255, 255, 0.10) !important;
}

[data-theme="dark"] .islamic-footer,
[data-theme="dark"] .islamic-footer .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Auth pages (Login / Register) - Scoped
   Matches Islamic theme + subtle gold accents + responsive split
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.auth-page .auth-shell {
    padding-block: clamp(1.25rem, 2.1vw + 1rem, 3rem);
}

.auth-page .auth-wrap {
    max-width: 980px;
    margin-inline: auto;
}

.auth-page .auth-header {
    margin-bottom: clamp(1rem, 1.2vw + 0.7rem, 1.6rem);
}

.auth-page .auth-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--islamic-ink);
    margin: 0;
    font-size: clamp(1.6rem, 1.5vw + 1.15rem, 2.1rem);
}

.auth-page .auth-subtitle {
    color: var(--islamic-ink-muted);
    font-size: 1rem;
    max-width: 56ch;
    margin-inline: auto;
}

.auth-page .auth-title-accent {
    width: 140px;
    height: 3px;
    border-radius: 999px;
    margin: 0.65rem auto 0;
    background: linear-gradient(
        90deg,
        rgba(185, 146, 47, 0.0),
        rgba(185, 146, 47, 0.75),
        rgba(13, 110, 253, 0.45),
        rgba(185, 146, 47, 0.0)
    );
    opacity: 0.85;
}

.auth-page .auth-card {
    overflow: hidden;
}

.auth-page .auth-split {
    min-height: 440px;
}

.auth-page .auth-panel-inner {
    padding: clamp(1.1rem, 1.3vw + 0.9rem, 2rem);
}

.auth-page .auth-panel--social {
    position: relative;
    background:
        radial-gradient(circle at 22% 18%, rgba(185, 146, 47, 0.10), transparent 55%),
        radial-gradient(circle at 85% 8%, rgba(13, 110, 253, 0.08), transparent 60%);
}

[data-theme="dark"] .auth-page .auth-panel--social {
    background:
        radial-gradient(circle at 22% 18%, rgba(185, 146, 47, 0.14), transparent 55%),
        radial-gradient(circle at 85% 8%, rgba(13, 110, 253, 0.10), transparent 60%);
}

.auth-page .auth-muted {
    color: var(--islamic-ink-muted);
}

@media (min-width: 992px) {
    .auth-page .auth-panel--form {
        position: relative;
    }

    /* Divider between panels (RTL/LTR safe) */
    .auth-page .auth-panel--form::before {
        content: "";
        position: absolute;
        top: 1.25rem;
        bottom: 1.25rem;
        inset-inline-start: 0;
        width: 1px;
        background: linear-gradient(
            180deg,
            rgba(185, 146, 47, 0.0),
            rgba(185, 146, 47, 0.28),
            rgba(185, 146, 47, 0.0)
        );
        opacity: 0.9;
        pointer-events: none;
    }
}

.auth-page .auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.auth-page .auth-divider::before,
.auth-page .auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(185, 146, 47, 0.0), rgba(185, 146, 47, 0.22), rgba(185, 146, 47, 0.0));
}

.auth-page .auth-divider-text {
    font-weight: 700;
    color: rgba(185, 146, 47, 0.92);
    font-size: 0.95rem;
}

.auth-page .auth-links {
    display: grid;
    gap: 0.6rem;
}

.auth-page .auth-preview {
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(185, 146, 47, 0.18);
    background: rgba(255, 255, 255, 0.58);
}

[data-theme="dark"] .auth-page .auth-preview {
    border-color: rgba(185, 146, 47, 0.22);
    background: rgba(33, 37, 41, 0.38);
}

/* Inputs: subtle gold focus ring (no global side effects) */
.auth-page .form-control:focus,
.auth-page .form-select:focus {
    border-color: rgba(185, 146, 47, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(185, 146, 47, 0.16);
}

/* Auth: keep email/password text aligned consistently in RTL.
   Without this, email (Latin) often renders LTR while password dots follow RTL,
   causing the two fields to appear misaligned. */
html[dir="rtl"] .auth-page .auth-form input[type="email"],
html[dir="rtl"] .auth-page .auth-form input[type="password"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

/* Mobile: reduce min height to avoid huge empty space */
@media (max-width: 991.98px) {
    .auth-page .auth-split {
        min-height: auto;
    }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Help pages (FAQ) - Islamic look (scoped)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.help-page .help-faq-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--islamic-ink);
    margin: 0;
    font-size: clamp(1.6rem, 1.5vw + 1.15rem, 2.1rem);
}

.help-page .help-faq-subtitle {
    color: var(--islamic-ink-muted);
    font-size: 1rem;
    max-width: 70ch;
    margin-inline: auto;
    line-height: 1.8;
}

.help-page .help-faq-accent {
    width: 160px;
    height: 3px;
    border-radius: 999px;
    margin: 0.65rem auto 0;
    background: linear-gradient(
        90deg,
        rgba(185, 146, 47, 0.0),
        rgba(185, 146, 47, 0.75),
        rgba(13, 110, 253, 0.45),
        rgba(185, 146, 47, 0.0)
    );
    opacity: 0.85;
}

.help-page .help-faq-section-header {
    position: relative;
    padding: clamp(0.9rem, 1.0vw + 0.75rem, 1.25rem) clamp(1rem, 1.1vw + 0.85rem, 1.5rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.28));
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
}

[data-theme="dark"] .help-page .help-faq-section-header {
    border-bottom-color: rgba(255, 255, 255, 0.10);
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.26), rgba(33, 37, 41, 0.14));
}

.help-page .help-faq-section-header::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(185, 146, 47, 0.0),
        rgba(185, 146, 47, 0.82),
        rgba(13, 110, 253, 0.52),
        rgba(185, 146, 47, 0.0)
    );
    opacity: 0.9;
}

.help-page .help-faq-section-title {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.help-page .help-faq-section-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185, 146, 47, 0.22);
    background:
        radial-gradient(circle at 30% 30%, rgba(185, 146, 47, 0.16), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(13, 110, 253, 0.10), transparent 60%);
}

[data-theme="dark"] .help-page .help-faq-section-icon-wrap {
    border-color: rgba(185, 146, 47, 0.26);
    background:
        radial-gradient(circle at 30% 30%, rgba(185, 146, 47, 0.20), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(13, 110, 253, 0.14), transparent 60%);
}

.help-page .help-faq-section-icon {
    font-size: 1.15rem;
    color: rgba(185, 146, 47, 0.95);
}

[data-theme="dark"] .help-page .help-faq-section-icon {
    color: rgba(185, 146, 47, 0.96);
}

.help-page .help-faq-section-body {
    padding: clamp(1rem, 1.1vw + 0.85rem, 1.5rem);
}

.help-page .accordion-button {
    font-weight: 700;
}

.help-page .accordion-button:not(.collapsed) {
    color: var(--islamic-ink);
    background-color: rgba(185, 146, 47, 0.08);
}

[data-theme="dark"] .help-page .accordion-button:not(.collapsed) {
    background-color: rgba(185, 146, 47, 0.12);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Contact page - Islamic look (scoped)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.contact-page .contact-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--islamic-ink);
    margin: 0;
    font-size: clamp(1.6rem, 1.5vw + 1.15rem, 2.1rem);
}

.contact-page .contact-subtitle {
    color: var(--islamic-ink-muted);
    font-size: 1rem;
    max-width: 70ch;
    margin-inline: auto;
    line-height: 1.8;
}

.contact-page .contact-accent {
    width: 160px;
    height: 3px;
    border-radius: 999px;
    margin: 0.65rem auto 0;
    background: linear-gradient(
        90deg,
        rgba(185, 146, 47, 0.0),
        rgba(185, 146, 47, 0.75),
        rgba(13, 110, 253, 0.45),
        rgba(185, 146, 47, 0.0)
    );
    opacity: 0.85;
}

.contact-page .contact-card {
    overflow: hidden;
}

.contact-page .contact-card-body {
    padding: clamp(1rem, 1.1vw + 0.85rem, 1.5rem);
}

.contact-page .form-control:focus,
.contact-page .form-select:focus {
    border-color: rgba(185, 146, 47, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(185, 146, 47, 0.16);
}

/* Keep email readable in Arabic UI */
html[dir="rtl"] .contact-page input[type="email"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Public Features page - Islamic look (scoped)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.features-page .features-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--islamic-ink);
    margin: 0;
    font-size: clamp(1.65rem, 1.55vw + 1.15rem, 2.2rem);
}

.features-page .features-subtitle {
    color: var(--islamic-ink-muted);
    font-size: 1rem;
    max-width: 72ch;
    margin-inline: auto;
    line-height: 1.85;
}

.features-page .features-accent {
    width: 170px;
    height: 3px;
    border-radius: 999px;
    margin: 0.65rem auto 0;
    background: linear-gradient(
        90deg,
        rgba(185, 146, 47, 0.0),
        rgba(185, 146, 47, 0.75),
        rgba(13, 110, 253, 0.45),
        rgba(185, 146, 47, 0.0)
    );
    opacity: 0.85;
}

.features-page .features-card {
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.features-page .features-card:hover {
    transform: translateY(-2px);
}

.features-page .features-card-body {
    padding: clamp(1.0rem, 1.15vw + 0.85rem, 1.6rem);
}

.features-page .features-icon {
    font-size: 2.05rem;
}

.features-page .features-muted {
    color: var(--islamic-ink-muted);
    line-height: 1.85;
}

[data-theme="dark"] .features-page .features-muted {
    color: rgba(255, 255, 255, 0.74);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   About page - Islamic look (scoped)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.about-page .about-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--islamic-ink);
    margin: 0;
    font-size: clamp(1.65rem, 1.55vw + 1.15rem, 2.2rem);
}

.about-page .about-subtitle {
    color: var(--islamic-ink-muted);
    font-size: 1rem;
    max-width: 72ch;
    margin-inline: auto;
    line-height: 1.85;
}

.about-page .about-accent {
    width: 170px;
    height: 3px;
    border-radius: 999px;
    margin: 0.65rem auto 0;
    background: linear-gradient(
        90deg,
        rgba(185, 146, 47, 0.0),
        rgba(185, 146, 47, 0.75),
        rgba(13, 110, 253, 0.45),
        rgba(185, 146, 47, 0.0)
    );
    opacity: 0.85;
}

.about-page .about-section-body {
    padding: clamp(1rem, 1.1vw + 0.85rem, 1.6rem);
}

.about-page .about-lead {
    line-height: 1.9;
}

.about-page .about-muted {
    color: var(--islamic-ink-muted);
    line-height: 1.85;
}

[data-theme="dark"] .about-page .about-muted {
    color: rgba(255, 255, 255, 0.74);
}

.about-page .about-value {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(185, 146, 47, 0.14);
    background: rgba(255, 255, 255, 0.32);
}

[data-theme="dark"] .about-page .about-value {
    border-color: rgba(185, 146, 47, 0.18);
    background: rgba(33, 37, 41, 0.18);
}

