/* =============================================
   MOSQUEPRO — MAIN STYLESHEET
   Modern, clean, Islamic-inspired design
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Palette */
    --primary: #1B6B4D;
    --primary-light: #2DD4A8;
    --primary-dark: #0F4A35;
    --secondary: #1E40AF;
    --accent: #D4A846;
    --accent-light: #F5DFA3;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1B6B4D 0%, #2563EB 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #1B4D3E 100%);
    --gradient-text: linear-gradient(135deg, #2DD4A8, #3B82F6, #D4A846);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    --gradient-dark: linear-gradient(135deg, #0A0F1C 0%, #111827 100%);

    /* Neutral */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Status Colors */
    --green: #10B981;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --amber: #F59E0B;
    --rose: #F43F5E;
    --teal: #14B8A6;
    --indigo: #6366F1;
    --orange: #F97316;

    /* Spacing */
    --section-padding: clamp(64px, 10vw, 120px);
    --container-width: 1440px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(45, 212, 168, 0.15);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Typography — modern, bold, Uber-like geometric sans */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Amiri', serif;
    --font-weight-body: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 800;
    --tracking-tight: -0.03em;
    --tracking-display: -0.04em;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    font-weight: var(--font-weight-body);
    color: var(--gray-800);
    background: var(--gray-50);
    overflow-x: clip;
    line-height: 1.55;
    letter-spacing: -0.01em;
    width: 100%;
    min-height: 100dvh;
    min-width: 0;
}

main,
section {
    max-width: 100%;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: var(--font-weight-black);
    letter-spacing: var(--tracking-tight);
    line-height: 1.1;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: min(100%, var(--container-width));
    margin: 0 auto;
    padding-inline: clamp(16px, 4vw, 48px);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: 100%;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-crescent {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--primary-light);
    border-right-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.loader-text span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BACKGROUND ORNAMENTS ===== */
.bg-ornaments {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ornament {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.ornament-1 {
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 107, 77, 0.15) 0%, transparent 70%);
    animation: float-slow 25s ease-in-out infinite alternate;
}

.ornament-2 {
    bottom: 30%;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: float-slow 30s ease-in-out infinite alternate-reverse;
}

.ornament-3 {
    top: 50%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 70, 0.08) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite alternate;
}

.geometric-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--gray-800);
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== COMMON ELEMENTS ===== */
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(27,107,77,0.1), rgba(59,130,246,0.1));
    color: var(--primary);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(27,107,77,0.15);
}

.section-tag.light {
    background: rgba(255,255,255,0.1);
    color: var(--primary-light);
    border-color: rgba(255,255,255,0.15);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 18px;
    letter-spacing: var(--tracking-display);
}

.section-title.white {
    color: var(--white);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 107, 77, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(27, 107, 77, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-ghost:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(27, 107, 77, 0.05);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== HEADER / NAVBAR ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 58px;
    width: auto;
    max-width: min(300px, 78vw);
    object-fit: contain;
    display: block;
}

.logo-image--preloader {
    height: 110px;
    max-width: 480px;
    animation: logoPulse 1.6s ease-in-out infinite;
}

.logo-image--footer {
    height: 64px;
    max-width: 320px;
}

.logo-image--nav {
    height: 48px;
    max-width: 240px;
}

.auth-logo .logo-image {
    height: 76px;
    max-width: 380px;
}

@media (max-width: 640px) {
    .logo-image {
        height: 44px;
        max-width: min(220px, 62vw);
    }
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.82; transform: scale(0.98); }
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.04em;
}

.logo-pro {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(27, 107, 77, 0.05);
}

/* Nav Search */
.nav-search {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 4px 4px 4px 16px;
    flex: 1;
    max-width: 380px;
    margin-left: auto;
    transition: var(--transition);
    position: relative;
}

.nav-search:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(27, 107, 77, 0.1);
}

.nav-search i {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin-right: 10px;
}

.nav-search input {
    border: none;
    outline: none;
    flex: 1;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--gray-700);
    background: transparent;
    min-width: 0;
}

.btn-find {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-900);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-main);
}

.btn-find:hover {
    background: var(--primary);
}

.nav-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1200;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-height: 320px;
    overflow-y: auto;
}

.nav-search-results--mobile {
    position: static;
    margin-bottom: 12px;
    max-height: 220px;
}

.nav-search-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    font-family: var(--font-main);
}

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

.nav-search-item:hover {
    background: rgba(27, 107, 77, 0.06);
}

.nav-search-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-900);
}

.nav-search-item small {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.nav-search-empty {
    padding: 14px;
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 100vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-search {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-search i {
    color: var(--gray-400);
}

.mobile-search input {
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-main);
    font-size: 1rem;
    flex: 1;
}

.mobile-link {
    display: block;
    padding: 16px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-link:hover {
    color: var(--primary);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100dvh;
    width: 100%;
    padding: clamp(100px, 14vw, 140px) 0 clamp(48px, 8vw, 80px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: clamp(28px, 5vw, 60px);
    width: 100%;
}

.hero-content {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(640px, 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(27,107,77,0.08), rgba(212,168,70,0.08));
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    border: 1px solid rgba(27,107,77,0.12);
    max-width: 100%;
}

.hero-badge i {
    color: var(--accent);
    font-size: 0.75rem;
}

.hero-badge span {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    font-weight: 600;
    color: var(--gray-600);
}

.hero-title {
    font-size: clamp(2.35rem, 6.2vw, 4.75rem);
    font-weight: 800;
    line-height: 1.02;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: var(--tracking-display);
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.4vw, 1.125rem);
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    max-width: min(520px, 100%);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    width: 100%;
}

.hero-cta .btn {
    flex: 1 1 auto;
    min-width: min(100%, 180px);
    justify-content: center;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-avatars {
    display: flex;
    align-items: center;
}

.trust-avatars img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -12px;
    object-fit: cover;
}

.trust-avatars img:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--white);
}

.trust-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-stars {
    color: var(--accent);
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

.trust-info span {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    flex: 1.2;
    position: relative;
    min-height: 500px;
    min-width: 0;
    max-width: 100%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-mosque-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.3) 100%);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    animation: float-card 6s ease-in-out infinite;
    z-index: 10;
}

.floating-card .fc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fc-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.fc-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.fc-icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); }

.fc-content {
    display: flex;
    flex-direction: column;
}

.fc-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fc-content strong {
    font-size: 0.9rem;
    color: var(--gray-800);
}

.fc-countdown {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 600;
}

.fc-distance {
    font-size: 0.75rem;
    color: var(--blue);
    font-weight: 600;
}

.card-prayer {
    top: 15%;
    left: -40px;
    animation-delay: 0s;
}

.card-mosque {
    bottom: 20%;
    right: -30px;
    animation-delay: 2s;
}

.card-community {
    bottom: 5%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fade-in-up 1s 2s both;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--section-padding) 0;
    background: var(--white);
    position: relative;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 22px;
}

.gradient-green { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.gradient-blue { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.gradient-purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.gradient-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.gradient-teal { background: rgba(20, 184, 166, 0.1); color: var(--teal); }
.gradient-rose { background: rgba(244, 63, 94, 0.1); color: var(--rose); }
.gradient-indigo { background: rgba(99, 102, 241, 0.1); color: var(--indigo); }
.gradient-orange { background: rgba(249, 115, 22, 0.1); color: var(--orange); }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 18px;
}

.feature-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-link i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.feature-link:hover i {
    transform: translateX(4px);
}

/* ===== PRAYER TIMES SECTION ===== */
.prayer-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.prayer-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    min-width: 0;
}

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

.prayer-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.pf-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pf-icon {
    width: 44px;
    height: 44px;
    background: rgba(27, 107, 77, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.pf-item strong {
    font-size: 0.95rem;
    color: var(--gray-800);
    display: block;
    margin-bottom: 4px;
}

.pf-item p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* Prayer Widget Demo */
.prayer-widget-demo {
    flex: 1;
    max-width: 420px;
    min-width: 0;
    width: 100%;
}

.pw-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.pw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.pw-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.pw-mosque {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pw-mosque-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.pw-mosque h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
}

.pw-mosque span {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.pw-mosque span i {
    margin-right: 3px;
}

.pw-date {
    text-align: right;
}

.pw-hijri {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.pw-greg {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.pw-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    color: var(--white);
}

.pw-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.pw-current-prayer h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.pw-next-label {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
    text-align: right;
    margin-bottom: 6px;
}

.pw-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pw-time-unit {
    text-align: center;
}

.pw-time-unit span {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.pw-time-unit small {
    font-size: 0.6rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.pw-separator {
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.5;
    margin-top: -8px;
}

.pw-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}

.pw-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.pw-item.active {
    background: rgba(27, 107, 77, 0.06);
}

.pw-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 110px;
}

.pw-name i {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.pw-item.active .pw-name {
    color: var(--primary);
}

.pw-item.active .pw-name i {
    color: var(--primary);
}

.pw-time {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
}

.pw-iqamah {
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 600;
}

.pw-footer {
    border-top: 1px solid var(--gray-100);
    padding-top: 16px;
}

.pw-attendance {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pw-att-avatars {
    display: flex;
}

.pw-att-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -8px;
    object-fit: cover;
}

.pw-att-avatars img:first-child {
    margin-left: 0;
}

.pw-att-avatars span {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--white);
}

.pw-footer small {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== DISCOVER MOSQUES SECTION ===== */
.discover-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.discover-showcase {
    position: relative;
}

.map-mockup {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-xl);
    background: #f1f5f9;
}

.discover-leaflet-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    z-index: 1;
}

.leaflet-map-host .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: inherit;
}

.discover-map-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

.discover-map-badge i {
    color: var(--accent, #22c55e);
}

.discover-map-attribution {
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 500;
    margin: 0;
    font-size: 0.68rem;
    color: rgba(15, 23, 42, 0.55);
    pointer-events: auto;
}

.discover-map-attribution a {
    color: #1b6b4d;
    text-decoration: underline;
}

/* Leaflet pin styles — see map-styles.css */

.map-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3), rgba(27, 107, 77, 0.15));
}

/* Map Pins */
.map-pin {
    position: absolute;
    z-index: 10;
    cursor: pointer;
}

.pin-marker {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(27, 107, 77, 0.4);
    animation: pin-bounce 2s infinite;
}

.pin-marker i {
    transform: rotate(45deg);
    color: var(--white);
    font-size: 1rem;
}

@keyframes pin-bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-6px); }
}

.pin-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-width: 260px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.map-pin.active .pin-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.pin-popup img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.pin-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pin-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.pin-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.pin-rating span {
    color: var(--gray-600);
    font-weight: 700;
    margin-left: 5px;
}

.pin-actions {
    display: flex;
    gap: 8px;
}

.pin-1 { top: 30%; left: 35%; }
.pin-2 { top: 45%; left: 55%; }
.pin-3 { top: 25%; left: 65%; }
.pin-4 { top: 55%; left: 40%; }

/* Discover Stats */
.discover-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -50px;
    position: relative;
    z-index: 20;
    padding: 0 40px;
}

.ds-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.ds-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.ds-icon {
    width: 48px;
    height: 48px;
    background: rgba(27, 107, 77, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--primary);
    font-size: 1.2rem;
}

.ds-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.ds-item p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== LEARN ISLAM SECTION ===== */
.learn-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.learn-wrapper {
    display: flex;
    gap: 80px;
    align-items: center;
    min-width: 0;
}

.learn-visual {
    flex: 1.2;
    min-width: 0;
    max-width: 100%;
}

.learn-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.learn-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.learn-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.lc-quran {
    grid-column: 1 / -1;
}

.lc-icon {
    width: 48px;
    height: 48px;
    background: rgba(27, 107, 77, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 1.2rem;
}

.learn-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.learn-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.lc-preview {
    margin-top: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-align: center;
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.6rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    direction: rtl;
}

.lc-preview small {
    font-size: 0.82rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Qibla Compass */
.qibla-compass {
    width: 80px;
    height: 80px;
    margin: 16px auto 0;
    position: relative;
}

.compass-ring {
    width: 100%;
    height: 100%;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    position: relative;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 30px;
    background: linear-gradient(to bottom, var(--rose), var(--gray-300));
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(45deg);
    border-radius: 2px;
    animation: compass-rotate 8s ease-in-out infinite;
}

@keyframes compass-rotate {
    0%, 100% { transform: translate(-50%, -100%) rotate(45deg); }
    25% { transform: translate(-50%, -100%) rotate(55deg); }
    50% { transform: translate(-50%, -100%) rotate(40deg); }
    75% { transform: translate(-50%, -100%) rotate(50deg); }
}

.compass-label {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--rose);
}

/* Learn Info */
.learn-info {
    flex: 1;
    min-width: 0;
}

.learn-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 30px 0 40px;
}

.lh-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.lh-item i {
    color: var(--primary-light);
    font-size: 1rem;
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.comm-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    transition: var(--transition);
    overflow: hidden;
}

.comm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.comm-icon {
    width: 56px;
    height: 56px;
    background: rgba(27, 107, 77, 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 22px;
}

.comm-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.comm-card > p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Community Avatars */
.comm-avatars {
    display: flex;
    align-items: center;
}

.comm-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -10px;
    object-fit: cover;
    transition: var(--transition-fast);
}

.comm-avatars img:first-child {
    margin-left: 0;
}

.comm-avatars img:hover {
    transform: translateY(-3px);
    z-index: 1;
}

.comm-avatars span {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--white);
}

/* Chat Preview */
.comm-chat-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-bubble.right {
    justify-content: flex-end;
}

.chat-bubble img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-bubble .bubble {
    background: var(--gray-100);
    padding: 10px 16px;
    border-radius: 16px 16px 16px 4px;
    font-size: 0.82rem;
    color: var(--gray-700);
    max-width: 250px;
}

.chat-bubble.right .bubble {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px 16px 4px 16px;
}

/* Event Preview */
.comm-event-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-mini {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.event-mini:hover {
    background: var(--gray-100);
}

.event-date {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    text-align: center;
    flex-shrink: 0;
    min-width: 50px;
}

.event-date span {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.event-date small {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.event-detail strong {
    display: block;
    font-size: 0.88rem;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.event-detail small {
    font-size: 0.78rem;
    color: var(--gray-500);
}

.event-detail small i {
    margin-right: 4px;
    color: var(--gray-400);
}

/* ===== CTA / APP DOWNLOAD SECTION ===== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 107, 77, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.cta-content {
    flex: 1;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: var(--transition);
}

.store-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.store-btn i {
    font-size: 1.8rem;
}

.store-btn div {
    display: flex;
    flex-direction: column;
}

.store-btn small {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.store-btn span {
    font-size: 1.05rem;
    font-weight: 700;
}

/* Phone Mockup */
.cta-phone {
    flex: 0.6;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 44px;
    border: 6px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0F172A 0%, #1B4D3E 100%);
    position: relative;
    overflow: hidden;
}

.phone-app-ui {
    padding: 50px 20px 20px;
}

.app-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--white);
    margin-bottom: 30px;
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 6px;
    font-size: 0.65rem;
}

.app-header-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.app-header-ui h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
}

.app-header-ui i {
    color: var(--white);
    font-size: 1rem;
}

.app-prayer-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.app-prayer-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.app-prayer-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.app-timer {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.app-mosque-card {
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.08);
}

.app-mosque-card i:first-child {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.app-mosque-card strong {
    font-size: 0.85rem;
    display: block;
}

.app-mosque-card small {
    font-size: 0.72rem;
    opacity: 0.6;
}

.app-mosque-card > i:last-child {
    margin-left: auto;
    opacity: 0.4;
    font-size: 0.75rem;
}

.app-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.app-action {
    text-align: center;
    padding: 14px 8px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
}

.app-action i {
    font-size: 1.1rem;
    color: var(--primary-light);
    display: block;
    margin-bottom: 6px;
}

.app-action small {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.phone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 212, 168, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* ===== ADMIN SECTION ===== */
.admin-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.admin-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
    min-width: 0;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 30px 0 40px;
}

.af-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.af-item i {
    color: var(--primary-light);
    width: 18px;
    text-align: center;
}

/* Admin Dashboard Preview */
.admin-visual {
    flex: 1.2;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.admin-dashboard-preview {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    max-width: 100%;
}

.adp-header {
    background: var(--gray-100);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.adp-dots {
    display: flex;
    gap: 6px;
}

.adp-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.adp-dots span:nth-child(1) { background: #F43F5E; }
.adp-dots span:nth-child(2) { background: #F59E0B; }
.adp-dots span:nth-child(3) { background: #10B981; }

.adp-header > span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
}

.adp-body {
    display: flex;
    min-height: 300px;
}

.adp-sidebar {
    width: 60px;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 8px;
}

.adp-nav-item {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.adp-nav-item.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.adp-main {
    flex: 1;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-content: start;
}

.adp-stat {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--gray-100);
}

.adp-stat span {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.adp-stat small {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-top {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
    flex-shrink: 0;
}

.footer-brand .logo {
    margin-bottom: 18px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 50px;
    flex: 1;
    justify-content: space-between;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    padding: 6px 0;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}

/* ===== AUTH PAGES (Login/Signup) ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--gray-50);
}

.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.auth-form-wrapper h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.auth-form-wrapper .auth-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 36px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group select {
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--gray-700);
    background: var(--white);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(27, 107, 77, 0.1);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gray-600);
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.form-options a {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
}

.form-options a:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(27, 107, 77, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--gray-400);
    font-size: 0.82rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.social-auth {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-main);
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.auth-footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 24px;
}

.auth-footer-text a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Auth Right Side (Visual) */
.auth-right {
    flex: 1;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 168, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-visual {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.auth-visual .auth-mosque-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.auth-visual h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-visual p {
    font-size: 1.1rem;
    opacity: 0.6;
    max-width: 380px;
    line-height: 1.6;
}

/* ===== DASHBOARD PLACEHOLDER ===== */
.dashboard-placeholder {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    padding: 40px;
}

.dash-placeholder-content {
    text-align: center;
    max-width: 500px;
}

.dash-placeholder-content i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.dash-placeholder-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.dash-placeholder-content p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 30px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .discover-stats {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    /* AOS slide animations push content off-screen on narrow viewports */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .nav-links {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .navbar {
        gap: 12px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        width: 100%;
        max-width: min(600px, 100%);
        margin: 0 auto;
        min-height: auto;
    }

    .floating-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prayer-wrapper,
    .learn-wrapper,
    .cta-wrapper {
        flex-direction: column;
        gap: 40px;
        width: 100%;
    }

    .prayer-info,
    .prayer-widget-demo,
    .learn-visual,
    .learn-info,
    .cta-content,
    .cta-phone {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .prayer-widget-demo {
        max-width: min(420px, 100%);
        margin: 0 auto;
    }

    .prayer-wrapper {
        text-align: center;
    }

    .prayer-features-list {
        align-items: center;
    }

    .pf-item {
        text-align: left;
        max-width: 420px;
    }

    .prayer-widget-demo {
        flex: none;
    }

    .learn-info {
        text-align: center;
    }

    .learn-highlights {
        align-items: center;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        text-align: center;
    }

    .store-buttons {
        justify-content: center;
        width: 100%;
    }

    .cta-desc {
        margin: 0 auto 40px;
    }

    .admin-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .admin-features {
        grid-template-columns: 1fr;
    }

    .admin-visual {
        width: 100%;
    }

    .adp-main {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }

    .discover-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -30px;
        width: 100%;
        padding: 0 16px;
    }

    .map-mockup {
        height: 400px;
        width: 100%;
    }

    .discover-leaflet-map {
        min-height: 400px;
    }

    .footer-top {
        flex-direction: column;
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
        width: 100%;
    }

    .auth-right {
        display: none;
    }

    .auth-left {
        padding: 24px;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .learn-cards {
        grid-template-columns: 1fr;
    }

    .lc-quran {
        grid-column: auto;
    }

    .discover-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0;
        margin-top: 24px;
    }

    .map-mockup {
        height: 300px;
    }

    .discover-leaflet-map {
        min-height: 300px;
    }

    .pin-popup {
        display: none;
    }

    .cta-section {
        padding: 60px 0;
        width: 100%;
    }

    .phone-frame {
        width: min(240px, 70vw);
        height: auto;
        aspect-ratio: 240 / 500;
    }

    .admin-dashboard-preview {
        overflow-x: auto;
        width: 100%;
    }

    .adp-main {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .adp-body {
        min-height: auto;
    }

    .footer-links {
        gap: 24px;
    }

    .footer-col {
        min-width: 130px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .hero-trust {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
        min-width: 0;
    }

    .floating-card {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-visual {
        min-height: auto;
        width: 100%;
    }

    .hero-mosque-img {
        height: auto;
        max-height: 280px;
        width: 100%;
        object-fit: cover;
    }

    .pw-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pw-date {
        text-align: left;
    }

    .pw-card {
        padding: 20px;
        width: 100%;
    }

    .discover-stats {
        grid-template-columns: 1fr 1fr;
        padding: 0;
    }

    .ds-item {
        padding: 16px;
    }

    .ds-item h3 {
        font-size: 1.35rem;
    }

    .store-buttons {
        flex-direction: column;
        width: 100%;
    }

    .store-buttons a {
        width: 100%;
        justify-content: center;
    }
}
