/* =========================================================
   GLOBAL RESET (PREMIUM LIGHT THEME)
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background: #FAFAFA; /* Soft White Background */
    color: #111111; /* Dark Black Text */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =========================================================
   ANIMATIONS (PRO LEVEL)
   ========================================================= */

@keyframes textFadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes statsFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   NAVBAR SECTION (TRANSPARENT TO YELLOW)
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 195, 0, 0.95); /* Premium Yellow */
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #111111; /* Default: dark text for light backgrounds */
    transition: color 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    color: #111111; /* Default: dark text for light backgrounds */
    font-weight: 500;
    transition: color 0.3s;
}

.home .navbar .logo,
.home .navbar .nav-links a {
    color: #ffffff; /* White text for dark hero */
}

/* On dark background, mobile button should be transparent/white icon */
.home .navbar:not(.scrolled) .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-links a:hover {
    color: #FFC300;
}

/* DROPDOWN MENU - Desktop Only */
.dropdown {
    position: relative;
}

/* Hide dropdown indicator on desktop */
.dropdown > a::after {
    display: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 180px;
    flex-direction: column;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-content a {
    padding: 12px 18px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    color: #111111 !important; /* Dropdown text hamesha black rahega */
}

.dropdown-content a:hover {
    background: #fafafa;
}

.btn-primary {
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    background: #111111;
    color: #ffffff;
    border: 1px solid #ffffff; /* Border thodi white ki hai taki dark bg pe button dikhe */
    transition: all 0.3s;
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

.navbar.scrolled .btn-primary {
    background: #ffffff;
    color: #111111;
    border: none;
}

/* =========================================================
   SCROLL HONE KE BAAD (YELLOW BACKGROUND PAR BLACK TEXT)
   ========================================================= */
.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: #111111; /* AFTER SCROLL: Perfect Black Text */
}

.navbar.scrolled .nav-links a:hover {
    color: #555555;
}

/* =========================================================
   MOBILE NAVIGATION (OFF-CANVAS SIDEBAR)
   ========================================================= */
.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #111111;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 1205; /* Above everything */
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    backdrop-filter: blur(4px); /* Increased blur for better look */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1100; /* Below navbar when open but above normal content */
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .logo {
        font-size: 18px; /* Slightly smaller logo for mobile */
    }
    
    .navbar {
        padding: 15px 0; /* Tighter padding for mobile */
    }
    
    .navbar.nav-open-active {
        z-index: 1200; /* Raise navbar when menu is open */
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 320px);
        height: 100dvh;
        background: #ffffff;
        border-left: 1px solid #ececec;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 100px 20px 40px; /* Better padding */
        transform: translateX(105%); /* Ensure it's fully off-screen */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1202;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links > li > a {
        display: flex;
        align-items: center;
        width: 100%;
        color: #111111 !important;
        padding: 12px 6px;
        border-bottom: 1px solid #f2f2f2;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        margin: 8px 0 10px;
        width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: flex;
    }

    .dropdown-content a {
        padding: 10px 12px;
    }

    .auth-buttons {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .auth-buttons .btn-primary {
        padding: 8px 12px;
        font-size: 12px;
    }

    .user-name {
        display: none; /* Hide "Hi, Dhiraj" text on mobile to save space */
    }

    .mobile-menu-btn {
        display: inline-flex;
    }
}
/* =========================================================
   HERO SECTION (DARK THEME + INTERACTIVE CANVAS)
   ========================================================= */
.hero-section {
    position: relative;
    width: 100%;
    padding: 70px 0 360px 0; /* Title ko upar center mein rakhne ke liye */
    background: #0b0f19;
    overflow: hidden;
}

#particle-repel-canvas {
    filter: contrast(1.1) brightness(1.1);  /* Makes colors pop */
    background: radial-gradient(circle at 50% 100%, #001533 0%, #000205 100%);
}

/* =========================================================
   HERO TEXT (CENTERED ON DARK BACKGROUND)
   ========================================================= */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    pointer-events: none; /* ✨ MAGIC: Taki text mouse repel ko roke nahi */
}

.hero-motive {
    display: inline-block;
    color: #FFC300;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1); /* Dark theme ke liye subtle bg */
    border: 1px solid rgba(255, 195, 0, 0.3);
    padding: 6px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-title {
    font-size: 3.8rem; 
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #ffffff; /* ✨ White text for Dark Theme */
    text-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Shadow adjusted for dark */
}

.hero-title span {
    color: #FFC300;
    text-shadow: 0 0 15px rgba(255, 195, 0, 0.4); /* Glow effect */
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #A0AEC0; /* ✨ Light gray text for readability */
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

/* (Animation version removed, using IntersectionObserver + transition) */
/* =========================================================
   BIG PROFESSIONAL ZODIAC ICONS (GUARANTEED CSS MARQUEE)
   ========================================================= */

.zodiac-marquee-container {
    position: absolute;
    bottom: -20px; /* ✨ NEW: Icons ab cards se 140px UPAR float karenge */
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 20;
    padding: 5px 0;
    pointer-events: auto;
}

.zodiac-track {
    display: inline-flex;
    gap: 25px;
    width: max-content;
    /* MAGIC FIX: Pure CSS Animation (Kabhi fail nahi hogi) */
    animation: proMarqueeScroll 40s linear infinite; 
}

/* Hover karne par ghoomna ruk jayega */
.zodiac-track:hover {
    animation-play-state: paused;
}

/* Right to Left movement */
@keyframes proMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.zodiac-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px; /* Thoda optimize kiya taaki screen pe fit ho */
    height: 150px;
    background: rgba(255, 255, 255, 0.7); 
    border: 1px solid rgba(255, 195, 0, 0.3);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* REDUCED ZOOM EFFECT ON HOVER */
.zodiac-item:hover {
    transform: scale(1.05) translateY(-8px); /* ✨ Zoom aur upar uthna kam kar diya */
    background: #FFC300;
    border-color: #FFC300;
    box-shadow: 0 15px 30px rgba(255, 195, 0, 0.3); /* ✨ Shadow bhi thodi soft kardi */
    z-index: 30; 
}

.z-icon {
    font-size: 55px; 
    color: #FFC300;
    margin-bottom: 12px;
    transition: color 0.3s;
    line-height: 1;
}

.z-name {
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.zodiac-item:hover .z-icon, 
.zodiac-item:hover .z-name {
    color: #111111; 
}

/* =========================================================
   OVERLAP FIX FOR SERVICES SECTION
   ========================================================= */
.overlap-services-section {
    position: relative;
    z-index: 30; 
    margin-top: -100px; /* ✨ NEW: Ab cards thode niche rahenge aur safe rahenge */
    padding-bottom: 80px;
    background: transparent; 
}
/* YAHAN TAK PASTE KAREIN */

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 120px 0 200px 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 14px; }
    .zodiac-marquee-container { bottom: 20px; }
    .zodiac-item { width: 120px; height: 110px; }
    .z-icon { font-size: 40px; }
    .z-name { font-size: 12px; }
    .overlap-services-section { margin-top: 20px; } /* Mobile pe overlap khatam */
}
/* YAHAN TAK PASTE KAREIN */

/* =========================================================
   OVERLAPPING MINI CARDS SECTION
   ========================================================= */

.overlap-services-section {
    position: relative;
    margin-top: -50px; 
    z-index: 20; 
    padding-bottom: 80px;
}

.overlap-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .overlap-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .overlap-cards-grid {
        grid-template-columns: 1fr;
    }
}

.mini-glass-card {
    background: #ffffff; 
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mini-glass-card:hover {
    transform: translateY(-8px);
    border-color: #FFC300;
    box-shadow: 0 20px 40px rgba(255, 195, 0, 0.15);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    font-size: 1.5rem;
    color: #FFC300;
}

.mini-glass-card h4 {
    font-size: 1.2rem;
    color: #111111;
    font-weight: 600;
    
    
}

.mini-glass-card p {
    font-size: 0.9rem; 
    color: #555555;
    line-height: 1.5;
    margin-bottom:1px;
}

.card-link {
    font-size: 0.85rem;
    color: #FFC300;
    font-weight: 600;
    transition: color 0.3s;
}

.mini-glass-card:hover .card-link {
    color: #111111;
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */

.services-section {
    padding: 110px 0;
    background: #ffffff; /* White bg */
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #111111;
    margin-bottom: 12px;
}

.section-title span {
    color: #FFC300;
}

.section-desc {
    text-align: center;
    font-size: 15px;
    color: #555555;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 30px;
    border-radius: 14px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.card-icon {
    font-size: 22px;
    margin-bottom: 14px;
    color: #FFC300;
}

.service-card h3 {
    font-size: 18px;
    color: #111111;
    margin-bottom: 10px;
}

.service-card p {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

.card-link {
    font-size: 13px;
    margin-top: auto;
    color: #FFC300;
    font-weight: 600;
}

/* =========================================================
   AUTH MODAL (POPUP) - LIGHT THEME
   ========================================================= */

.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px); 
    display: none; 
    justify-content: center; align-items: center;
    z-index: 1200 !important; 
}

.auth-overlay.show { display: flex !important; }

/* Footer stays visible and in layout when modal opens - NO COLLAPSE */
.auth-overlay.show ~ .astro-premium-footer {
    pointer-events: none !important;
}

.auth-container {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    width: 90%; max-width: 400px;
    padding: 35px; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    animation: modalPop 0.3s ease-out; 
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 25px; color: #111111; cursor: pointer;
    transition: color 0.3s;
}
.close-modal:hover { color: #FFC300; }

.auth-toggle {
    display: flex; background: #f0f0f0;
    border-radius: 50px; padding: 5px; margin-bottom: 25px;
}

.tgl-btn {
    flex: 1; border: none; background: none; color: #555555;
    padding: 10px; border-radius: 50px; font-weight: 600;
    cursor: pointer; transition: 0.3s;
}

.tgl-btn.active { background: #ffffff; color: #111111; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.auth-form-content { display: none; }
.auth-form-content.active { display: block !important; }

.form-input { margin-bottom: 15px; }
.form-input input {
    width: 100%; padding: 14px; border-radius: 8px;
    background: #fafafa; border: 1px solid #dddddd;
    color: #111111; outline: none; font-size: 14px;
}
.form-input input:focus { border-color: #FFC300; background: #ffffff; }

.otp-wrap { display: flex; gap: 10px; }
.otp-btn {
    background: #f0f0f0; border: 1px solid #dddddd;
    color: #111111; border-radius: 8px; padding: 0 15px; 
    cursor: pointer; font-size: 12px; font-weight: 600;
}

.submit-btn {
    width: 100%; padding: 14px; border: none; border-radius: 8px;
    background: #FFC300; color: #111111; font-weight: 700; 
    font-size: 15px; cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.submit-btn:hover { background: #e6b000; transform: translateY(-2px); }

/* ==========================================
   ABOUT SECTION - ZODIAC WHEEL
   ========================================== */
.about-section {
    padding: 80px 0; background: #FAFAFA; position: relative; overflow: hidden; z-index: 10;
}

.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }

.about-graphic {
    position: relative; width: 100%; max-width: 450px; aspect-ratio: 1/1; 
    margin: 0 auto; display: flex; justify-content: center; align-items: center;
}

#about-webgl-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none; border-radius: 50%; overflow: hidden;
}

/* Light theme yellow glow behind wheel */
.purple-nebula-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 195, 0, 0.2) 0%, rgba(255, 195, 0, 0.05) 50%, transparent 80%);
    z-index: 2; border-radius: 50%; filter: blur(20px);
}

.zodiac-svg-wrapper { position: absolute; width: 100%; height: 100%; z-index: 3; }
.sacred-wheel { width: 100%; height: 100%; animation: rotateSlowly 60s linear infinite; }
.wheel-ring { fill: none; stroke: rgba(0, 0, 0, 0.1); stroke-width: 1.5; }
.geometry-lines polygon { fill: none; stroke: rgba(0, 0, 0, 0.05); stroke-width: 1; }
.core-rays line { stroke: rgba(0, 0, 0, 0.1); stroke-width: 1.5; }

/* Zodiac Symbols Styling */
.zodiac-symbols text {
    fill: #111111; font-size: 28px; font-family: Arial, sans-serif;
    animation: counterRotate 60s linear infinite; transform-origin: center; transform-box: fill-box;
}

@keyframes rotateSlowly { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes counterRotate { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.section-tag { color: #555555; text-transform: uppercase; font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; display: block; font-weight: 700; }
.section-desc { color: #555555; font-size: 15px; line-height: 1.7; margin-bottom: 30px; }

.pillar-list { list-style: none; margin-bottom: 35px; }
.pillar-list li { margin-bottom: 18px; padding-left: 20px; position: relative; }
.pillar-list li::before { content: "✦"; position: absolute; left: 0; top: 0; color: #FFC300; font-size: 14px; }
.pillar-list li strong { color: #111111; font-size: 15px; display: block; margin-bottom: 3px; }
.pillar-list li span { color: #555555; font-size: 14px; line-height: 1.5; }

.about-cta {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px;
    background: #ffffff; border: 1px solid #eeeeee; color: #111111;
    border-radius: 50px; font-weight: 600; transition: 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.about-cta:hover { background: #FFC300; border-color: #FFC300; transform: translateY(-2px); }

/* ==========================================
   ABOUT SECTION - MOBILE FIXES
   ========================================== */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-graphic {
        max-width: 320px;
        margin: 0 auto 30px auto;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-section .section-tag,
    .about-section .section-desc,
    .about-section .about-cta {
        text-align: center;
    }

    .about-cta {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================
   KUNDLI MAGNET SECTION
   ========================================== */
.kundli-magnet-section {
    position: relative; padding: 100px 20px; background: #ffffff; min-height: 600px;
    display: flex; justify-content: center; align-items: center; overflow: hidden; z-index: 10;
}

#kundli-webgl-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.relative-z { position: relative; z-index: 5; width: 100%; max-width: 850px; margin: 0 auto; }

.glass-magnet-card {
    background: rgba(255, 255, 255, 0.9); border: 1px solid #eeeeee;
    border-radius: 20px; padding: 50px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.magnet-header { text-align: center; margin-bottom: 40px; }
.magnet-header h2 { font-size: 2.4rem; color: #111111; margin-bottom: 12px; font-weight: 700; }
.magnet-header h2 span { color: #FFC300; }
.magnet-header p { color: #555555; font-size: 15px; line-height: 1.6; }

.form-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-bottom: 30px; }
.input-wrapper { display: flex; flex-direction: column; }
.input-wrapper label { color: #555555; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 600; }
.input-wrapper input { width: 100%; background: #fafafa; border: 1px solid #dddddd; color: #111111; padding: 14px 16px; border-radius: 10px; font-size: 15px; outline: none; transition: 0.3s ease; }
.input-wrapper input:focus { border-color: #FFC300; background: #ffffff; }

.magnet-submit-btn {
    width: 100%; background: #FFC300; color: #111111; border: none; padding: 16px;
    border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s ease;
}
.magnet-submit-btn:hover { transform: translateY(-2px); background: #e6b000; box-shadow: 0 10px 20px rgba(255, 195, 0, 0.3); }

/* ==========================================
   WHY TRUST US SECTION
   ========================================== */
.trust-section { padding: 80px 0; background: #FAFAFA; position: relative; border-top: 1px solid #eeeeee; }
.trust-header { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.trust-subtitle { color: #555555; font-size: 15px; line-height: 1.6; margin-top: 12px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1050px; margin: 0 auto; }

.trust-card {
    background: #ffffff; border: 1px solid #eeeeee; border-radius: 16px; padding: 30px 25px;
    position: relative; overflow: hidden; transform-style: preserve-3d; transition: 0.4s ease; 
}
.trust-card:hover { border-color: #FFC300; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); transform: translateY(-5px); }
.trust-card * { position: relative; z-index: 1; transform: translateZ(20px); }

.card-icon-box {
    width: 50px; height: 50px; background: rgba(255, 195, 0, 0.1); border: 1px solid rgba(255, 195, 0, 0.3);
    border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; transition: 0.3s;
}
.trust-card:hover .card-icon-box { transform: scale(1.1) rotate(5deg) translateZ(30px); background: #FFC300; }
.card-icon-box .icon { font-size: 22px; color: #111; }
.trust-card h3 { color: #111111; font-size: 18px; margin-bottom: 12px; font-weight: 700;}
.trust-card p { color: #555555; font-size: 14px; line-height: 1.6; }
.trust-card strong { color: #FFC300; }

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta-section {
    position: relative; padding: 100px 20px; background: #ffffff;
    text-align: center; overflow: hidden; border-top: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
}
.cta-cosmic-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 195, 0, 0.1) 0%, transparent 60%);
    pointer-events: none; z-index: 1;
}
.cta-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 5; }
.final-cta-section h2 { font-size: 3.2rem; color: #111111; margin-bottom: 20px; line-height: 1.2; font-weight: 800; }
.final-cta-section h2 span { color: #FFC300; }
.final-cta-section p { color: #555555; font-size: 18px; margin-bottom: 40px; line-height: 1.7; max-width: 600px; margin-left: auto; margin-right: auto; }

.primary-glow-btn {
    background: #FFC300; color: #ffffff; border: none; padding: 18px 45px; border-radius: 50px;
    font-size: 18px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.primary-glow-btn:hover { background: #FFC300; color: #111; transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 35px rgba(255, 195, 0, 0.3); }

/* ==========================================
   PREMIUM YELLOW FOOTER
   ========================================== */
.astro-premium-footer {
    position: relative; background: #FAFAFA; padding: 40px 0 15px 0; /* Reduced from 60px 0 20px 0 */
    overflow: hidden; border-top: 1px solid #eeeeee;
}
#footer-cosmic-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.5; }
.footer-content-wrapper { position: relative; z-index: 10; }

.footer-main-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
    background: #FFC300; padding: 40px; border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 195, 0, 0.2);
    position: relative; /* Wave ko contain karne ke liye zaroori */
    overflow: hidden;   /* Isse wave gol box (rounded corners) ke bahar nahi jayegi */
    width: 100%;
    box-sizing: border-box;
}

/* Ensure text is always above the wave */
.footer-brand-info, .footer-links-group {
    position: relative;
    z-index: 2; 
}

.footer-brand-info h2 { color: #111111; font-size: 28px; margin-bottom: 12px; font-weight: 800; letter-spacing: -0.5px; }
.footer-brand-info p { color: #222222; font-size: 15px; line-height: 1.6; margin-bottom: 20px; max-width: 350px; font-weight: 500;}

.trust-marks { display: flex; gap: 10px; }
.trust-marks span {
    font-size: 11px; color: #111111; font-weight: 600;
    background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 10px; border-radius: 6px;
}

.footer-links-group h4 { color: #111111; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-weight: 800;}
.clean-links { list-style: none; padding: 0; margin: 0; }
.clean-links li { margin-bottom: 12px; }
.clean-links li a { color: #222222; font-size: 14px; text-decoration: none; transition: 0.3s; font-weight: 500;}
.clean-links li a:hover { color: #000000; margin-left: 5px; font-weight: 700;}

.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #dddddd; padding-top: 20px; }
.copyright-left { color: #555555; font-size: 13px; font-weight: 500;}
.credit-right { color: #555555; font-size: 13px; font-weight: 500;}
.credit-right a { color: #FFC300; text-decoration: none; font-weight: 700; letter-spacing: 0.5px; transition: 0.3s ease; }
.credit-right a:hover { color: #111111; }

/* =========================================================
   RESPONSIVE FIXES (GLOBAL)
   ========================================================= */
@media(max-width:1000px){
    .hero-title{ font-size:2rem; }
    .services-grid{ grid-template-columns:repeat(2,1fr); }
    .hero-stats{ gap: 40px; }
    .overlap-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .overlap-services-section { margin-top: -80px; }
    .footer-main-grid { grid-template-columns: 1fr; text-align: center; padding: 30px 20px; }
    .footer-brand-info p { margin: 0 auto 20px auto; }
    .trust-marks { justify-content: center; }
    .footer-bottom-bar { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 20px;
    }

    .auth-buttons .btn-primary {
        padding: 8px 15px;
        font-size: 13px;
        border-radius: 8px;
    }

    .mobile-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .form-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .glass-magnet-card {
        padding: 30px 20px;
    }

    .magnet-header h2 {
        font-size: 1.8rem;
    }

    .final-cta-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .overlap-cards-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}



/* COSMIC JOURNEY TIMELINE SECTION */ */

.astro-journey-section {
    padding: 120px 0;
    background: #FAFAFA; /* Premium off-white background */
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
}

.astro-journey-header {
    text-align: center;
    margin-bottom: 80px;
}

.astro-tag {
    color: #FFC300;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.astro-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.astro-title span { 
    color: #FFC300; 
}

.astro-desc {
    font-size: 16px;
    color: #555555;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- TIMELINE STRUCTURE --- */
.astro-timeline {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

/* The Center Vertical Line */
.astro-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(255, 195, 0, 0.3); /* Subtle yellow line */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* Individual Timeline Box Wrapper */
.astro-time-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.astro-left { 
    left: 0; 
}

.astro-right { 
    left: 50%; 
}

/* --- TIMELINE ICONS (Centered on Line) --- */
.astro-icon {
    position: absolute;
    width: 55px;
    height: 55px;
    right: -27.5px; /* Exact half of width to center it */
    background-color: #ffffff;
    border: 4px solid #FFC300;
    top: 20px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(255, 195, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.astro-right .astro-icon {
    left: -27.5px;
}

.astro-time-item:hover .astro-icon {
    transform: scale(1.15);
    background-color: #FFC300;
}

/* --- THE CARD DESIGN --- */
.astro-content {
    padding: 35px;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.astro-time-item:hover .astro-content {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 195, 0, 0.15);
    border-color: #FFC300;
}

.astro-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 12px;
}

.astro-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 0;
}

/* --- DROPDOWN (ACCORDION) BUTTON --- */
.astro-drop-btn {
    background: none;
    border: none;
    color: #FFC300;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.astro-drop-btn:hover { 
    color: #111111; 
}

.astro-drop-btn .arrow {
    font-size: 11px;
    transition: transform 0.4s ease;
}

.astro-drop-btn.open .arrow {
    transform: rotate(180deg);
}

/* --- HIDDEN DETAILS --- */
.astro-hidden-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
}

.astro-hidden-details.open {
    max-height: 300px; /* Provides enough room for text */
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #dddddd;
}

.astro-hidden-details p {
    font-size: 14px;
    color: #444444;
    line-height: 1.7;
}

/* --- FADE IN ANIMATION (Consolidated) --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   MOBILE RESPONSIVE (Single Column Layout)
   ========================================================= */
@media screen and (max-width: 900px) {
    .astro-title { font-size: 2.6rem; }
    .astro-time-item { padding: 10px 30px; }
}

@media screen and (max-width: 768px) {
    .astro-journey-section { padding: 80px 0; }
    .astro-title { font-size: 2.2rem; }
    
    /* Move the line to the left edge */
    .astro-timeline::after { 
        left: 30px; 
    }
    
    /* Make all cards take full width */
    .astro-time-item { 
        width: 100%; 
        padding-left: 80px; 
        padding-right: 15px; 
    }
    
    /* Reset left positioning */
    .astro-left, .astro-right { 
        left: 0; 
    }
    
    /* Position all icons on the left line */
    .astro-left .astro-icon, .astro-right .astro-icon { 
        left: 5px; 
        right: auto; 
    }
}
/* =========================================================
   DASHBOARD SPECIFIC STYLES (GRAND LEVEL UI)
   ========================================================= */

.dashboard-bg {
    background-color: #f0f2f5; /* Premium soft background */
    padding-top: 100px;
}

.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
}

/* --- LOGGED-IN NAVBAR OVERRIDES --- */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 5px 15px 5px 5px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.profile-trigger:hover {
    border-color: #FFC300;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.text-xs { font-size: 10px; color: #888; }

.profile-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #ffffff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #eeeeee;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1004;
}
.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.profile-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.3s;
}
.profile-menu a:hover { background: #fffcf0; color: #FFC300; }
.profile-menu a i { width: 20px; color: #888; }
.profile-menu a:hover i { color: #FFC300; }
.profile-menu .divider { border-bottom: 1px solid #eee; margin: 5px 0; }
.profile-menu .logout-link { color: #e74c3c; }
.profile-menu .logout-link i { color: #e74c3c; }
.profile-menu .logout-link:hover { background: #fdf2f0; color: #c0392b; }

/* --- TOP ROW: WELCOME & WALLET --- */
.dash-top-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.welcome-widget {
    background: linear-gradient(120deg, #ffffff 0%, #fffcf0 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #fcebb6;
    box-shadow: 0 10px 30px rgba(255, 195, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.welcome-header h1 { font-size: 28px; font-weight: 800; color: #111; margin-bottom: 10px; }
.welcome-header h1 span { color: #FFC300; }
.welcome-header p { font-size: 15px; color: #555; max-width: 600px; line-height: 1.6; }
.current-date {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    white-space: nowrap;
}
.current-date i { color: #FFC300; margin-right: 5px; }

/* The Wallet Widget (Dark Premium UI) */
.wallet-widget {
    background: #111111;
    border-radius: 20px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.wallet-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: #FFC300; }
.wallet-status { color: #2ecc71; font-size: 12px; }
.wallet-balance { margin: 20px 0; }
.wallet-balance h2 { font-size: 38px; font-weight: 800; margin-bottom: 5px; color: #fff; }
.wallet-balance p { font-size: 13px; color: #888; }
.add-funds-btn {
    background: #FFC300;
    color: #111;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.add-funds-btn:hover { background: #ffffff; }
/* --- MIDDLE ROW: 4 PILLARS GRID --- */
.dash-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Updated for 4 pillars */
    gap: 24px; /* Slightly reduced gap to perfectly fit 4 columns */
    margin-bottom: 40px;
}

.pillar-card {
    background: #ffffff;
    border-radius: 24px; /* Slightly rounder edges for a modern premium look */
    padding: 30px 24px; /* Adjusted padding for the new width */
    border: 1px solid rgba(0, 0, 0, 0.04); /* Softer, premium border */
    box-shadow: 0 12px 35px rgba(0,0,0,0.04); /* Deeper, softer shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Premium smooth bounce effect */
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 195, 0, 0.15); /* Richer gold glow on hover */
    border-color: rgba(255, 195, 0, 0.4);
}

.pillar-icon {
    width: 56px; height: 56px; /* Scaled down slightly to fit perfectly */
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
}

.astrology-icon { background: #fffdf0; color: #f39c12; }
.puja-icon { background: #fdf0f0; color: #e74c3c; }
.matrimony-icon { background: #f4f0fd; color: #9b59b6; }
/* Naya 4th icon class aap yahan add kar sakte hain (e.g., .gemstone-icon) */

.pillar-card h3 { 
    font-size: 19px; 
    font-weight: 800; 
    color: #111; 
    margin-bottom: 10px; 
}

.pillar-card p { 
    font-size: 14px; 
    color: #666; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    flex-grow: 1; 
}

.pillar-status {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pillar-status.success { background: #e8f8f5; color: #27ae60; }
.pillar-status.pending { background: #fdf2e9; color: #e67e22; }
.pillar-status.warning { background: #f9ebea; color: #e74c3c; }

.pillar-action-btn {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #111;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.pillar-card:hover .pillar-action-btn {
    background: #FFC300;
    border-color: #FFC300;
    color: #000;
}

/* --- RESPONSIVE MEDIA QUERIES (Important for 4 columns) --- */
@media (max-width: 1200px) {
    .dash-pillars-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablets/Small Laptops par 2-2 ka grid banega */
    }
}

@media (max-width: 768px) {
    .dash-pillars-grid {
        grid-template-columns: 1fr; /* Mobiles par ek ke neeche ek aayega */
    }
}
/* --- BOTTOM ROW: ALERTS & MATCHES --- */
.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.action-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.widget-head h4 { font-size: 18px; font-weight: 800; color: #111; display: flex; align-items: center; gap: 10px; }
.widget-head h4 i { color: #FFC300; }
.view-all { font-size: 13px; font-weight: 600; color: #3498db; }

/* Alert Boxes (MVP 5 - Monetization) */
.alert-box {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-radius: 12px; margin-bottom: 15px;
    border: 1px solid #eee; background: #fafafa;
}
.alert-box.critical { border-left: 4px solid #e74c3c; }
.alert-box.info { border-left: 4px solid #f39c12; }
.alert-text h5 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 5px; }
.alert-text p { font-size: 13px; color: #666; margin: 0; }

.pay-action-btn {
    background: #111; color: #FFC300; border: none; padding: 10px 20px;
    border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.3s;
    white-space: nowrap;
}
.pay-action-btn:hover { background: #FFC300; color: #111; }
.pay-action-btn.outline { background: transparent; border: 1px solid #111; color: #111; }
.pay-action-btn.outline:hover { background: #111; color: #FFC300; }

/* Match List Items (MVP 10 & 11) */
.match-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; border-radius: 12px; margin-bottom: 15px;
    border: 1px solid #eee; transition: 0.3s;
}
.match-list-item:hover { border-color: #FFC300; background: #fffcf0; }
.match-avatar.blur-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: #ddd; display: flex; align-items: center; justify-content: center;
    color: #888; font-size: 20px; border: 2px dashed #ccc;
}
.match-details { flex-grow: 1; margin-left: 15px; }
.match-details h5 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 3px; }
.match-details p { font-size: 13px; color: #555; margin: 0; }
.match-details strong { color: #27ae60; }

/* --- RESPONSIVE DASHBOARD --- */
@media screen and (max-width: 1024px) {
    .dash-top-row { grid-template-columns: 1fr; }
    .dash-pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-split-grid { grid-template-columns: 1fr; }
    .welcome-header { flex-direction: column; gap: 20px; }
    .dash-card-glass { padding: 20px; }
}

@media screen and (max-width: 768px) {
    .dashboard-wrapper { padding: 20px 15px 60px 15px; }
    .dash-pillars-grid { grid-template-columns: 1fr; }
    .welcome-header h1 { font-size: 24px; }
    .wallet-balance h2 { font-size: 34px; }
    .circular-progress { height: 120px; width: 120px; }
    .inner-circle { height: 90px; width: 90px; }
    .progress-value { font-size: 22px; }
    .dash-top-row, .dash-pillars-grid, .dash-split-grid { gap: 20px; }
}
/* =========================================================
   GRAND LEVEL DASHBOARD UI (UPGRADED VERSION 2.0)
   ========================================================= */

/* --- GLOBAL DASHBOARD SETTINGS --- */
.dashboard-bg {
    background-color: #f4f6f9; /* Premium soft grayish-white */
    padding-top: 100px; /* Space for fixed navbar */
    font-family: 'Inter', sans-serif;
}

.dashboard-wrapper {
    max-width: 1200px; /* Perfect Alignment with Navbar & Footer */
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
    overflow-x: hidden;
}

/* --- ADVANCED ANIMATIONS (NEW) --- */
@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

@keyframes shineSweep {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- COMMON CARD STYLES (PREMIUM GLASS & SHADOW) --- */
.dash-card-glass {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.dash-card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(255, 195, 0, 0.15);
    border-color: #FFC300;
}

/* --- TOP ROW: WELCOME & WALLET --- */
.dash-top-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.welcome-widget {
    background: linear-gradient(135deg, #ffffff 0%, #fffcf0 100%);
    border: 1px solid #fcebb6;
}
.welcome-widget::before {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); animation: shineSweep 6s infinite; z-index: 1;
}
.welcome-header { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.welcome-header h1 { font-size: 28px; font-weight: 800; color: #111; margin-bottom: 10px; letter-spacing: -0.5px; }
.welcome-header h1 span { color: #FFC300; }
.welcome-header p { font-size: 15px; color: #555; max-width: 600px; line-height: 1.6; margin: 0; }
.current-date { background: #fff; padding: 10px 20px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #333; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.03); white-space: nowrap; }
.current-date i { color: #FFC300; margin-right: 5px; }

/* Dark Premium Wallet */
.wallet-widget {
    background: #111111; color: #ffffff; border: none; box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.wallet-widget:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(0,0,0,0.3); border-color: transparent; }
.wallet-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: #FFC300; margin-bottom: 20px; }
.wallet-status { color: #2ecc71; font-size: 12px; }
.wallet-balance h2 { font-size: 40px; font-weight: 800; margin-bottom: 5px; color: #fff; letter-spacing: -1px; }
.wallet-balance p { font-size: 13px; color: #888; margin-bottom: 20px; }
.add-funds-btn { width: 100%; padding: 14px; border-radius: 10px; background: #FFC300; color: #111; font-weight: 800; font-size: 14px; border: none; cursor: pointer; transition: 0.3s; }
.add-funds-btn:hover { background: #ffffff; transform: scale(1.02); }

/* --- MIDDLE ROW: 4 MAIN PILLARS (UPDATED FOR GEMSTONE) --- */
.dash-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns Set */
    gap: 20px; /* Gap slightly reduced so 4 cards fit easily */
    margin-bottom: 30px;
}

.pillar-card { 
    display: flex; 
    flex-direction: column; 
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 20px; /* Padding adjusted for 4 columns */
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(255, 195, 0, 0.15);
    border-color: #FFC300;
}

.pillar-icon {
    width: 55px; height: 55px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px; transition: transform 0.4s ease;
}

.pillar-card:hover .pillar-icon { animation: floatIcon 2s infinite ease-in-out; }

/* Icons Colors */
.astrology-icon { background: #fffcf0; color: #f39c12; }
.puja-icon { background: #fdf0f0; color: #e74c3c; }
.matrimony-icon { background: #f4f0fd; color: #9b59b6; }
.gemstone-icon { background: #e8f8f5; color: #27ae60; } /* Naya Gemstone Icon Theme */

.pillar-card h3 { font-size: 17px; font-weight: 800; color: #111; margin-bottom: 10px; }
.pillar-card p { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; }

.pillar-status { padding: 8px 12px; border-radius: 8px; font-size: 11px; font-weight: 700; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 6px; }
.pillar-status.success { background: #e8f8f5; color: #27ae60; }
.pillar-status.pending { background: #fdf2e9; color: #e67e22; }
.pillar-status.warning { background: #f9ebea; color: #c0392b; }

.pillar-action-btn { text-align: center; padding: 12px; background: #f8f9fa; border: 1px solid #ddd; border-radius: 12px; color: #111; font-weight: 700; font-size: 13px; transition: 0.3s; }
.pillar-card:hover .pillar-action-btn { background: #FFC300; border-color: #FFC300; color: #111; box-shadow: 0 5px 15px rgba(255, 195, 0, 0.3); }
/* --- SPLIT GRIDS FOR BOTTOM ROWS --- */
.dash-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Common Widget Head */
.widget-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.widget-head h4 { font-size: 18px; font-weight: 800; color: #111; display: flex; align-items: center; gap: 10px; }
.widget-head h4 i { color: #FFC300; font-size: 20px; }
.view-all { font-size: 13px; font-weight: 700; color: #3498db; text-decoration: none; transition: color 0.3s; }
.view-all:hover { color: #FFC300; }

/* Dosha & Matches Alerts */
.alert-box { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-radius: 12px; margin-bottom: 15px; border: 1px solid #eee; background: #fafafa; transition: 0.3s; }
.alert-box:hover { background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.alert-box.critical { border-left: 4px solid #e74c3c; }
.alert-box.info { border-left: 4px solid #f39c12; }
.alert-text h5 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 5px; }
.alert-text p { font-size: 13px; color: #666; margin: 0; }
.pay-action-btn { background: #111; color: #FFC300; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.pay-action-btn:hover { background: #FFC300; color: #111; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 195, 0, 0.4); }
.pay-action-btn.outline { background: transparent; border: 1px solid #111; color: #111; }
.pay-action-btn.outline:hover { background: #111; color: #FFC300; border-color: #111; }

/* Match List */
.match-list-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 1px solid #eee; transition: 0.3s; background: #fff; }
.match-list-item:hover { border-color: #FFC300; box-shadow: 0 5px 15px rgba(255, 195, 0, 0.1); transform: translateX(5px); }
.match-avatar.blur-avatar { width: 50px; height: 50px; border-radius: 50%; background: #f4f4f4; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 18px; border: 2px dashed #ddd; }
.match-details { flex-grow: 1; margin-left: 15px; }
.match-details h5 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 3px; }
.match-details p { font-size: 13px; color: #666; margin: 0; }
.match-details strong { color: #27ae60; font-size: 14px; }

/* --- NEW: DASHA TIMELINE --- */
.dasha-timeline-box { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 25px; margin-bottom: 20px; position: relative; box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); }
.dasha-timeline-box::after { content: '\f061'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #ddd; font-size: 24px; transition: color 0.3s, transform 0.3s; }
.dash-card-glass:hover .dasha-timeline-box::after { color: #FFC300; transform: translate(-50%, -50%) scale(1.2); }
.dasha-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: #888; font-weight: 700; display: block; margin-bottom: 8px; }
.planet-name { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.planet-name.saturn { color: #2c3e50; }
.planet-name.mercury { color: #27ae60; }
.dasha-years { font-size: 12px; color: #555; background: #f4f4f4; padding: 4px 10px; border-radius: 6px; font-weight: 700; }
.dasha-insight { background: #fffdf0; padding: 18px; border-radius: 10px; border-left: 4px solid #FFC300; transition: transform 0.3s; }
.dasha-insight:hover { transform: translateX(5px); }
.dasha-insight p { font-size: 14px; color: #333; margin: 0; line-height: 1.6; }
.dasha-insight i { color: #f39c12; margin-right: 8px; font-size: 16px; }

/* --- NEW: PUJA TRACKER --- */
.active-puja-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.puja-info-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.puja-info-top h5 { font-size: 18px; font-weight: 800; color: #111; margin: 0; }
.status-badge.live { background: #ffebee; color: #c0392b; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 50px; text-transform: uppercase; animation: pulseGlow 2s infinite; }
.puja-temple { font-size: 14px; color: #555; margin-bottom: 20px; font-weight: 500; }
.puja-temple i { color: #e74c3c; margin-right: 8px; }
.puja-timing { display: flex; gap: 20px; margin-bottom: 25px; font-size: 14px; font-weight: 700; color: #333; background: #fafafa; padding: 12px; border-radius: 8px; border: 1px solid #eee; }
.puja-timing i { color: #FFC300; font-size: 16px; }
.puja-actions { display: flex; gap: 15px; }
.puja-actions button { flex: 1; padding: 12px; font-size: 14px; }

/* --- NEW: PROFILE PROGRESS CIRCLE --- */
.text-center { text-align: center; }
.circular-progress {
    position: relative; height: 140px; width: 140px; border-radius: 50%;
    background: conic-gradient(#FFC300 0deg, #f0f0f0 0deg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px auto; box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.circular-progress:hover { transform: scale(1.05); }
.inner-circle {
    position: absolute; height: 110px; width: 110px; border-radius: 50%;
    background-color: #ffffff; display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.05); /* Inner shadow for 3D look */
}
.progress-value { font-size: 28px; font-weight: 800; color: #111; letter-spacing: -1px; }
.progress-title { font-size: 18px; font-weight: 800; color: #111; margin-bottom: 10px; }
.progress-desc { font-size: 14px; color: #666; line-height: 1.6; margin: 0 auto 20px auto; max-width: 80%; }

/* --- NEW: NOTIFICATIONS --- */
.notification-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.notify-item { display: flex; gap: 15px; align-items: flex-start; padding: 18px 10px; border-bottom: 1px solid #f5f5f5; transition: background 0.3s, transform 0.3s; border-radius: 8px; }
.notify-item:hover { background: #fafafa; transform: translateX(5px); }
.notify-item:last-child { border-bottom: none; }
.notify-item.unread .notify-text p { font-weight: 700; color: #111; }
.notify-item.unread::before { content: ''; display: block; width: 8px; height: 8px; background: #FFC300; border-radius: 50%; margin-top: 16px; box-shadow: 0 0 8px rgba(255,195,0,0.8); }
.notify-icon { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notify-icon.heart { background: #fdf0f0; color: #e74c3c; }
.notify-icon.wallet { background: #f0fdf4; color: #27ae60; }
.notify-icon.success { background: #f4f6f9; color: #3498db; }
.notify-text p { font-size: 14px; color: #555; margin: 0 0 6px 0; line-height: 1.5; }
.notify-text .time { font-size: 12px; color: #999; font-weight: 600; }

/* =========================================================
   RESPONSIVE DESIGN FOR DASHBOARD
   ========================================================= */
@media screen and (max-width: 1024px) {
    .dash-top-row { grid-template-columns: 1fr; }
    .dash-pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-split-grid { grid-template-columns: 1fr; }
    .welcome-header { flex-direction: column; gap: 20px; }
    .dasha-timeline-box::after { display: none; }
    .dasha-timeline-box { flex-direction: column; text-align: center; gap: 20px; }
}

@media screen and (max-width: 768px) {
    .dashboard-wrapper { padding: 30px 15px 60px 15px; }
    .dash-pillars-grid { grid-template-columns: 1fr; }
    .welcome-header h1 { font-size: 24px; }
    .wallet-balance h2 { font-size: 34px; }
    .circular-progress { height: 120px; width: 120px; }
    .inner-circle { height: 90px; width: 90px; }
    .progress-value { font-size: 22px; }
}
/* =========================================================
   GEMSTONE NEW GRID STYLES
   ========================================================= */
.gemstone-wrapper {
    padding-top: 100px;
    padding-bottom: 60px;
    background: #fafafa;
}

.gem-grid-new {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.gem-card-mini {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1.1;
    display: flex;
    flex-direction: column;
}

.gem-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 195, 0, 0.15);
    border-color: #FFC300;
}

.gem-zoom-wrapper {
    width: 100%;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.gem-img-mini {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gem-card-mini:hover .gem-img-mini {
    transform: scale(1.3);
}

.gem-name-footer {
    background: #ffffff;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
}

.gem-name {
    display: block;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.gem-card-mini:hover .gem-name {
    transform: scale(1.1); /* Zoom effect on text */
}

/* Responsive Gemstone Grid */
@media (max-width: 1024px) {
    .gem-grid-new {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gem-grid-new {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .gem-name {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .gem-grid-new {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* Fix for Huge White Space */
#astro-canvas-layer { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100vw; height: 100vh; 
    z-index: -1; 
    background: #F8F9FA; 
    pointer-events: none; 
}

/* Master Container */
.astro-dashboard-wrapper {
    max-width: 1100px; /* Constrained width for professional look */
    margin: 0 auto; /* Removed top margin, using padding instead */
    padding: 80px 20px 40px 20px; /* Added padding-top for fixed header */
    box-sizing: border-box;
}

/* Header Compact Design */
.astro-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #EDF2F7;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.header-titles h1 { font-size: 20px; font-weight: 900; margin: 0; color: #111; }
.header-titles h1 span { color: #FFC300; }
.header-titles p { font-size: 13px; color: #718096; margin: 5px 0 0 0; }
.trust-badge { font-size: 12px; font-weight: 800; background: #FFFBEB; color: #D97706; padding: 6px 12px; border-radius: 6px; }

/* ====================================
   THE STRICT GRID SYSTEM
   ==================================== */
.astro-grid-row {
    display: grid;
    gap: 20px; /* Perfect space between boxes */
    margin-bottom: 20px;
    width: 100%;
}

/* minmax(0, 1fr) PREVENTS COLLAPSING & OVERFLOW */
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-1 { grid-template-columns: 1fr; }


/* ====================================
   CARD STYLES (Small & Clean)
   ==================================== */
.astro-mini-card {
    background: #FFFFFF;
    border: 1px solid #EDF2F7;
    border-radius: 12px;
    padding: 20px 15px; /* Small padding */
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.astro-mini-card:hover { transform: translateY(-4px); border-color: #FFC300; }

.card-title { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 15px; }
.card-subtitle { font-size: 11px; font-weight: 700; color: #A0AEC0; text-transform: uppercase; margin-top: 15px; display: block; }

/* Fixed SVG Chart Size */
.svg-vedic-chart {
    width: 120px; /* Small Fixed Size */
    height: 120px;
    margin: 0 auto;
}

/* ====================================
   PLANETARY TABLE (MVP Style)
   ==================================== */
.astro-card-clean {
    background: #FFFFFF;
    border: 1px solid #EDF2F7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.padding-lg { padding: 25px; }

.card-header-bar, .card-header-simple {
    background: #FAFBFC;
    padding: 15px 25px;
    border-bottom: 1px solid #EDF2F7;
}
.card-header-bar h4, .card-header-simple h4 { margin: 0; font-size: 15px; font-weight: 800; color: #111; }
.card-header-simple { background: transparent; padding: 0 0 15px 0; border-bottom: none; }

.table-scroll-container { width: 100%; overflow-x: auto; }
.master-astro-table { width: 100%; border-collapse: collapse; }
.master-astro-table th { padding: 12px 25px; text-align: left; font-size: 11px; color: #718096; text-transform: uppercase; border-bottom: 2px solid #FFC300; }
.master-astro-table td { padding: 14px 25px; font-size: 14px; color: #111; border-bottom: 1px solid #F1F5F9; font-weight: 500; }
.highlighted { background: #FFFDF5; }

/* Badges */
.badge { padding: 5px 10px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.badge-high { background: #E6FFFA; color: #234E52; }
.badge-good { background: #EBF4FF; color: #2C5282; }
.badge-danger { background: #FFF5F5; color: #9B2C2C; }

/* ====================================
   DASHA & DOSHA WIDGETS
   ==================================== */
.dasha-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dasha-head h5 { font-size: 16px; margin: 0; font-weight: 800; }
.year-tag { font-size: 12px; color: #718096; font-weight: 700; }
.progress-track { height: 8px; background: #EDF2F7; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; background: #FFC300; }
.current-dasha-text { font-size: 13px; margin: 0; color: #4A5568; }

.dosha-flex-box { display: flex; align-items: center; gap: 20px; }
.radar-animation { width: 60px; height: 60px; border: 2px solid #FFC300; border-radius: 50%; position: relative; background: #FFFBEB; overflow: hidden; flex-shrink: 0; }
.radar-line { position: absolute; width: 100%; height: 100%; background: conic-gradient(rgba(255,195,0,0.5), transparent 70%); animation: spin 2s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.dosha-name { font-size: 15px; margin: 0 0 5px 0; color: #E53E3E; font-weight: 800; }
.dosha-desc { font-size: 12px; color: #718096; margin: 0 0 10px 0; }
.btn-remedy-pulse { background: #FFC300; border: none; padding: 10px 15px; border-radius: 8px; font-size: 12px; font-weight: 800; cursor: pointer; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,195,0,0.6); } 70% { box-shadow: 0 0 0 10px rgba(255,195,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,195,0,0); } }

/* Mobile Support */
@media (max-width: 900px) {
    .cols-3 { grid-template-columns: 1fr; }
    .cols-2 { grid-template-columns: 1fr; }
}
/* --- PUJA PAGE STYLING --- */
#puja-canvas-layer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background: #F8F9FA; pointer-events: none; }

.btn-outline-pro { background: transparent; border: 2px solid #FFC300; color: #111; padding: 8px 16px; border-radius: 8px; font-weight: 800; font-size: 12px; cursor: pointer; transition: 0.3s; }
.btn-outline-pro:hover { background: #FFC300; }

/* Pandit Small Symmetric Cards */
.pandit-mini-card {
    background: #FFF;
    border: 1px solid #EDF2F7;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.pandit-mini-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255,195,0,0.1); border-color: #FFC300; }

.pandit-header { position: relative; background: #FAFBFC; padding: 25px 0; text-align: center; border-bottom: 1px solid #EDF2F7; }
.verified-tick { position: absolute; top: 10px; right: 15px; color: #16A34A; font-size: 16px; }

.pandit-info { padding: 20px; }
.pandit-name { font-size: 16px; font-weight: 800; margin: 0 0 5px 0; color: #111; }
.temple-name { font-size: 12px; color: #718096; margin: 0 0 15px 0; font-weight: 600; }

.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; background: #F8FAFC; padding: 10px; border-radius: 8px; }
.spec-item { font-size: 11px; color: #111; font-weight: 700; }
.spec-item span { color: #A0AEC0; font-weight: 600; }

.price-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #EDF2F7; padding-top: 15px; }
.price-tag { font-size: 16px; font-weight: 900; color: #111; }

.btn-book-pulse { background: #FFC300; border: none; padding: 8px 15px; border-radius: 6px; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 0 0 0 rgba(255,195,0,0.5); animation: pulseBtn 2s infinite; }
@keyframes pulseBtn { 0% { box-shadow: 0 0 0 0 rgba(255,195,0,0.6); } 70% { box-shadow: 0 0 0 8px rgba(255,195,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,195,0,0); } }

/* --- MODAL (POP-UP) STYLING --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pro-modal-box { background: #FFF; width: 100%; max-width: 450px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.modal-header { padding: 20px 25px; border-bottom: 1px solid #EDF2F7; display: flex; justify-content: space-between; align-items: center; }
.modal-header h4 { margin: 0; font-size: 18px; font-weight: 800; }
.close-modal { cursor: pointer; color: #A0AEC0; font-size: 20px; transition: 0.3s; }
.close-modal:hover { color: #E53E3E; }

.modal-body { padding: 25px; }
.modal-subtext { font-size: 13px; color: #718096; margin: 0 0 20px 0; line-height: 1.5; background: #F8FAFC; padding: 10px 15px; border-radius: 8px; border-left: 3px solid #FFC300; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: #4A5568; margin-bottom: 8px; }
.pro-input { width: 100%; padding: 12px 15px; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 13px; font-family: 'Inter', sans-serif; box-sizing: border-box; outline: none; }
.pro-input:focus { border-color: #FFC300; box-shadow: 0 0 0 3px rgba(255,195,0,0.1); }

.modal-footer { padding: 20px 25px; background: #FAFBFC; border-top: 1px solid #EDF2F7; display: flex; justify-content: flex-end; gap: 15px; }
.btn-cancel { background: transparent; border: none; color: #718096; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-pay-secure { background: #111; color: #FFC300; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 800; font-size: 13px; cursor: pointer; transition: 0.3s; }
.btn-pay-secure:hover { background: #FFC300; color: #111; }
/* --- MATRIMONY BACKGROUND --- */
#matrimony-canvas-layer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background: #FAFAFA; pointer-events: none; }

/* --- FILTER BAR --- */
.filter-bar { display: flex; justify-content: space-between; align-items: flex-end; padding: 20px 25px; gap: 20px; flex-wrap: wrap; }
.filter-group { flex: 1; display: flex; flex-direction: column; }
.filter-group label { font-size: 11px; font-weight: 800; color: #718096; text-transform: uppercase; margin-bottom: 8px; }
.pro-select { width: 100%; padding: 12px 15px; border: 1px solid #EDF2F7; border-radius: 8px; font-size: 13px; font-family: 'Inter', sans-serif; background: #F8FAFC; outline: none; cursor: pointer; }
.btn-filter-action { background: #111; color: #FFC300; border: none; padding: 12px 25px; border-radius: 8px; font-weight: 800; font-size: 13px; cursor: pointer; transition: 0.3s; white-space: nowrap; }

/* --- HEAVY MATCH CARDS --- */
.match-pro-card { background: #FFF; border: 1px solid #EDF2F7; border-radius: 16px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: 0.3s; display: flex; flex-direction: column; }
.match-pro-card:hover { border-color: #FFC300; transform: translateY(-4px); box-shadow: 0 12px 25px rgba(255,195,0,0.1); }

/* Header & Avatar Blur */
.match-card-header { display: flex; gap: 15px; align-items: center; border-bottom: 1px solid #F1F5F9; padding-bottom: 15px; margin-bottom: 15px; }
.avatar-wrapper { width: 60px; height: 60px; border-radius: 50%; position: relative; overflow: hidden; border: 2px solid #EDF2F7; flex-shrink: 0; }
.blur-img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px); transition: 0.3s; }
.lock-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; color: #FFC300; font-size: 18px; }

.match-core-info { flex-grow: 1; }
.profile-id { margin: 0 0 4px 0; font-size: 16px; font-weight: 900; color: #111; display: flex; justify-content: space-between; }
.profile-basic { margin: 0; font-size: 12px; color: #4A5568; font-weight: 600; }

/* SVG Guna Score Ring */
.guna-score-section { display: flex; align-items: center; gap: 15px; background: #FAFBFC; padding: 15px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #EDF2F7; }
.score-ring { width: 50px; height: 50px; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 250px; }
.circle-bg { fill: none; stroke: #EDF2F7; stroke-width: 3.8; }
.circle { fill: none; stroke-width: 3.8; stroke-linecap: round; animation: progress 1s ease-out forwards; }
@keyframes progress { 0% { stroke-dasharray: 0 100; } }
.circular-chart.green .circle { stroke: #10B981; }
.circular-chart.yellow .circle { stroke: #F59E0B; }
.percentage { fill: #111; font-size: 10px; font-weight: 900; font-family: 'Inter', sans-serif; text-anchor: middle; }
.score-text h5 { margin: 0 0 3px 0; font-size: 14px; font-weight: 800; color: #111; }
.score-text p { margin: 0; font-size: 11px; color: #718096; font-weight: 600; }

/* Grid Details */
.profile-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.detail-item { font-size: 12px; color: #4A5568; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.detail-item i { color: #A0AEC0; width: 14px; text-align: center; }

/* Action Buttons */
.match-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: auto; }
.btn-interest { background: #F1F5F9; border: 1px solid #E2E8F0; padding: 10px; border-radius: 8px; font-weight: 800; font-size: 12px; color: #4A5568; cursor: pointer; transition: 0.3s; }
.btn-interest.active { background: #FEF2F2; color: #E53E3E; border-color: #FECACA; }
.btn-interest.active i { font-weight: 900; }
.btn-unlock-pro { background: #FFC300; border: none; padding: 10px; border-radius: 8px; font-weight: 900; font-size: 12px; color: #111; cursor: pointer; box-shadow: 0 4px 10px rgba(255,195,0,0.2); transition: 0.3s; }
.btn-unlock-pro:hover { transform: scale(1.02); }

/* Alert Box */
.wallet-balance-alert { background: #FFFBEB; border: 1px solid #FEF3C7; padding: 12px 15px; border-radius: 8px; font-size: 13px; color: #D97706; margin-bottom: 15px; }
.policy-list { list-style: none; padding: 0; margin: 0; font-size: 12px; color: #4A5568; line-height: 1.6; }
.policy-list li { margin-bottom: 8px; }
/* =========================================
   NEW ADDITIONS & POLISH (ASTROCONNECT)
========================================= */

/* --- WELCOME WIDGET POLISH --- */
.welcome-widget h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #111;
}

.welcome-widget h1 span {
    color: #ea580c; /* Astro Orange */
}

.welcome-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    font-weight: 500;
    margin-bottom: 15px;
}

.lucky-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.stat-badge {
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #222;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: inline-flex;
    align-items: center;
}

.stat-badge i {
    margin-right: 6px;
    font-size: 14px;
}
.stat-badge i.fa-moon { color: #64748b; }
.stat-badge i.fa-clover { color: #10b981; }
.stat-badge i.fa-dice { color: #8b5cf6; }

/* --- QUICK ACTIONS BAR --- */
.quick-actions-bar {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    min-width: 220px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.quick-btn.chat-btn { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.quick-btn.puja-btn { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.quick-btn.wallet-btn { background: #111827; color: #fbbf24; border: 1px solid #111827; }

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* --- PANCHANG WIDGET --- */
.panchang-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panchang-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.panchang-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.panchang-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.panchang-icon.tithi { background: #f3e8ff; color: #9333ea; }
.panchang-icon.rahu { background: #fee2e2; color: #dc2626; }
.panchang-icon.shubh { background: #dcfce7; color: #16a34a; }

.panchang-details {
    display: flex;
    flex-direction: column;
}

.p-label { font-size: 12px; color: #6b7280; margin-bottom: 2px; }
.p-label small { font-size: 10px; opacity: 0.8; }
.p-value { font-size: 14px; color: #111827; font-weight: 600; }

.warning-time .p-value { color: #dc2626; }
.shubh-time .p-value { color: #16a34a; }

/* --- BUTTON HIGHLIGHTS --- */
.pay-action-btn {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
}

.pay-action-btn.premium-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.pay-action-btn.premium-gold:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

.pay-action-btn.alert-red {
    background: #fff;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.pay-action-btn.alert-red:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}
/* ==========================================================================
   WALLET PAGE SPECIFIC CSS (Yellow/White Premium Theme)
   ========================================================================== */

/* 🔴 OVERLAP FIX: Pushes the entire page content safely below your fixed header */
.dashboard-wrapper {
    padding-top: 80px; /* Reduced from 110px */
    padding-bottom: 40px; /* Reduced from 60px */
}

/* Page Header */
.dash-page-header { margin-bottom: 25px; }
.dash-page-header h1 { font-size: 26px; display: flex; align-items: center; gap: 10px; margin-bottom: 5px; color: #111827; }
.dash-page-header h1 i { color: #f59e0b; /* Yellow/Gold Icon */ }
.dash-page-header p { font-size: 15px; color: #64748b; }

/* Wallet Hero Card (Premium Yellow/Gold Theme instead of Dark Blue) */
.wallet-hero-card {
    background: linear-gradient(135deg, #FFDF00 0%, #FDB931 100%); /* Premium Gold Gradient */
    border-radius: 16px;
    padding: 30px;
    color: #111827; /* Solid Black Text */
    box-shadow: 0 10px 25px rgba(253, 185, 49, 0.2); /* Soft Yellow Glow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wallet-hero-top { display: flex; justify-content: space-between; align-items: center; color: #334155; font-size: 14px; font-weight: 600; }
.badge-secure { background: rgba(255, 255, 255, 0.6); color: #065f46; padding: 4px 10px; border-radius: 20px; font-size: 12px; border: 1px solid rgba(16, 185, 129, 0.2); }
.hero-balance { font-size: 48px; color: #000000; margin: 15px 0 25px; font-weight: 800; letter-spacing: -1px; }

.wallet-split-box {
    background: rgba(255, 255, 255, 0.4); /* Semi-transparent white box over gold */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.split-item { display: flex; flex-direction: column; gap: 4px; }
.split-label { font-size: 12px; color: #334155; font-weight: 500; }
.split-label small { color: #d97706; font-weight: 700; }
.split-value { font-size: 18px; font-weight: 700; color: #000000; }
.split-divider { width: 1px; height: 30px; background: rgba(0, 0, 0, 0.1); margin: 0 15px; }

/* Quick Recharge Form (White BG, Yellow Accents) */
.quick-amounts { display: flex; gap: 10px; margin-bottom: 15px; }
.amount-btn {
    flex: 1; padding: 10px 0; background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 8px; font-weight: 600; color: #111827; cursor: pointer; transition: all 0.2s;
}
.amount-btn:hover { border-color: #f59e0b; color: #d97706; background: #fffbeb; }
.amount-btn.active { background: #fffbeb; border-color: #f59e0b; color: #d97706; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1); }

.custom-amount-input {
    display: flex; align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 0 15px; margin-bottom: 20px;
    background: #fff; transition: border-color 0.2s;
}
.custom-amount-input:focus-within { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }
.currency-symbol { font-weight: 600; color: #64748b; font-size: 18px; }
.custom-amount-input input {
    width: 100%; border: none; padding: 14px 10px;
    font-size: 18px; font-weight: 600; color: #111827; outline: none; background: transparent;
}

/* Transaction List (Clean White) */
.transaction-list { list-style: none; }
.txn-item { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.txn-item:last-child { border-bottom: none; padding-bottom: 0; }

.txn-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.txn-icon.refund { background: #dcfce7; color: #10b981; }
.txn-icon.addition { background: #fef3c7; color: #d97706; /* Changed to yellow/gold tone */ }
.txn-icon.deduction { background: #fee2e2; color: #ef4444; }

.txn-details { flex: 1; margin: 0 15px; }
.txn-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.txn-date { font-size: 12px; color: #64748b; }

.txn-amount { font-size: 16px; font-weight: 700; }
.txn-amount.positive { color: #10b981; }
.txn-amount.negative { color: #111827; } /* Solid black for deductions */

/* Usage Info Cards */
.usage-card {
    display: flex; gap: 15px; padding: 15px;
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 12px; margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.usage-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-color: #fcd34d; }
.usage-card:last-child { margin-bottom: 0; }
.usage-icon { width: 40px; height: 40px; border-radius: 10px; background: #fffbeb; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #d97706; flex-shrink: 0; border: 1px solid #fde68a; }
.usage-text h5 { font-size: 14px; margin-bottom: 4px; color: #111827; font-weight: 700; }
.usage-text p { font-size: 13px; color: #475569; line-height: 1.5; }
.usage-text strong { color: #d97706; }
/* ==========================================================================
   MATRIMONY PAGE: FULL CSS (COMPACT PREMIUM PORTRAIT THEME)
   ========================================================================== */

/* Globals */
.dashboard-wrapper { padding-top: 95px; padding-bottom: 40px; }
.text-gold { color: #f59e0b; }
.text-success { color: #10b981; }
.text-muted { color: #64748b; }
.gold-gradient-bg { background: linear-gradient(135deg, #FFDF00 0%, #FDB931 100%); }
.success-bg { background-color: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Trust Banner */
.trust-banner { border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; color: #111; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15); }
.banner-content { display: flex; align-items: center; gap: 12px; }
.banner-icon { font-size: 24px; color: #111; }
.banner-content strong { color: #111; font-size: 14px; }
.banner-content p { margin: 0; font-size: 12px; color: #333; line-height: 1.3; }

/* Hero Section */
.matrimony-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; background: #ffffff; padding: 25px 30px; border-radius: 16px; border: 1px solid #e2e8f0; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.sub-heading { font-size: 12px; font-weight: 700; color: #64748b; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; display: block; }
.hero-text-side h2 { font-size: 28px; color: #111827; margin-bottom: 20px; line-height: 1.2; font-weight: 800; }
.hero-feature { margin-bottom: 15px; }
.hero-feature h4 { font-size: 15px; color: #111827; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.hero-feature p { color: #475569; font-size: 13px; line-height: 1.4; margin: 0; }

.hero-visual-side { display: flex; justify-content: center; position: relative; }
.prominent-photo-container { position: relative; width: 220px; height: 300px; }
.floating-astro-badge { position: absolute; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; z-index: 5; box-shadow: 0 4px 10px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 5px; }
.floating-astro-badge.gold { background: var(--gold-gradient); color: #111; top: 20px; left: -20px; border: none; }
.floating-astro-badge.white { background: #ffffff; color: #111; bottom: 20px; right: -20px; border: 1px solid #e2e8f0; }
.photo-frame-mockup { width: 100%; height: 100%; border: 6px solid #ffffff; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); overflow: hidden; background: #fff; }
.prominent-photo { width: 100%; height: 100%; object-fit: cover; }

/* Tabs */
.matrimony-tabs { display: flex; gap: 15px; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; overflow-x: auto; }
.tab-btn { padding: 10px 15px; background: none; border: none; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; white-space: nowrap; }
.tab-btn:hover { color: #111827; }
.tab-btn.active { color: #f59e0b; border-bottom-color: #f59e0b; }
.count-badge { background: #ef4444; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; margin-left: 5px; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

/* ==========================================================================
   COSMIC MATCHES: PORTRAIT GRID (4 CARDS PER ROW)
   ========================================================================== */
.premium-match-grid { 
    display: grid; 
    /* Magic line: Auto-fits minimum 220px cards to create up to 4 columns on desktop */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
}

.premium-card { 
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; 
    display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    transition: transform 0.2s, box-shadow 0.2s; height: 100%; 
}
.premium-card:hover { box-shadow: 0 12px 24px rgba(245, 158, 11, 0.12); transform: translateY(-4px); border-color: #fde68a; }

/* Portrait Photo Height */
.premium-photo-locked { 
    width: 100%; height: 260px; /* Forces vertical/portrait look */
    background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; margin-bottom: 15px; overflow: hidden;
}
.premium-photo-locked span { font-size: 13px; color: #64748b; font-weight: 500; }
.premium-photo-locked img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.premium-card-body { display: flex; flex-direction: column; flex: 1; }

.premium-card-header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.premium-card-header h3 { font-size: 16px; color: #111827; font-weight: 800; margin: 0; }

.badge-excellent { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-good { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }

.premium-text-details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.premium-text-details p { margin: 0; font-size: 13px; color: #334155; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.premium-card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.btn-solid-gold { width: 100%; background: #f59e0b; color: #111827; border: none; padding: 12px 0; border-radius: 6px; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-solid-gold:hover { background: #fbbf24; }
.btn-outline-grey { width: 100%; background: #ffffff; color: #111827; border: 1px solid #e2e8f0; padding: 12px 0; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-outline-grey:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Mutual Match Locked Card */
.mutual-match-locked-card { background: #ffffff; border: 1px solid #fde68a; border-radius: 14px; padding: 30px; max-width: 500px; margin: 0 auto; box-shadow: 0 8px 25px rgba(245, 158, 11, 0.08); }
.mutual-header-stack h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: #111827; }
.mutual-header-stack p { color: #64748b; margin-bottom: 20px; font-size: 13px; font-weight: 500; }
.contact-avatars-stack { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 20px; }
.avatar-circle-grid { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #f59e0b; background: #fff; }
.link-icon { font-size: 20px; }
.blur-text { color: #111827; filter: blur(4px); font-size: 16px; font-weight: 700; margin: 4px 0; user-select: none; }
.trust-note-stack { font-size: 11px; color: #64748b; margin-top: 12px; font-weight: 600; }

/* Trust Badges */
.trust-badges-section { margin-top: 40px; }
.section-title-stack h2 { color: #111827; font-weight: 800; font-size: 26px; margin-bottom: 20px; }
.badges-grid-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.badge-card-grid { text-align: center; padding: 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.badge-icon-grid { font-size: 28px; color: #f59e0b; margin-bottom: 12px; }
.badge-card-grid h4 { color: #111827; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.badge-card-grid p { font-size: 12px; color: #64748b; line-height: 1.4; margin: 0; }

/* Kundli Modal */
.modal-overlay-astro { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 24, 39, 0.6); z-index: 1200; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.2s; }
.modal-overlay-astro.active { display: flex; opacity: 1; }
.modal-astro-box { background: #fff; width: 90%; max-width: 450px; border-radius: 14px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 1px solid #e2e8f0; }
.modal-astro-header { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; background: #ffffff; align-items: center; }
.modal-astro-header h3 { font-size: 16px; color: #111827; font-weight: 700; margin: 0; }
.close-modal-astro-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: #64748b; }
.modal-astro-body { padding: 20px; }
.modal-astro-score-top h2 { font-size: 30px; margin-bottom: 4px; color: #111827; font-weight: 800; }
.modal-astro-score-top p { color: #64748b; font-size: 13px; margin-bottom: 20px; font-weight: 500; }
.kundli-astro-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.kundli-astro-table th, .kundli-astro-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 13px; color: #111827; }
.kundli-astro-table th { background: #f8fafc; font-weight: 700; }
.kundli-astro-table tr:last-child td { border-bottom: none; }
.dosha-astro-check-box { padding: 12px; border-radius: 8px; font-size: 12px; margin-top: 15px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Adaptations */
@media (max-width: 1024px) {
    .matrimony-hero { grid-template-columns: 1fr; }
    .hero-visual-side { display: none; }
    .badges-grid-stack { grid-template-columns: 1fr; }
}

/* Because of 'auto-fit', it will naturally drop to 1 column on phones */
@media (max-width: 480px) {
    .premium-photo-locked { height: 220px; } /* Slightly shorter on very small phones */
}
/* ==========================================================================
   ABOUT PAGE: PREMIUM CORPORATE THEME (White / Black / Gold)
   ========================================================================== */

.about-premium-wrapper {
    background-color: #ffffff;
    color: #111827;
    padding-top: 100px;
    padding-bottom: 60px;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.text-gold { color: #f59e0b; }
.mb-5 { margin-bottom: 50px; }

/* 1. Hero Section */
.about-hero-section {
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gold-subtitle {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #d97706;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}
.grand-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #111827;
    margin-bottom: 30px;
}
.hero-manifesto {
    font-size: 18px;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* 2. Philosophy Section */
.philosophy-section {
    margin-bottom: 100px;
}
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.philosophy-box {
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.philosophy-box.problem {
    background: #f8fafc;
}
.philosophy-box.solution {
    background: #fffbeb;
    border-color: #fde68a;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.05);
}
.philosophy-box h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.philosophy-box p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* 3. Journey Timeline Section */
.journey-timeline-section {
    margin-bottom: 100px;
}
.section-heading { font-size: 36px; font-weight: 800; margin-bottom: 10px; color: #111827; }
.section-subtext { font-size: 16px; color: #64748b; }

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}
/* The Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 19px; /* Centers the line with the 40px dots */
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

.timeline-block {
    position: relative;
    margin-bottom: 50px;
}
.timeline-block:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -40px; /* Aligns with padding */
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 2px solid #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #f59e0b;
    font-size: 14px;
    z-index: 2;
}

.timeline-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}
.timeline-content:hover {
    transform: translateX(10px);
    border-color: #fde68a;
}
.timeline-content h3 { font-size: 14px; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; margin-bottom: 5px; }
.timeline-content h4 { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: #111827; }
.timeline-content p { font-size: 15px; color: #475569; line-height: 1.6; margin: 0; }


/* 4. Our Promise Section */
.our-promise-section {
    padding: 80px 0;
    background: #111827; /* Only dark section for heavy contrast */
    margin-bottom: 80px;
}
.promise-card {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.promise-icon {
    font-size: 80px;
    color: #f59e0b;
}
.promise-text h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}
.promise-text p {
    color: #9ca3af;
    font-size: 16px;
    line-height: 1.7;
}
.promise-text strong {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
}

/* 5. CTA Section */
.about-cta-section {
    margin-bottom: 60px;
    padding: 40px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}
.about-cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 30px; }
.cta-flex-btns { display: flex; justify-content: center; gap: 20px; }

.btn-solid-gold { background: #f59e0b; color: #111; padding: 14px 28px; border-radius: 8px; font-weight: 800; font-size: 15px; border: none; transition: 0.2s; cursor: pointer; }
.btn-solid-gold:hover { background: #fbbf24; transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: #111; padding: 14px 28px; border-radius: 8px; font-weight: 800; font-size: 15px; border: 2px solid #111; transition: 0.2s; cursor: pointer; }
.btn-outline-dark:hover { background: #111; color: #fff; }

/* Scroll Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .grand-title { font-size: 38px; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .promise-card { flex-direction: column; text-align: center; gap: 20px; }
    .cta-flex-btns { flex-direction: column; }
    .timeline-container { padding-left: 30px; }
    .timeline-container::before { left: 9px; }
    .timeline-dot { left: -30px; width: 30px; height: 30px; font-size: 12px; }
    .timeline-content:hover { transform: none; }
}
/* ==========================================================================
   CONTACT US PAGE: PREMIUM CSS
   ========================================================================== */

/* Hero Section */
.contact-hero {
    padding: 40px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}
.gold-subtitle { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: #d97706; text-transform: uppercase; display: block; margin-bottom: 15px; }
.grand-title { font-size: 42px; font-weight: 800; color: #111827; line-height: 1.2; margin-bottom: 20px; }
.hero-desc { font-size: 16px; color: #475569; line-height: 1.6; }

/* Main Grid Layout */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Form takes slightly more space */
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
}

/* Left Panel: Info Cards */
.contact-info-panel {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.contact-info-panel h3 { font-size: 24px; font-weight: 800; color: #111827; margin-bottom: 10px; }

.contact-method-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}
.method-icon {
    width: 50px;
    height: 50px;
    background: #fffbeb;
    color: #f59e0b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #fde68a;
    flex-shrink: 0;
}
.method-details h4 { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 5px; }
.method-details p { font-size: 15px; color: #334155; font-weight: 600; margin: 0 0 5px 0; }
.method-details small { font-size: 12px; color: #64748b; }

/* Trust Note Box inside Info Panel */
.contact-trust-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-top: 40px;
}
.contact-trust-note i { font-size: 20px; color: #16a34a; margin-top: 2px; }
.contact-trust-note span { font-size: 13px; color: #166534; line-height: 1.5; }
.contact-trust-note strong { color: #14532d; font-weight: 700; }

/* Right Panel: Smart Form */
.contact-form-panel {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.contact-form-panel h3 { font-size: 24px; font-weight: 800; color: #111827; margin-bottom: 30px; }

/* Premium Form Styling */
.premium-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.premium-form .form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}
.premium-form label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}
.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 15px;
    color: #111827;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}
.premium-form input::placeholder,
.premium-form textarea::placeholder {
    color: #94a3b8;
}
.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.w-100 { width: 100%; padding: 16px !important; font-size: 16px !important; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .contact-layout-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-info-panel { order: 2; } /* Move info below form on tablets/mobile */
    .contact-form-panel { order: 1; }
}

@media (max-width: 768px) {
    .premium-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .grand-title { font-size: 32px; }
    .contact-info-panel, .contact-form-panel { padding: 25px; }
}
/* =========================================================
   GEMSTONE PAGE PREMIUM STYLES (UPDATED & COMPACT)
   ========================================================= */

.bg-light-premium { background-color: #f4f7f6; } 

.gemstone-wrapper {
    padding: 120px 20px 80px;
    font-family: 'Inter', sans-serif;
}

/* HERO SECTION */
.gemstone-hero {
    max-width: 800px;
    margin: 0 auto 40px auto; /* Reduced margin */
}
.glow-tag {
    display: inline-block;
    background: rgba(255, 195, 0, 0.15);
    color: #e67e22;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 195, 0, 0.3);
}
.gemstone-hero h2 { font-size: 32px; font-weight: 900; color: #111; margin-bottom: 10px; letter-spacing: -1px; }
.gemstone-hero h2 span { color: #FFC300; }
.gemstone-hero p { font-size: 15px; color: #555; line-height: 1.5; margin: 0; }

/* GEMSTONE GRID */
.gem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Reduced gap between cards */
}

/* =========================================================
   CARD DESIGN - FULL WIDTH IMAGE (EDGE-TO-EDGE)
   ========================================================= */
.gem-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0; /* PADDING HATA DI TAARKI IMAGE FULL AAYE */
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* IMPORTANT: Ye image ke edges ko card ke hisaab se gol (round) rakhega */
}

.gem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #FFC300;
}

/* TOP BADGE - Adjusted for full image */
.gem-badge {
    position: absolute;
    top: 15px; right: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Text clear padhne ke liye shadow */
}

/* IMAGE CONTAINER - FULL 100% SIZE */
.gem-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px; /* Image ko poora lamba dikhane ke liye height badhayi */
    background: #ffffff; /* Agar aapki photo me thoda white h to wo mix ho jayega */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f4f6f9; /* Image aur text ke beech ek halki line */
}

/* STONE IMAGE - FULL WIDTH */
.gem-img {
    width: 100%;
    height: 100%;
    max-width: none; /* LIMIT HATA DI */
    object-fit: cover; /* Ye image ko poore box me stretch/fit kar dega */
    transition: transform 0.4s ease;
}

/* Hover par ab float nahi, Premium Zoom effect aayega */
.gem-card:hover .gem-img {
    transform: scale(1.08);
}

/* TEXT DETAILS - PADDING AB SIRF YAHAN HAI */
.gem-info { 
    padding: 20px; /* Padding sirf text ko di hai, image ko nahi */
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.planet-ruler { font-size: 11px; color: #888; font-weight: 700; margin-bottom: 6px; display: block; }
.planet-ruler i { color: #f39c12; margin-right: 4px; }

.gem-info h3 { font-size: 18px; font-weight: 800; color: #111; margin-bottom: 6px; }
.gem-info h3 span { font-size: 13px; color: #7f8c8d; font-weight: 600; }
.gem-info p { font-size: 12px; color: #666; line-height: 1.5; margin-bottom: 15px; flex-grow: 1; }
/* BENEFITS LIST - COMPACT */
.gem-benefits {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 15px;
}
.gem-benefits span {
    font-size: 10px;
    background: #f4f6f9;
    padding: 5px 8px;
    border-radius: 5px;
    color: #444;
    font-weight: 600;
}
.gem-benefits span i { color: #27ae60; margin-right: 3px; }

/* ACTION BUTTONS */
.gem-actions { display: flex; gap: 8px; }
.btn-primary {
    flex-grow: 1;
    background: #111;
    color: #FFC300;
    border: none;
    padding: 10px; /* Reduced padding */
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-primary:hover { background: #FFC300; color: #111; }

.btn-icon {
    width: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #111;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { border-color: #111; background: #f8f9fa; }

/* RESPONSIVE DESIGN */
@media screen and (max-width: 1200px) {
    .gem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .gem-grid { grid-template-columns: 1fr; }
    .gemstone-wrapper { padding: 100px 15px 50px; }
    .gemstone-hero h2 { font-size: 26px; }
}
