/* ========================================
   ELEET UI - Premium Cybersecurity Landing
   Pixel-perfect recreation
   ======================================== */

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

:root {
    --bg: #050505;
    --green: #4ADE80;
    --green-glow: rgba(74, 222, 128, 0.4);
    --white: #ffffff;
    --white-70: rgba(255, 255, 255, 0.7);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-06: rgba(255, 255, 255, 0.06);
    --font: 'Outfit', 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img, video, canvas, svg {
    max-width: 100%;
}

/* ========================================
   CANVAS
   ======================================== */
#meshCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.55);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 0 28px;
    animation: slideDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-24px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.navbar.scrolled {
    background: rgba(12, 12, 12, 0.9);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) brightness(1.08) contrast(1.05);
}

/* Generic badge wrapper: sizes itself to whatever logo image it holds
   and hosts a masked shine sweep clipped to the image's own silhouette */
.logo-badge {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.logo-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.75) 46%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.75) 54%,
        transparent 70%);
    background-size: 300% 300%;
    background-repeat: no-repeat;
    mix-blend-mode: overlay;
    animation: shineSweep 5s ease-in-out infinite;
}

.shine-badge .logo-shine {
    -webkit-mask-image: url('logo.png');
    mask-image: url('logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.shine-wordmark .logo-shine {
    -webkit-mask-image: url('eleet-text.png');
    mask-image: url('eleet-text.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

@keyframes shineSweep {
    0%, 20% { background-position: -60% -60%; }
    55% { background-position: 160% 160%; }
    100% { background-position: 160% 160%; }
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    background: linear-gradient(100deg,
        #c9f7d9 0%,
        #ffffff 22%,
        #f2fff7 40%,
        #ffffff 55%,
        #a9edc4 75%,
        #ffffff 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    animation: textShine 6s linear infinite;
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 250% 50%; }
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: auto;
    margin-left: auto;
    min-width: 0;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--white-70);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 8px 18px;
    transition: color 0.25s ease;
    letter-spacing: 0.15px;
    white-space: nowrap;
    min-width: 0;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 6px var(--green-glow);
}

.nav-link.active {
    color: var(--green);
    font-weight: 500;
}

.nav-link.active::after {
    width: 20px;
}

.nav-link:hover::after {
    width: 16px;
}

/* Join Button */
.nav-btn {
    text-decoration: none;
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    margin-left: auto;
}

.nav-btn:hover {
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.12);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
.hero-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 60px;
}

.hero-content {
    text-align: center;
    margin-top: 22vh;
    opacity: 0;
    animation: fadeUp 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    width: 100%;
}

/* ELEET text as image */
.hero-eleet-img {
    width: clamp(280px, 45vw, 550px);
    height: auto;
    display: block;
    margin: 0 auto;
    filter:
        drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 4px rgba(74, 222, 128, 0.12))
        brightness(1.06) contrast(1.08);
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    font-weight: 500;
    color: var(--white);
    letter-spacing: 8px;
    margin-top: 20px;
    text-transform: none;
    opacity: 0.85;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

/* ========================================
   CENTER LOGO
   ======================================== */
.center-logo {
    position: relative;
    margin-top: clamp(24px, 3vh, 45px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4.5s ease-in-out infinite;
    opacity: 0;
    animation: fadeUp 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, float 4.5s 1.4s ease-in-out infinite;
}

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

.logo-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.09) 0%, rgba(74, 222, 128, 0.03) 45%, transparent 70%);
    border-radius: 50%;
    filter: blur(18px);
    animation: glowBreath 3.5s ease-in-out infinite;
}

@keyframes glowBreath {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.05); }
}

.center-logo-img {
    width: clamp(140px, 19vw, 200px);
    height: clamp(140px, 19vw, 200px);
    position: relative;
    z-index: 2;
    display: block;
    filter:
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 6px rgba(74, 222, 128, 0.15))
        brightness(1.08) contrast(1.1) saturate(1.05);
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.cards-section {
    width: 100%;
    margin-top: clamp(55px, 9vh, 110px);
    opacity: 0;
    animation: fadeUp 0.9s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

.feature-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 36px 32px 36px 36px;
    overflow: hidden;
    min-height: 185px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    cursor: pointer;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(74, 222, 128, 0.06);
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.025) 100%);
}

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

.card-title {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.card-description {
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    font-weight: 300;
    color: var(--white-50);
    line-height: 1.7;
    letter-spacing: 0.15px;
}

/* Card background icon */
.card-icon {
    position: absolute;
    right: 10px;
    bottom: -5px;
    width: 150px;
    height: 150px;
    opacity: 0.08;
    filter: blur(2px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: rotate(-15deg);
}

.feature-card:hover .card-icon {
    opacity: 0.14;
    transform: rotate(-12deg) scale(1.05);
}

.card-icon-white img { filter: grayscale(100%) brightness(200%); }
/* .card-icon-green uses the original logo colors */

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

::selection { background: rgba(74, 222, 128, 0.3); color: var(--white); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .navbar {
        width: calc(100% - 28px);
        padding: 0 18px;
    }
    .nav-link {
        padding: 8px 12px;
        font-size: 0.84rem;
    }
    .cards-container {
        gap: 18px;
        padding: 0 18px;
    }
    .feature-card {
        padding: 28px 24px;
        min-height: 160px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 20px);
        padding: 0 12px;
        border-radius: 16px;
        transition: width 0.25s ease, padding 0.25s ease, border-radius 0.25s ease;
    }
    .nav-content {
        height: 50px;
        justify-content: space-between;
        gap: 10px;
    }
    .mobile-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: 0.35s ease;
        z-index: 1002;
        margin: 0;
        padding: 14px 0 16px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }
    .navbar.nav-open {
        padding-bottom: 16px;
        border-radius: 16px 16px 20px 20px;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-link { font-size: 1.15rem; padding: 14px 24px; }
    .nav-btn { display: none; }

    body.nav-open {
        overflow: hidden;
    }

    .hero-content { margin-top: 18vh; }
    .hero-eleet-img { width: 240px; }
    .hero-tagline { letter-spacing: 4px; font-size: 0.85rem; }

    .cards-container {
        grid-template-columns: 1fr;
        max-width: 440px;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .navbar { top: 10px; width: calc(100% - 14px); }
    .hero-content { margin-top: 15vh; }
    .hero-eleet-img { width: 200px; }
    .hero-tagline { font-size: 0.7rem; letter-spacing: 2px; }
    .center-logo-img { width: 100px; height: 100px; }
    .logo-glow { width: 140px; height: 140px; }
    .feature-card { padding: 22px 18px; min-height: 135px; }
    .card-title { font-size: 1.3rem; }
    .card-icon { width: 110px; height: 110px; }
}

/* ========================================
   CTF MODULE STYLES
   ======================================== */

/* General Layout */
.page-content {
    padding: clamp(90px, 12vh, 120px) 24px 60px;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
}

#team-carousel-root {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#team-carousel-root * {
    box-sizing: border-box;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Typography Extensions */
.glow-text {
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.text-primary { color: #4ade80; }
.text-secondary { color: #00dbe9; }
.text-error { color: #ffb4ab; }
.text-error-light { color: #ffdad6; }
.text-muted { color: rgba(255, 255, 255, 0.6); }
.text-white { color: #fff; }

.font-mono { font-family: 'Space Grotesk', monospace; }
.font-bold { font-weight: 700; }
.font-light { font-weight: 300; }
.italic { font-style: italic; }

/* Utilities */
.flex-row { display: flex; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.ml-4 { margin-left: 16px; }
.pb-2 { padding-bottom: 8px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.m-0 { margin: 0; }
.block { display: block; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.hidden { display: none !important; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-4 > * + * { margin-top: 16px; }
.border-bottom-faint { border-bottom: 1px solid rgba(255,255,255,0.1); }
.border-top-faint { border-top: 1px solid rgba(255,255,255,0.1); }

/* Icons */
.icon-small { font-size: 1.2rem; }
.icon-primary { color: #4ade80; }
.icon-secondary { color: #00dbe9; }
.icon-error { color: #ffb4ab; }

.icon-bg-primary { background: rgba(74, 222, 128, 0.1); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.2); }
.icon-bg-secondary { background: rgba(0, 219, 233, 0.1); color: #00dbe9; border: 1px solid rgba(0, 219, 233, 0.2); }
.icon-bg-error { background: rgba(255, 180, 171, 0.1); color: #ffb4ab; border: 1px solid rgba(255, 180, 171, 0.2); }

/* Headers */
.page-header { margin-bottom: 40px; }
.page-title { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 700; color: #4ade80; margin-bottom: 12px; letter-spacing: -0.02em; }
.page-subtitle { font-size: clamp(1rem, 1.2vw, 1.1rem); color: rgba(255, 255, 255, 0.7); max-width: 600px; line-height: 1.6; }
.page-subtitle, .card-description, .challenge-details h3, .challenge-meta, .status, .points {
    overflow-wrap: anywhere;
    word-break: normal;
}
.topic-label { display: flex; align-items: center; gap: 8px; color: #00dbe9; font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.bento-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    min-height: 220px;
}
.bento-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; z-index: 2; position: relative; }
.bento-badge { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; letter-spacing: 0.05em; }
.badge-primary { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.badge-secondary { background: rgba(0, 219, 233, 0.15); color: #00dbe9; border: 1px solid rgba(0, 219, 233, 0.3); }
.badge-error { background: rgba(255, 180, 171, 0.15); color: #ffb4ab; border: 1px solid rgba(255, 180, 171, 0.3); }

.bento-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; z-index: 2; position: relative; }
.bento-stat { display: flex; flex-direction: column; }
.stat-label { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.05em; margin-bottom: 4px; }
.stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; }
.bento-action { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.bento-card:hover .bento-action { transform: scale(1.1); }
.action-primary { background: #4ade80; color: #050505; }
.action-secondary { background: #00dbe9; color: #050505; }
.action-error { background: #ffb4ab; color: #050505; }
.bento-bg-icon { width: 120px; height: 120px; bottom: 10px; right: 10px; opacity: 0.05; display: flex; align-items: center; justify-content: center; }
.bento-bg-icon span { font-size: 120px; }
.bento-card:hover .bento-bg-icon { opacity: 0.15; transform: scale(1.1) rotate(5deg); }

@media (min-width: 768px) {
    .bento-wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .bento-wide { grid-column: span 1; }
}

/* Status Bar */
.status-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 20px 30px; border-left: 4px solid #4ade80; min-height: auto; cursor: default; }
.status-bar:hover { transform: none; box-shadow: none; }
.status-group { display: flex; gap: 40px; flex-wrap: wrap; }
.status-item { display: flex; flex-direction: column; }
.progress-wrapper { display: flex; align-items: center; gap: 12px; }
.progress-track { width: 120px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: #4ade80; }
.progress-text { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; font-weight: 600; }
.status-connection { display: flex; align-items: center; gap: 16px; }
.connection-indicator { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; color: #4ade80; }
.pulse-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
.ip-address { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

/* Stats Row */
.stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.stat-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); padding: 16px 24px; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.border-left-primary { border-left: 4px solid #4ade80; }
.border-left-secondary { border-left: 4px solid #00dbe9; }
.border-left-tertiary { border-left: 4px solid #ffd2d4; }
.stat-title { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.5); font-weight: 700; }
.stat-value { font-size: 1.5rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

/* Challenge List (Web Exploitation) */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; }
.filter-actions { display: flex; gap: 12px; }
.filter-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 6px 12px; font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.filter-btn:hover { border-color: #4ade80; }

.challenge-list { display: flex; flex-direction: column; gap: 16px; }
.challenge-item { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; min-height: auto; text-decoration: none; flex-wrap: wrap; gap: 20px; }
.challenge-item:hover { transform: none; border-color: rgba(74, 222, 128, 0.3); box-shadow: 0 0 20px rgba(74, 222, 128, 0.1); }
.challenge-info { display: flex; align-items: center; gap: 20px; }
.challenge-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.challenge-details h3 { font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 6px; transition: 0.2s; }
.challenge-item:hover .challenge-details h3 { color: #4ade80; }
.challenge-meta { display: flex; align-items: center; gap: 16px; }
.badge { font-family: 'Space Grotesk', sans-serif; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; padding: 2px 10px; border-radius: 12px; }
.points { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.status { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.challenge-action { display: flex; align-items: center; gap: 24px; }
.progress-bar { width: 160px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; display: none; }
.fill-gradient { background: linear-gradient(90deg, #4ade80, #00dbe9); }
.action-btn { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 700; padding: 10px 24px; border-radius: 4px; border: none; cursor: pointer; transition: 0.2s; letter-spacing: 0.05em; }
.action-btn:hover { transform: scale(1.05); }
.btn-primary { background: #4ade80; color: #050505; }
.btn-secondary { background: #00dbe9; color: #050505; }
.btn-disabled { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.4); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.btn-block { width: 100%; }

.locked-card { border-left: 4px solid #ffb4ab; cursor: not-allowed; opacity: 0.8; }
.locked-card:hover { transform: none; border-color: #ffb4ab; box-shadow: none; }
.locked-card:hover .challenge-details h3 { color: inherit; }

@media (min-width: 1024px) {
    .progress-bar { display: block; }
}

/* Challenge Detail Layout */
.layout-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.full-width { width: 100%; }
.content-col { flex: 1 1 65%; min-width: 300px; }
.sidebar-col { flex: 1 1 30%; min-width: 250px; }

.breadcrumbs { margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; transition: 0.2s; }
.back-link:hover { color: #4ade80; }

.header-bento { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.bento-main { flex: 1 1 65%; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; cursor: default; }
.bento-main:hover { transform: none; box-shadow: none; }
.relative-overflow { position: relative; overflow: hidden; }
.relative-z2 { position: relative; z-index: 2; }
.challenge-tags { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.est-time { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.challenge-metrics { display: flex; gap: 32px; margin-top: 32px; padding-top: 24px; }
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric-label { font-family: 'Space Grotesk', sans-serif; font-size: 0.65rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.1em; }
.metric-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; }
.ambient-icon { position: absolute; right: -20px; bottom: -20px; opacity: 0.05; pointer-events: none; z-index: 1; }
.ambient-icon span { font-size: 250px; }

.bento-side { flex: 1 1 30%; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: default; border-color: rgba(74, 222, 128, 0.2); }
.bento-side:hover { transform: none; }
.side-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.side-icon span { font-size: 32px; }
.side-title { font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.side-desc { font-size: 0.85rem; line-height: 1.5; }
.glow-primary:hover { box-shadow: 0 0 20px rgba(74, 222, 128, 0.3); border-color: #4ade80; }

/* Terminal Panel */
.terminal-panel { padding: 0; display: flex; flex-direction: column; cursor: default; min-height: auto; }
.terminal-panel:hover { transform: none; box-shadow: none; }
.terminal-header { background: rgba(0, 0, 0, 0.4); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.65rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.1em; }
.terminal-body { padding: 32px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); line-height: 1.6; }
.terminal-body h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 16px; }
.terminal-body h3 { font-size: 1.1rem; margin-bottom: 12px; }
.code-inline { background: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 4px; color: #4ade80; }
.bullet-list li { margin-bottom: 8px; }
.code-block { background: rgba(0, 0, 0, 0.6); padding: 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); font-family: 'Space Grotesk', monospace; font-size: 0.85rem; color: #b9ccb2; overflow-x: auto; }
.alert-box { padding: 16px; border-radius: 8px; display: flex; align-items: flex-start; }
.alert-error { background: rgba(255, 180, 171, 0.1); border: 1px solid rgba(255, 180, 171, 0.2); }

/* Forms & Sidebar */
.submit-panel { padding: 24px; cursor: default; min-height: auto; }
.submit-panel:hover { transform: none; box-shadow: none; }
.form-label { font-size: 0.7rem; }
.form-input { background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.2); padding: 12px 0; outline: none; transition: 0.2s; font-family: 'Space Grotesk', sans-serif; }
.form-input:focus { border-color: #4ade80; }
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.feedback-box { padding: 16px; border-radius: 8px; display: flex; align-items: center; gap: 12px; }
.feedback-success { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.2); }
.feedback-error { background: rgba(255, 180, 171, 0.1); border: 1px solid rgba(255, 180, 171, 0.2); }

.tips-panel { padding: 24px; cursor: default; min-height: auto; }
.tips-panel:hover { transform: none; box-shadow: none; }
.resource-link { text-decoration: none; padding: 8px 0; }
.group-hover-secondary { transition: 0.2s; }
.resource-link:hover .group-hover-secondary { color: #00dbe9; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .page-content {
        padding: 92px 16px 40px;
    }
    .content-container {
        max-width: 100%;
    }
    .bento-card { min-height: auto; }
    .page-title { font-size: 2rem; }
    .page-subtitle {
        max-width: 100%;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0;
    }
    .stats-row {
        gap: 12px;
    }
    .stat-card {
        width: 100%;
        padding: 14px 16px;
    }
    .status-bar {
        padding: 18px 18px;
        gap: 18px;
    }
    .status-group,
    .status-connection {
        width: 100%;
    }
    .challenge-meta {
        flex-wrap: wrap;
        gap: 8px 10px;
    }
    .challenge-info {
        width: 100%;
        align-items: flex-start;
    }
    .challenge-item { flex-direction: column; align-items: flex-start; }
    .challenge-action {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    .progress-bar {
        width: 100%;
        min-width: 0;
    }
    .header-bento { flex-direction: column; }
    .layout-grid { flex-direction: column; }
    #team-carousel-root {
        width: 100vw;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }
    #team-carousel-root > section {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    #team-carousel-root .max-w-6xl {
        max-width: 100vw;
    }
    #team-carousel-root .overflow-hidden {
        margin-left: 0;
        margin-right: 0;
    }
    #team-carousel-root button[aria-label="Previous slide"] {
        left: 6px !important;
    }
    #team-carousel-root button[aria-label="Next slide"] {
        right: 6px !important;
    }
    .content-col,
    .sidebar-col {
        min-width: 0;
        flex-basis: 100%;
    }
    .bento-main,
    .bento-side,
    .submit-panel,
    .tips-panel,
    .terminal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    .challenge-metrics {
        flex-wrap: wrap;
        gap: 18px;
    }
    .terminal-header {
        padding: 10px 12px;
    }
    .terminal-body {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .code-block {
        white-space: pre-wrap;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .navbar { padding: 0 10px; }
    .nav-content {
        height: 48px;
        gap: 8px;
    }
    .nav-logo {
        gap: 8px;
        min-width: 0;
    }
    .nav-logo .logo-text {
        display: none;
    }
    .logo-text {
        font-size: 0.95rem;
    }
    .nav-link {
        font-size: 1rem;
        padding: 12px 18px;
    }
    .hero-content {
        margin-top: 14vh;
    }
    .hero-eleet-img {
        width: min(92vw, 320px);
    }
    .hero-tagline {
        letter-spacing: 2px;
        font-size: 0.72rem;
        max-width: 100%;
    }
    .center-logo-img {
        width: 108px;
        height: 108px;
    }
    .logo-glow {
        width: 150px;
        height: 150px;
    }
    .feature-card {
        padding: 20px 16px;
        min-height: auto;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    .card-icon {
        width: 90px;
        height: 90px;
        right: 0;
        bottom: 0;
    }
    .bento-footer {
        gap: 12px;
        align-items: center;
    }
    .stat-value {
        font-size: 1.2rem;
    }
    .challenge-info {
        gap: 14px;
    }
    .challenge-details h3 {
        font-size: 1rem;
    }
    .challenge-icon {
        width: 42px;
        height: 42px;
        flex: none;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .overflow-hidden.mx-8,
    .overflow-hidden.mx-12 {
        margin-left: 0;
        margin-right: 0;
    }
}
