/* ========================================
   MEMBERS AREA SECTION - PREMIUM DESIGN
   ======================================== */
.unified-split-footer-gap {
    height: 85vh;
}
.non-member-view {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    background: var(--black-void);
}

/* Background Effects */
.non-member-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 106, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(94, 23, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 191, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.access-gate-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Lock Animation */
.lock-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.lock-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--main-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-lock 2s ease-in-out infinite;
    box-shadow: var(--neon-glow);
}

.lock-circle i {
    font-size: 2.5rem;
    color: var(--soft-white);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes pulse-lock {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 106, 0, 0.3), 0 0 50px rgba(255, 106, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(255, 106, 0, 0.5), 0 0 70px rgba(255, 106, 0, 0.3);
    }
}

.lock-particles {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.lock-particles::before,
.lock-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--molten-orange);
    border-right-color: var(--deep-purple);
    animation: rotate-particles 3s linear infinite;
}

.lock-particles::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.lock-particles::after {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-duration: 2s;
    animation-direction: reverse;
    border-top-color: var(--electric-blue);
    border-right-color: var(--liquid-gold);
}

@keyframes rotate-particles {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Gate Title */
.gate-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gate-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Unlock Message */
.unlock-message {
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.unlock-message i {
    font-size: 1.5rem;
    color: var(--molten-orange);
    flex-shrink: 0;
}

.unlock-message p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Step Card */
.step-card {
    background: var(--graphite);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--main-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: 0 10px 40px rgba(255, 106, 0, 0.2), 0 0 60px rgba(94, 23, 235, 0.1);
}

.step-card:hover::before {
    opacity: 0.05;
}

/* Step Badge */
.step-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--main-gradient);
    color: var(--soft-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

/* Icon Wrapper */
.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    z-index: 1;
}

.icon-bg {
    position: absolute;
    inset: 0;
    background: var(--charcoal);
    border-radius: 50%;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.step-card:hover .icon-bg {
    border-color: var(--molten-orange);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
}

.step-icon-wrapper i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--molten-orange);
    transition: all 0.3s ease;
    z-index: 2;
}

.step-card:hover .step-icon-wrapper i {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--liquid-gold);
}

/* Step Content */
.step-content {
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.step-content p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Instagram Button */
.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: var(--soft-white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(131, 58, 180, 0.5);
    color: var(--soft-white) !important;
}

.instagram-btn i:first-child {
    font-size: 1.3rem;
}

.instagram-btn span {
    font-size: 0.95rem;
}

.instagram-btn i:last-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Signup Button */
.signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.signup-btn i:first-child {
    font-size: 1rem;
}

/* Step Progress */
.step-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--charcoal);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--main-gradient);
    transition: width 0.6s ease;
}

.step-card.completed .progress-bar {
    width: 100%;
}

/* Step Arrow */
.step-arrow {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.step-arrow i {
    font-size: 1.5rem;
    color: var(--molten-orange);
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(5px);
        opacity: 0.6;
    }
}

/* Completion Status */
.completion-status {
    background: var(--charcoal);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-text {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-value {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-value.locked {
    background: rgba(199, 0, 57, 0.15);
    color: var(--blood-red);
    border: 1px solid rgba(199, 0, 57, 0.3);
}

.status-value.unlocked {
    background: rgba(0, 191, 255, 0.15);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 191, 255, 0.3);
}

/* Already Member */
.already-member {
    text-align: center;
    padding-top: 1rem;
}

.already-member p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--molten-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.login-link:hover {
    color: var(--liquid-gold);
    border-color: var(--border-strong);
    background: rgba(255, 106, 0, 0.05);
    transform: translateX(5px);
}

.login-link i {
    transition: transform 0.3s ease;
}

.login-link:hover i {
    transform: translateX(3px);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-non-member .lock-animation {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.animate-non-member .gate-title {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.animate-non-member .gate-subtitle {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.animate-non-member .unlock-message {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.animate-non-member .instagram-step {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.animate-non-member .step-arrow {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.animate-non-member .signup-step {
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.animate-non-member .completion-status {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.animate-non-member .already-member {
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .non-member-view {
        padding: 2rem 1rem;
    }

    .gate-title {
        font-size: 1.8rem;
    }

    .gate-subtitle {
        font-size: 0.95rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .step-icon-wrapper i {
        font-size: 1.5rem;
    }

    .step-content h3 {
        font-size: 1.2rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .instagram-btn,
    .signup-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gate-title {
        font-size: 1.5rem;
    }

    .lock-circle {
        width: 80px;
        height: 80px;
    }

    .lock-circle i {
        font-size: 2rem;
    }

    .step-card {
        padding: 1.2rem;
    }

    .status-indicator {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   PREMIUM 9:16 VERTICAL FESTIVAL SECTION
   NO SCROLLBAR - GLASSMORPHISM
   ============================================ */

.festival-horizontal-section {
    position: relative;
    padding: clamp(2rem, 5vw, 3rem) 0;
    /* We hide overflow here to mask the scrollbar if it leaks */
    overflow: hidden; 
    z-index: 1;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(88, 28, 135, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #050714 100%);
}

.festival-horizontal-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(5, 7, 20, 0.8), rgba(5, 7, 20, 0.8)),
        url("/images/gorakhpur-sanatan-devotional-background-with-bells-mandala.jpg") center center / cover no-repeat;
    z-index: -1;
    opacity: 0.6;
    filter: blur(2px);
}

.festival-horizontal-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.08) 0%, transparent 50%);
    z-index: 0;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
}

.section-header h2.text-fill {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.5vw, 3px);
    margin-bottom: 0.8rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.section-header h2.text-fill::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(50px, 12vw, 80px);
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

.section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 600px;
    margin: 0 auto;
}

/* 
   HORIZONTAL TRACK 
   Key Change: overflow-x is handled carefully to allow scroll but hide bar 
*/
.horizontal-track {
    display: flex;
    gap: clamp(12px, 2.5vw, 20px);
    padding: clamp(1rem, 3vw, 2rem) clamp(2vw, 4vw, 4vw);
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    
    /* ALLOW SCROLLING */
    overflow-x: auto; 
    overflow-y: hidden;
    
    /* FORCE HIDE SCROLLBAR (Firefox/IE) */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* FORCE HIDE SCROLLBAR (Chrome/Safari/Edge) */
.horizontal-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.horizontal-track::-webkit-scrollbar-thumb {
    display: none !important;
}

.horizontal-track::-webkit-scrollbar-track {
    display: none !important;
}

/* ============================================
   PREMIUM 9:16 GLASSMORPHISM CARDS
   ============================================ */

.h-card {
    width: clamp(200px, 35vw, 280px);
    aspect-ratio: 9 / 16;
    flex-shrink: 0;
    position: relative;
    border-radius: clamp(12px, 2vw, 16px);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Premium glass effect */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    scroll-snap-align: start;
}

.h-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.12) 0%,
        transparent 50%,
        rgba(255, 165, 0, 0.08) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.h-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 20px 60px rgba(255, 215, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 215, 0, 0.3) inset;
}

.h-card:hover::before {
    opacity: 1;
}

/* Card Background Image */
.h-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    filter: brightness(0.65) saturate(1.3);
}

.h-card:hover .h-card-bg {
    transform: scale(1.12);
    filter: brightness(0.75) saturate(1.5);
}

/* Gradient Overlay */
.h-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(5, 7, 20, 0.98) 0%,
        rgba(5, 7, 20, 0.85) 25%,
        rgba(5, 7, 20, 0.5) 50%,
        rgba(5, 7, 20, 0.2) 75%,
        transparent 100%
    );
    z-index: 2;
}

/* Large Number Badge */
.h-card-num {
    position: absolute;
    top: clamp(12px, 2vw, 16px);
    right: clamp(12px, 2vw, 16px);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: rgba(255, 215, 0, 0.15);
    font-weight: 900;
    z-index: 3;
    line-height: 1;
    font-family: 'Georgia', serif;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.h-card:hover .h-card-num {
    color: rgba(255, 215, 0, 0.3);
    transform: scale(1.15);
}

/* Card Content Container */
.h-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(0.4rem, 1vw, 0.7rem);
}

/* Date Badge - Premium Glass */
.h-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFD700;
    font-weight: 600;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    padding: clamp(5px, 1vw, 7px) clamp(10px, 2vw, 14px);
    border-radius: clamp(6px, 1vw, 8px);
    width: fit-content;
    border: 1px solid rgba(255, 215, 0, 0.35);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    transition: all 0.3s ease;
}

.h-card-date::before {
    content: '◆';
    font-size: 0.5rem;
    opacity: 0.8;
}

.h-card:hover .h-card-date {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

/* Festival Name */
.h-card-name {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    position: relative;
}

.h-card-name::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, transparent);
    opacity: 0.8;
}

/* Countdown Timer - Enhanced Glass */
.h-card-timer {
    display: flex;
    gap: clamp(5px, 1vw, 8px);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: clamp(8px, 1.5vw, 12px);
    border-radius: clamp(8px, 1.5vw, 10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s ease;
}

.h-card:hover .h-card-timer {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.25);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.t-box {
    text-align: center;
    flex: 1;
    position: relative;
    padding: clamp(3px, 0.8vw, 6px) clamp(2px, 0.5vw, 4px);
}

.t-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.35), transparent);
}

.val {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 800;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.h-card:hover .val {
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
    transform: scale(1.08);
}

.lbl {
    font-size: clamp(0.45rem, 1vw, 0.55rem);
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: clamp(3px, 0.8vw, 5px);
    display: block;
    font-weight: 500;
}

/* Decorative Corner Accents */
.h-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(35px, 6vw, 50px);
    height: clamp(35px, 6vw, 50px);
    border-top: 2px solid rgba(255, 215, 0, 0.35);
    border-left: 2px solid rgba(255, 215, 0, 0.35);
    border-top-left-radius: clamp(12px, 2vw, 16px);
    z-index: 5;
    opacity: 0;
    transition: all 0.4s ease;
}

.h-card:hover::after {
    opacity: 1;
    width: clamp(50px, 9vw, 65px);
    height: clamp(50px, 9vw, 65px);
    border-color: rgba(255, 215, 0, 0.7);
}

/* Bottom-right corner accent */
.h-card .corner-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(35px, 6vw, 50px);
    height: clamp(35px, 6vw, 50px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.35);
    border-right: 2px solid rgba(255, 215, 0, 0.35);
    border-bottom-right-radius: clamp(12px, 2vw, 16px);
    z-index: 5;
    opacity: 0;
    transition: all 0.4s ease;
}

.h-card:hover .corner-accent {
    opacity: 1;
    width: clamp(50px, 9vw, 65px);
    height: clamp(50px, 9vw, 65px);
    border-color: rgba(255, 215, 0, 0.7);
}

/* Loading State Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.h-card.loading .h-card-name,
.h-card.loading .h-card-date {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    color: transparent;
}

/* Entrance Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.h-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.h-card:nth-child(1) { animation-delay: 0.1s; }
.h-card:nth-child(2) { animation-delay: 0.15s; }
.h-card:nth-child(3) { animation-delay: 0.2s; }
.h-card:nth-child(4) { animation-delay: 0.25s; }
.h-card:nth-child(5) { animation-delay: 0.3s; }
.h-card:nth-child(6) { animation-delay: 0.35s; }
.h-card:nth-child(7) { animation-delay: 0.4s; }
.h-card:nth-child(8) { animation-delay: 0.45s; }
.h-card:nth-child(9) { animation-delay: 0.5s; }
.h-card:nth-child(10) { animation-delay: 0.55s; }
.h-card:nth-child(11) { animation-delay: 0.6s; }

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .festival-horizontal-section {
        padding: 2rem 0;
    }
    
    .horizontal-track {
        padding: 1.2rem 3vw;
        gap: 12px;
    }
    
    .h-card {
        width: 220px;
    }
    
    .h-card-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header h2.text-fill {
        font-size: 1.4rem;
    }
    
    .horizontal-track {
        padding: 1rem 2vw;
        gap: 10px;
    }
    
    .h-card {
        width: 200px;
    }
    
    .h-card-content {
        padding: 0.9rem;
    }
    
    .h-card-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .h-card {
        width: 180px;
    }
    
    .h-card-content {
        padding: 0.8rem;
    }
    
    .h-card-name {
        font-size: 0.9rem;
    }
    
    .h-card-num {
        font-size: 2.2rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .h-card {
        animation: none;
        transition: none;
    }
    
    .h-card:hover {
        transform: none;
    }
    
    .h-card-bg {
        transition: none;
    }
    
    .festival-horizontal-section::after {
        animation: none;
    }
}

/* Focus Visible */
.h-card:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 4px;
}


/* =========================================
   PREMIUM RASHI DASHBOARD STYLES
   ========================================= */

.rashi-dashboard {
    padding: clamp(2rem, 5vw, 4rem) 0;
    width: 100%;
    position: relative;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Give more space to the result card */
    gap: clamp(24px, 4vw, 48px);
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}
.astro-status-wrapper .status-card {
    text-align: center;
    padding: 0.3rem 0;
}
/* --- LEFT PANEL: ACTIVE INSIGHT --- */
.active-insight-panel {
    position: sticky;
    top: 100px;
    min-height: 500px;
    perspective: 1000px; /* For 3D effects */
}

.insight-header {
    margin-bottom: 2rem;
    border-left: 4px solid #FFD700;
    padding-left: 1.5rem;
    position: relative;
}

.insight-header h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.insight-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 6px;
    display: block;
    font-weight: 300;
}

/* --- PREMIUM LIQUID GLASS CARD --- */
.liquid-card {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.6) 0%, rgba(10, 10, 15, 0.8) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top highlight */
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

/* Animated Shine Effect */
.liquid-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-20deg);
    animation: shineMove 6s infinite linear;
    pointer-events: none;
}

@keyframes shineMove {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.liquid-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 40px 80px -12px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.05); /* Subtle gold glow */
    border-color: rgba(255, 215, 0, 0.2);
}

/* --- SKELETON LOADER (Premium Pulse) --- */
.skeleton-state {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.5s ease;
}

.sk-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 15px;
}

.sk-title {
    width: 50%;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.sk-text {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.sk-line-long { width: 100%; margin-top: 10px; }
.sk-line-short { width: 70%; margin-top: 10px; }

.sk-stats {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.sk-stat {
    flex: 1;
    height: 60px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- REAL CONTENT STYLING --- */
.card-top {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.res-icon-lg img {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    transition: transform 0.5s ease;
}

.liquid-card:hover .res-icon-lg img {
    transform: scale(1.2) rotate(5deg);
}

.res-meta h2 {
    color: #FFD700;
    font-size: 2rem;
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.prediction-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.prediction-text::first-letter {
    font-size: 1.5em;
    color: #FFD700;
    font-weight: 600;
    margin-right: 4px;
}

/* Lucky Stats Grid */
.lucky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.mini-stat {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mini-stat:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.mini-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.mini-val {
    display: block;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

/* --- RIGHT PANEL: RASHI GRID --- */
.rashi-selection-panel {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-title {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.rashi-selection-panel h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.rashi-selection-panel p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.rashi-grid-liquid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

/* Premium Button Style */
.rashi-btn-liquid {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.rashi-btn-liquid img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(1.2);
}

.rashi-btn-liquid span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover Effects */
.rashi-btn-liquid:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.rashi-btn-liquid:hover img {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    transform: scale(1.1);
}

.rashi-btn-liquid:hover span {
    color: #FFD700;
}

/* Active State */
.rashi-btn-liquid.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.rashi-btn-liquid.active img {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.rashi-btn-liquid.active span {
    color: #FFD700;
    font-weight: 700;
}

.hidden { display: none !important; }

/* Responsive Adjustments */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .active-insight-panel {
        position: static;
        order: 2;
    }
    
    .rashi-selection-panel {
        order: 1;
    }
    
    .liquid-card {
        padding: 1.5rem;
    }
    
    .res-meta h2 {
        font-size: 1.5rem;
    }
}












/* =========================================
   PREMIUM KUNDLI SECTION WITH COSMIC BG
   ========================================= */

.kundli-section {
    position: relative;
    min-height: 100vh;
    padding: clamp(3rem, 6vw, 5rem) 0;
    overflow: hidden;
}

.kundli-cosmic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("/images/ancient-astrology-background-gorakhpur-sanatan.png")
        center center / cover no-repeat;
}

/* Dark fade overlay */
.kundli-cosmic-bg::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,      
        rgba(0,0,0,0.25) 35%,    
        rgba(0,0,0,0.45) 70%,    
        rgba(0,0,0,0.6) 100%     
    );
}

.kundli-cosmic-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.45) 1px, transparent 2px),
        radial-gradient(circle at 35% 60%, rgba(255,215,0,.25) 1px, transparent 2px),
        radial-gradient(circle at 75% 30%, rgba(255,255,255,.35) 1.5px, transparent 2.5px),
        radial-gradient(circle at 90% 80%, rgba(255,215,0,.2) 1px, transparent 2px);

    background-size: 220px 220px;
    opacity: 5;
}

.kundli-section > *:not(.kundli-cosmic-bg) {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* Glass Panel Base */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced Form Styling */
.kundli-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Premium Button */
.primary-btn {
    grid-column: 1 / -1;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.primary-btn:active {
    transform: translateY(-1px);
}

/* Loader Animation */
.spinner-orb {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.1);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#kundli-loader {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Chart Summary */
.chart-summary {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
}

.summary-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.summary-header h3 {
    color: #FFD700;
    font-size: 1.8rem;
    margin: 0 0 8px 0;
}

.sub-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Enhanced Planets Grid */
.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.planet-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.planet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.planet-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.planet-card:hover::before {
    opacity: 1;
}

.planet-name {
    color: #FFD700;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.planet-sign {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.planet-house {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Retrograde Indicator */
.planet-card small {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Insights Box */
.insights-box {
    padding: 25px;
    background: rgba(255, 215, 0, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.08);
}

.insights-box h4 {
    color: #FFD700;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#aspects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#aspects-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#aspects-list li:last-child {
    border-bottom: none;
}

#aspects-list li::before {
    content: '✦';
    color: #FFD700;
    font-size: 0.8rem;
}

.hidden { display: none !important; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .kundli-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .planets-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .chart-summary {
        padding: 20px;
    }
}




/* --- Sacred Map Portal Design --- */
.sacred-map-portal {
    position: relative;
    padding:2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    overflow: hidden;
}

/* 1. Background with Radial Mask (Professional Blend) */
.portal-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Your specific image */
    background-image: url('../images/members-section-side-img-gorakhpur-sanatan.jpg');
    background-size: cover;
    background-position: center;
    
    /* Unique Blend: Luminosity makes it look like part of the dark theme */
    opacity: 0.35;
    mix-blend-mode: luminosity;
    filter: contrast(1.2);
    
    /* Radial Mask: Focuses attention on the center, fades edges to black */
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}

/* 2. Content Wrapper (Borderless) */
.portal-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Header & Symbol */
.sacred-symbol {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.sacred-symbol i {
    font-size: 1.8rem;
    color: #FFD700;
}

.portal-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

/* The "Few Minutes" Badge */
.speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #fff;
    backdrop-filter: blur(5px);
}

.speed-badge i {
    color: #FFD700;
    animation: flash 2s infinite;
}

.speed-badge strong {
    color: #FFD700;
    font-weight: 700;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.portal-desc {
    color: var(--soft-white);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* 3. Constellation Features (Unique Layout) */
.constellation-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.star-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.star-node i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.star-node:hover {
    color: #FFD700;
    transform: translateY(-5px);
}

.star-node:hover i {
    text-shadow: 0 0 15px #FFD700;
}

.active {
    color: #FFD700;
}

.active i {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Glowing Connection Lines */
.connection-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    margin-top: -20px; /* Align with icon center */
}

/* Responsive */
@media (max-width: 768px) {
    .sacred-map-portal {
        padding: 5rem 1.5rem;
    }
    
    .constellation-features {
        flex-direction: column;
        gap: 2rem;
    }
    
    .connection-line {
        width: 1px;
        height: 30px;
        background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.3), transparent);
        margin-top: 0;
    }
}


/* =========================================
   SANATAN QUIZ - ENHANCED STYLES
   ========================================= */

.quiz-section {
    position: relative;
    padding: 3rem 1.5rem;
    min-height: 100vh;
    background: var(--black-void);
    overflow: hidden;
}

/* Header */
.quiz-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.quiz-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* =========================================
   GRID LAYOUT SYSTEM
   ========================================= */

.quiz-grid-parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quiz-grid-item {
    position: relative;
}

.div1 {
    grid-column: span 2 / span 2;
}

.div2 {
    grid-column: span 2 / span 2;
    grid-row: span 4 / span 4;
    grid-column-start: 1;
    grid-row-start: 2;
}

.div3 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 1;
}

.div4 {
    grid-column: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 3;
}

.div5 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 4;
}

/* =========================================
   GLASS CARD BASE STYLE
   ========================================= */

.glass-card {
    background: rgba(21, 21, 21, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 204, 0, 0.3);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 204, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* =========================================
   SCREEN MANAGEMENT
   ========================================= */

.quiz-screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-screen.active {
    display: block;
}

/* =========================================
   CERTIFICATE VERIFICATION CARD (DIV1)
   ========================================= */

.verify-card {
    background: linear-gradient(135deg, rgba(21, 21, 21, 0.8), rgba(30, 30, 30, 0.7));
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.verify-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--liquid-gold), var(--molten-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.3);
}

.verify-title {
    color: var(--text-primary);
    font-family: var(--heading-font);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.verify-desc {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--liquid-gold);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-btn {
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, var(--liquid-gold), var(--molten-orange));
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.search-btn:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
}

.search-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.search-hint i {
    color: var(--electric-blue);
}

/* =========================================
   START SCREEN (Inside DIV2)
   ========================================= */

.start-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-icon img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 25px var(--molten-orange));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.card-title {
    color: var(--text-primary);
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1rem;
}

.quiz-rules {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 2rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rule-item.highlight {
    color: var(--liquid-gold);
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 8px;
}

.rule-item.highlight i {
    color: var(--liquid-gold);
}

.certificate-preview {
    background: rgba(255, 204, 0, 0.05);
    border: 1px dashed var(--liquid-gold);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.preview-badge i {
    font-size: 1.8rem;
    color: var(--liquid-gold);
}

.preview-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   QUESTION SCREEN (Inside DIV2)
   ========================================= */

.question-card {
    min-height: 100%;
}

.quiz-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--liquid-gold), var(--molten-orange));
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.progress-text {
    position: absolute;
    top: -28px;
    right: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.question-category {
    background: rgba(0, 191, 255, 0.1);
    color: var(--electric-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.question-number {
    color: var(--text-secondary);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.1rem;
}

.question-text {
    color: var(--text-primary);
    font-size: 1.35rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 500;
}

/* Options */
.options-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-btn {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 1.1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: var(--molten-orange);
    color: var(--text-primary);
    background: rgba(255, 106, 0, 0.08);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(255, 106, 0, 0.15);
}

.option-btn:hover::before {
    background: var(--molten-orange);
}

.option-btn.correct {
    background: rgba(0, 255, 127, 0.15);
    border-color: #00ff7f;
    color: #00ff7f;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.2);
}

.option-btn.correct::before {
    background: #00ff7f;
}

.option-btn.wrong {
    background: rgba(199, 0, 57, 0.15);
    border-color: var(--blood-red);
    color: var(--blood-red);
    box-shadow: 0 0 20px rgba(199, 0, 57, 0.2);
}

.option-btn.wrong::before {
    background: var(--blood-red);
}

/* Stats Bar */
.quiz-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item i {
    color: var(--liquid-gold);
    font-size: 1.3rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* =========================================
   QUICK STATS CARD (DIV3)
   ========================================= */

.stats-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(40, 40, 40, 0.7));
}

.stats-title {
    color: var(--text-primary);
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.quick-stats {
    display: flex; /* Changed from grid to flex for 1-row layout */
    gap: 0.8rem;   /* Reduced gap slightly to fit better horizontally */
    margin-bottom: 1.5rem;
    justify-content: space-between; /* Optional: distributes items evenly */
}

/* Keep the rest of your existing styles exactly as they are */
.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Slightly reduced internal gap for compactness */
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex: 1; /* Ensures each stat item takes equal width */
}

.quick-stat-item:hover {
    background: rgba(255, 204, 0, 0.05);
    border-color: rgba(255, 204, 0, 0.2);
    transform: translateY(-3px); /* Changed from translateX to translateY for row layout */
}

.quick-stat-item i {
    font-size: 1.3rem; /* Slightly smaller icon for horizontal fit */
    color: var(--liquid-gold);
    width: 30px;
    text-align: center;
}

.quick-stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat-value {
    font-size: 1.1rem; /* Adjusted size for horizontal layout */
    font-weight: 700;
    color: var(--text-primary);
}

.quick-stat-label {
    font-size: 0.7rem; /* Smaller label for compact row */
    color: var(--text-secondary);
}

/* =========================================
   RESULTS SCREEN (DIV4)
   ========================================= */

.results-card {
    min-height: 100%;
}

.result-icon {
    font-size: 4.5rem;
    color: var(--liquid-gold);
    position: absolute;
    top: -2rem;
    left: -2rem;
    rotate: 30deg;
    filter: drop-shadow(0 0 30px rgba(255, 204, 0, 0.5));
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-title {
    color: var(--text-primary);
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.result-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1rem;
}
/* Container for the score to keep layout stable */
.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    aspect-ratio: 1 / 1; /* Forces perfect square/circle */
    border-radius: 50%;
    
    /* Default State: Empty Dark Ring */
    background-color: var(--graphite); 
    background-image: 
        radial-gradient(closest-side, var(--bg-card) 79%, transparent 80% 100%),
        conic-gradient(var(--graphite) 0%, var(--graphite) 0%);
        
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth animation */
}

/* Inner Text Styling */
.score-inner {
    text-align: center;
    z-index: 2;
}

.score-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: block;
}

.score-total {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.7;
}
/* The Big Percentage Text on the right */
.score-percentage {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--liquid-gold);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
    font-family: 'Arial', sans-serif; /* Or your specific font */
}
.result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pass-fail-indicator {
    padding: 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.pass-fail-indicator.passed {
    background: rgba(0, 255, 127, 0.1);
    color: #00ff7f;
    border: 1px solid #00ff7f;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.2);
}

.pass-fail-indicator.failed {
    background: rgba(199, 0, 57, 0.1);
    color: var(--blood-red);
    border: 1px solid var(--blood-red);
    box-shadow: 0 0 20px rgba(199, 0, 57, 0.2);
}

/* Certificate Section */
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    display: none;
}

/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    border: 2px solid var(--liquid-gold);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 204, 0, 0.3),
                0 0 100px rgba(255, 204, 0, 0.1);
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: modalSlideIn 0.5s ease forwards;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: var(--liquid-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--liquid-gold);
    color: #000;
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.certificate-badge-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 204, 0, 0.1);
    border: 2px solid var(--liquid-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite;
}

.certificate-badge-large i {
    font-size: 2.5rem;
    color: var(--liquid-gold);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 204, 0, 0);
    }
}

.modal-title {
    color: var(--liquid-gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Registration Number Container */
.reg-number-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.reg-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reg-number-box-large {
    background: rgba(0, 0, 0, 0.6);
    border: 2px dashed var(--liquid-gold);
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: var(--liquid-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.reg-number-box-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 204, 0, 0.05),
        transparent
    );
    animation: reg-num-shimmer 3s infinite;
}

@keyframes reg-num-shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.reg-number-box-large i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reg-number-box-large span {
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.copy-btn {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid var(--liquid-gold);
    color: var(--liquid-gold);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--liquid-gold);
    color: #000;
    transform: scale(1.1);
}

.reg-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    min-width: 150px;
}


.btn-outline {
    background: transparent;
    border: 2px solid var(--liquid-gold);
    color: var(--liquid-gold);
}

.btn-outline:hover {
    background: var(--liquid-gold);
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 10px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .reg-number-box-large {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

.hidden {
    display: none !important;
}

/* =========================================
   FEATURES CARD (DIV5)
   ========================================= */

.features-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(40, 40, 40, 0.7));
}

.features-title {
    color: var(--text-primary);
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.features-list li:hover {
    background: rgba(255, 204, 0, 0.05);
    border-color: rgba(255, 204, 0, 0.2);
    transform: translateX(5px);
    color: var(--text-primary);
}

.features-list li i {
    color: var(--liquid-gold);
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet & Small Laptops (Max 1200px) */
@media (max-width: 1200px) {
    .quiz-grid-parent {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Ensure cards span correctly in a 2-column grid */
    .div1, .div2, .div3, .div4, .div5 {
        grid-column: span 1; 
    }
    
    /* If DIV2 (Main Quiz Area) needs to be full width on tablet */
    .div2 {
        grid-column: span 2;
    }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    .quiz-section {
        padding: 1.5rem 1rem;
    }
    
    .quiz-grid-parent {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Reset Grid Spans for Flex Layout */
    .div1, .div2, .div3, .div4, .div5 {
        width: 100%;
        grid-column: auto;
    }

    /* --- Card Adjustments --- */
    .glass-card {
        padding: 1.5rem;
    }

    /* --- Verify/Search Section --- */
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }

    /* --- Start Screen --- */
    .card-title {
        font-size: 1.8rem;
    }
    
    .card-icon img {
        width: 80px;
        height: 80px;
    }

    /* --- Question Screen --- */
    .question-text {
        font-size: 1.15rem;
        line-height: 1.5;
    }
    
    .option-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* Make stats stack or shrink nicely */
    .quiz-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1 1 45%; /* 2 items per row on mobile */
        justify-content: center;
    }

    /* --- Quick Stats (DIV3) --- */
    .quick-stats {
        flex-wrap: wrap; /* Allow wrapping if screen is very narrow */
    }
    
    .quick-stat-item {
        flex: 1 1 calc(50% - 0.5rem); /* 2 items per row */
        min-width: 140px;
    }

    /* --- Results Screen --- */
    .result-details {
        grid-template-columns: 1fr; /* Stack details vertically */
        gap: 0.8rem;
    }
    
    .detail-item {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .detail-item:last-child {
        border-bottom: none;
    }

    .score-display {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .score-circle {
        width: 140px;
        height: 140px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .score-percentage {
        font-size: 2.8rem;
    }
    
    .result-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .result-actions .btn {
        width: 100%;
    }

    /* --- Modal Responsive --- */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto; /* Scrollable if content is too long */
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .reg-number-box-large {
        font-size: 1rem;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* Small Mobile Devices (Max 480px) */
@media (max-width: 480px) {
    .quiz-section {
        padding: 1rem 0.8rem;
    }
    
    .glass-card {
        padding: 1.2rem;
        border-radius: 12px;
    }

    /* Typography Scaling */
    .card-title, .result-title {
        font-size: 1.6rem;
    }
    
    .verify-title, .stats-title, .features-title {
        font-size: 1.3rem;
    }

    .question-text {
        font-size: 1.05rem;
    }

    /* Compact Stats */
    .quick-stat-item {
        flex: 1 1 100%; /* Full width stats on very small screens */
        padding: 0.6rem;
    }
    
    .quick-stat-value {
        font-size: 1rem;
    }
    
    .quick-stat-label {
        font-size: 0.65rem;
    }

    /* Result Details Compact */
    .detail-value {
        font-size: 1.1rem;
    }
    
    .pass-fail-indicator {
        font-size: 0.9rem;
        padding: 1rem;
    }
}