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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f8 100%);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed header */
}

/* ===== HEADER STYLES START ===== */

/* Header Section - Transparent with dynamic text colors */
.exp1s5-site-header {
    --header-bg-image: url('https://explerify.com/wp-content/uploads/2025/06/back.jpg');
    --header-bg-position: top center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-image: var(--header-bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: var(--header-bg-position);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.exp1s5-site-header.exp1s5-scrolled {
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.exp1s5-site-header.exp1s5-transparent-header {
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05) !important;
}

.exp1s5-site-header.exp1s5-transparent-header.exp1s5-scrolled {
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(25px) !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1) !important;
}

.exp1s5-header-container {
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Section */
.exp1s5-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    font-family: 'League Spartan', sans-serif;
    transition: all 0.3s ease;
}

.exp1s5-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.exp1s5-logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Atom Structure */
.exp1s5-atom {
    position: relative;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp1s5-nucleus {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: nucleusPulse 2s ease-in-out infinite alternate;
}

.exp1s5-nucleus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 6px solid #012051;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.exp1s5-orbit {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.exp1s5-orbit-1 {
    width: 50px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(0deg);
}

.exp1s5-orbit-2 {
    width: 50px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(60deg);
}

.exp1s5-orbit-3 {
    width: 50px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(120deg);
}

.exp1s5-electron {
    width: 5px;
    height: 5px;
    background: #4fc3f7;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.exp1s5-electron-1 {
    animation: exp1s5-electronOrbit1 3s linear infinite;
}

.exp1s5-electron-2 {
    animation: exp1s5-electronOrbit2 4s linear infinite;
}

.exp1s5-electron-3 {
    animation: exp1s5-electronOrbit3 5s linear infinite;
}

/* Electron orbit animations */
@keyframes exp1s5-electronOrbit1 {
    0% { transform: translate(-50%, -50%) translateX(22px) translateY(0px); }
    25% { transform: translate(-50%, -50%) translateX(0px) translateY(-8px); }
    50% { transform: translate(-50%, -50%) translateX(-22px) translateY(0px); }
    75% { transform: translate(-50%, -50%) translateX(0px) translateY(8px); }
    100% { transform: translate(-50%, -50%) translateX(22px) translateY(0px); }
}

@keyframes exp1s5-electronOrbit2 {
    0% { transform: translate(-50%, -50%) rotate(60deg) translateX(22px) translateY(0px) rotate(-60deg); }
    25% { transform: translate(-50%, -50%) rotate(60deg) translateX(0px) translateY(-8px) rotate(-60deg); }
    50% { transform: translate(-50%, -50%) rotate(60deg) translateX(-22px) translateY(0px) rotate(-60deg); }
    75% { transform: translate(-50%, -50%) rotate(60deg) translateX(0px) translateY(8px) rotate(-60deg); }
    100% { transform: translate(-50%, -50%) rotate(60deg) translateX(22px) translateY(0px) rotate(-60deg); }
}

@keyframes exp1s5-electronOrbit3 {
    0% { transform: translate(-50%, -50%) rotate(120deg) translateX(22px) translateY(0px) rotate(-120deg); }
    25% { transform: translate(-50%, -50%) rotate(120deg) translateX(0px) translateY(-8px) rotate(-120deg); }
    50% { transform: translate(-50%, -50%) rotate(120deg) translateX(-22px) translateY(0px) rotate(-120deg); }
    75% { transform: translate(-50%, -50%) rotate(120deg) translateX(0px) translateY(8px) rotate(-120deg); }
    100% { transform: translate(-50%, -50%) rotate(120deg) translateX(22px) translateY(0px) rotate(-120deg); }
}

@keyframes nucleusPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
    100% { 
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(255, 255, 255, 1);
    }
}

.exp1s5-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.exp1s5-logo-main {
    font-size: 1em;
    font-weight: 800;
}

.exp1s5-logo-tagline {
    font-size: 0.65em;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Navigation */
.exp1s5-main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.exp1s5-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.exp1s5-nav-links li {
    position: relative;
}

.exp1s5-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp1s5-nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    transition: width 0.3s ease;
}

.exp1s5-nav-links a:hover::before,
.exp1s5-nav-links a.exp1s5-active::before {
    width: 100%;
}

.exp1s5-nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.exp1s5-nav-links a.exp1s5-active {
    color: white;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Auth Section Styles */
.exp1s5-auth-section {
    position: relative;
}

.exp1s5-auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.exp1s5-auth-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.exp1s5-login-btn {
    color: white;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

.exp1s5-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.exp1s5-signup-btn {
    color: #4a90e2;
    background: white;
    border-color: white;
}

.exp1s5-signup-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* User Profile Styles */
.exp1s5-user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.exp1s5-user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.exp1s5-user-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.exp1s5-user-profile:hover .exp1s5-user-avatar-container {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.exp1s5-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.exp1s5-user-avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 600;
}

.exp1s5-user-avatar-fallback svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.exp1s5-user-avatar:not([src=""]) + .exp1s5-user-avatar-fallback {
    display: none;
}

.exp1s5-user-info {
    display: flex;
    flex-direction: column;
    position: relative;
}

.exp1s5-user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

/* User Dropdown */
.exp1s5-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 180px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.exp1s5-user-profile:hover .exp1s5-user-dropdown,
.exp1s5-user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.exp1s5-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.exp1s5-dropdown-item:last-child {
    border-bottom: none;
}

.exp1s5-dropdown-item:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    transform: translateX(4px);
}

.exp1s5-dropdown-item.exp1s5-logout {
    color: #dc3545;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.exp1s5-dropdown-item.exp1s5-logout:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Mobile Menu Toggle */
.exp1s5-mobile-menu-toggle {
    display: none;
    background: #012051;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.exp1s5-mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Styles */
@media (max-width: 968px) {
    .exp1s5-mobile-menu-toggle {
        display: flex;
    }

    .exp1s5-main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: rgba(1, 32, 81, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .exp1s5-main-nav.exp1s5-active {
        left: 0;
    }

    .exp1s5-nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .exp1s5-nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .exp1s5-nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .exp1s5-auth-section {
        width: 100%;
        margin-top: 1rem;
        margin-left: 0;
    }

    .exp1s5-auth-buttons {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }

    .exp1s5-auth-btn {
        width: 100%;
        text-align: center;
    }

    .exp1s5-user-profile {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
}

/* ===== HEADER STYLES END ===== */

/* Page Header Banner */
.cls12-page-header {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cls12-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cls12-header-content {
    position: relative;
    z-index: 2;
}

.cls12-header-title {
    font-size: 3rem;
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.cls12-header-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Wrapper with Sidebar Layout */
.cls12-main-wrapper {
    display: flex;
    max-width: 100%;
    margin: 0;
    gap: 0;
}

/* Sidebar Styles */
.cls12-sidebar {
    width: 320px;
    background: white;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.cls12-sidebar-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cls12-sidebar-header h2 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.cls12-sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cls12-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cls12-sidebar-nav {
    padding: 10px 0;
}

.cls12-loading-sidebar {
    padding: 20px;
    text-align: center;
    color: #666;
}

.cls12-sidebar-item {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cls12-sidebar-item:hover {
    background: rgba(30, 60, 114, 0.05);
    border-left-color: #1e3c72;
}

.cls12-sidebar-item.active {
    background: rgba(30, 60, 114, 0.1);
    border-left-color: #1e3c72;
}

.cls12-sidebar-exp-number {
    font-size: 0.85rem;
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 5px;
}

.cls12-sidebar-exp-title {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.cls12-sidebar-item:hover .cls12-sidebar-exp-title {
    color: #1e3c72;
}

/* Main Container */
.cls12-container {
    flex: 1;
    padding: 60px 40px;
    max-width: calc(100% - 320px);
}

/* Experiments Grid */
.cls12-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Experiment Card */
.cls12-experiment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%; /* or a fixed height like 450px */
}

.cls12-experiment-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(30, 60, 114, 0.25);
    border-color: #1e3c72;
}

.cls12-experiment-card.highlight {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-color: transparent;
    }
    50% {
        box-shadow: 0 20px 60px rgba(30, 60, 114, 0.5);
        border-color: #1e3c72;
    }
}

/* Experiment Number - Simple Text */
.cls12-exp-number {
    padding: 15px 20px 0;
    color: #1e3c72;
    font-weight: 600;
    font-size: 1rem;
    background: white;
}

/* Card Image */
.cls12-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.cls12-card-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.05) 0%, transparent 70%);
    animation: rotateImageBg 25s linear infinite;
}

@keyframes rotateImageBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cls12-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 20px rgba(30, 60, 114, 0.2));
}

.cls12-card-placeholder {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 30px rgba(30, 60, 114, 0.5));
    animation: floatPlaceholder 3s ease-in-out infinite;
}

@keyframes floatPlaceholder {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Card Title Section */
.cls12-card-title-section {
    padding: 20px;
    background: white;
    flex: 1;
}

.cls12-card-title {
    font-size: 1.3rem;
    color: #1e3c72;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.cls12-card-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Card Footer */
.cls12-card-footer {
    padding: 0 20px 20px 20px;
    background: white;
}

.cls12-launch-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
}

.cls12-launch-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cls12-launch-btn:hover::before {
    width: 400px;
    height: 400px;
}

.cls12-launch-btn:hover {
    background: linear-gradient(135deg, #2a5298, #3b6ac0);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30, 60, 114, 0.5);
}

/* Loading and Error States */
.cls12-loading {
    text-align: center;
    padding: 60px;
    font-size: 1.4rem;
    color: #1e3c72;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cls12-error {
    text-align: center;
    padding: 60px;
    font-size: 1.3rem;
    color: #ff6b6b;
    font-weight: 600;
}

/* Login Popup Modal */
.cls12-login-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cls12-login-popup-overlay.active {
    display: flex;
}

.cls12-login-popup {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: popupZoomIn 0.4s ease-out;
}

@keyframes popupZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cls12-login-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cls12-login-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.cls12-login-popup-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.cls12-login-popup h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cls12-login-popup p {
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

.cls12-login-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cls12-login-popup-button {
    padding: 16px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cls12-login-popup-button.primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.4);
}

.cls12-login-popup-button.primary:hover {
    background: linear-gradient(135deg, #2a5298, #3b6ac0);
    box-shadow: 0 8px 30px rgba(30, 60, 114, 0.6);
    transform: translateY(-3px);
}

.cls12-login-popup-button.google {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.cls12-login-popup-button.google:hover {
    background: #f8f9fa;
    border-color: #ccc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.cls12-login-popup-button.secondary {
    background: transparent;
    color: #1e3c72;
    border: 2px solid #1e3c72;
}

.cls12-login-popup-button.secondary:hover {
    background: rgba(30, 60, 114, 0.1);
    transform: translateY(-2px);
}

/* Footer Container */
#simulator-ideas-footer {
    width: 100%;
    max-width: 100%;
    margin-top: 60px;
    border-radius: 0 !important;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 968px) {
    .cls12-main-wrapper {
        flex-direction: column;
    }

    .cls12-sidebar {
        position: fixed;
        left: -320px;
        top: 80px;
        width: 280px;
        height: calc(100vh - 80px);
        z-index: 1001;
    }

    .cls12-sidebar.active {
        left: 0;
    }

    .cls12-sidebar-toggle {
        display: block;
    }

    .cls12-container {
        max-width: 100%;
        padding: 40px 20px;
    }

    .cls12-header-title {
        font-size: 2rem;
    }

    .cls12-header-subtitle {
        font-size: 1.1rem;
    }

    .cls12-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cls12-card-title {
        font-size: 1.15rem;
    }

    .cls12-card-description {
        font-size: 0.9rem;
    }

    .cls12-login-popup {
        padding: 35px;
    }

    .cls12-login-popup h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .cls12-header-title {
        font-size: 1.6rem;
    }

    .cls12-header-subtitle {
        font-size: 1rem;
    }

    .cls12-card-image {
        height: 180px;
    }
}