/* ==========================================================================
   AB CALENDAR — ADVANCED 3D + LIQUID GLASS + ISLAMIC DIGITAL EXPERIENCE
   Official Production Stylesheet (https://abcalendar.web.app/)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & THEME TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-urdu: 'Mehr Nastaliq Web', 'Noto Nastaliq Urdu', 'AlQalamTajNastaleeq', serif;
    --font-arabic: 'Amiri', serif;
    --font-hindi: 'Noto Sans Devanagari', 'Tiro Devanagari Hindi', sans-serif;
    --font-mono: 'Courier New', monospace;

    /* Base Dimensions */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-full: 9999px;
    --header-height: 76px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 600ms;
}

/* --------------------------------------------------------------------------
   THEME 1: LIGHT MODE (Royal Islamic Ivory & Gold)
   -------------------------------------------------------------------------- */
html[data-theme="light"], body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.68);
    --bg-glass-strong: rgba(255, 255, 255, 0.9);
    --bg-gradient: radial-gradient(circle at 50% -10%, #fef3c7 0%, #f8fafc 45%, #f1f5f9 100%);
    
    --border-glass: rgba(226, 232, 240, 0.95);
    --border-glass-subtle: rgba(203, 213, 225, 0.6);
    --border-gold: rgba(217, 119, 6, 0.45);
    --border-emerald: rgba(5, 150, 105, 0.4);

    --color-gold: #b45309;
    --color-gold-light: #d97706;
    --color-gold-glow: rgba(217, 119, 6, 0.25);
    --color-emerald: #047857;
    --color-emerald-light: #059669;
    --color-emerald-glow: rgba(4, 120, 87, 0.2);
    --color-cyan: #0284c7;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --backdrop-blur: blur(16px);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-glass: 0 16px 40px rgba(15, 23, 42, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    --shadow-glow: 0 0 35px rgba(217, 119, 6, 0.2);
    --shadow-emerald-glow: 0 0 35px rgba(4, 120, 87, 0.2);
    --glass-highlight: inset 0 1.5px 1px rgba(255, 255, 255, 0.95);
}

/* --------------------------------------------------------------------------
   THEME 2: DARK MODE (Celestial Midnight & Stars)
   -------------------------------------------------------------------------- */
html[data-theme="dark"], body.dark-theme {
    --bg-primary: #060913;
    --bg-secondary: #0c1222;
    --bg-surface: rgba(15, 23, 42, 0.85);
    --bg-card: rgba(17, 24, 39, 0.72);
    --bg-card-hover: rgba(30, 41, 59, 0.88);
    --bg-glass: rgba(15, 23, 42, 0.65);
    --bg-glass-strong: rgba(15, 23, 42, 0.92);
    --bg-gradient: radial-gradient(circle at 50% 0%, #151d38 0%, #060913 75%);
    
    --border-glass: rgba(255, 255, 255, 0.11);
    --border-glass-subtle: rgba(255, 255, 255, 0.05);
    --border-gold: rgba(245, 158, 11, 0.38);
    --border-emerald: rgba(16, 185, 129, 0.35);

    --color-gold: #f59e0b;
    --color-gold-light: #fbbf24;
    --color-gold-glow: rgba(245, 158, 11, 0.28);
    --color-emerald: #10b981;
    --color-emerald-light: #34d399;
    --color-emerald-glow: rgba(16, 185, 129, 0.25);
    --color-cyan: #06b6d4;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #060913;

    --backdrop-blur: blur(20px);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.75);
    --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.28);
    --shadow-emerald-glow: 0 0 40px rgba(16, 185, 129, 0.24);
    --glass-highlight: inset 0 1.5px 1px rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   THEME 3: LIQUID GLASS MODE (Crystal + Water + Light Refraction)
   -------------------------------------------------------------------------- */
html[data-theme="liquid-glass"], body.liquid-glass-theme {
    --bg-primary: #030712;
    --bg-secondary: #0a1128;
    --bg-surface: rgba(255, 255, 255, 0.07);
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(255, 255, 255, 0.14);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-strong: rgba(255, 255, 255, 0.18);
    --bg-gradient: radial-gradient(circle at 50% -20%, #1e293b 0%, #0a1638 35%, #030712 100%);
    
    --border-glass: rgba(255, 255, 255, 0.28);
    --border-glass-subtle: rgba(255, 255, 255, 0.12);
    --border-gold: rgba(251, 191, 36, 0.55);
    --border-emerald: rgba(52, 211, 153, 0.5);

    --color-gold: #fbbf24;
    --color-gold-light: #fef08a;
    --color-gold-glow: rgba(251, 191, 36, 0.45);
    --color-emerald: #34d399;
    --color-emerald-light: #6ee7b7;
    --color-emerald-glow: rgba(52, 211, 153, 0.4);
    --color-cyan: #38bdf8;

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --text-inverse: #030712;

    --backdrop-blur: blur(28px) saturate(190%);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.12);
    --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 45px rgba(251, 191, 36, 0.15);
    --shadow-glass: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1.5px 2px rgba(255, 255, 255, 0.4), inset 0 -1.5px 2px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 50px rgba(251, 191, 36, 0.35);
    --shadow-emerald-glow: 0 0 50px rgba(52, 211, 153, 0.35);
    --glass-highlight: inset 0 2px 2px rgba(255, 255, 255, 0.55), inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   2. GLOBAL FOUNDATIONS & BACKGROUNDS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden !important;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    transition: background 0.45s ease, color 0.3s ease;
}

/* Three.js Global Canvas Viewports */
#ambient3dCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

.liquid-glass-theme #ambient3dCanvas {
    opacity: 1;
}

.light-theme #ambient3dCanvas {
    opacity: 0.45;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

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

/* Islamic Geometric Background Watermark */
.islamic-geo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 60%, var(--bg-primary) 100%),
        repeating-linear-gradient(45deg, rgba(217, 119, 6, 0.02) 0, rgba(217, 119, 6, 0.02) 1px, transparent 0, transparent 40px),
        repeating-linear-gradient(-45deg, rgba(217, 119, 6, 0.02) 0, rgba(217, 119, 6, 0.02) 1px, transparent 0, transparent 40px);
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   3. REUSABLE LIQUID GLASS COMPONENTS
   -------------------------------------------------------------------------- */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-normal) var(--ease-out-expo);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-normal) var(--ease-out-expo),
                background-color var(--duration-normal) var(--ease-out-expo);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.glass-sheen {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover .glass-sheen {
    opacity: 1;
}

/* Glass Buttons */
.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass-strong);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm), var(--glass-highlight);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease,
                border-color var(--duration-fast) ease,
                background var(--duration-fast) ease;
}

.glass-btn:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    color: var(--text-primary);
}

.glass-btn:active {
    transform: translateY(1px) scale(0.98);
}

.glass-btn-primary {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.9));
    border-color: rgba(251, 191, 36, 0.6);
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.4), var(--glass-highlight);
}

.glass-btn-primary:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 1), rgba(245, 158, 11, 0.95));
    box-shadow: 0 14px 40px rgba(217, 119, 6, 0.6), var(--shadow-glow);
    color: #ffffff !important;
}

.glass-btn-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.9));
    border-color: rgba(52, 211, 153, 0.6);
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.4), var(--glass-highlight);
}

.glass-btn-emerald:hover {
    background: linear-gradient(135deg, rgba(52, 211, 153, 1), rgba(16, 185, 129, 0.95));
    box-shadow: 0 14px 40px rgba(5, 150, 105, 0.6), var(--shadow-emerald-glow);
    color: #ffffff !important;
}

/* Glass Badges & Tags */
.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-glass);
    border: 1px solid var(--border-gold);
    color: var(--color-gold);
    backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
}

.glass-badge-emerald {
    border-color: var(--border-emerald);
    color: var(--color-emerald-light);
}

/* --------------------------------------------------------------------------
   4. 3D FLOATING GLASS NAVBAR
   -------------------------------------------------------------------------- */
.navbar-3d {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-glass-container {
    max-width: 1320px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px 0 18px;
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md), var(--glass-highlight);
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-sizing: border-box;
}

.nav-glass-container.scrolled {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.25);
    background: var(--bg-glass-strong);
}

/* Brand Group */
.nav-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    white-space: nowrap !important;
}

.nav-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-brand-group:hover .nav-brand-logo {
    transform: scale(1.08) rotate(4deg);
}

.nav-brand-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    white-space: nowrap !important;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Links Hub */
.nav-links-hub {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
}

.nav-links-hub li {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-links-hub a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-secondary);
    padding: 7px 11px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    transition: all 0.2s ease;
}

.nav-links-hub a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-links-hub a.active {
    color: var(--color-gold);
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
}

/* Special High-Precision Pill for Web Calendar */
.nav-link-webcal {
    color: var(--color-gold) !important;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.32);
    font-weight: 700 !important;
    padding: 6px 12px !important;
    gap: 5px;
}

.nav-link-webcal:hover {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: var(--color-gold) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

/* Secondary Desktop Nav Items (Hide gracefully on medium laptops < 1250px) */
@media (max-width: 1250px) {
    .nav-secondary-item {
        display: none !important;
    }
}

@media (max-width: 1080px) {
    .nav-links-hub {
        display: none !important;
    }
}

/* Nav Actions Cluster (Controls Area) */
.nav-actions-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Theme 3-Mode Cycle Toggle */
.theme-mode-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.light-theme .theme-mode-btn {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.25);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.theme-mode-btn:hover {
    transform: scale(1.08);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-glow);
}

/* Language Dropdown */
.lang-select-box {
    position: relative;
    flex-shrink: 0;
}

.lang-toggle-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap !important;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.light-theme .lang-toggle-btn {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.25);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.lang-toggle-btn:hover {
    border-color: var(--color-gold);
    transform: translateY(-1px);
}

.lang-menu-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
    animation: fadeInDown 0.2s ease;
}

[dir="rtl"] .lang-menu-popover {
    right: auto;
    left: 0;
}

.lang-menu-popover.open {
    display: flex;
}

.lang-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

[dir="rtl"] .lang-option-btn {
    text-align: right;
}

.lang-option-btn:hover {
    background: var(--bg-card-hover);
    color: var(--color-gold);
}

.lang-option-btn.active {
    background: var(--bg-card);
    color: var(--color-gold);
    border: 1px solid var(--border-gold);
}

/* Google Play Mini Nav Button - Executive Redesign */
.nav-playstore-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px 0 11px;
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap !important;
    transition: all 0.25s var(--ease-out-expo);
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Light Theme - Clean Pearl Light Glass with Golden Aura (Zero Harsh Black) */
.light-theme .nav-playstore-btn {
    background: #ffffff;
    border: 1.5px solid rgba(217, 119, 6, 0.45);
    color: #0f172a !important;
    box-shadow: 0 3px 12px rgba(217, 119, 6, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.light-theme .nav-playstore-btn:hover {
    background: #ffffff;
    border-color: #d97706;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.25);
    transform: translateY(-1.5px);
}

.light-theme .nav-playstore-sub {
    color: #b45309;
}

.light-theme .nav-playstore-title {
    color: #0f172a;
}

/* Dark Theme - Sleek Dark Slate Glass */
html[data-theme="dark"] .nav-playstore-btn,
body.dark-theme .nav-playstore-btn {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .nav-playstore-btn:hover,
body.dark-theme .nav-playstore-btn:hover {
    border-color: #fbbf24;
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.35);
    transform: translateY(-1.5px);
}

html[data-theme="dark"] .nav-playstore-sub,
body.dark-theme .nav-playstore-sub {
    color: #cbd5e1;
}

html[data-theme="dark"] .nav-playstore-title,
body.dark-theme .nav-playstore-title {
    color: #ffffff;
}

/* Liquid Glass Theme - Pure Refractive Glass */
html[data-theme="liquid-glass"] .nav-playstore-btn,
body.liquid-glass-theme .nav-playstore-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);
}

html[data-theme="liquid-glass"] .nav-playstore-btn:hover,
body.liquid-glass-theme .nav-playstore-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1.5px);
}

html[data-theme="liquid-glass"] .nav-playstore-sub,
body.liquid-glass-theme .nav-playstore-sub {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="liquid-glass"] .nav-playstore-title,
body.liquid-glass-theme .nav-playstore-title {
    color: #ffffff;
}

.nav-playstore-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-playstore-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    gap: 2px;
}

.nav-playstore-sub {
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.nav-playstore-title {
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.2px;
}

/* Mobile Hamburger */
.mobile-nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 1080px) {
    .mobile-nav-toggle {
        display: flex;
    }
    .nav-playstore-btn {
        display: none;
    }
}

/* Mobile Responsive Navbar Overrides */
@media (max-width: 768px) {
    .navbar-3d {
        top: 8px;
        padding: 0 10px;
    }

    .nav-glass-container {
        height: 52px;
        padding: 0 10px 0 12px;
        gap: 6px;
    }

    .nav-brand-group {
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-brand-logo {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .nav-brand-name {
        font-size: 15px;
        font-weight: 800;
        white-space: nowrap !important;
        line-height: 1;
    }

    .nav-actions-cluster {
        gap: 6px;
        flex-shrink: 0;
    }

    .theme-mode-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .lang-select-box {
        flex-shrink: 0;
    }

    .lang-toggle-btn {
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
        gap: 3px;
        flex-shrink: 0;
    }

    /* On mobile screens, hide full text label and keep flag + arrow to preserve breathing room */
    #activeLangLabel {
        display: none !important;
    }

    .mobile-nav-toggle {
        width: 34px;
        height: 34px;
        font-size: 16px;
        border-radius: 50%;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
    }

    .mobile-glass-drawer {
        top: 66px;
        left: 10px;
        right: 10px;
        padding: 14px;
        gap: 8px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .mobile-glass-drawer a {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .navbar-3d {
        padding: 0 6px;
    }
    .nav-glass-container {
        padding: 0 8px 0 10px;
        gap: 4px;
    }
    .nav-brand-name {
        font-size: 13.5px;
    }
}

/* Mobile Glass Menu Drawer */
.mobile-glass-drawer {
    position: fixed;
    top: calc(var(--header-height) + 24px);
    left: 16px;
    right: 16px;
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    animation: fadeInDown 0.3s var(--ease-out-expo);
}

.mobile-glass-drawer.open {
    display: flex;
}

.mobile-glass-drawer a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   5. ADVANCED 3D HERO SECTION (CELESTIAL CALENDAR)
   -------------------------------------------------------------------------- */
.desktop-only-br {
    display: inline;
}

.hero-3d-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-3d-stage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (max-width: 960px) {
    .hero-3d-stage {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

.hero-content-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 960px) {
    .hero-content-col {
        align-items: center;
    }
}

.hero-super-badge {
    align-self: flex-start;
}

@media (max-width: 960px) {
    .hero-super-badge {
        align-self: center;
    }
}

.hero-title-main {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.2vw, 64px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1px;
}

.gradient-gold-text {
    background: linear-gradient(135deg, var(--color-gold) 0%, #fde047 50%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description-main {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.65;
}

/* Trust Badges Strip */
.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

@media (max-width: 960px) {
    .hero-trust-strip {
        justify-content: center;
    }
}

.hero-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.hero-trust-chip span {
    color: var(--color-emerald-light);
}

/* Hero CTA Cluster */
.hero-cta-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

@media (max-width: 960px) {
    .hero-cta-cluster {
        justify-content: center;
    }
}

/* Mobile Hero Fine-Tuning (<= 768px) */
@media (max-width: 768px) {
    .desktop-only-br {
        display: none !important;
    }

    .hero-3d-section {
        min-height: auto;
        padding-top: 76px;
        padding-bottom: 30px;
    }

    .hero-3d-stage {
        gap: 18px;
    }

    .hero-content-col {
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .hero-super-badge {
        font-size: 11px;
        font-weight: 700;
        padding: 4px 12px;
        letter-spacing: 0.2px;
        line-height: 1.3;
        max-width: 95%;
        text-align: center;
        white-space: normal;
        margin: 0 auto;
        box-shadow: 0 2px 10px rgba(217, 119, 6, 0.12);
    }

    .hero-title-main {
        font-size: clamp(23px, 6.8vw, 30px);
        font-weight: 850;
        line-height: 1.22;
        letter-spacing: -0.4px;
        text-wrap: balance;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-description-main {
        font-size: 13.5px;
        line-height: 1.55;
        max-width: 100%;
        color: var(--text-secondary);
        text-wrap: pretty;
        margin: 0 auto;
    }

    /* Trust Chips: Elegant compact micro-badges in 2 rows, not giant stacked blocks */
    .hero-trust-strip {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin-top: 2px;
        width: 100%;
    }

    .hero-trust-chip {
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: var(--radius-full);
        gap: 4px;
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        white-space: nowrap;
    }

    /* CTA buttons cluster: Prominent, clear, beautiful on mobile */
    .hero-cta-cluster {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
        margin-top: 6px;
    }

    .hero-cta-cluster .glass-btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 14px;
        justify-content: center;
    }

    /* 3D Viewport on Mobile */
    .hero-viewport-col {
        min-height: 380px;
        max-height: 420px;
        margin-top: 10px;
    }

    .hero-sync-overlay {
        gap: 10px;
        max-width: 330px;
        width: 100%;
    }

    .sync-date-card-3d {
        padding: 12px 14px;
        border-radius: var(--radius-md);
    }

    .sync-left {
        gap: 10px;
    }

    .sync-icon-badge {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 18px;
    }

    .sync-era-label {
        font-size: 9.5px;
        letter-spacing: 0.5px;
    }

    .sync-era-value {
        font-size: 16px;
    }

    .sync-era-urdu {
        font-size: 17px;
    }
}

/* 3D Visual Column & WebGL Interactive Scene */
.hero-viewport-col {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

@media (max-width: 960px) {
    .hero-viewport-col {
        min-height: 440px;
    }
}

#hero3dCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    border-radius: var(--radius-xl);
}

/* Floating 3D Triple Calendar Synchronizer Overlay */
.hero-sync-overlay {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sync-date-card-3d {
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
}

.sync-date-card-3d:hover, .sync-date-card-3d.active {
    border-color: var(--border-gold);
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.sync-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sync-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.sync-titles-col {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sync-era-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-gold);
}

.sync-era-value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.sync-era-urdu {
    font-family: var(--font-urdu);
    font-size: 22px;
    line-height: 1.2;
}

.sync-right-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--color-emerald-light);
    border: 1px solid var(--border-emerald);
}

/* Moon Phase Widget in Hero */
.hero-moon-control {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.moon-info-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.moon-icon-visual {
    font-size: 24px;
}

.moon-text-col {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.moon-phase-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.moon-phase-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.moon-slider-range {
    flex: 1;
    max-width: 140px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. 3D AUTHENTIC DEVICE COVERFLOW SHOWCASE
   -------------------------------------------------------------------------- */
.showcase-3d-section {
    padding: 90px 0 60px;
    position: relative;
    z-index: 2;
}

.section-head-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.section-title-huge {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle-dim {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 3D Tabs */
.coverflow-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.cover-tab-btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.cover-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.cover-tab-btn.active {
    background: var(--color-gold);
    color: #ffffff;
    border-color: var(--color-gold-light);
    box-shadow: var(--shadow-glow);
}

/* 3D Coverflow Stage */
.coverflow-3d-stage {
    position: relative;
    width: 100%;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
    padding: 20px 0;
}

@media (max-width: 640px) {
    .coverflow-3d-stage {
        min-height: 480px;
    }
}

.coverflow-device-card {
    position: absolute;
    width: 290px;
    max-width: 82vw;
    border-radius: 40px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out-expo),
                opacity 0.6s var(--ease-out-expo),
                filter 0.6s var(--ease-out-expo),
                box-shadow 0.6s var(--ease-out-expo);
}

.coverflow-device-card img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.coverflow-device-card .device-sheen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 38px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 45%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.coverflow-caption-pill {
    position: absolute;
    bottom: -46px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 3D Coverflow Spatial Positioning */
.coverflow-device-card.is-active {
    transform: translateX(0) translateZ(140px) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    filter: blur(0px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.coverflow-device-card.is-active .coverflow-caption-pill {
    opacity: 1;
}

.coverflow-device-card.is-prev {
    transform: translateX(-240px) translateZ(-80px) rotateY(26deg);
    opacity: 0.65;
    z-index: 5;
    filter: blur(1.5px);
}

.coverflow-device-card.is-next {
    transform: translateX(240px) translateZ(-80px) rotateY(-26deg);
    opacity: 0.65;
    z-index: 5;
    filter: blur(1.5px);
}

.coverflow-device-card.is-hidden-left {
    transform: translateX(-440px) translateZ(-200px) rotateY(45deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.coverflow-device-card.is-hidden-right {
    transform: translateX(440px) translateZ(-200px) rotateY(-45deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 640px) {
    .coverflow-device-card.is-prev {
        transform: translateX(-140px) translateZ(-100px) rotateY(25deg);
    }
    .coverflow-device-card.is-next {
        transform: translateX(140px) translateZ(-100px) rotateY(-25deg);
    }
}

/* Coverflow Navigation Arrows */
.coverflow-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 20;
    transition: all 0.25s ease;
}

.coverflow-nav-btn:hover {
    background: var(--color-gold);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-50%) scale(1.1);
}

.coverflow-nav-btn.prev-btn { left: 24px; }
.coverflow-nav-btn.next-btn { right: 24px; }

@media (max-width: 640px) {
    .coverflow-nav-btn.prev-btn { left: 4px; }
    .coverflow-nav-btn.next-btn { right: 4px; }
}

/* Dots */
.coverflow-dots-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.cover-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.cover-dot.active {
    width: 32px;
    background: var(--color-gold);
    box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   7. STATS STRIP IN 3D LIQUID GLASS CARDS
   -------------------------------------------------------------------------- */
.stats-strip-section {
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

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

@media (max-width: 900px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }
}

.stat-3d-card {
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-3d-number {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.8vw, 48px);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    direction: ltr;
    unicode-bidi: isolate;
}

.stat-3d-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. WHY DIFFERENT SECTION (AURON SE ALAG & KHAAS)
   -------------------------------------------------------------------------- */
.why-diff-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.comp-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .comp-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .comp-bento-grid {
        grid-template-columns: 1fr;
    }
}

.comp-card-3d {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    box-sizing: border-box;
}

.comp-card-3d .comp-text-body {
    flex: 1;
}

.comp-badge-pill {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-gold);
    color: var(--color-gold);
}

.comp-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: var(--shadow-sm);
}

.comp-title-bold {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.comp-text-body {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. ALL 12 FEATURES — INTERACTIVE 3D FEATURE SUITE
   -------------------------------------------------------------------------- */
.features-suite-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

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

@media (max-width: 1024px) {
    .features-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .features-bento-grid {
        grid-template-columns: 1fr;
    }
}

.feat-card-3d {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: var(--radius-lg);
    height: 100%;
    box-sizing: border-box;
}

.feat-card-featured {
    grid-column: span 1;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-surface));
    border-color: var(--border-gold);
}

@media (max-width: 1024px) {
    .feat-card-featured {
        grid-column: span 1;
    }
}

.feat-desc-text {
    flex: 1;
}

.feat-tags-wrap,
.feat-interactive-box {
    margin-top: auto;
}

.feat-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feat-card-3d:hover .feat-icon-badge {
    transform: scale(1.12) rotate(6deg);
}

.feat-title-main {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.feat-desc-text {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.feat-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.feat-tag-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass-subtle);
    color: var(--text-muted);
}

/* Interactive 3D Feature Demos embedded in Feature Cards */
.feat-interactive-box {
    margin-top: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 3D Tasbih Mini Simulator */
.tasbih-mini-ring {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tasbih-count-display {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--color-emerald-light);
    line-height: 1;
}

.tasbih-dhikr-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.tasbih-tap-btn {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: var(--color-emerald);
    color: #ffffff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm), var(--shadow-emerald-glow);
    transition: transform 0.15s ease;
}

.tasbih-tap-btn:active {
    transform: scale(0.92);
}

/* 3D Qibla Compass Interactive Element */
.qibla-compass-widget {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qibla-dial-ring {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-glow);
    transition: transform 0.4s ease;
}

.qibla-needle {
    width: 4px;
    height: 38px;
    background: linear-gradient(to top, #ef4444 50%, var(--color-gold) 50%);
    border-radius: 2px;
}

/* 3D Date Converter Mini Tool */
.converter-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.conv-col-item {
    background: var(--bg-card);
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.conv-col-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gold);
}

.conv-col-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   10. 300+ YEARS TIME TUNNEL / DECADE PICKER SECTION
   -------------------------------------------------------------------------- */
.timetunnel-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.timetunnel-card {
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.timeline-year-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.timeline-year-box {
    display: flex;
    flex-direction: column;
    padding: 18px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.timeline-year-box .lbl {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gold);
}

.timeline-year-box .val {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    color: var(--text-primary);
}

.timeline-slider-wrap {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tunnel-range-input {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    accent-color: var(--color-gold);
    cursor: pointer;
}

.decades-pills-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.decade-pill-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.decade-pill-btn:hover, .decade-pill-btn.active {
    background: var(--color-gold);
    color: #ffffff;
    border-color: var(--color-gold-light);
    box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   11. FAQ ACCORDION IN 3D GLASS
   -------------------------------------------------------------------------- */
.faq-suite-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.faq-accordion-stack {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item-glass {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    overflow: hidden;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.faq-item-glass.open {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.faq-question-btn {
    width: 100%;
    padding: 22px 24px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

[dir="rtl"] .faq-question-btn {
    text-align: right;
}

.faq-chevron {
    font-size: 20px;
    transition: transform var(--duration-fast) ease;
    color: var(--color-gold);
}

.faq-item-glass.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer-pane {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out-expo);
}

.faq-item-glass.open .faq-answer-pane {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. GOOGLE PLAY STORE SHOWCASE & CTA BANNER
   -------------------------------------------------------------------------- */
.cta-showcase-section {
    padding: 80px 0 100px;
    position: relative;
    z-index: 2;
}

.cta-glass-banner {
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    border-color: var(--border-gold);
}

@media (max-width: 900px) {
    .cta-glass-banner {
        grid-template-columns: 1fr;
        padding: 36px 24px;
        text-align: center;
    }
}

.cta-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 900px) {
    .cta-info-side {
        align-items: center;
    }
}

.cta-trust-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 900px) {
    .cta-trust-chips-row {
        justify-content: center;
    }
}

.cta-chip-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}

.cta-chip-box .icon {
    font-size: 20px;
}

.cta-chip-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cta-chip-texts strong {
    font-size: 13px;
    color: var(--text-primary);
}

.cta-chip-texts span {
    font-size: 11px;
    color: var(--text-muted);
}

.cta-device-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Authentic Cropped Play Store Listing Card (Natural Aspect Ratio) */
.playstore-crop-card {
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 310px;
    position: relative;
    cursor: pointer;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.playstore-crop-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-6px) scale(1.02);
}

.playstore-crop-frame {
    width: 100%;
    border-radius: 22px;
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), var(--shadow-glow);
    overflow: hidden;
    position: relative;
    padding: 6px;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.light-theme .playstore-crop-frame {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.45);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 30px rgba(217, 119, 6, 0.2);
}

.playstore-crop-img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 775 / 1024;
    display: block;
    border-radius: 16px;
    object-fit: contain;
}

.playstore-crop-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(3, 105, 161, 0.95));
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.playstore-crop-card:hover .playstore-crop-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   13. FOOTER (AL BARKAT EXECUTIVE GLASS DESIGN)
   -------------------------------------------------------------------------- */
.footer-3d-suite {
    padding: 80px 0 30px;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 0.8fr 0.7fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-brand-title-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.footer-brand-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
}

.footer-urdu-quote {
    font-family: var(--font-urdu);
    font-size: 20px;
    color: var(--color-gold);
    line-height: 1.4;
}

.footer-col-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-heading-sub {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.footer-address-p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item:hover {
    color: var(--color-gold);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--color-gold);
    transform: translateX(4px);
}

[dir="rtl"] .footer-links-list a:hover {
    transform: translateX(-4px);
}

.footer-bottom-bar {
    padding-top: 30px;
    border-top: 1px solid var(--border-glass-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.social-glass-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-glass-btn svg {
    width: 18px;
    height: 18px;
}

.social-glass-btn:hover {
    background: var(--color-gold);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   14. 3D GLASS DIGITAL VAULT (PIN SECURITY GATEKEEPER MODAL - 0313)
   -------------------------------------------------------------------------- */
.pin-vault-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.pin-vault-overlay.active {
    display: flex;
}

.pin-vault-vaultcard {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    animation: scaleUp 0.3s var(--ease-out-expo);
}

.pin-vault-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

[dir="rtl"] .pin-vault-close {
    right: auto;
    left: 18px;
}

.pin-vault-close:hover {
    border-color: var(--color-gold);
    transform: rotate(90deg);
}

.pin-vault-badge {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-glow);
    margin-bottom: 12px;
}

.pin-vault-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.pin-vault-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 4 PIN Slots */
.pin-slots-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    cursor: pointer;
}

.pin-digit-slot {
    width: 52px;
    height: 62px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1.5px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--color-gold);
    transition: all 0.2s ease;
}

.pin-digit-slot.active {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.pin-digit-slot.filled {
    border-color: var(--color-emerald-light);
    color: var(--color-emerald-light);
}

.pin-digit-slot.error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.pin-digit-slot.success {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
}

.pin-vault-status-msg {
    font-size: 13px;
    font-weight: 600;
    min-height: 22px;
    margin-bottom: 16px;
    color: #ef4444;
}

.pin-vault-status-msg.success-msg {
    color: #10b981;
}

.pin-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

/* 3D Tactile Glass Keypad */
.pin-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.keypad-num-btn {
    height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.keypad-num-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.keypad-num-btn:active {
    transform: scale(0.94);
}

.keypad-num-btn.btn-action {
    color: var(--color-gold);
    font-size: 16px;
}

/* Error Shake */
.shake-card {
    animation: shakeAnim 0.45s ease-in-out;
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-12px); }
    40% { transform: translateX(12px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   15. RTL OVERRIDES (URDU & ARABIC)
   -------------------------------------------------------------------------- */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-super-badge {
    align-self: flex-end;
}

@media (max-width: 960px) {
    [dir="rtl"] .hero-super-badge {
        align-self: center;
    }
}

[dir="rtl"] .comp-badge-pill {
    align-self: flex-end;
}

[dir="rtl"] .nav-links-hub {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-trust-strip {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-contact-actions {
    flex-direction: row-reverse;
}

/* Nastaliq Font Optimization for Urdu */
.lang-urdu, [lang="ur"] {
    font-family: var(--font-urdu), var(--font-sans);
}

.lang-urdu h1, .lang-urdu h2, .lang-urdu h3 {
    font-family: var(--font-urdu), var(--font-heading);
    line-height: 1.6;
}

.lang-ar, [lang="ar"] {
    font-family: var(--font-arabic), var(--font-sans);
}

.lang-hindi, [lang="hi"], .lang-nepali, [lang="ne"] {
    font-family: var(--font-hindi), var(--font-sans);
}

/* --------------------------------------------------------------------------
   16. ACCESSIBILITY & REDUCED MOTION
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    #ambient3dCanvas {
        display: none !important;
    }
}


/* ── ULTRA-MODERN WHAT'S NEW LUXURY CARDS & 3x2 BALANCED GRID ── */
.whats-new-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-top: 40px !important;
}

@media (max-width: 1024px) {
    .whats-new-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 680px) {
    .whats-new-grid {
        grid-template-columns: 1fr !important;
    }
}

.whats-new-section .glass-card {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1.5px solid rgba(2, 132, 199, 0.16) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transform: translateY(0);
    transition: all 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 30px 28px !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-lg) !important;
}

.whats-new-section .glass-card p {
    flex: 1 !important;
    margin-bottom: 0 !important;
}

[data-theme="dark"] .whats-new-section .glass-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45) !important;
}

.whats-new-section .glass-card:hover {
    transform: translateY(-6px) scale(1.015) !important;
    border-color: var(--primary, #0284c7) !important;
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.18), 0 0 20px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="dark"] .whats-new-section .glass-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.22) !important;
}
