/* 
 * Rajayog Home Page Styles
 * Mobile-first responsive design
 * Updated: Includes Panchang Hero, Personalized Daily, Celestial Effects
 */

/* ==========================================================================
   Hero Section (Legacy)
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.hero-section h1,
.hero-section .text-white {
    color: #ffffff !important;
}

.hero-section .text-white-75,
.hero-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
}

.hero-icon-container {
    position: relative;
    z-index: 1;
}

.floating-icon {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* ==========================================================================
   Seasonal Offer Modal
   ========================================================================== */
.offer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.offer-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offer-modal {
    background: white;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.offer-modal-overlay.active .offer-modal {
    transform: scale(1) translateY(0);
}

.offer-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.offer-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.offer-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    color: white;
    position: relative;
}

.offer-modal-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 15px solid #764ba2;
}

.offer-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.offer-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.offer-modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.offer-modal-body {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.offer-price .original {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.offer-price .current {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.offer-price .period {
    font-size: 1rem;
    color: #64748b;
}

.offer-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.offer-features li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
}

.offer-features li i {
    color: #10b981;
}

.offer-cta {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.offer-timer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timer-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 50px;
    text-align: center;
}

.timer-box .num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.timer-box .label {
    font-size: 0.6rem;
    color: #64748b;
    text-transform: uppercase;
}

.offer-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: confetti-fall 3s ease-in-out infinite;
}

.confetti:nth-child(1) { left: 10%; background: #fcd34d; }
.confetti:nth-child(2) { left: 20%; animation-delay: 0.5s; background: #f472b6; }
.confetti:nth-child(3) { left: 30%; animation-delay: 1s; background: #a78bfa; }
.confetti:nth-child(4) { left: 70%; animation-delay: 0.3s; background: #34d399; }
.confetti:nth-child(5) { left: 80%; animation-delay: 0.8s; background: #60a5fa; }
.confetti:nth-child(6) { left: 90%; animation-delay: 1.2s; background: #fcd34d; }

@keyframes confetti-fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100px) rotate(720deg); opacity: 0; }
}

/* ==========================================================================
   Cosmic Wrapper (Shared Background for Personalized Hero + Panchang)
   ========================================================================== */
/* SAFE full-bleed version - avoids 100vw scrollbar overflow issue */
.full-bleed {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 !important;
    overflow-x: clip;
}

.cosmic-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4a148c 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

@media (min-width: 992px) {
    .cosmic-wrapper {
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    }
}

/* ==========================================================================
   Personalized Hero Section (Logged-in Users)
   ========================================================================== */
.personalized-hero {
    background: transparent;
    color: #fff;
    position: relative;
}

.personalized-hero .container {
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .personalized-hero {
        box-shadow: none;
    }
}

.personalized-hero h1 {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.personalized-hero .lead {
    color: rgba(255, 255, 255, 0.95);
}

.personalized-hero .muted-mini {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

/* Pill Badges */
.pill-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.pill-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Glass Cards (Personalized Hero) */
.personalized-hero .glass-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    height: 100%;
    transition: all 0.3s ease;
}

.personalized-hero .glass-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.personalized-hero .glass-card h6 {
    margin: 0 0 0.75rem 0;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: white;
    font-size: 0.95rem;
}

.personalized-hero .glass-card ul {
    margin: 0;
    padding-left: 1.1rem;
    list-style: none;
}

.personalized-hero .glass-card ul li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.4rem;
}

.personalized-hero .glass-card ul li:before {
    content: "•";
    position: absolute;
    left: -0.6rem;
    font-weight: bold;
}

.personalized-hero .glass-card p {
    line-height: 1.5;
}

/* Buttons (Personalized Hero) */
.personalized-hero .btn-light {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.personalized-hero .btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.personalized-hero .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.personalized-hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   Panchang Hero Section
   ========================================================================== */
.panchang-hero {
    background: transparent;
    position: relative;
    overflow: visible;
}

.panchang-hero-standalone {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .panchang-hero-standalone {
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    }
}

.panchang-hero .container {
    position: relative;
    z-index: 2;
}

/* Panchang Header */
.panchang-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.panchang-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.panchang-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Panchang Badges */
.p-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.p-badge.quality {
    background: rgba(255, 255, 255, 0.2);
}

.p-badge .sun-icon { color: #fcd34d; }
.p-badge .set-icon { color: #fdba74; }
.p-badge .star-icon { color: #fcd34d; }

/* ==========================================================================
   Celestial Effects - Starfield
   ========================================================================== */
.panchang-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.panchang-stars::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 250px 90px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 300px 30px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 350px 100px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 380px 60px, rgba(255,255,255,0.6), transparent);
    background-size: 400px 150px;
    background-repeat: repeat;
    animation: starsShimmer 4s ease-in-out infinite alternate;
}

.panchang-stars::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(3px 3px at 50px 50px, rgba(255,255,255,1), transparent),
        radial-gradient(3px 3px at 150px 100px, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 280px 40px, rgba(255,255,255,0.9), transparent),
        radial-gradient(3px 3px at 400px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(3px 3px at 500px 70px, rgba(255,255,255,0.95), transparent);
    background-size: 550px 180px;
    background-repeat: repeat;
    animation: starsShimmer 6s ease-in-out infinite alternate-reverse;
}

@keyframes starsShimmer {
    0% { opacity: 0.5; }
    100% { opacity: 0.85; }
}

/* Twinkling Stars */
.celestial-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.5);
}

.star:nth-child(1) { width: 4px; height: 4px; top: 8%; left: 12%; animation: twinkle 2.5s ease-in-out infinite; }
.star:nth-child(2) { width: 3px; height: 3px; top: 15%; left: 28%; animation: twinkle 3.2s ease-in-out infinite 0.5s; }
.star:nth-child(3) { width: 5px; height: 5px; top: 6%; left: 48%; animation: twinkle 2.8s ease-in-out infinite 1s; }
.star:nth-child(4) { width: 3px; height: 3px; top: 20%; left: 65%; animation: twinkle 3.5s ease-in-out infinite 0.3s; }
.star:nth-child(5) { width: 4px; height: 4px; top: 10%; left: 82%; animation: twinkle 2.2s ease-in-out infinite 0.8s; }
.star:nth-child(6) { width: 3px; height: 3px; top: 28%; left: 6%; animation: twinkle 4s ease-in-out infinite 1.2s; }
.star:nth-child(7) { width: 4px; height: 4px; top: 38%; left: 18%; animation: twinkle 2.6s ease-in-out infinite 0.2s; }
.star:nth-child(8) { width: 3px; height: 3px; top: 32%; left: 38%; animation: twinkle 3.8s ease-in-out infinite 0.7s; }
.star:nth-child(9) { width: 5px; height: 5px; top: 25%; left: 58%; animation: twinkle 2.4s ease-in-out infinite 1.5s; }
.star:nth-child(10) { width: 3px; height: 3px; top: 35%; left: 78%; animation: twinkle 3s ease-in-out infinite 0.4s; }
.star:nth-child(11) { width: 4px; height: 4px; top: 45%; left: 88%; animation: twinkle 2.9s ease-in-out infinite 0.9s; }
.star:nth-child(12) { width: 3px; height: 3px; top: 55%; left: 4%; animation: twinkle 3.3s ease-in-out infinite 1.1s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(0.8);
        box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.4);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
        box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.7);
    }
}

/* Shooting Star */
.shooting-star {
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,1), transparent);
    border-radius: 50%;
    top: 12%;
    left: -120px;
    opacity: 0;
    z-index: 1;
    animation: shootingStar 9s ease-in-out infinite;
    animation-delay: 4s;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    left: 0;
    top: -3px;
    box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.9);
}

@keyframes shootingStar {
    0% { left: -120px; top: 8%; opacity: 0; transform: rotate(-20deg); }
    3% { opacity: 1; }
    15% { left: 110%; top: 35%; opacity: 0; }
    100% { left: 110%; opacity: 0; }
}

/* Glowing Moon */
.celestial-moon {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 6%;
    right: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, 
        rgba(255, 253, 220, 1) 0%, 
        rgba(255, 253, 200, 0.8) 30%, 
        rgba(255, 250, 180, 0.4) 60%, 
        transparent 100%);
    box-shadow: 
        0 0 30px 10px rgba(255, 253, 200, 0.4),
        0 0 60px 20px rgba(255, 253, 200, 0.2),
        0 0 100px 40px rgba(255, 253, 200, 0.1);
    z-index: 1;
    animation: moonGlow 5s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { 
        opacity: 0.85;
        transform: scale(1);
        box-shadow: 
            0 0 30px 10px rgba(255, 253, 200, 0.35),
            0 0 60px 20px rgba(255, 253, 200, 0.15);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 
            0 0 40px 15px rgba(255, 253, 200, 0.5),
            0 0 80px 30px rgba(255, 253, 200, 0.25);
    }
}

/* Glowing Planets */
.celestial-planet {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.celestial-planet.venus {
    width: 18px;
    height: 18px;
    top: 30%;
    left: 6%;
    background: radial-gradient(circle at 40% 40%, 
        rgba(255, 220, 180, 0.95) 0%, 
        rgba(255, 200, 150, 0.5) 50%, 
        transparent 100%);
    box-shadow: 0 0 15px 5px rgba(255, 200, 150, 0.4);
    animation: planetPulse 4s ease-in-out infinite;
}

.celestial-planet.jupiter {
    width: 14px;
    height: 14px;
    top: 55%;
    right: 15%;
    background: radial-gradient(circle at 40% 40%, 
        rgba(200, 220, 255, 0.95) 0%, 
        rgba(180, 200, 255, 0.5) 50%, 
        transparent 100%);
    box-shadow: 0 0 12px 4px rgba(180, 200, 255, 0.4);
    animation: planetPulse 3.5s ease-in-out infinite 1.5s;
}

@keyframes planetPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .panchang-stars::before,
    .panchang-stars::after,
    .star,
    .shooting-star,
    .celestial-moon,
    .celestial-planet,
    .floating-icon { 
        animation: none !important;
        opacity: 0.6 !important;
    }
}

/* ==========================================================================
   Glass Cards (Panchang)
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.25rem;
    height: 100%;
}

.card-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-label i {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Element Boxes (Panchang Elements)
   ========================================================================== */
.element-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.element-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.element-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.element-box.tithi .element-icon { background: rgba(251, 191, 36, 0.3); color: #fef3c7; }
.element-box.nakshatra .element-icon { background: rgba(192, 132, 252, 0.3); color: #e9d5ff; }
.element-box.yoga .element-icon { background: rgba(74, 222, 128, 0.3); color: #bbf7d0; }
.element-box.karana .element-icon { background: rgba(251, 113, 133, 0.3); color: #fecdd3; }

.element-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
}

.element-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.element-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Timing Rows (Important Timings)
   ========================================================================== */
.timing-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.timing-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    border-radius: 0 3px 3px 0;
}

.timing-row.good::before { background: #4ade80; }
.timing-row.bad::before { background: #f87171; }
.timing-row.warn::before { background: #fbbf24; }
.timing-row.neutral::before { background: rgba(255,255,255,0.4); }

.timing-row:hover {
    background: rgba(255, 255, 255, 0.12);
}

.timing-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.timing-row.good .timing-icon { background: rgba(74, 222, 128, 0.2); color: #86efac; }
.timing-row.bad .timing-icon { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }
.timing-row.warn .timing-icon { background: rgba(251, 191, 36, 0.2); color: #fde047; }
.timing-row.neutral .timing-icon { background: rgba(255, 255, 255, 0.15); color: rgba(255,255,255,0.8); }

.timing-info {
    flex: 1;
    min-width: 0;
}

.timing-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.timing-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.timing-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    margin-top: 0.4rem;
    overflow: hidden;
}

.timing-progress .bar {
    height: 100%;
    border-radius: 1px;
    transition: width 1s linear;
    width: 0;
}

.timing-row.good .timing-progress .bar { background: #4ade80; }
.timing-row.bad .timing-progress .bar { background: #f87171; }
.timing-row.warn .timing-progress .bar { background: #fbbf24; }
.timing-row.neutral .timing-progress .bar { background: rgba(255,255,255,0.5); }

.live-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}

.live-badge.upcoming {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.live-badge.ongoing {
    background: rgba(74, 222, 128, 0.25);
    color: #86efac;
    animation: pulse-live 2s ease-in-out infinite;
}

.timing-row.bad .live-badge.ongoing,
.timing-row.warn .live-badge.ongoing {
    background: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}

.live-badge.ended {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==========================================================================
   Insight Cards
   ========================================================================== */
.insight-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: white;
}

.insight-card.good .insight-header i { color: #86efac; }
.insight-card.bad .insight-header i { color: #fca5a5; }
.insight-card.info .insight-header i { color: #c4b5fd; }
.insight-card.highlight .insight-header i { color: #fcd34d; }

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    padding: 0.3rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

.insight-card.good .insight-list li::before { background: #4ade80; }
.insight-card.bad .insight-list li::before { background: #f87171; }

.observance-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
}

.observance-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b5fd;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.observance-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.observance-text small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Highlight Row for At a Glance */
.highlight-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
}

.highlight-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.highlight-icon.moon { color: #c4b5fd; }
.highlight-icon.compass { color: #60a5fa; }
.highlight-icon.color { color: #f472b6; }
.highlight-icon.number { color: #34d399; }

.highlight-text {
    flex: 1;
    min-width: 0;
}

.highlight-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* View Full Button */
.view-full-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    background: white;
    border: none;
    border-radius: 100px;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.view-full-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #764ba2;
}

.view-full-btn:hover i {
    transform: translateX(3px);
}

.view-full-btn i {
    transition: transform 0.3s ease;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */
.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.section-header p {
    color: #64748b;
    font-size: 1rem;
}

/* ==========================================================================
   Action Cards
   ========================================================================== */
.action-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.3s ease;
    display: block;
    color: inherit;
    text-decoration: none;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: transparent;
    color: inherit;
    text-decoration: none;
}

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

.action-icon.primary { 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}
.action-icon.danger { 
    background: linear-gradient(135deg, #f43f5e, #e11d48); 
    color: white;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
}
.action-icon.success { 
    background: linear-gradient(135deg, #10b981, #059669); 
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.action-icon.warning { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    color: white;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.action-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.action-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.action-card .btn {
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */
.service-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: transparent;
}

.service-card .icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.service-card .icon-wrap.primary { background: rgba(102, 126, 234, 0.1); color: #667eea; }
.service-card .icon-wrap.danger { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.service-card .icon-wrap.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.service-card .icon-wrap.info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.service-card .icon-wrap.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.service-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service-card.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.service-card.premium h3 { color: white; }
.service-card.premium p { color: rgba(255,255,255,0.8); }
.service-card.premium .icon-wrap { background: rgba(255,255,255,0.2); color: white; }

/* ==========================================================================
   Harmony Cards
   ========================================================================== */
.harmony-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.3s ease;
}

.harmony-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: transparent;
}

.harmony-card .h-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.harmony-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.harmony-card p {
    color: #64748b;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    background-color: #ffffff;
    padding: 4rem 0;
    position: relative;
}

.stat-item {
    padding: var(--space-md);
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1;
    margin-bottom: var(--space-sm);
    font-weight: 800;
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-box .label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.bg-gradient-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.bg-gradient-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bg-gradient-cta .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
}

.bg-gradient-cta .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-card .btn-light {
    background: white;
    color: #667eea;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    border: none;
    transition: all 0.3s ease;
}

.cta-card .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-card .small {
    margin-top: 1rem;
    opacity: 0.75;
    font-size: 0.85rem;
}

/* Premium gradient */
.bg-gradient-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bg-gradient-premium .card-text {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.feature-card {
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: transform var(--transition-normal);
}

.icon-circle i {
    font-size: 1.75rem;
}

.feature-card .icon-circle.bg-primary-soft { background-color: rgba(13, 110, 253, 0.1); color: var(--primary-color); }
.feature-card .icon-circle.bg-danger-soft { background-color: rgba(220, 53, 69, 0.1); color: var(--danger-color); }
.feature-card .icon-circle.bg-success-soft { background-color: rgba(25, 135, 84, 0.1); color: var(--success-color); }
.feature-card .icon-circle.bg-info-soft { background-color: rgba(13, 202, 240, 0.1); color: var(--info-color); }
.feature-card .icon-circle.bg-warning-soft { background-color: rgba(255, 193, 7, 0.1); color: var(--warning-color); }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-fade-in-delay-1 { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
.animate-fade-in-delay-2 { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both; }
.animate-fade-in-delay-3 { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Mobile (< 768px) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section .display-3 { font-size: 2rem; }
    .hero-section .lead { font-size: 1.1rem; }
    .hero-icon-container { margin-top: 2rem; }
    .floating-icon { width: 200px; height: 200px; margin: 0 auto; }
    .stats-section { padding: 3rem 0; }
    .stat-item h3 { font-size: 2.5rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
    
    /* Panchang */
    .panchang-title { font-size: 1.25rem; }
    .panchang-icon { width: 40px; height: 40px; font-size: 1rem; }
    .glass-card { padding: 1rem; }
    .element-box { padding: 0.75rem 0.5rem; }
    .element-icon { width: 32px; height: 32px; font-size: 0.85rem; }
    .element-value { font-size: 0.85rem; }
    .timing-row { padding: 0.6rem; gap: 0.5rem; }
    .timing-icon { width: 32px; height: 32px; font-size: 0.8rem; }
    .timing-name { font-size: 0.8rem; }
    .timing-time { font-size: 0.7rem; }
    .section-header h2 { font-size: 1.5rem; }
    .action-icon { width: 52px; height: 52px; font-size: 1.25rem; }
    .stat-box .number { font-size: 2rem; }
    .cta-card { padding: 2rem 1rem; }
    .cta-card h2 { font-size: 1.5rem; }
    
    /* Celestial elements on mobile */
    .celestial-moon { width: 35px; height: 35px; top: 4%; right: 8%; }
    .celestial-planet.jupiter { display: none; }
    .star:nth-child(n+9) { display: none; }
    
    /* Personalized Hero */
    .personalized-hero h1 { font-size: 1.75rem; }
    .personalized-hero .lead { font-size: 1rem; }
    .personalized-hero .glass-card { margin-bottom: 0.75rem; }
    .personalized-hero .btn-lg { width: 100%; margin-bottom: 0.5rem; }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section { padding: 3.5rem 0; }
    .hero-section .display-3 { font-size: 2.5rem; }
    .hero-section .lead { font-size: 1.15rem; }
    
    .stats-section { padding: 3.5rem 0; }
    .stat-item h3 { font-size: 2.75rem; }
    
    /* Panchang adjustments for tablets */
    .panchang-title { font-size: 1.4rem; }
    .glass-card { padding: 1.25rem; }
    .element-box { padding: 0.85rem 0.65rem; }
    .timing-row { padding: 0.75rem; }
    .section-header h2 { font-size: 1.75rem; }
    .action-icon { width: 60px; height: 60px; font-size: 1.4rem; }
    .cta-card { padding: 2.5rem 1.5rem; }
    .cta-card h2 { font-size: 1.75rem; }
    
    /* Optimize column layouts */
    .col-md-4, .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Standard Laptops (992px - 1199px) - CRITICAL FOR LAPTOP SCREENS */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding: 3.75rem 0;
    }
    
    .hero-section .display-3 {
        font-size: 2.75rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
        max-width: 90%;
    }
    
    .floating-icon {
        width: 280px;
        height: 280px;
    }
    
    /* Stats section optimization */
    .stats-section {
        padding: 4rem 0;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .stat-item h3 {
        font-size: 2.8rem;
    }
    
    .stat-item p {
        font-size: 1rem;
    }
    
    /* Panchang section for laptops */
    .panchang-hero {
        padding: 4rem 0;
    }
    
    .panchang-title {
        font-size: 1.6rem;
    }
    
    .glass-card {
        padding: 1.35rem;
    }
    
    .element-box {
        padding: 1rem 0.75rem;
    }
    
    .element-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .element-value {
        font-size: 1rem;
    }
    
    .timing-row {
        padding: 0.85rem;
        gap: 0.75rem;
    }
    
    .timing-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .timing-name {
        font-size: 0.95rem;
    }
    
    .timing-time {
        font-size: 0.85rem;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header .lead {
        font-size: 1.1rem;
    }
    
    /* Action cards */
    .action-card {
        padding: 1.5rem;
    }
    
    .action-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .action-card h3 {
        font-size: 1.2rem;
    }
    
    .action-card p {
        font-size: 0.95rem;
    }
    
    /* CTA cards */
    .cta-card {
        padding: 2.75rem 2rem;
    }
    
    .cta-card h2 {
        font-size: 1.85rem;
    }
    
    .cta-card .lead {
        font-size: 1.05rem;
    }
    
    /* Offer modal for laptops */
    .offer-modal {
        max-width: 480px;
    }
    
    .offer-modal-header {
        padding: 2.25rem 1.75rem 2.75rem;
    }
    
    .offer-modal-body {
        padding: 2.25rem 1.75rem 1.75rem;
    }
    
    /* Celestial elements sizing */
    .celestial-moon {
        width: 55px;
        height: 55px;
    }
    
    .celestial-planet {
        width: 35px;
        height: 35px;
    }
    
    .star {
        width: 3px;
        height: 3px;
    }
    
    /* Grid optimizations */
    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    
    .row > * {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.35rem;
    }
    
    /* Button sizing */
    .btn {
        padding: 0.65rem 1.35rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.85rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Feature boxes */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    /* Personalized hero adjustments */
    .personalized-hero {
        padding: 4rem 0;
    }
    
    .personalized-hero h1 {
        font-size: 2.5rem;
    }
    
    .personalized-hero .lead {
        font-size: 1.15rem;
    }
    
    .personalized-hero .glass-card {
        padding: 1.35rem;
        margin-bottom: 1rem;
    }
}

/* Large Laptops & Desktops (1200px+) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 4.5rem 0;
    }
    
    .stats-section {
        padding: 4.5rem 0;
    }
    
    .panchang-hero {
        padding: 4.5rem 0;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .action-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    .hero-section { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
    .stats-section { background-color: #ffffff; }
    .bg-gradient-cta { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */
@media (prefers-contrast: high) {
    .hero-section { background: #667eea; }
    .bg-gradient-premium, .bg-gradient-cta { background: #667eea; }
    .btn { border: 2px solid currentColor; }
}
