/* ════ TOKENS ════ */
:root {
    --bg: #040d0d;
    --s1: #071212;
    --s2: #0c1e1e;
    --s3: #122828;
    --border: rgba(0, 200, 150, .08);
    --c1: #00b894;
    --c2: #00cec9;
    --c3: #55efc4;
    --glow: rgba(0, 184, 148, .2);
    --shadow-c1: rgba(0, 184, 148, 0.25);
    --shadow-c1-hover: rgba(0, 184, 148, 0.4);
    --danger: #fd79a8;
    --amber: #fdcb6e;
    --text: #e0f0ec;
    --muted: #6e9e94;
    --dim: #2d4a46;
    --r: 14px;
    --nav-bg: rgba(4, 13, 13, .8);
    --grid-c: rgba(0, 184, 148, .03);
    --bg-glow-c1: rgba(0, 184, 148, .1);
    --bg-glow-c2: rgba(0, 206, 201, .08);
}

body.light-theme {
    --bg: #f4f9f7;
    --s1: #ffffff;
    --s2: #f0f5f3;
    --s3: #e6ecea;
    --border: rgba(0, 184, 148, 0.15);
    --c1: #00997a;
    --c2: #00b0ad;
    --c3: #008066;
    --glow: rgba(0, 184, 148, 0.1);
    --shadow-c1: rgba(0, 153, 122, 0.15);
    --shadow-c1-hover: rgba(0, 153, 122, 0.3);
    --danger: #d63031;
    --amber: #e67e22;
    --text: #1a2b28;
    --muted: #5e827a;
    --dim: #8faea7;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --grid-c: rgba(0, 153, 122, .03);
    --bg-glow-c1: rgba(0, 184, 148, .08);
    --bg-glow-c2: rgba(0, 206, 201, .06);
}

body.purple-theme {
    --bg: #0d0416;
    --s1: #13071f;
    --s2: #1e0930;
    --s3: #2a1042;
    --border: rgba(184, 0, 255, .15);
    --c1: #9b59b6;
    --c2: #8e44ad;
    --c3: #d1b2ff;
    --glow: rgba(155, 89, 182, .2);
    --shadow-c1: rgba(155, 89, 182, 0.25);
    --shadow-c1-hover: rgba(155, 89, 182, 0.4);
    --danger: #fd79a8;
    --amber: #fdcb6e;
    --text: #f3e5f5;
    --muted: #a68cb0;
    --dim: #6d5577;
    --nav-bg: rgba(13, 4, 22, .8);
    --r: 24px;
    --grid-c: rgba(155, 89, 182, .05);
    --bg-glow-c1: rgba(184, 0, 255, .15);
    --bg-glow-c2: rgba(255, 0, 255, .08);
}

body.blue-theme {
    --bg: #020c1b;
    --s1: #06152a;
    --s2: #0b1f3b;
    --s3: #122c54;
    --border: rgba(100, 255, 218, .1);
    --c1: #64ffda;
    --c2: #0a192f;
    --c3: #52e0c4;
    --glow: rgba(100, 255, 218, .15);
    --shadow-c1: rgba(100, 255, 218, 0.2);
    --shadow-c1-hover: rgba(100, 255, 218, 0.35);
    --danger: #f05a7e;
    --amber: #ffb86c;
    --text: #ccd6f6;
    --muted: #8892b0;
    --dim: #495670;
    --nav-bg: rgba(2, 12, 27, .85);
    --r: 6px;
    --grid-c: rgba(100, 255, 218, .04);
    --bg-glow-c1: rgba(100, 255, 218, .12);
    --bg-glow-c2: rgba(82, 224, 196, .08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden
}

/* ════ BG GLOWS ════ */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    animation: drift 18s ease-in-out infinite alternate
}

.bg-glow-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--bg-glow-c1), transparent 70%)
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, var(--bg-glow-c2), transparent 70%);
    animation-delay: -9s
}

@keyframes drift {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(40px, 30px)
    }
}

/* ════ GRID LINES ════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--grid-c) 1px, transparent 1px), linear-gradient(90deg, var(--grid-c) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    transition: background-image 0.5s ease;
}

/* ════ NAV ════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6%;
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    background: var(--nav-bg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: .85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    flex-shrink: 0
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(90deg, var(--c1), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.logo-sub {
    font-size: .65rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: .83rem;
    font-weight: 500;
    transition: color .2s;
    letter-spacing: .3px;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--c1) !important;
    font-weight: 700;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* Premium Profile Capsule Badge */
.nav-profile-capsule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 20px;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-profile-capsule:hover {
    background: var(--bg-glow-c2);
    border-color: var(--c1);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px var(--shadow-c1);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    border: 1.5px solid var(--c1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    box-shadow: 0 0 8px var(--glow);
    flex-shrink: 0;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-profile-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.nav-profile-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.nav-profile-stats {
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-profile-rank-badge {
    color: var(--c1);
    font-weight: 600;
}

.nav-profile-capsule::after {
    display: none !important;
}

.nav-profile-capsule.active {
    background: var(--bg-glow-c2);
    border-color: var(--c1);
    box-shadow: 0 4px 16px var(--shadow-c1);
}

.nav-cta {
    padding: 9px 22px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 3px 14px var(--glow)
}

.nav-cta:hover {
    background: var(--c1);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow)
}

.mobile-only-cta {
    display: none;
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--c1);
    transition: all 0.3s;
    border-radius: 2px;
}

nav.mobile-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.mobile-open .mobile-toggle span:nth-child(2) { opacity: 0; }
nav.mobile-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.lang-switch {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 16px;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    background: var(--c1);
    color: var(--bg);
    box-shadow: 0 2px 8px var(--glow);
}

.lang-sep {
    height: 12px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 2px;
}

/* ════ SECTIONS ════ */
section {
    position: relative;
    z-index: 1;
    padding: 100px 6%
}

section.alt {
    background: var(--s1)
}

.container {
    max-width: 1100px;
    margin: 0 auto
}

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--c1);
    margin-bottom: 12px
}

.sec-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--c1)
}

.sec-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 16px
}

.sec-subtitle {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 52px
}

/* ════ HERO ════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden
}

.hero-inner {
    max-width: 780px
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glow-c1);
    border: 1px solid var(--glow);
    color: var(--c3);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-badge span[data-i18n] {
    white-space: nowrap;
}

.hero-badge span:first-child {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c1);
    box-shadow: 0 0 8px var(--c1);
    animation: pulse 2s infinite;
    flex-shrink: 0
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 10px
}

.hero h1 .accent {
    background: linear-gradient(120deg, var(--c1), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 28px;
    font-weight: 400
}

.hero-desc {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 600px;
    border-left: 2px solid var(--c1);
    padding-left: 20px;
    margin-bottom: 44px
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px var(--glow)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow)
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--dim);
    border-radius: 50px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, background .2s
}

.btn-outline:hover {
    border-color: var(--c1);
    background: var(--bg-glow-c1)
}

/* Hero stat chips */
.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 48px;
    flex-wrap: wrap
}

.stat {
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px 24px;
    text-align: center
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c1);
    line-height: 1
}

.stat-label {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: .5px
}

/* Hero floating terminal decoration */
.hero-terminal {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    display: none
}

@media(min-width:1100px) {
    .hero-terminal {
        display: block
    }
}

.terminal-bar {
    background: var(--s3);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: .78rem;
    line-height: 1.9;
    color: var(--muted)
}

.t-green {
    color: var(--c3)
}

.t-amber {
    color: var(--amber)
}

.t-red {
    color: var(--danger)
}

.t-white {
    color: var(--text)
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--c1);
    animation: blink-cur .8s infinite;
    vertical-align: middle
}

@keyframes blink-cur {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* ════ ABOUT ════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center
}

.about-text p {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 16px
}

.about-text p strong {
    color: var(--c3)
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.about-card {
    background: var(--s2);
    border: 1px solid var(--glow);
    box-shadow: 0 4px 15px var(--bg-glow-c1);
    border-radius: var(--r);
    padding: 16px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}

.about-card:hover {
    border-color: var(--c1);
    transform: translateY(-3px)
}

.about-card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px
}

.about-card-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px
}

.about-card-desc {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.55
}

/* ════ AXES ════ */
.axes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px
}

.axe-card {
    background: var(--s1);
    border: 1px solid var(--glow);
    box-shadow: 0 4px 15px var(--bg-glow-c1);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}

.axe-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, var(--glow), transparent 70%)
}

.axe-card:hover {
    border-color: var(--c1);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--bg-glow-c1);
}

.axe-num {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-glow-c1);
    line-height: 1;
    margin-bottom: 14px
}

.axe-icon {
    font-size: 1.6rem;
    margin-bottom: 14px
}

.axe-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px
}

.axe-desc {
    font-size: .83rem;
    color: var(--muted);
    line-height: 1.65
}

/* ════ PUBLICATIONS ════ */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 22px
}

.pub-card {
    background: var(--s2);
    border: 1px solid var(--glow);
    box-shadow: 0 4px 15px var(--bg-glow-c1);
    border-radius: 18px;
    padding: 30px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden
}

.pub-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--c1), var(--c2))
}

.pub-card:hover {
    border-color: var(--c1);
    transform: translateX(4px)
}

.pub-index {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--glow);
    flex-shrink: 0;
    line-height: 1;
    min-width: 48px
}

.pub-body {
    flex: 1
}

.pub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center
}

.pub-badge {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 50px
}

.pub-badge.journal {
    background: var(--bg-glow-c1);
    border: 1px solid var(--glow);
    color: var(--c3)
}

.pub-badge.year {
    background: rgba(253, 203, 110, .08);
    border: 1px solid rgba(253, 203, 110, .25);
    color: var(--amber)
}

.pub-author {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500
}

.pub-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4
}

.pub-abstract {
    font-size: .83rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 16px
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    color: var(--c1);
    text-decoration: none;
    font-weight: 600;
    transition: gap .2s, color .2s
}

.pub-link:hover {
    gap: 11px;
    color: var(--c3)
}

/* ════ TEAM ════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px
}

.member-card {
    background: var(--s2);
    border: 1px solid var(--glow);
    box-shadow: 0 4px 15px var(--bg-glow-c1);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}

.member-card:hover {
    border-color: var(--c1);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--bg-glow-c1);
}

.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 16px;
    border: 3px solid var(--bg)
}

.member-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px
}

.member-role {
    font-size: .78rem;
    color: var(--c1);
    font-weight: 500;
    margin-bottom: 8px
}

.member-field {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.4
}

/* ════ PARTNERS & COLLABORATORS SLIDER ════ */
.collab-wrapper {
    position: relative;
    margin-top: 40px;
    padding: 0 52px;
}

.collab-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--s2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

.collab-btn.prev {
    left: 0;
}

.collab-btn.next {
    right: 0;
}

.collab-btn:hover {
    background: var(--c1);
    color: #fff;
    border-color: var(--c1);
}

.collab-track {
    display: flex;
    gap: 24px;
    overflow: hidden;
    padding: 20px 2px;
}

.collab-bubble {
    flex: 0 0 160px;
    height: 160px;
    min-width: 160px;
    background: var(--s2);
    border: 1px solid var(--glow);
    box-shadow: 0 4px 15px var(--bg-glow-c1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.collab-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--bg-glow-c1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.collab-bubble:hover::before {
    opacity: 1;
}

.collab-bubble:hover {
    border-color: var(--c1);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px var(--glow);
}

.collab-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.collab-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.collab-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.collab-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.collab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .3s, transform .3s, width .3s;
    background: var(--border);
}

.collab-dot.active {
    background: var(--c1);
    transform: scale(1.4);
}

/* ════ JOIN ════ */
.join-card {
    background: linear-gradient(135deg, var(--bg-glow-c1), var(--bg-glow-c2));
    border: 1px solid var(--glow);
    border-radius: var(--r);
    padding: 70px 50px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.join-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, var(--bg-glow-c1) 0%, transparent 70%)
}

.join-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 16px;
    position: relative;
    z-index: 1
}

.join-card p {
    color: var(--muted);
    margin-bottom: 36px;
    font-size: .95rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    position: relative;
    z-index: 1
}

.join-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 1
}

.join-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 160px;
    text-align: center
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    color: #fff
}

.step-label {
    font-size: .8rem;
    color: var(--muted)
}

/* ════ CONTACT ════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px 22px;
    transition: border-color .2s
}

.contact-item:hover {
    border-color: var(--c1)
}

.ci-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-glow-c1);
    border: 1px solid var(--glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0
}

.ci-body {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.ci-label {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase
}

.ci-value {
    font-size: .88rem;
    color: var(--text)
}

.ci-value a {
    color: var(--c3);
    text-decoration: none
}

.ci-value a:hover {
    text-decoration: underline
}

.contact-map {
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    min-height: 300px;
    height: 100%
}

.map-placeholder {
    font-size: 2.5rem
}

/* ════ FOOTER ════ */
footer {
    position: relative;
    z-index: 1;
    background: var(--s1);
    border-top: 1px solid var(--border);
    padding: 40px 6%
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.footer-copy {
    font-size: .8rem;
    color: var(--dim)
}

.footer-links {
    display: flex;
    gap: 20px
}

.footer-links a {
    font-size: .8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s
}

.footer-links a:hover {
    color: var(--c3)
}

/* ════ ANIMATIONS ════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease
}

.reveal.show {
    opacity: 1;
    transform: translateY(0)
}

.reveal-d1 {
    transition-delay: .1s
}

.reveal-d2 {
    transition-delay: .2s
}

.reveal-d3 {
    transition-delay: .3s
}

/* ════ RESEACH OFFERS CAROUSEL (Reused for Publications) ════ */
.pub-carousel-track {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 4px 40px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.pub-carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.pub-carousel-card {
    
    position: relative;
    overflow: hidden;
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--s2);
    border: 1px solid var(--glow);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px var(--bg-glow-c1);
}

.pub-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    transition: width 0.3s ease;
}

.pub-carousel-card:hover .pub-color-bar {
    width: 6px;
}

.pub-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glow);
    border-color: var(--c1);
}

.carousel-nav-btn {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--s2);
    color: var(--text);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.carousel-nav-btn:hover {
    background: var(--c1);
    color: #fff;
    border-color: var(--c1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
    left: -20px;
}

.carousel-nav-btn.next {
    right: -20px;
}

/* ════ RESPONSIVE ════ */
@media(max-width:1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--nav-bg);
        backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        border-left: 1px solid var(--border);
    }

    nav.mobile-open .nav-links {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-cta {
        display: none; /* Hide original CTA on mobile bar */
    }

    .mobile-only-cta {
        display: block;
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }

    .mobile-only-cta .nav-cta {
        display: inline-block;
        padding: 14px 40px;
        font-size: 1rem;
        box-shadow: 0 10px 25px var(--glow);
    }
}


@media(max-width:900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .hero-terminal {
        display: none
    }

    section {
        padding: 70px 5%
    }

    .join-card {
        padding: 50px 28px
    }
}

@media(max-width:600px) {
    .lang-switch {
        display: none; /* Hide lang switch on very small screens to save space */
    }

    .hero-stats {
        gap: 12px
    }

    .pub-card {
        flex-direction: column;
        gap: 10px
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}


/* ════ FORM ════ */
.form-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 32px;
    position: relative;
    z-index: 1
}

.fsi-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px
}

.fsi-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--muted);
    transition: all .3s
}

.fsi-step.active .fsi-num {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 14px var(--glow)
}

.fsi-label {
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: .5px
}

.fsi-step.active .fsi-label {
    color: var(--c3)
}

.fsi-line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: var(--dim);
    border-radius: 2px
}

.join-form {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 600px;
    margin: 0 auto
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.form-group label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .3px
}

.req {
    color: var(--danger)
}

.form-group input {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--dim);
    border-radius: 10px;
    padding: 11px 16px;
    font-family: inherit;
    font-size: .88rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s, background .2s
}

.form-group input::placeholder {
    color: var(--muted)
}

.form-group input:focus {
    border-color: var(--c1);
    background: rgba(0, 184, 148, .04)
}

.form-group input.invalid {
    border-color: var(--danger);
    background: rgba(253, 121, 168, .04)
}

.drop-zone {
    border: 2px dashed var(--dim);
    border-radius: 14px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--c1);
    background: rgba(0, 184, 148, .05)
}

.drop-icon {
    font-size: 2.2rem;
    margin-bottom: 10px
}

.drop-text {
    font-size: .88rem;
    color: var(--muted)
}

.drop-browse {
    color: var(--c1);
    font-weight: 600;
    cursor: pointer
}

.drop-hint {
    font-size: .75rem;
    color: var(--dim);
    margin-top: 6px
}

.file-name {
    margin-top: 10px;
    font-size: .82rem;
    color: var(--c3);
    text-align: center;
    font-weight: 500
}

@media(max-width:560px) {
    .form-row {
        grid-template-columns: 1fr
    }
}

/* ── Form slide animations ── */
.form-wrap {
    position: relative;
    overflow: hidden;
    min-height: 260px
}

.join-form,
#formSuccess {
    animation-duration: .38s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
    animation-fill-mode: both
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(54px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(-54px)
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-54px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(54px)
    }
}

.slide-in-right {
    animation-name: slideInRight
}

.slide-out-left {
    animation-name: slideOutLeft
}

.slide-in-left {
    animation-name: slideInLeft
}

.slide-out-right {
    animation-name: slideOutRight
}

/* ════ NOTIFICATIONS ════ */
.nav-bell {
    font-size: 1.25rem;
    color: var(--muted);
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-bell:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ff7675;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 118, 117, 0.6);
    display: none;
}

.nav-bell-badge.active {
    display: block;
}

.notif-dropdown {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 340px;
    background: var(--s2);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glow);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--bg-glow-c1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    overflow: hidden;
}

.notif-dropdown.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-count {
    font-size: 0.75rem;
    background: var(--bg-glow-c1);
    color: var(--c1);
    padding: 2px 8px;
    border-radius: 12px;
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    transition: background 0.2s;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ════ STATUS FILTERS & BADGES ════ */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
    background: var(--c1);
    color: var(--bg);
    border-color: var(--c1);
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-a_traiter {
    background: rgba(253, 203, 110, 0.15);
    color: #fdcb6e;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.badge-traitee {
    background: rgba(0, 184, 148, 0.15);
    color: var(--c1);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.btn-sm-success {
    background: var(--bg-glow-c1);
    color: var(--c1);
    border: 1px solid var(--glow);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-right: 8px;
}

.btn-sm-success:hover {
    background: var(--c1);
    color: var(--bg);
    border-color: var(--c1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-c1-hover);
}

.notif-item:last-child {
    border-bottom: none;
}

/* ════ ADMIN CONTROLS (Search, Export, Bulk) ════ */
.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-controls-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-wrapper {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 16px 10px 40px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    width: 250px;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--c1);
    background: rgba(0, 184, 148, 0.04);
    outline: none;
    box-shadow: 0 0 0 3px var(--shadow-c1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bulk-actions.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.bulk-count {
    color: var(--c1);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Custom Checkbox */
.checkbox-custom {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--dim);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox-custom:checked {
    background: var(--c1);
    border-color: var(--c1);
}

.checkbox-custom:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.td-notes {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-style: italic;
    cursor: pointer;
}

.td-notes:hover {
    color: var(--text);
}

.btn-notes {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-notes:hover {
    opacity: 1;
}

/* Remarks Modal additions */
.remarks-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dim);
    border-radius: 12px;
    padding: 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.remarks-textarea:focus {
    border-color: var(--c1);
    background: rgba(0, 184, 148, 0.04);
    outline: none;
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-glow-c1);
    color: var(--c1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-msg {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--muted);
}

.notif-action {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.notif-action:hover {
    color: var(--c1);
    background: rgba(0, 184, 148, 0.1);
}

.notif-empty {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ════ FOOTER ════ */
footer {
    background: var(--s2);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.1fr 1.1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-brand .logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-brand [data-i18n="footer.desc"] {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.f-title {
    font-family: 'Syne', sans-serif;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.f-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f-ul li {
    font-size: 0.9rem;
}

.f-ul a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.f-ul a:hover {
    color: var(--c1);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--dim);
    font-size: 0.8rem;
}

@media(max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* Fix reCAPTCHA badge z-index so it doesn't get hidden behind sections */
.grecaptcha-badge { z-index: 999999 !important; }

/* ── MEMBER DIRECTORY ── */
.directory-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--c1);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.filter-group {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--c1);
    color: var(--text);
}

.filter-btn.active {
    background: var(--c1);
    border-color: var(--c1);
    color: #fff;
}

.member-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.member-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* ── Metallic Badges & Rank Styles ── */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    color: #111;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-left: 8px;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shimmer reflection effect */
.rank-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.6);
    transform: rotate(30deg);
    transition: none;
    animation: shimmer-badge 3s infinite linear;
}

@keyframes shimmer-badge {
    0% { left: -60%; }
    30% { left: 140%; }
    100% { left: 140%; }
}

/* 1. Bronze: Script Kiddie */
.badge-bronze {
    background: linear-gradient(135deg, #a77044 0%, #f3a677 50%, #6e401b 100%);
    color: #fff;
    box-shadow: 0 0 8px rgba(167, 112, 68, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: #8c5a33;
}

/* 2. Silver: Cyber Aspirant */
.badge-silver {
    background: linear-gradient(135deg, #9ca3af 0%, #f3f4f6 50%, #4b5563 100%);
    color: #111;
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
    border-color: #d1d5db;
}

/* 3. Gold: Ethical Hacker */
.badge-gold {
    background: linear-gradient(135deg, #ffd700 0%, #fff7be 50%, #b8860b 100%);
    color: #111;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.5);
    border-color: #ffd700;
    font-weight: 900;
}

/* 4. Platinum: SecOps Guardian */
.badge-platinum {
    background: linear-gradient(135deg, #cbd5e1 0%, #ffffff 50%, #64748b 100%);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(203, 213, 225, 0.7), inset 0 1px 0 rgba(255,255,255,0.6);
    border-color: #e2e8f0;
    font-weight: 900;
}

/* 5. Diamond: Cryptographe Élite */
.badge-diamond {
    background: linear-gradient(135deg, #00f2fe 0%, #ffffff 40%, #00c6ff 70%, #4facfe 100%);
    color: #0f172a;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.8), inset 0 1px 0 rgba(255,255,255,0.7);
    border-color: #00f2fe;
    font-weight: 900;
    animation: pulse-glow-badge 2s infinite alternate;
}

@keyframes pulse-glow-badge {
    0% { box-shadow: 0 0 12px rgba(0, 242, 254, 0.6); }
    100% { box-shadow: 0 0 22px rgba(0, 242, 254, 1), 0 0 8px rgba(79, 172, 254, 0.5); }
}

/* ── Credential Slots Premium Metallic Styles ── */
.credential-slot {
    position: relative;
    overflow: visible !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 1. Bronze Slot: Identité Vérifiée */
.credential-slot.active.slot-bronze {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.credential-slot.active.slot-bronze svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.credential-slot.active.slot-bronze:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Silver Slot: Protocol Vanguard */
.credential-slot.active.slot-silver {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.credential-slot.active.slot-silver svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.credential-slot.active.slot-silver:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. Gold Slot: Netrunner */
.credential-slot.active.slot-gold {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.credential-slot.active.slot-gold svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
.credential-slot.active.slot-gold:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 4. Platinum Slot: Spécialiste Matériel */
.credential-slot.active.slot-platinum {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.credential-slot.active.slot-platinum svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
.credential-slot.active.slot-platinum:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 5. Diamond Slot: Chasseur de Failles */
.credential-slot.active.slot-diamond {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.credential-slot.active.slot-diamond svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
.credential-slot.active.slot-diamond:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@keyframes pulse-glow-badge-slot {
    0% { box-shadow: 0 0 15px rgba(0, 198, 255, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 28px rgba(0, 198, 255, 0.7), 0 0 10px rgba(0, 242, 254, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.5); }
}

/* 6. Creator Slot (Add / Modifier) */
.credential-slot.slot-creator {
    background: rgba(108, 92, 231, 0.03) !important;
    border: 1px dashed rgba(108, 92, 231, 0.45) !important;
    box-shadow: inset 0 0 12px rgba(108, 92, 231, 0.05) !important;
    transition: all 0.3s ease !important;
}
.credential-slot.slot-creator svg {
    fill: rgba(108, 92, 231, 0.6) !important;
}
.credential-slot.slot-creator:hover {
    background: rgba(108, 92, 231, 0.08) !important;
    border: 1px solid #6c5ce7 !important;
    box-shadow: 0 0 18px rgba(108, 92, 231, 0.3), inset 0 0 8px rgba(108, 92, 231, 0.1) !important;
}
.credential-slot.slot-creator:hover svg {
    fill: #6c5ce7 !important;
}

/* ── Custom Metallic Vector Drawings ── */
.credential-slot.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.metallic-drawing {
    width: 90% !important;
    height: 90% !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease !important;
}

.credential-slot.active:hover {
    transform: translateY(-5px) !important;
}

.credential-slot.active:hover .metallic-drawing {
    transform: scale(1.12) rotate(2deg) !important;
}

/* Animations for Floating Realism */
.diamond-crystal {
    animation: crystal-float 3.5s ease-in-out infinite alternate !important;
}

@keyframes crystal-float {
    0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4)); }
    100% { transform: translateY(-5px) scale(1.03); filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.7)); }
}

.gold-key {
    animation: key-sway 4.5s ease-in-out infinite alternate !important;
}

@keyframes key-sway {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

.bronze-shield {
    animation: shield-sway 5s ease-in-out infinite alternate !important;
}

@keyframes shield-sway {
    0% { transform: rotate(1deg); }
    100% { transform: rotate(-1deg); }
}

.silver-padlock {
    animation: padlock-float 4s ease-in-out infinite alternate !important;
}

@keyframes padlock-float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-3px); }
}

.platinum-chip {
    animation: chip-glow 3s ease-in-out infinite alternate !important;
}

@keyframes chip-glow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); }
    100% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); }
}

/* ════ IMMERSIVE CYBER GAMIFICATION SYSTEM ════ */

/* Layout & Sidebar Grid */
.forum-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .forum-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .forum-grid {
        grid-template-columns: 1fr;
    }
}

.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cyber Glassmorphism Cards */
.cyber-card {
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r, 14px);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    opacity: 0.8;
}

.cyber-card:hover {
    border-color: var(--c1);
    box-shadow: 0 12px 40px var(--shadow-c1);
    transform: translateY(-2px);
}

.cyber-card .card-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.cyber-card .card-title i {
    color: var(--c1);
    filter: drop-shadow(0 0 5px var(--glow));
}

/* Daily Quests List */
.quests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quest-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.quest-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.quest-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.quest-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.quest-xp {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--c1);
    background: var(--bg-glow-c1);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 184, 148, 0.15);
}

.quest-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.quest-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.quest-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Completed Quest Style */
.quest-item.completed {
    border-color: rgba(0, 184, 148, 0.3);
    background: rgba(0, 184, 148, 0.02);
}

.quest-item.completed .quest-desc {
    color: var(--muted);
    text-decoration: line-through;
}

.quest-item.completed .quest-progress-bar {
    background: var(--c1);
    box-shadow: 0 0 8px var(--glow);
}

/* SOC Threat Simulator Ticker */
.soc-log-window {
    background: #020808;
    border: 1px solid rgba(0, 184, 148, 0.1);
    border-radius: 8px;
    height: 200px;
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

.soc-log-window::-webkit-scrollbar {
    width: 4px;
}
.soc-log-window::-webkit-scrollbar-thumb {
    background: var(--dim);
    border-radius: 2px;
}

/*.soc-log-entry style replaced with new .soc-log-item styles for interactive feed*/
.soc-log-item {
    position: relative;
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: log-fade-in 0.3s ease forwards;
}

.soc-log-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.soc-log-item.soc-critical {
    border-left-color: var(--danger);
    color: var(--danger);
    background: rgba(253, 121, 168, 0.02);
}
.soc-log-item.soc-critical:hover {
    background: rgba(253, 121, 168, 0.05);
}

.soc-log-item.soc-warning {
    border-left-color: var(--amber);
    color: var(--amber);
    background: rgba(253, 203, 110, 0.01);
}
.soc-log-item.soc-warning:hover {
    background: rgba(253, 203, 110, 0.04);
}

.soc-log-item.soc-success {
    border-left-color: var(--c1);
    color: var(--c1);
    background: rgba(0, 184, 148, 0.01);
}
.soc-log-item.soc-success:hover {
    background: rgba(0, 184, 148, 0.04);
}

.soc-log-item.soc-info {
    border-left-color: var(--muted);
    color: var(--muted);
}

/* Mitigated status */
.soc-log-item.mitigated {
    border-left-color: var(--c1) !important;
    color: var(--c1) !important;
    background: rgba(0, 184, 148, 0.05) !important;
    text-shadow: 0 0 4px var(--glow);
}

.soc-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.soc-time {
    opacity: 0.6;
}

.soc-badge {
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.soc-message {
    word-break: break-word;
    font-size: 0.75rem;
    line-height: 1.3;
}

.soc-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.soc-log-item:hover .soc-actions {
    opacity: 1;
    height: auto;
    margin-top: 6px;
}

.soc-action-btn {
    background: none;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.soc-action-btn.analyse-btn {
    color: var(--c1);
    border: 1px solid rgba(0, 184, 148, 0.3);
}
.soc-action-btn.analyse-btn:hover {
    background: var(--bg-glow-c1);
    color: #fff;
    border-color: var(--c1);
    box-shadow: 0 0 5px var(--glow);
}

.soc-action-btn.block-btn {
    color: var(--danger);
    border: 1px solid rgba(253, 121, 168, 0.3);
}
.soc-action-btn.block-btn:hover {
    background: rgba(253, 121, 168, 0.15);
    color: #fff;
    border-color: var(--danger);
    box-shadow: 0 0 5px rgba(253, 121, 168, 0.3);
}

/* Block Scanning/Processing Animation */
.soc-log-item.scanning::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--c1);
    width: 0;
    animation: soc-scan-progress 1.5s linear forwards;
}

@keyframes soc-scan-progress {
    0% { width: 0; }
    100% { width: 100%; }
}

.soc-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    margin-top: 14px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--c1);
    box-shadow: 0 0 8px var(--c1);
    animation: pulse-online 2s infinite alternate;
}

@keyframes pulse-online {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--c1); }
}

@keyframes log-fade-in {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Retro Cyber Terminal Widget */
#cyber-terminal-widget {
    position: fixed;
    bottom: 0;
    right: 30px;
    width: 380px;
    background: rgba(4, 13, 13, 0.95);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    z-index: 9999;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Courier New', Courier, monospace;
}

#cyber-terminal-widget.cyber-terminal-collapsed {
    transform: translateY(calc(100% - 40px));
}

.cyber-terminal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.cyber-terminal-header:hover {
    background: rgba(0, 184, 148, 0.05);
}

.terminal-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--c1);
    text-shadow: 0 0 5px var(--glow);
}

.terminal-title .blink {
    animation: blink-anim 1s step-end infinite;
}

.terminal-toggle-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
}

.terminal-toggle-btn:hover {
    color: var(--c1);
}

.cyber-terminal-body {
    height: 280px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cyber-terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.8rem;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

.cyber-terminal-output::-webkit-scrollbar {
    width: 4px;
}
.cyber-terminal-output::-webkit-scrollbar-thumb {
    background: var(--dim);
    border-radius: 2px;
}

.terminal-line {
    line-height: 1.4;
    word-break: break-all;
}

.terminal-line.sys { color: var(--c1); }
.terminal-line.err { color: var(--danger); }
.terminal-line.warn { color: var(--amber); }
.terminal-line.usr { color: var(--c2); }

.cyber-terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
}

.terminal-prompt {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--c1);
}

#terminal-input {
    flex-grow: 1;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    width: 100%;
}

@keyframes blink-anim {
    50% { opacity: 0; }
}

/* Fullscreen Level-Up Splash Celebration */
#level-up-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 13, 13, 0.96);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#level-up-splash.active {
    opacity: 1;
    pointer-events: auto;
}

.level-up-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 50px 40px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    animation: zoom-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.level-up-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-glow-c1), transparent);
    pointer-events: none;
}

.level-up-shield {
    font-size: 4rem;
    margin-bottom: 24px;
    animation: pulse-glow 2s infinite alternate;
}

.glitch-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 2px;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.025em -0.05em 0 rgba(0,255,0,.75), 0.025em 0.05em 0 rgba(0,0,255,.75);
    animation: glitch-title-anim 1.5s infinite;
    margin-bottom: 12px;
}

.glitch-subtitle {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c1);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--glow);
}

.level-up-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.level-up-btn {
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    box-shadow: 0 8px 24px var(--shadow-c1);
    transition: all 0.3s ease;
}

.level-up-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow-c1-hover);
}

@keyframes zoom-in {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 184, 148, 0.4)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 30px rgba(0, 184, 148, 0.8)); transform: scale(1.05); }
}

@keyframes glitch-title-anim {
    0% {
        text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.025em -0.05em 0 rgba(0,255,0,.75), 0.025em 0.05em 0 rgba(0,0,255,.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.025em -0.05em 0 rgba(0,255,0,.75), 0.025em 0.05em 0 rgba(0,0,255,.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255,0,0,.75), 0.025em 0.025em 0 rgba(0,255,0,.75), -0.05em -0.05em 0 rgba(0,0,255,.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255,0,0,.75), 0.025em 0.025em 0 rgba(0,255,0,.75), -0.05em -0.05em 0 rgba(0,0,255,.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255,0,0,.75), 0.05em 0 0 rgba(0,255,0,.75), 0 -0.05em 0 rgba(0,0,255,.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255,0,0,.75), 0.05em 0 0 rgba(0,255,0,.75), 0 -0.05em 0 rgba(0,0,255,.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255,0,0,.75), -0.025em -0.025em 0 rgba(0,255,0,.75), -0.025em -0.05em 0 rgba(0,0,255,.75);
    }
}

/* Glitch Theme Overlay Scanlines */
.crt-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 10002;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.glitch-mode .crt-scanlines {
    opacity: 0.7;
}

/* Background Canvas Nodes Container */
#neon-nodes-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.glitch-mode #neon-nodes-canvas {
    opacity: 0.35;
}

/* Glitch Theme Button Styles */
.cyber-btn-glitch {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--muted);
}

.cyber-btn-glitch:hover {
    color: var(--c1);
    border-color: var(--c1);
    background: var(--bg-glow-c1);
    box-shadow: 0 0 10px var(--glow);
    transform: scale(1.05);
}

body.glitch-mode .cyber-btn-glitch {
    color: var(--c1);
    border-color: var(--c1);
    background: var(--bg-glow-c1);
    box-shadow: 0 0 15px var(--glow);
    animation: pulse-glow 2s infinite alternate;
}

/* ── Dropdown Navigation ── */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown .dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 0;
}

.nav-links li.dropdown .arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.nav-links li.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.nav-links li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 15, 12, 0.95);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 10px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 1px var(--glow);
    z-index: 1000;
    margin: 0;
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-links li.dropdown .dropdown-menu li {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.nav-links li.dropdown .dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    white-space: nowrap;
    text-align: left;
}

.nav-links li.dropdown .dropdown-menu a::after {
    display: none !important; /* Disable underline effect in dropdown */
}

.nav-links li.dropdown .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c1);
}

/* Visibility utilities for responsive dropdown */
@media (min-width: 1025px) {
    .mobile-only-nav-item {
        display: none !important;
    }
}
@media (max-width: 1024px) {
    .desktop-only-nav-item {
        display: none !important;
    }
    .nav-links li.dropdown {
        display: none !important;
    }
}


