:root {
    --bg-color: #050505;
    --primary-red: #8B0000;
    --bright-red: #ff1a1a;
    --text-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: default;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

.loader-content {
    text-align: center;
}

.glow-text {
    font-size: 2.5rem;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-red), 0 0 20px var(--bright-red);
    animation: pulse 2s infinite;
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--bright-red);
    margin: 20px auto 0;
    animation: loadLine 2s ease-in-out forwards;
}

/* Spotlight Effect */
#spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(139, 0, 0, 0.2) 0%, transparent 40%);
    opacity: 1;
    mix-blend-mode: screen;
}

/* Navigation - Refined Pill Shape */
.glass-nav {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 40px;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    justify-content: space-between;
}

/* Desktop Order (Default) */
.brand-container {
    order: 1;
}

.nav-links {
    order: 2;
}

.login-btn,
.user-dropdown-container {
    order: 3;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
    opacity: 0.8;
    /* Adjusted transparency */
    transition: opacity 0.3s ease;
}

.brand-container:hover {
    opacity: 1;
    /* Full opacity on hover */
}

.brand-logo {
    display: none;
    /* Hide old polygon logo */
}

.logo {
    font-weight: 700;
    font-size: 1rem;
    /* Smaller size */
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    margin-left: 5px;
}

.nav-logo-img {
    height: 28px;
    /* Smaller size */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: 20px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.4);
}

/* System Status Bar */
.system-status {
    position: fixed;
    bottom: 30px;
    left: 40px;
    z-index: 90;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 10px #0f0;
}

/* Sections */
section {
    position: relative;
    z-index: 2;
    padding: 120px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Refinement */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 6rem;
    line-height: 0.85;
    letter-spacing: -3px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-title .line {
    background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .highlight-text {
    font-size: 8rem;
    color: var(--primary-red);
    -webkit-text-fill-color: var(--primary-red);
    text-shadow: 0 10px 60px rgba(139, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-family: monospace;
    color: var(--bright-red);
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.7rem;
    color: #777;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Section Headers */
.section-header {
    margin-bottom: 70px;
    text-align: center;
}

.section-tag {
    display: block;
    font-family: monospace;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-container {
    max-width: 1200px;
    width: 100%;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #ccc;
}

.big-text {
    font-size: 1.8rem;
    line-height: 1.4;
    color: #999;
    font-weight: 300;
}

.highlight {
    color: #fff;
    font-weight: 500;
}

/* About Grid */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
}

.mv-box {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.6), rgba(10, 10, 10, 0.8));
    border: 1px solid #222;
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.mv-box:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 10px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 12px;
}

.mv-box h3 {
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

/* Event Cards Redesign */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.event-card {
    height: 450px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 1) 100%);
    border: 1px solid #222;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

.event-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-status {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

.status-active {
    color: #0f0;
    border-color: rgba(0, 255, 0, 0.3);
}

.status-soon {
    color: #eb0;
    border-color: rgba(238, 187, 0, 0.3);
}

.card-image {
    height: 55%;
    width: 100%;
    border-bottom: 1px solid #222;
    transition: all 0.5s ease;
    overflow: hidden;
    /* Ensure img stays inside */
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0);
    transition: all 0.5s ease;
    display: block;
}

.event-card:hover .card-image img {
    filter: saturate(1);
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* Removed bg-hack, bg-workshop, bg-talk background-images 
   as they are now in HTML <img> tags for lazy loading */

.card-content {
    padding: 25px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.date-badge {
    position: absolute;
    top: -25px;
    right: 25px;
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.date-badge .month {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 1px;
}

.date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.event-type {
    font-family: monospace;
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 10px;
    display: block;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.1;
    color: #fff;
}

.event-details p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.arrow {
    background: #1a1a1a;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    color: #fff;
    font-size: 0.8rem;
}

.event-card:hover .arrow {
    background: var(--primary-red);
    transform: rotate(45deg);
}

/* Gallery - Grid & Overlay */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.gallery-info {
    text-align: center;
    font-family: monospace;
    color: #0f0;
    margin-bottom: 30px;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.gallery-item {
    height: 280px;
    background: #111;
    border-radius: 12px;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::before {
    content: none;
    display: none;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item .overlay {
    display: none !important;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--primary-red);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 25px var(--bright-red);
    }
}

@keyframes loadLine {
    0% {
        width: 0;
    }

    100% {
        width: 200px;
    }
}


/* Operative Network Styles */
.operative-network-label {
    text-align: center;
    font-family: monospace;
    color: var(--primary-red);
    margin: 40px 0 30px 0;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 100%;
    clear: both;
}

.network-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    width: 100%;
}

.mini-card {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* overflow: hidden; Removed to allow popup to show outside */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    border-radius: 50%;
    /* Applied to image directly */
}

.mini-card:hover {
    transform: scale(1.2);
    border-color: var(--primary-red);
    z-index: 10;
    box-shadow: 0 0 15px var(--primary-red);
}

.mini-card:hover img {
    filter: grayscale(0%);
}


/* Name Popup Styles */
.name-popup {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-red);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.name-popup .name {
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.name-popup .role {
    font-size: 0.7rem;
    color: var(--primary-red);
    font-family: monospace;
}

.mini-card:hover .name-popup {
    opacity: 1;
    visibility: visible;
    bottom: -70px;
}

@media (max-width: 768px) {
    .glass-nav {
        width: 100%;
        min-width: 100%;
        padding: 15px 20px;
        top: 0;
        bottom: auto;
        border-radius: 0;
        background: rgba(5, 5, 5, 0.95);
        /* Solid functionality */
        border-bottom: 1px solid var(--glass-border);
        border-top: none;
        border-left: none;
        border-right: none;
    }

    .system-status {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
        /* Reduced from 4rem */
        line-height: 1.1;
    }

    .hero-title .highlight-text {
        font-size: 3.5rem;
        /* Reduced from 5rem */
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
        text-align: center;
        padding: 0 20px;
    }

    /* Hamburger Menu Icon */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 2000;
        order: 3;
        /* Hamburger always on right */
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px;
        transition: all 0.3s ease;
    }

    .brand-container {
        order: 1;
        /* Brand on left */
        flex-grow: 1;
    }

    /* Mobile Nav Links (Slide Out) */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        /* Starts from top */
        height: 100vh;
        background: #000;
        /* Solid black */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        /* Wider menu */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1500;
        border-left: 1px solid #333;
        padding-top: 60px;
        /* Space for close button if needed */
    }

    /* Hide Desktop Login Button inside Nav Links if accidentally present */
    .nav-links .login-btn {
        display: none !important;
    }

    /* Login Button & User Dropdown on Mobile Header */
    .login-btn,
    .user-dropdown-container {
        order: 2;
        /* Next to hamburger */
        margin-right: 10px;
        /* Spacing */
    }

    .login-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Adjust User Button for Mobile */
    .user-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Fix Dropdown Menu Position on Mobile */
    .dropdown-menu {
        top: 50px;
        right: 60px;
        /* Shift left to not be covered by edge */
        width: 200px;
        background: rgba(10, 10, 10, 0.95);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links a {
        opacity: 0;
        margin: 20px 0;
        font-size: 1.2rem;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        /* Increased gap */
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
        /* Allow wrapping */
        justify-content: center;
    }

    section {
        padding: 60px 20px;
        /* Slightly reduced vertical padding to fit more content, but balanced */
    }

    .section-title {
        font-size: 2.2rem;
        /* proportional to mobile */
    }

    /* Standard Mobile Gallery (Grid) */
    #gallery {
        height: auto;
        /* Allow scrolling */
        padding: 60px 20px;
        overflow: visible;
        display: block;
    }

    #gallery .section-header {
        margin-bottom: 40px;
        margin-top: 0;
    }

    #gallery .section-title {
        font-size: 2.5rem;
    }

    .gallery-grid {
        display: grid;
        /* Show grid */
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
    }

    .all-projects-header {
        display: block;
        /* Show header */
    }

    /* Standardize Section Padding */
    section {
        padding: 40px 20px;
    }

    /* Standardize Forms for Mobile (Prevent Zoom) */
    .form-control {
        font-size: 16px !important;
        /* Prevents iOS zoom */
        padding: 12px 15px;
    }

    .submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    .glass-form {
        padding: 20px;
        border-radius: 15px;
    }

    /* Hide the 3D slider on mobile if distinct */
    .gallery-container {
        display: none;
    }
}

/* Default padding for desktop gallery (since inline style was removed) */
#gallery {
    padding-top: 100px;
}

/* Registration Form Styles */
.glass-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    /* More breathing room inside form */
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.8);
}

.form-control option {
    background: #000;
    color: #fff;
    padding: 10px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: var(--bright-red);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* Contact Section / Footer */
footer {
    background: transparent;
    border-top: none;
    padding: 60px 20px;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-section h3 {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-red);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.copyright {
    font-family: monospace;
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 1px;
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 50px rgba(139, 0, 0, 0.5);
    border-radius: 10px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--primary-red);
}

/* User Dropdown Menu */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid var(--primary-red);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.user-btn:hover {
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.4);
    background: rgba(139, 0, 0, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(15px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: monospace;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(139, 0, 0, 0.2);
    color: #fff;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-red);
}


/* Google Sign-In Button */
.google-btn {
    width: 100%;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 40px;
    /* Pillow shape common for social login */
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    /* Google uses Roboto */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.google-btn img {
    width: 24px;
    height: 24px;
}

.google-btn:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: #f7f7f7;
}

.google-btn:active {
    transform: translateY(0);
}

/* Payment Page Styles - Professional (White Theme) */
.payment-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px;
    background: transparent;
}

.payment-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    /* Small box */
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #333;
    overflow: hidden;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

/* Header */
.payment-header {
    background: #ffffff;
    padding: 25px 25px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.secure-badge {
    display: inline-block;
    background: #e6fffa;
    color: #00b894;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #b2f5ea;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.payment-header h2 {
    color: #2d3436;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
}

.amount-display {
    margin: 15px 0;
}

.amount-display .currency {
    font-size: 1.2rem;
    color: #636e72;
    vertical-align: top;
    margin-right: 2px;
    font-weight: 500;
}

.amount-display .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -1px;
}

.payment-desc {
    color: #636e72;
    font-size: 0.85rem;
}

/* Tabs */
.method-tabs {
    display: flex;
    background: #f5f6fa;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.method-tabs button {
    flex: 1;
    background: transparent;
    border: none;
    color: #636e72;
    padding: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 6px;
}

.method-tabs button.active {
    color: var(--primary-red);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.method-tabs button:hover:not(.active) {
    color: #2d3436;
    background: rgba(0, 0, 0, 0.02);
}

/* Payment Body */
.payment-methods-container {
    background: #fff;
    min-height: 280px;
}

.payment-section {
    padding: 25px;
    display: none;
    animation: fadeIn 0.2s ease;
}

.payment-section.active {
    display: block;
}

.section-label {
    color: #2d3436;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.app-item:hover {
    transform: translateY(-2px);
}

.app-item.selected .app-icon {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

.app-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border: 1px solid #eee;
    font-weight: 700;
    color: #2d3436;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* App Specific Colors if desired, or keep uniform */
.app-icon.gpay {
    color: #4285F4;
}

.app-icon.paytm {
    color: #00b9f1;
    font-size: 0.7rem;
}

.app-icon.phonepe {
    color: #5f259f;
}

.app-icon.bhim {
    color: #ff9100;
}

.app-item span {
    font-size: 0.7rem;
    color: #636e72;
    font-weight: 500;
}

/* Input Fields */
.upi-input-container {
    display: flex;
    gap: 8px;
}

.upi-input-container input {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    color: #333;
    font-family: inherit;
    font-size: 0.9rem;
    transition: 0.2s;
}

.upi-input-container input:focus {
    background: #fff;
    border-color: var(--primary-red);
    outline: none;
}

.verify-btn {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.input-group label {
    display: block;
    color: #636e72;
    font-size: 0.75rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
}

.input-with-icon input,
.input-group input {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    color: #333;
    font-family: inherit;
    font-size: 0.95rem;
}

.input-with-icon input:focus,
.input-group input:focus {
    background: #fff;
    border-color: var(--primary-red);
    outline: none;
}

.row {
    display: flex;
    gap: 15px;
}

.row .input-group {
    flex: 1;
}

.pay-btn-large {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.pay-btn-large:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* QR */
.qr-container {
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    display: inline-block;
}

.qr-container img {
    width: 160px;
    height: 160px;
}

.qr-overlay {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
.payment-footer {
    background: #f9f9f9;
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #636e72;
}

.trust-icons span {
    margin-right: 10px;
    color: #636e72;
    font-weight: 500;
}

.trust-icons i {
    color: #00b894;
    margin-right: 4px;
}

.powered-by strong {
    color: #2d3436;
}

/* Login Page Styles */
.login-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    /* Space for nav */
}

.login-container {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.login-header p {
    color: #888;
    font-size: 0.9rem;
    font-family: monospace;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: var(--primary-red);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: monospace;
}

.input-group input {
    width: 100%;
    background: rgba(5, 5, 5, 0.5);
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.2);
    background: rgba(20, 0, 0, 0.2);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary-red);
    cursor: pointer;
}

.forgot-pass {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.forgot-pass:hover {
    color: #fff;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--primary-red);
    color: #fff;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transition: all 0.4s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

.login-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.login-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}

.login-footer a:hover {
    text-decoration: underline;
    color: var(--primary-red);
}

.active-login {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.4);
}

/* Ticket Action Buttons */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline:hover::before {
    width: 100%;
}

.save-btn {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.save-btn::before {
    background: var(--bright-red);
}

.save-btn:hover {
    color: #fff;
    border-color: var(--bright-red);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}