/* =========================================
   1. MASTER THEME & VARIABLES (Premium Gold)
   ========================================= */
:root {
    /* Naya Deep Gold - Jo yellowish nahi lagega */
    --gold-main: #d4af37;        
    --gold-light: #f9e29d;       
    --gold-dark: #aa891c;        
    --dark-bg: #05050a; 
    --card-bg: rgba(255, 255, 255, 0.03);
    --gold-glow: rgba(212, 175, 55, 0.3);
    --transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--dark-bg);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* =========================================
   2. TYPOGRAPHY (Metallic Gold Gradient)
   ========================================= */
.gold-text {
    font-family: 'Cinzel', serif;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* =========================================
   3. NAVIGATION (Fixed Header)
   ========================================= */
.main-header {
    background: rgba(10, 10, 20, 0.95);
    padding: 0 20px;
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    height: 75px;
}

.header-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: auto; height: 100%; gap: 10px;
}

.nav-logo-text {
    font-family: 'Cinzel'; color: var(--gold-main);
    font-size: 1.1rem; font-weight: bold; letter-spacing: 1px;
    text-decoration: none; white-space: nowrap;
}

#mobile-menu { cursor: pointer; font-size: 1.8rem; color: var(--gold-main); z-index: 1100; }

.nav-menu {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: #0a0a15; transition: 0.4s; z-index: 1050; padding: 40px 25px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8); border-left: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-menu.active { right: 0; }
.nav-menu ul { list-style: none; margin-top: 50px; }
.nav-menu ul li a {
    color: #fff; text-decoration: none; font-family: 'Cinzel';
    display: block; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s; font-size: 1rem;
}
.nav-menu ul li a:hover { color: var(--gold-main); padding-left: 10px; }

/* =========================================
   4. HERO SECTION & STARS (Compact & Clean)
   ========================================= */
#hero {
    position: relative; overflow: hidden;
    min-height: 70vh; /* Reduced Space */
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center;
    padding: 120px 20px 60px;
    background: radial-gradient(circle at center, #1a1a2e 0%, #05050a 100%) !important;
}

#hero::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, var(--gold-main), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 90px 40px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: starsMove 120s linear infinite;
    opacity: 0.5; z-index: 1; pointer-events: none;
}

@keyframes starsMove {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

.hero-content { position: relative; z-index: 10; width: 100%; max-width: 800px; }

/* =========================================
   5. DIVINE CARDS & GRIDS (Glassmorphism)
   ========================================= */
.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; max-width: 1200px; margin: 40px auto; padding: 0 20px;
}

.service-card {
    background: var(--card-bg) !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
    padding: 45px 25px !important;
    border-radius: 30px !important;
    text-align: center;
    transition: var(--transition) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px);
    position: relative; overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03) !important;
    border-color: var(--gold-main) !important;
    background: rgba(212, 175, 55, 0.05) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 20px var(--gold-glow) !important;
}

/* Price Card Specific Hover */
.price-card:hover { border-color: var(--gold-main) !important; }

/* =========================================
   6. DAILY INSIGHTS (Overlap Fix)
   ========================================= */
#daily-insights {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 80px auto !important; /* Fixed Gap */
    padding: 0 20px !important;
    position: relative !important; z-index: 5 !important; clear: both;
}

#daily-insights a { text-decoration: none; }
#daily-insights .service-card {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(10, 10, 20, 0.9)) !important;
    border: 1px solid var(--gold-main) !important;
}

/* =========================================
   7. FORMS & BUTTONS (Metallic Touch - FIXED)
   ========================================= */
.form-card {
    background: var(--card-bg); padding: 30px; border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15); max-width: 500px; margin: 40px auto;
}

.input-field {
    width: 100%; 
    padding: 16px; /* मोबाइल पर टाइप करने में आसानी के लिए थोड़ा बड़ा किया */
    margin: 10px 0 20px 0; 
    background: rgba(255, 255, 255, 0.08); /* 👈 हल्का सफ़ेद शीशे जैसा (Glass effect) */
    border: 1px solid rgba(212, 175, 55, 0.4); /* 👈 सुनहरा बॉर्डर ताकि डब्बा साफ़ दिखे */
    color: #fff; 
    border-radius: 10px; 
    font-family: 'Poppins', sans-serif;
    outline: none; 
    transition: 0.3s;
    -webkit-appearance: none; /* 👈 मोबाइल के अंधेरे शैडो को ब्लॉक करेगा */
    appearance: none;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Placeholder टेक्स्ट को थोड़ा साफ़ किया */
}

.input-field:focus { 
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-main); 
    box-shadow: 0 0 15px var(--gold-glow); 
}

/* 🔱 सुनहरे बटन का सुरक्षित कोड (इसे नहीं हटाना है) 🔱 */
.gold-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-main), var(--gold-light)) !important;
    color: #000 !important; padding: 15px; border: none !important;
    width: 100%; font-weight: bold; cursor: pointer; font-family: 'Cinzel';
    border-radius: 5px; transition: 0.3s;
}

.gold-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-main), var(--gold-dark)) !important;
    box-shadow: 0 0 20px var(--gold-glow);
}
/* 🔱 Grid Layout for Form (Time & Place) 🔱 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } } /* छोटे मोबाइल पर एक के नीचे एक */

/* =========================================
   8. PANCHANG UTILITIES
   ========================================= */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 20px; }
.calendar-day {
    aspect-ratio: 1/1; background: var(--card-bg); border: 1px solid rgba(212, 175, 55, 0.05);
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
    border-radius: 4px; transition: 0.3s;
}
.day-purnima { background: radial-gradient(circle, #fff, var(--gold-main)) !important; color: #000; font-weight: bold; }
.day-amavasya { background: #1a1a1a !important; border: 1px dashed var(--gold-main); }
.day-ekadashi { border: 1px solid var(--gold-main); box-shadow: inset 0 0 10px var(--gold-glow); }

/* =========================================
   9. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    #hero { padding: 100px 15px 40px; min-height: 60vh; }
    .nav-logo-text { font-size: 0.9rem; }
    .calendar-grid { gap: 4px; }
    .calendar-day { font-size: 0.75rem; }
}

/* =========================================
   DIVINE MINIMAL FOOTER STYLES
   ========================================= */
.main-footer {
    background: #05050a;
    padding: 80px 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.15); /* Sunehri border */
    margin-top: 60px;
}

.footer-brand {
    font-size: 2rem !important;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Shlok Styling */
.sanskrit-shlok {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.shlok-mean {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

/* Arattai Button Magic */
.arattai-link {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--gold-dark);
    border-radius: 50px;
    color: var(--gold-main);
    text-decoration: none;
    font-family: 'Cinzel';
    font-weight: bold;
    transition: all 0.4s ease;
    background: rgba(212, 175, 55, 0.03);
    letter-spacing: 1px;
}

.arattai-link:hover {
    background: var(--gold-main);
    color: #000;
    box-shadow: 0 0 25px var(--gold-glow);
    transform: translateY(-3px);
}

/* Legal Links */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--gold-main);
}

/* Bottom Copyright */
.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom p {
    color: var(--gold-dark);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Master Fix: Premium Banner Look & Click */
.event-sticker-link {
    display: block !important;
    text-decoration: none !important;
    margin: 20px auto !important;
    max-width: 95% !important;
    position: relative !important;
    z-index: 999 !important; /* Click Fix */
}

.sticker-wrap {
    background: #0a0a0a !important; /* Deep Black */
    border: 2px solid #d4af37 !important; /* Direct Gold Color */
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: row !important; /* Always horizontal */
    align-items: center !important;
    padding: 12px 20px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8) !important;
    cursor: pointer !important;
}

.live-tag {
    background: #d4af37 !important;
    color: #000 !important;
    padding: 4px 10px !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    margin-right: 15px !important;
    white-space: nowrap !important;
}

.sticker-center p {
    color: #fff !important;
    margin: 0 !important;
    font-family: 'Cinzel', serif !important;
    font-size: 1rem !important;
}

.sticker-right {
    margin-left: auto !important;
    color: #d4af37 !important;
}

/* Mobile responsive fix */
@media (max-width: 768px) {
    .sticker-center p { font-size: 0.85rem !important; }
    .sticker-wrap { padding: 10px 15px !important; }
}

/* =========================================
   10. AUTH & LOGIN DISPLAY (PREMIUM UPGRADE)
   ========================================= */

/* Desktop Layout */
@media screen and (min-width: 769px) {
    #user-display-desktop { 
        display: flex !important; 
        align-items: center; 
        gap: 15px; 
    }
    #user-display-mobile { display: none !important; }
}

/* Mobile Layout: Drawer ke andar login dikhane ke liye */
@media screen and (max-width: 768px) {
    #user-display-desktop { display: none !important; }
    
    #user-display-mobile { 
        display: flex !important; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
        margin-top: 25px;
        padding: 20px 0;
        border-top: 1px solid rgba(212, 175, 55, 0.2); 
        min-height: 50px; 
    }
    
    /* Mobile me buttons ek line me (row) dikhane ke liye */
    .mobile-auth-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

/* --- 1. Capsule Language Switcher --- */
.lang-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #888;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-main));
    color: #000;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* --- 2. The Royal Gold Login Button --- */
.auth-btn-divine {
    position: relative;
    padding: 10px 22px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
    border: none;
    border-radius: 5px;
    color: #000 !important;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.4s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.auth-btn-divine::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    transition: 0.6s;
    pointer-events: none;
}

.auth-btn-divine:hover::after {
    left: 100%;
}

.auth-btn-divine:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--gold-main);
}

/* --- 3. Minimal Logout Button --- */
.logout-btn-minimal {
    background: transparent;
    border: 1px dashed var(--gold-main);
    color: var(--gold-light);
    padding: 6px 12px;
    font-size: 10px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    letter-spacing: 2px;
}

.logout-btn-minimal:hover {
    opacity: 1;
    background: rgba(212, 175, 55, 0.1);
    border-style: solid;
}

/* User Name Welcome Text */
.user-welcome {
    font-size: 0.8rem;
    color: var(--gold-light);
    font-family: 'Cinzel';
    margin-right: 5px;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    padding-right: 10px;
}
/* FORCE DESKTOP AUTH VISIBILITY */
@media screen and (min-width: 769px) {
    #user-display-desktop {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999 !important; /* Kisi ke piche na chupe */
    }
}
/* =========================================
   🔱 DIVINE FLOATING BOT CSS
   ========================================= */
#divine-bot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

#floating-bot-btn {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--dark-bg), #1a1a2e);
    border: 2px solid var(--gold-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: 0.3s;
}

#floating-bot-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
}

.bot-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#divine-chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 320px;
    height: 450px;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--gold-main);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

#divine-chat-window.hidden {
    display: none;
}

.chat-header {
    background: linear-gradient(to right, #aa891c, #d4af37);
    color: #000;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

.close-chat {
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-msg, .user-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.bot-msg {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    border-left: 2px solid var(--gold-main);
    align-self: flex-start;
}

.user-msg {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    align-self: flex-end;
    border-right: 2px solid #fff;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: #05050a;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.chat-input-area button {
    background: transparent;
    border: none;
    color: var(--gold-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #divine-chat-window {
        width: 300px;
        right: -10px; /* Thoda adjust kiya screen ke hisaab se */
    }
}
