/* ==========================================================================
   VIRTUAL GANESHA CHATURTHI POOJA & CHARITY HUNDI - STYLES
   Royal Indian Temple Garbhagriha Aesthetics & Glassmorphic Elements
   ========================================================================== */

:root {
    --gold-primary: #f59e0b;
    --gold-light: #fef08a;
    --gold-dark: #b45309;
    --saffron: #f97316;
    --maroon-deep: #2a050f;
    --maroon-rich: #4c0519;
    --maroon-card: rgba(42, 5, 15, 0.85);
    --charity-green: #10b981;
    --charity-glow: rgba(16, 185, 129, 0.35);
    --gold-glow: 0 0 25px rgba(245, 158, 11, 0.45);
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #0d0205 url('assets/Background.png') no-repeat center center / cover;
    background-attachment: fixed;
    color: #fef3c7;
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #0d0205 url('assets/Background.png') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------
   SEAMLESS FLOATING DEVOTIONAL HEADER (NO SEPARATE BLOCK)
   ------------------------------------------------------------- */
.top-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(12, 1, 5, 0.6) 0%, rgba(12, 1, 5, 0.1) 60%, transparent 100%);
    border-bottom: none;
    backdrop-filter: none;
    z-index: 45;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.top-header * {
    pointer-events: auto;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fef08a;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 16px rgba(245, 158, 11, 0.6);
    background: rgba(18, 3, 8, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.brand-title .om-symbol {
    font-size: 1.35rem;
    color: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-icon-btn {
    background: rgba(18, 3, 8, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fef08a;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.control-flat-svg {
    width: 18px;
    height: 18px;
    stroke: #fef08a;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.control-icon-btn:hover {
    background: rgba(245, 158, 11, 0.28);
    border-color: rgba(254, 240, 138, 0.7);
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.control-icon-btn:hover .control-flat-svg {
    stroke: #ffffff;
}

/* -------------------------------------------------------------
   SANCTUM (GARBHAGRIHA MANDAP - FULL SCREEN BACKGROUND)
   ------------------------------------------------------------- */
.mandap-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #0d0205 url('assets/Background.png') no-repeat center center / cover;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sanctum Container: Perfectly scaled stage overlay locking to Background.png (1677x938) */
.sanctum-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 55.933vw; /* (938 / 1677) * 100vw */
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

@media (max-aspect-ratio: 1677/938) {
    .sanctum-container {
        width: 178.78vh; /* (1677 / 938) * 100vh */
        height: 100vh;
    }
}

/* Shankha (Sacred Conch) Floating Widget */
.temple-shankha-container {
    position: absolute;
    top: 72px;
    right: 24px;
    z-index: 40;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    background: radial-gradient(circle, rgba(20, 4, 10, 0.85) 0%, rgba(15, 2, 6, 0.5) 75%, transparent 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(245, 158, 11, 0.2);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
    pointer-events: auto;
}

.temple-shankha-container:hover {
    transform: scale(1.08);
    border-color: rgba(254, 240, 138, 0.85);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.6);
}

.shankha-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 12px rgba(254, 240, 138, 0.5));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.temple-shankha-container:hover .shankha-img {
    transform: rotate(-10deg) scale(1.08);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 18px rgba(254, 240, 138, 0.8));
}

.temple-shankha-container.blowing .shankha-img {
    animation: blowShankhaAnim 3.2s ease-in-out;
}

@keyframes blowShankhaAnim {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.35) rotate(-16deg); filter: drop-shadow(0 0 35px rgba(254, 240, 138, 1)) drop-shadow(0 0 60px rgba(245, 158, 11, 0.95)); }
    50% { transform: scale(1.28) rotate(-12deg); filter: drop-shadow(0 0 45px rgba(254, 240, 138, 1)) drop-shadow(0 0 70px rgba(245, 158, 11, 1)); }
    75% { transform: scale(1.18) rotate(-6deg); filter: drop-shadow(0 0 28px rgba(245, 158, 11, 0.8)); }
    100% { transform: scale(1) rotate(0deg); }
}

.bell-label {
    background: rgba(10, 1, 4, 0.85);
    border: 1px solid #d97706;
    color: #fef08a;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Lord Ganesha Idol Placement on the Mantap Chowki */
.ganesha-idol-wrapper {
    position: absolute;
    left: 50%;
    bottom: 35.5%;
    transform: translateX(-50%);
    height: 48%;
    max-height: 520px;
    aspect-ratio: 1023 / 1537;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ganesha-idol-wrapper:hover {
    transform: translateX(-50%) scale(1.025);
}

.ganesha-idol-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    animation: gentleBreathe 4.5s ease-in-out infinite alternate;
}

@keyframes gentleBreathe {
    0% { transform: scale(1); }
    100% { transform: scale(1.012) translateY(-2px); }
}

/* Clean, Faded Divine Golden Aura (Halo) behind Lord Ganesha's Head */
.divine-aura {
    position: absolute;
    top: 23%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 252, 235, 0.9) 0%,
        rgba(254, 240, 138, 0.65) 22%,
        rgba(251, 191, 36, 0.32) 48%,
        rgba(245, 158, 11, 0.1) 70%,
        transparent 85%
    );
    filter: blur(18px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.88;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.divine-aura.pulse {
    animation: auraBurst 1.2s ease-out;
}

@keyframes auraBurst {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.88;
        filter: blur(18px);
    }
    40% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 1;
        filter: blur(24px);
        background: radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 245, 0.98) 0%,
            rgba(254, 240, 138, 0.8) 25%,
            rgba(251, 191, 36, 0.45) 50%,
            rgba(245, 158, 11, 0.15) 72%,
            transparent 88%
        );
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.88;
        filter: blur(18px);
    }
}

/* Interactive Bell Hotspots on the 3 Brass Hanging Bells in Background.png */
.bell-hotspot {
    position: absolute;
    width: 58px;
    height: 72px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 25;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.bell-hotspot.bell-left {
    left: 36.0%;
    top: 29.8%;
}

.bell-hotspot.bell-center {
    left: 49.8%;
    top: 31.4%;
}

.bell-hotspot.bell-right {
    left: 63.6%;
    top: 29.8%;
}

.bell-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.bell-hotspot:hover .bell-hotspot-hint {
    opacity: 1;
    transform: translateY(0);
}

.bell-hotspot.ringing {
    animation: bellSwingAnim 1.4s ease-in-out;
}

.bell-hotspot-ripple {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(254, 240, 138, 0.85);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.bell-hotspot.ringing .bell-hotspot-ripple {
    animation: bellRippleAnim 1.2s ease-out;
}

.bell-hotspot-hint {
    position: absolute;
    bottom: -18px;
    background: rgba(15, 2, 5, 0.88);
    border: 1px solid #f59e0b;
    color: #fef08a;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

@keyframes bellSwingAnim {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    15% { transform: translate(-50%, -50%) rotate(18deg) scale(1.08); }
    30% { transform: translate(-50%, -50%) rotate(-16deg) scale(1.08); }
    45% { transform: translate(-50%, -50%) rotate(12deg); }
    60% { transform: translate(-50%, -50%) rotate(-8deg); }
    75% { transform: translate(-50%, -50%) rotate(4deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes bellRippleAnim {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Living Flame Overlays on Standing Brass Samai & Table Diyas */
.samai-flame {
    position: absolute;
    width: 14px;
    height: 22px;
    transform: translate(-50%, -100%);
    background: radial-gradient(ellipse at bottom, #ffffff 0%, #fef08a 35%, #f59e0b 70%, transparent 95%);
    border-radius: 50% 50% 25% 25%;
    pointer-events: none;
    z-index: 15;
    box-shadow: 
        0 0 16px rgba(251, 191, 36, 0.9),
        0 0 32px rgba(249, 115, 22, 0.6);
    animation: flickerFlame 2.2s infinite ease-in-out alternate;
}

.samai-left {
    left: 31.6%;
    top: 62.4%;
}

.samai-right {
    left: 67.3%;
    top: 62.4%;
    animation-delay: 0.8s;
}

.altar-diya-flame {
    position: absolute;
    width: 9px;
    height: 15px;
    transform: translate(-50%, -100%);
    background: radial-gradient(ellipse at bottom, #ffffff 0%, #fef08a 40%, #f59e0b 80%, transparent 95%);
    border-radius: 50% 50% 30% 30%;
    pointer-events: none;
    z-index: 15;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.85);
    animation: flickerFlameSmall 1.8s infinite ease-in-out alternate;
}

.altar-flame-1 {
    left: 48.0%;
    top: 76.5%;
}

.altar-flame-2 {
    left: 50.0%;
    top: 76.5%;
    animation-delay: 0.5s;
}

.altar-flame-3 {
    left: 52.0%;
    top: 76.5%;
    animation-delay: 1.1s;
}

@keyframes flickerFlame {
    0% { transform: translate(-50%, -100%) scale(0.95, 0.95) rotate(-1deg); opacity: 0.85; filter: brightness(1); }
    50% { transform: translate(-50%, -100%) scale(1.1, 1.05) rotate(1.5deg); opacity: 1; filter: brightness(1.2); }
    100% { transform: translate(-50%, -100%) scale(0.9, 1.0) rotate(-0.5deg); opacity: 0.9; filter: brightness(0.95); }
}

@keyframes flickerFlameSmall {
    0% { transform: translate(-50%, -100%) scale(0.9) rotate(1deg); opacity: 0.8; }
    50% { transform: translate(-50%, -100%) scale(1.15) rotate(-1.5deg); opacity: 1; }
    100% { transform: translate(-50%, -100%) scale(0.95) rotate(0.5deg); opacity: 0.85; }
}

/* Agarbatti Smoke Origin at Altar Table */
.mantap-smoke-origin {
    position: absolute;
    left: 50.0%;
    top: 78.0%;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #f87171;
    z-index: 16;
}

.smoke-particle {
    position: fixed;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 22;
    animation: riseSmoke 2.6s linear forwards;
}

@keyframes riseSmoke {
    0% { transform: translateY(0) scale(0.8); opacity: 0.5; }
    50% { transform: translateY(-55px) translateX(12px) scale(2.2); opacity: 0.35; }
    100% { transform: translateY(-120px) translateX(-8px) scale(3.8); opacity: 0; }
}

/* -------------------------------------------------------------
   INTERACTIVE DRAGGABLE MANGALARATHI THALI
   ------------------------------------------------------------- */
.aarti-thali {
    position: fixed;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fffbeb 0%, #fef08a 22%, #f59e0b 55%, #b45309 85%, #78350f 100%);
    border: 3px solid #fef08a;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.85),
        0 0 35px rgba(245, 158, 11, 0.65),
        inset 0 0 16px rgba(254, 240, 138, 0.5);
    cursor: grab;
    touch-action: none;
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.aarti-thali:active {
    cursor: grabbing;
}

.aarti-thali.active-glow {
    box-shadow: 
        0 14px 40px rgba(0, 0, 0, 0.9),
        0 0 55px rgba(254, 240, 138, 1),
        0 0 90px rgba(249, 115, 22, 0.75);
}

.thali-rim-pattern {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(146, 64, 14, 0.75);
    pointer-events: none;
}

.thali-inner-plate {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(254, 240, 138, 0.6);
    background: radial-gradient(circle, rgba(254, 240, 138, 0.3) 0%, transparent 75%);
    pointer-events: none;
}

.aarti-camphor-flame {
    width: 24px;
    height: 42px;
    background: radial-gradient(ellipse at bottom, #fff 0%, #67e8f9 15%, #fbbf24 50%, #ea580c 85%, transparent 100%);
    border-radius: 50% 50% 25% 25%;
    box-shadow: 
        0 0 20px #f59e0b,
        0 0 40px #f97316;
    animation: diyaFlicker 0.1s infinite alternate;
    pointer-events: none;
    z-index: 2;
}

.flame-spark {
    position: fixed;
    width: 7px;
    height: 7px;
    background: #fef08a;
    border-radius: 50%;
    box-shadow: 0 0 10px #f59e0b;
    pointer-events: none;
    z-index: 39;
    animation: sparkFade 0.7s ease-out forwards;
}

@keyframes sparkFade {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-25px) scale(0); opacity: 0; }
}

/* Flying Prasad / Offerings with Flat Icons */
.flying-offering {
    position: fixed;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(18, 3, 8, 0.8) 100%);
    border: 1.5px solid #fef08a;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 16px rgba(245, 158, 11, 0.8);
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.1s ease;
}

.flying-offering svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Fullscreen Flower Shower Canvas */
#flowerCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 35;
}

/* -------------------------------------------------------------
   LUXURY FLOATING POOJA ACTION DOCK (BOTTOM TOOLBAR)
   ------------------------------------------------------------- */
.pooja-dock-wrapper {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
    padding: 0;
    pointer-events: auto;
    width: auto;
    max-width: 96vw;
}

.dock-action-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(14, 2, 7, 0.82);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(254, 240, 138, 0.28);
    border-radius: 22px;
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.88),
        0 0 28px rgba(245, 158, 11, 0.22),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    padding: 7px 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.dock-action-grid::-webkit-scrollbar {
    display: none;
}

.ritual-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(254, 240, 138, 0.18);
    color: #fef08a;
    padding: 6px 10px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    min-width: 58px;
    flex-shrink: 0;
}

.ritual-btn .btn-icon-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-flat-svg {
    width: 22px;
    height: 22px;
    stroke: #fef08a;
    color: #fef08a;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    transition: all 0.22s ease;
}

.ritual-btn:hover .dock-flat-svg {
    stroke: #ffffff;
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(254, 240, 138, 0.9));
}

.dock-shankha-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 6px rgba(254, 240, 138, 0.5));
    transition: transform 0.25s ease;
}

.ritual-btn .btn-title {
    font-size: 0.71rem;
    font-weight: 500;
    color: #fef3c7;
    transition: color 0.2s ease;
}

.ritual-btn:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(254, 240, 138, 0.65);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35), 0 0 12px rgba(254, 240, 138, 0.3);
}

.ritual-btn:hover .btn-icon-wrapper {
    transform: scale(1.15);
}

.ritual-btn:hover .btn-title {
    color: #ffffff;
}

.ritual-btn:active {
    transform: scale(0.94);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------------------
   MODALS (HUNDI / CHARITY / SANKALPA / CERTIFICATE)
   ------------------------------------------------------------- */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.custom-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    background: linear-gradient(180deg, #3b0918 0%, #1f0409 100%);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), var(--gold-glow);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-backdrop.active .modal-sheet {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
    padding-bottom: 12px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-flat-svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #fde68a;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: transform 0.2s ease;
}

.modal-close-btn:hover {
    transform: rotate(90deg);
    color: #ef4444;
}

/* Form Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.82rem;
    color: #fde68a;
    font-weight: 600;
}

.form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Primary Action Buttons */
.cta-primary-btn {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
    color: #24050d;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

/* Toast Notification */
.pooja-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: linear-gradient(135deg, rgba(88, 12, 31, 0.95) 0%, rgba(42, 5, 15, 0.95) 100%);
    border: 1.5px solid var(--gold-primary);
    color: #fef08a;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--gold-glow);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pooja-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE ADAPTATIONS)
   ------------------------------------------------------------- */
@media (max-width: 640px) {
    .brand-title {
        font-size: 0.98rem;
        padding: 5px 14px;
    }
    .temple-shankha-container {
        right: 12px;
        top: 65px;
        padding: 4px 8px;
    }
    .shankha-img {
        width: 48px;
        height: 48px;
    }
    .aarti-thali {
        width: 105px;
        height: 105px;
    }
    .dock-action-grid {
        gap: 5px;
        padding: 6px 8px;
    }
    .ritual-btn {
        padding: 5px 8px;
        min-width: 52px;
        font-size: 0.68rem;
    }
    .dock-flat-svg {
        width: 20px;
        height: 20px;
    }
}
