/* Mahakal Tattva - Main Devotional Luxury Theme */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
    --gold: #D4AF37;
    --gold-hover: #c19b28;
    --gold-light: #fef8e7;
    --gold-border: rgba(212, 175, 55, 0.35);
    --saffron: #f26522;
    --saffron-hover: #d94f10;
    --saffron-light: #fff4ed;
    --maroon: #5E0B15;
    --dark-bg: #0c0e12;
    --dark-surface: #14171d;
    --dark-card: #1c2027;
    --body-bg: #f9f8f5;
    --card-bg: #ffffff;
    --text-primary: #1e2229;
    --text-secondary: #5a606d;
    --text-muted: #8d94a2;
    --border-color: #eae7df;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* offset for mobile bottom bar */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Top Notification Banner */
.top-notice-bar {
    background: linear-gradient(90deg, #3d050c 0%, #70111b 50%, #3d050c 100%);
    color: #fcebd9;
    font-size: 0.82rem;
    padding: 7px 0;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.top-notice-bar .notice-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.notice-text {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-notice-bar .contact-quick {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-notice-bar a:hover {
    color: var(--gold);
}

/* Main Header */
.site-header {
    background: #0f1217;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    flex-wrap: nowrap;
    gap: 10px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
}

.brand-text {
    display: none;
}

.brand-sub {
    font-size: 0.65rem;
    color: #c9ccd3;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 2px;
}

/* Navigation Menu */
.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 28px;
    }
}

.nav-link {
    color: #e3e6ed;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Nav Dropdowns */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #11141a;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    color: #e2e8f0;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding-left: 22px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #f1f3f7;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.btn-icon:hover {
    background: var(--gold);
    color: #0f1217;
    border-color: var(--gold);
}

.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--saffron);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 2px 5px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    background: linear-gradient(135deg, var(--saffron) 0%, #b34618 100%);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-auth:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    color: var(--gold);
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(212, 175, 55, 0.15);
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Offcanvas Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: #11141a;
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    padding: 25px 20px 50px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    display: none;
}

.drawer-backdrop.show {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-link {
    color: #d1d5db;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.drawer-link:hover {
    color: var(--gold);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(10, 12, 16, 0.85), rgba(10, 12, 16, 0.9)), url('../images/hero-shiva.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 90px 0 80px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
    overflow: hidden;
}

.hero-shloka {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #d1d5db;
    max-width: 720px;
    margin: 0 auto 35px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--saffron) 0%, #c44312 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.35);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(242, 101, 34, 0.45);
    color: #fff;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #b89228 100%);
    color: #111317;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
    color: #000;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #0f1217;
    transform: translateY(-2px);
}

/* Section Header */
.section {
    padding: 70px 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 45px;
}

.section-tag {
    color: var(--saffron);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '🔱';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    color: var(--gold);
}

.section-desc {
    max-width: 650px;
    margin: 15px auto 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.category-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: #fcfaf5;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
    transform: scale(1.08);
}

.category-info {
    padding: 18px 15px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--saffron) 0%, #c44312 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
    transition: all 0.25s ease;
    width: auto;
}

.category-card:hover .category-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #b89228 100%);
    color: #111317;
    transform: translateY(-1px);
}

/* Service Guarantee Banner */
.guarantee-bar {
    background: #11141a;
    color: #fff;
    padding: 60px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.guarantee-icon {
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}

.guarantee-item h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
}

.guarantee-item p {
    font-size: 0.88rem;
    color: #a0a6b3;
}

/* Darshan Temples Slider & Cards */
.temples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.temple-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.temple-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--saffron);
}

.temple-img-wrap {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.temple-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.temple-card:hover .temple-img-wrap img {
    transform: scale(1.06);
}

.temple-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--saffron);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.temple-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.temple-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--maroon);
    margin-bottom: 6px;
    font-weight: 700;
}

.temple-deity {
    font-size: 0.85rem;
    color: var(--saffron);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.temple-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 18px;
    flex-grow: 1;
    line-height: 1.5;
}

.temple-features {
    list-style: none;
    margin-bottom: 20px;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.temple-features li {
    font-size: 0.88rem;
    color: #4b5261;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.temple-features li i {
    color: var(--saffron);
}

.temple-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.temple-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.temple-price strong {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: block;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.product-img-wrap {
    height: 260px;
    overflow: hidden;
    background: #fdfdfd;
    position: relative;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.78rem;
    color: var(--saffron);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--maroon);
}

.product-regular-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-btn-wrap {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    background: var(--dark-bg);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--saffron);
}

/* Weekly & Monthly Services Cards */
.service-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
}

.service-plan-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--saffron);
}

.service-plan-header {
    background: #11141a;
    color: #fff;
    padding: 30px 25px;
    text-align: center;
}

.service-plan-header.monthly {
    background: linear-gradient(135deg, var(--saffron) 0%, #a83a0e 100%);
}

.service-plan-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.service-plan-badge {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
}

.service-plan-body {
    padding: 30px 25px;
}

.service-group {
    margin-bottom: 22px;
}

.service-group h4 {
    color: var(--saffron);
    font-size: 1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.service-group ul {
    list-style: none;
}

.service-group ul li {
    font-size: 0.92rem;
    color: #4b5261;
    padding: 6px 0 6px 24px;
    position: relative;
}

.service-group ul li::before {
    content: '🔱';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    color: var(--saffron);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 14px;
}

.testimonial-text {
    font-style: italic;
    color: #4b5261;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.author-city {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Site Footer */
.site-footer {
    background: #0d0f14;
    color: #c5cbd6;
    padding: 70px 0 0;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-contact p {
    font-size: 0.92rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 4px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #c5cbd6;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--gold);
    color: #0d0f14;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #8c93a3;
}

.footer-legal-links a:hover {
    color: var(--gold) !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 85px;
    right: 20px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #1ebc59;
    transform: translateY(-3px) scale(1.02);
    color: #fff;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
    color: #555;
    font-weight: 500;
    position: relative;
    padding: 4px 10px;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--saffron);
}

.mobile-nav-item .nav-badge {
    position: absolute;
    top: 0;
    right: 14px;
    background: var(--saffron);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
}

/* Forms and Alerts */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-control:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.alert-warning {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffecb3;
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness & Luxury Mobile Optimization
   ========================================================================== */

/* Table responsive wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

/* Reusable Grid & Layout Classes */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.checkout-layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.darshan-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 45px;
    align-items: center;
}

.darshan-booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.product-showcase-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 45px;
    background: #fff;
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 50px;
}

.shop-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    background: #fff;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.shop-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

@media (max-width: 991px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    .cart-layout-grid,
    .checkout-layout-grid,
    .darshan-hero-grid,
    .darshan-booking-grid,
    .product-showcase-card {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 64px; /* Prevents sticky mobile bottom nav from covering content */
    }

    /* 1. Top Notice Announcement Bar Mobile */
    .top-notice-bar {
        padding: 6px 12px !important;
        font-size: 0.74rem !important;
        line-height: 1.3 !important;
    }
    .top-notice-bar .contact-quick {
        display: none !important; /* Removes phone & whatsapp from top bar to eliminate awkward 4-line wrapping */
    }
    .notice-text {
        text-align: center !important;
        width: 100% !important;
        white-space: normal !important;
    }

    /* 2. Main Header Bar Mobile */
    .site-header {
        padding: 0 !important;
    }
    .header-row {
        padding: 8px 0 !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    .site-logo {
        gap: 8px !important;
        min-width: 0;
        flex-shrink: 1;
    }
    .site-logo img {
        height: 42px !important;
        width: auto !important;
        flex-shrink: 0;
    }
    .brand-name {
        font-size: 1.02rem !important;
        letter-spacing: 1px !important;
        line-height: 1.1 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .brand-sub {
        display: none !important; /* Hides subtitle on mobile so header stays super clean & single-line */
    }

    /* 3. Header Action Icons on Mobile */
    .header-actions {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .btn-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.85rem !important;
    }
    .badge-count {
        top: -3px !important;
        right: -3px !important;
        font-size: 0.65rem !important;
        min-width: 16px !important;
        padding: 1px 4px !important;
    }

    /* Transform 'My Account' / 'Login' into a sleek circular avatar button */
    .btn-auth {
        width: 35px !important;
        height: 35px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    .btn-auth .auth-btn-text {
        display: none !important; /* Removes wide text like 'My Account' taking up half the header */
    }
    .btn-auth i {
        font-size: 0.95rem !important;
        margin: 0 !important;
    }

    .menu-toggle {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.15rem !important;
        border-radius: 50% !important;
    }

    /* 4. Products Grid Mobile: 2 items per row (like Amazon/Flipkart/Mahakaltattva) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card {
        padding: 10px !important;
        border-radius: var(--radius-sm) !important;
    }
    .product-img-wrap {
        height: 145px !important;
    }
    .product-info {
        padding: 8px 0 0 0 !important;
    }
    .product-category {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
    }
    .product-title {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        height: 2.5em !important;
        overflow: hidden !important;
        margin-bottom: 6px !important;
    }
    .product-price {
        font-size: 0.92rem !important;
    }
    .product-regular-price {
        font-size: 0.72rem !important;
    }
    .btn-add-cart {
        padding: 7px 10px !important;
        font-size: 0.78rem !important;
        gap: 5px !important;
    }

    /* 5. Categories Grid Mobile: 2 per row */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .category-card {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: var(--radius-sm) !important;
        background: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        overflow: hidden !important;
    }
    .category-img {
        height: 130px !important;
        width: 100% !important;
        overflow: hidden !important;
        background: #fdfaf3 !important;
    }
    .category-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    .category-info {
        padding: 10px 8px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #ffffff !important;
        flex-grow: 1 !important;
    }
    .category-title {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        color: var(--maroon) !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    .category-info .category-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 7px 10px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        border-radius: var(--radius-sm) !important;
        margin-top: 0 !important;
        box-shadow: 0 3px 8px rgba(242, 101, 34, 0.25) !important;
    }

    /* 6. Temples & Darshan Grid Mobile */
    .temples-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .temple-img-wrap {
        height: 180px !important;
    }
    .temple-body {
        padding: 18px 16px !important;
    }
    .temple-title {
        font-size: 1.25rem !important;
    }
    .temple-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .temple-footer .temple-actions {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .temple-footer .temple-actions a {
        flex: 1 !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.82rem !important;
        padding: 8px 6px !important;
    }

    /* 7. Section spacing & headings on mobile */
    .section {
        padding: 38px 0 !important;
    }
    .section-title {
        font-size: 1.65rem !important;
    }
    .section-desc {
        font-size: 0.92rem !important;
    }

    /* 8. Floating WhatsApp Position Adjust (Avoid overlapping bottom bar) */
    .whatsapp-float {
        bottom: 74px !important;
        right: 14px !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 1.45rem !important;
    }

    /* 9. Footers on Mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: center !important;
    }
    .footer-socials {
        justify-content: center !important;
    }

    /* 10. Forms and Layout Cards on Mobile */
    .cart-table-card,
    .cart-summary-card,
    .checkout-card,
    .checkout-summary-card,
    .sankalp-form-card,
    .product-showcase-card {
        padding: 20px 15px !important;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* 11. Hero & Guarantees Mobile */
    .hero-title {
        font-size: 1.85rem !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 24px !important;
    }
    .guarantee-bar {
        padding: 32px 0 !important;
    }
    .guarantee-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* 12. Shop Filter Bar Mobile */
    .shop-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 14px !important;
    }
    .shop-filter-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .shop-filter-actions form,
    .shop-filter-actions select {
        width: 100% !important;
    }
    .shop-filter-actions form input {
        flex: 1 !important;
        width: auto !important;
    }

    /* 13. Darshan Shrine Image and Shadow */
    .darshan-shrine-img-wrap {
        box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25) !important;
    }
}

/* Micro-screen optimization (iPhone SE, Galaxy Fold outer, etc.) */
@media (max-width: 420px) {
    .site-logo img {
        height: 36px !important;
    }
    .brand-name {
        font-size: 0.9rem !important;
        letter-spacing: 0.5px !important;
    }
    .header-actions {
        gap: 4px !important;
    }
    .btn-icon, .btn-auth, .menu-toggle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* =========================================================
   PWA BOTTOM INSTALL BANNER & MODAL STYLES
   ========================================================= */
.pwa-install-bar {
    position: fixed;
    bottom: 126px; /* Positioned directly above the floating chat button and mobile bottom nav */
    left: 10px;
    right: 10px;
    max-width: 480px;
    margin: 0 auto;
    background: #0d1117;
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 18px rgba(217, 119, 6, 0.3);
    z-index: 99990;
    animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 769px) {
    .pwa-install-bar {
        bottom: 88px; /* Positioned directly above the desktop floating chat button */
        right: 25px;
        left: auto;
        margin: 0;
        max-width: 420px;
    }
}

@keyframes pwaSlideUp {
    from {
        transform: translateY(80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pwa-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.pwa-app-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    border: 1.5px solid var(--gold);
    flex-shrink: 0;
    object-fit: cover;
}

.pwa-bar-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pwa-bar-text strong {
    color: var(--gold);
    font-size: 0.88rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-bar-text span {
    color: #cbd5e1;
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-action-btn {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff !important;
    border: none;
    padding: 7px 13px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.pwa-install-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.55);
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pwa-close-btn:hover {
    color: #ffffff;
}

/* iOS Install Modal */
.pwa-ios-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pwa-ios-modal-content {
    background: #0f172a;
    border: 2px solid var(--gold);
    border-radius: 18px;
    padding: 28px 24px;
    max-width: 390px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.pwa-ios-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Push Notification Sacred Bell & Opt-in Banner
   ========================================================================== */
.push-bell-toggle {
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: color 0.2s, transform 0.2s;
}

.push-bell-toggle:hover {
    color: var(--saffron);
    transform: scale(1.08);
}

.push-bell-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Push Opt-in Toast / Floating Banner */
.push-optin-card {
    position: fixed;
    bottom: 82px;
    right: 20px;
    z-index: 99990;
    max-width: 380px;
    width: calc(100% - 40px);
    background: linear-gradient(135deg, #111827, #0f172a);
    border: 1px solid var(--gold);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(217, 119, 6, 0.2);
    padding: 16px 18px;
    animation: pushSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pushSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.push-optin-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.push-optin-header-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.push-optin-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(217, 119, 6, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.15rem;
    flex-shrink: 0;
    animation: bellRinging 2.5s infinite;
}

@keyframes bellRinging {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-12deg); }
    20%, 40% { transform: rotate(12deg); }
    50% { transform: rotate(0); }
}

.push-optin-content h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    color: var(--gold);
}

.push-optin-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.push-optin-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.push-allow-btn {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    border: none;
    padding: 7px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.push-allow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.5);
}

.push-dismiss-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.push-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

@media (max-width: 768px) {
    .push-optin-card {
        bottom: 74px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}

/* ==========================================================================
   PWA Installed State: Hide All Install Triggers & Banners
   ========================================================================== */
body.pwa-installed #pwaInstallBanner,
body.pwa-installed #pwaIosModal,
body.pwa-installed #mobileNavInstallTrigger,
body.pwa-installed #drawerInstallBtn,
body.pwa-installed .pwa-install-trigger,
body.pwa-installed .pwa-install-only {
    display: none !important;
}

body.pwa-installed #mobileNavDarshanItem {
    display: flex !important;
}

@media all and (display-mode: standalone) {
    #pwaInstallBanner,
    #pwaIosModal,
    #mobileNavInstallTrigger,
    #drawerInstallBtn,
    .pwa-install-trigger,
    .pwa-install-only {
        display: none !important;
    }
    #mobileNavDarshanItem {
        display: flex !important;
    }
}

/* ==========================================================================
   Astrotalk-Style Pandit Live Consultation Floating Widget & Chat Modal
   ========================================================================== */

.live-dot-pulse {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Floating Pandit Button (Desktop & Mobile) */
.pandit-float-widget {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 9998;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 1.5px solid var(--gold);
    border-radius: 50px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(217, 119, 6, 0.35);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
    user-select: none;
    text-decoration: none;
}

.pandit-float-widget:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 28px rgba(217, 119, 6, 0.55);
    border-color: #f59e0b;
}

.pandit-float-widget .live-dot-pulse {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 1.8s infinite;
    flex-shrink: 0;
}

.pandit-float-widget .pandit-float-icn {
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pandit-float-widget .pandit-float-title {
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-body);
}

.pandit-float-widget .pandit-badge-tag {
    color: #22c55e;
    font-weight: 800;
    font-size: 0.8rem;
    background: rgba(34, 197, 94, 0.16);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    white-space: nowrap;
}

/* Chat Modal Window */
.pandit-chat-modal {
    z-index: 99999;
    background: #0b0f19;
    display: none !important;
    flex-direction: column;
    overflow: hidden;
    animation: chatPopUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pandit-chat-modal.is-open {
    display: flex !important;
}

@media (min-width: 769px) {
    .pandit-chat-modal {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 390px;
        max-width: calc(100vw - 32px);
        height: 570px;
        max-height: calc(100vh - 110px);
        border-radius: 20px;
        border: 1.5px solid var(--gold);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(217, 119, 6, 0.2);
    }
}

@keyframes chatPopUp {
    from { opacity: 0; transform: translateY(25px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pandit-chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Chat Header */
.pandit-chat-header {
    background: linear-gradient(135deg, #1e1b4b, #2e1065);
    border-bottom: 1px solid rgba(234, 179, 8, 0.3);
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}

.pandit-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pandit-header-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #b45309);
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.pandit-header-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #1e1b4b;
}

.pandit-header-info h4 {
    margin: 0;
    font-size: 0.92rem;
    font-family: var(--font-heading);
    color: var(--gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pandit-header-info span {
    font-size: 0.72rem;
    color: #cbd5e1;
    display: block;
    line-height: 1.2;
}

.pandit-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-ctrl-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.chat-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Chat Body */
.pandit-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #070a12;
}

.pandit-chat-body::-webkit-scrollbar {
    width: 5px;
}
.pandit-chat-body::-webkit-scrollbar-thumb {
    background: rgba(234, 179, 8, 0.25);
    border-radius: 4px;
}

/* Chat Messages */
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.chat-bubble-pandit {
    align-self: flex-start;
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-bottom-left-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.chat-bubble-devotee {
    align-self: flex-end;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    border-bottom-right-radius: 3px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.chat-bubble-system {
    align-self: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(234, 179, 8, 0.35);
    color: #cbd5e1;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-align: center;
}

.chat-time {
    font-size: 0.68rem;
    opacity: 0.65;
    display: block;
    margin-top: 4px;
    text-align: right;
}

/* Quick Dosh Chips */
.dosh-chips-box {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.dosh-chip-btn {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.dosh-chip-btn:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
    border-color: #f59e0b;
    transform: translateY(-1px);
}

/* Chat Lead Form (Step 2) */
.chat-inline-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.chat-inline-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #fff;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
    width: 100%;
}

.chat-inline-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.3);
}

.chat-inline-btn {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* Recommended Sacred Pooja / Product Card inside Chat */
.chat-sacred-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(15, 23, 42, 0.95));
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    text-align: left;
}

.chat-sacred-card h5 {
    color: var(--gold);
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.chat-sacred-card p {
    color: #cbd5e1;
    font-size: 0.78rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.chat-card-action-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

/* Chat Footer */
.pandit-chat-footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    flex-shrink: 0;
}

.pandit-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pandit-chat-form input {
    flex: 1;
    background: #1e293b;
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fff;
    padding: 10px 14px;
    border-radius: 25px;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.2s;
}

.pandit-chat-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.3);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, opacity 0.2s;
}

.chat-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chat-send-btn:not(:disabled):hover {
    transform: scale(1.08);
}

.chat-trust-note {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 6px;
}

/* Lock scroll when chat open */
body.pandit-chat-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    body.pandit-chat-open {
        position: fixed;
        width: 100%;
        height: 100%;
    }
    body.pandit-chat-open .pandit-float-widget,
    body.pandit-chat-open .mobile-bottom-bar,
    body.pandit-chat-open #pwaInstallBanner {
        display: none !important;
    }
    .pandit-float-widget {
        bottom: 74px;
        right: 12px;
        padding: 9px 14px;
        max-width: calc(100vw - 24px);
        gap: 8px;
    }
    .pandit-float-widget .pandit-float-title {
        font-size: 0.82rem;
        gap: 5px;
    }
    .pandit-float-widget .pandit-badge-tag {
        font-size: 0.72rem;
        padding: 1px 6px;
    }
    .pandit-float-widget .pandit-float-icn {
        font-size: 1.05rem;
    }
    .pandit-chat-modal {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 2147483647 !important;
        margin: 0 !important;
        display: none !important;
        flex-direction: column !important;
    }
    .pandit-chat-modal.is-open {
        display: flex !important;
    }
    .pandit-chat-window {
        height: 100% !important;
        height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .pandit-chat-header {
        padding: 12px 14px;
        padding-top: max(12px, env(safe-area-inset-top));
        flex-shrink: 0;
    }
    .pandit-chat-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 14px 12px !important;
    }
    .pandit-chat-footer {
        flex-shrink: 0;
        padding: 10px 12px !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
        background: #0f1422 !important;
        border-top: 1px solid rgba(234, 179, 8, 0.25) !important;
    }
    .dosh-chips-box {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .dosh-chip-btn {
        flex: 1 1 calc(50% - 6px) !important;
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .chat-inline-input {
        font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    }
    .pandit-chat-modal .chat-ctrl-btn[title="Minimize"] {
        display: none;
    }
}

/* PWA App Launch Splash Screen */
.pwa-app-splash {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 2147483647;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.pwa-app-splash.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.pwa-splash-content {
    text-align: center;
    padding: 24px;
    animation: pwaPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pwa-splash-icon-wrap {
    width: min(75vw, 260px);
    height: min(75vw, 260px);
    margin: 0 auto 24px;
    box-shadow: 0 15px 50px rgba(217, 119, 6, 0.35), 0 0 40px rgba(251, 191, 36, 0.2);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pwa-splash-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pwa-splash-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(251, 191, 36, 0.2);
    border-top-color: #fbbf24;
    border-radius: 50%;
    margin: 0 auto;
    animation: pwaSpin 0.8s linear infinite;
}
@keyframes pwaPopIn {
    0% { opacity: 0; transform: scale(0.86); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes pwaSpin {
    to { transform: rotate(360deg); }
}
