/* ============================================
   Churko Lab - Modern Research Website
   Inspired by ai.google.dev design system
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #060606;
    --bg-secondary: #0d0d0d;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;

    /* Accent Colors */
    --accent-blue: #368EFE;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;
    --accent-pink: #EC4899;

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #217BFE 0%, #368EFE 50%, #06B6D4 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-dark: linear-gradient(180deg, rgba(6,6,6,0) 0%, #060606 100%);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #B7BECF;
    --text-muted: #6B7280;

    /* Spacing */
    --section-padding: 50px;
    --container-width: 1200px;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background var(--transition-medium), backdrop-filter var(--transition-medium);
}

.nav.scrolled {
    background: rgba(6, 6, 6, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--gradient-blue);
    color: var(--text-primary) !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.nav-login {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.nav-login:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(54, 142, 254, 0.1) 0%, transparent 50%),
                linear-gradient(180deg, rgba(6,6,6,0.3) 0%, var(--bg-primary) 100%);
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: float 12s infinite ease-in-out;
}

.particle:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; width: 6px; height: 6px; }
.particle:nth-child(2) { left: 15%; top: 45%; animation-delay: -2s; width: 10px; height: 10px; }
.particle:nth-child(3) { left: 25%; top: 75%; animation-delay: -4s; width: 8px; height: 8px; }
.particle:nth-child(4) { left: 35%; top: 25%; animation-delay: -6s; width: 12px; height: 12px; }
.particle:nth-child(5) { left: 45%; top: 55%; animation-delay: -8s; width: 7px; height: 7px; }
.particle:nth-child(6) { left: 55%; top: 85%; animation-delay: -10s; width: 5px; height: 5px; }
.particle:nth-child(7) { left: 65%; top: 35%; animation-delay: -1s; width: 9px; height: 9px; }
.particle:nth-child(8) { left: 75%; top: 65%; animation-delay: -3s; width: 11px; height: 11px; }
.particle:nth-child(9) { left: 85%; top: 20%; animation-delay: -5s; width: 8px; height: 8px; }
.particle:nth-child(10) { left: 92%; top: 50%; animation-delay: -7s; width: 6px; height: 6px; }
.particle:nth-child(11) { left: 8%; top: 90%; animation-delay: -9s; width: 10px; height: 10px; }
.particle:nth-child(12) { left: 40%; top: 10%; animation-delay: -11s; width: 7px; height: 7px; }
.particle:nth-child(13) { left: 60%; top: 95%; animation-delay: -13s; width: 5px; height: 5px; }
.particle:nth-child(14) { left: 80%; top: 80%; animation-delay: -14s; width: 9px; height: 9px; }
.particle:nth-child(15) { left: 95%; top: 30%; animation-delay: -12s; width: 8px; height: 8px; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
    25% { transform: translateY(-30px) translateX(15px); opacity: 0.8; }
    50% { transform: translateY(-15px) translateX(-15px); opacity: 0.5; }
    75% { transform: translateY(-40px) translateX(10px); opacity: 0.7; }
}

/* Split layout */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

/* Hero visual */
.hero-visual {
    flex: 1;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ECG Line */
.ecg-line {
    position: absolute;
    width: 100%;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.ecg-line svg {
    width: 100%;
    height: 100%;
}

.ecg-path {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: ecg-draw 3s ease-in-out infinite;
}

@keyframes ecg-draw {
    0% { stroke-dashoffset: 800; opacity: 0.8; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -800; opacity: 0.8; }
}

/* Cell visual */
.cell-visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.cell {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: pulse-cell 4s ease-in-out infinite;
}

.cell-1 {
    width: 200px;
    height: 200px;
    top: 0;
    left: 0;
    border-color: rgba(54, 142, 254, 0.3);
    animation-delay: 0s;
}

.cell-2 {
    width: 150px;
    height: 150px;
    top: 25px;
    left: 25px;
    border-color: rgba(139, 92, 246, 0.3);
    animation-delay: -1s;
}

.cell-3 {
    width: 100px;
    height: 100px;
    top: 50px;
    left: 50px;
    border-color: rgba(6, 182, 212, 0.3);
    animation-delay: -2s;
}

.nucleus {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 75px;
    left: 75px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-nucleus 2s ease-in-out infinite;
}

@keyframes pulse-cell {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes pulse-nucleus {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-visual {
        max-width: 300px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(54, 142, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(54, 142, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section.dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ============================================
   About Section
   ============================================ */
.section.about {
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-text {
    text-align: left;
    margin-bottom: 32px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-credentials {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.credential {
    text-align: center;
}

.credential strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.credential span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .about-credentials {
        gap: 32px;
    }

    .credential {
        flex: 1 1 40%;
    }
}

.about-bio {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    text-align: left;
}

.about-bio h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about-bio p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.copy-bio-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-bio-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.about-programs {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.about-programs > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.program-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.program-tag {
    background: rgba(54, 142, 254, 0.1);
    border: 1px solid rgba(54, 142, 254, 0.3);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}

/* ============================================
   Research Grid
   ============================================ */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.research-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-medium);
}

.research-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.research-card.large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0;
    overflow: hidden;
}

.card-media {
    position: relative;
    min-height: 300px;
}

.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, var(--bg-card) 100%);
}

.research-card.large .card-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tag {
    display: inline-block;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.research-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.research-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.card-features {
    list-style: none;
}

.card-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(54, 142, 254, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue);
}

/* ============================================
   Platforms Grid
   ============================================ */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.platform-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 24px;
    transition: all var(--transition-medium);
}

.platform-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.platform-visual {
    flex-shrink: 0;
}

.platform-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(54, 142, 254, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon-large svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent-blue);
}

.platform-icon-large.purple {
    background: rgba(139, 92, 246, 0.1);
}

.platform-icon-large.purple svg {
    stroke: var(--accent-purple);
}

.platform-icon-large.cyan {
    background: rgba(6, 182, 212, 0.1);
}

.platform-icon-large.cyan svg {
    stroke: var(--accent-cyan);
}

.platform-icon-large.pink {
    background: rgba(236, 72, 153, 0.1);
}

.platform-icon-large.pink svg {
    stroke: var(--accent-pink);
}

.platform-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.platform-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.platform-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-tags span {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   Themes Section
   ============================================ */
.themes {
    background: var(--bg-primary);
}

.theme-block {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-block:last-child {
    border-bottom: none;
}

.theme-content h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.theme-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.theme-stats {
    display: flex;
    gap: 40px;
}

.theme-stat {
    display: flex;
    flex-direction: column;
}

.theme-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.theme-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* UMAP Visualization */
.umap-placeholder {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.umap-svg {
    width: 100%;
    height: auto;
}

.cluster {
    fill-opacity: 0.6;
    stroke-width: 2;
    transition: all var(--transition-medium);
}

.cluster.c1 { fill: var(--accent-blue); stroke: var(--accent-blue); }
.cluster.c2 { fill: var(--accent-purple); stroke: var(--accent-purple); }
.cluster.c3 { fill: var(--accent-cyan); stroke: var(--accent-cyan); }
.cluster.c4 { fill: var(--accent-pink); stroke: var(--accent-pink); }
.cluster.c5 { fill: #22C55E; stroke: #22C55E; }

.viz-label {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Omics Diagram */
.omics-diagram {
    position: relative;
    width: 250px;
    height: 250px;
}

.omics-layer {
    position: absolute;
    width: 100%;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.omics-layer:nth-child(1) {
    top: 0;
    transform: translateX(-20px);
    background: rgba(54, 142, 254, 0.1);
    border-color: rgba(54, 142, 254, 0.3);
}

.omics-layer:nth-child(2) {
    top: 70px;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.omics-layer:nth-child(3) {
    top: 140px;
    transform: translateX(20px);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.omics-layer span {
    font-size: 0.9rem;
    font-weight: 500;
}

.omics-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.omics-center span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tissue Diagram */
.tissue-diagram {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tissue-layer {
    flex: 1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.tissue-layer span {
    font-size: 0.85rem;
    font-weight: 500;
}

.tissue-layer.l1 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tissue-layer.l2 {
    background: linear-gradient(135deg, rgba(54, 142, 254, 0.3) 0%, rgba(54, 142, 254, 0.1) 100%);
    border: 1px solid rgba(54, 142, 254, 0.3);
}

.tissue-layer.l3 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tissue-layer.l4 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ============================================
   Collaborations Section
   ============================================ */
.collab {
    text-align: center;
}

.collab-content {
    max-width: 700px;
    margin: 0 auto;
}

.collab-content .section-title {
    margin-bottom: 16px;
}

.collab-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.collab-diseases {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.disease-tag {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* DNA Helix Animation */
.dna-helix {
    width: 100px;
    height: 200px;
    position: relative;
}

.helix-strand {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        var(--accent-blue) 0%,
        var(--accent-purple) 25%,
        var(--accent-cyan) 50%,
        var(--accent-purple) 75%,
        var(--accent-blue) 100%);
    border-radius: 50px;
    opacity: 0.3;
}

.helix-strand.strand-1 {
    animation: helixRotate1 4s ease-in-out infinite;
}

.helix-strand.strand-2 {
    animation: helixRotate2 4s ease-in-out infinite;
}

@keyframes helixRotate1 {
    0%, 100% { transform: rotateY(0deg) scaleX(1); }
    50% { transform: rotateY(180deg) scaleX(0.3); }
}

@keyframes helixRotate2 {
    0%, 100% { transform: rotateY(180deg) scaleX(0.3); }
    50% { transform: rotateY(360deg) scaleX(1); }
}

/* ============================================
   Technology Section
   ============================================ */
.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.tech-visual {
    position: relative;
}

.tech-video-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-video {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    opacity: 0.8;
}

.tech-overlay-ui {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    pointer-events: none;
}

.ui-element {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    width: fit-content;
    height: fit-content;
}

.ui-element.top-left { justify-self: start; align-self: start; }
.ui-element.top-right { justify-self: end; align-self: start; }
.ui-element.bottom-left { justify-self: start; align-self: end; }
.ui-element.bottom-right { justify-self: end; align-self: end; }

.ui-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ui-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ui-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.ui-bar-fill {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.ui-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.ui-badge.therapeutic {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tech-feature {
    display: flex;
    gap: 24px;
}

.feature-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tech-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.metric-icon.blue { background: var(--accent-blue); }
.metric-icon.purple { background: var(--accent-purple); }
.metric-icon.cyan { background: var(--accent-cyan); }

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Impact Section
   ============================================ */
.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.impact-text .section-tag {
    text-align: left;
}

.impact-text .section-title {
    text-align: left;
}

.impact-stat {
    margin: 32px 0;
}

.big-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.impact-text p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.impact-logos {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pub-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-secondary);
}

.impact-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impact-chart {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    height: 300px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 80px;
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bar-fill {
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 1s ease;
}

.chart-bar.therapeutic .bar-fill { background: var(--gradient-blue); }
.chart-bar.dysfunction .bar-fill { background: var(--accent-purple); }
.chart-bar.arrhythmic .bar-fill { background: var(--accent-pink); }

.chart-caption {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Team Section
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-medium);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.team-card.pi {
    grid-row: span 2;
}

.team-photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.team-card.pi .team-photo {
    aspect-ratio: 3/4;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo.placeholder {
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder svg {
    width: 40px;
    height: 40px;
    fill: var(--text-muted);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}

.team-info {
    padding: 24px;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.team-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.team-links {
    display: flex;
    gap: 12px;
}

.team-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.team-links a:hover {
    background: var(--accent-blue);
}

.team-links svg {
    width: 16px;
    height: 16px;
}

.team-cta {
    display: inline-block;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   Publications Section
   ============================================ */
.pub-list {
    max-width: 900px;
    margin: 0 auto;
}

.pub-item {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pub-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 60px;
}

.pub-content {
    flex: 1;
}

.pub-content h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.pub-journal {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-style: italic;
    margin-bottom: 8px;
}

.pub-metrics {
    display: flex;
    gap: 16px;
}

.pub-metrics .metric {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.pub-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.pub-link:hover {
    background: var(--accent-blue);
}

.pub-link svg {
    width: 18px;
    height: 18px;
}

/* Publication Filters */
.pub-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pub-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.pub-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.pub-filter.active {
    background: var(--gradient-blue);
    color: var(--text-primary);
    border-color: transparent;
}

/* Publication Tags */
.pub-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pub-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.pub-tag.senior {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.pub-tag.highlight {
    background: rgba(54, 142, 254, 0.2);
    color: var(--accent-blue);
}

/* Featured publication */
.pub-item.featured {
    background: rgba(54, 142, 254, 0.05);
    border: 1px solid rgba(54, 142, 254, 0.2);
    border-radius: var(--radius-md);
    margin: 16px 0;
    padding: 24px;
}

.pub-item.hidden {
    display: none;
}

.pub-cta {
    text-align: center;
    margin-top: 48px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info .section-tag,
.contact-info .section-title {
    text-align: left;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand .logo-img {
    height: 20px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-blue);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Lazy loading placeholder */
.lazy-video,
.lazy-img {
    background: var(--bg-card);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: 1fr;
    }

    .research-card.large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .research-card.large .card-content {
        padding: 32px;
    }

    .tech-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-metrics {
        grid-template-columns: 1fr;
    }

    .impact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card.pi {
        grid-row: span 1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .big-number {
        font-size: 3.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .pub-item {
        flex-direction: column;
        gap: 16px;
    }

    .pub-year {
        font-size: 1rem;
    }
}

/* ============================================
   Login Panel Styles
   ============================================ */

.login-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.login-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: linear-gradient(165deg, rgba(15, 15, 20, 0.98) 0%, rgba(6, 6, 6, 0.99) 100%);
    border-left: 1px solid rgba(54, 142, 254, 0.15);
    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.6),
        -4px 0 20px rgba(54, 142, 254, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.03);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-panel.active {
    transform: translateX(0);
}

.login-panel-header {
    padding: 24px;
    border-bottom: 1px solid rgba(54, 142, 254, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(54, 142, 254, 0.08) 0%, transparent 100%);
    position: relative;
}

.login-panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(54, 142, 254, 0.3), transparent);
}

.login-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-panel-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue);
}

.login-panel-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.login-panel-close:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(54, 142, 254, 0.1);
}

.login-panel-content {
    flex: 1;
    padding: 32px 24px;
}

.login-panel-welcome {
    text-align: center;
    margin-bottom: 32px;
}

.login-panel-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(54, 142, 254, 0.15), rgba(6, 182, 212, 0.15));
    border-radius: 18px;
    animation: logoPulse 3s ease-in-out infinite;
    border: 1px solid rgba(54, 142, 254, 0.2);
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(54, 142, 254, 0.15), inset 0 0 15px rgba(54, 142, 254, 0.1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 35px rgba(54, 142, 254, 0.3), inset 0 0 20px rgba(54, 142, 254, 0.15);
    }
}

.login-panel-welcome h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-panel-welcome p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-panel-form .form-group {
    margin-bottom: 20px;
}

.login-panel-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.login-panel-form .input-wrapper {
    position: relative;
}

.login-panel-form .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.login-panel-form input[type="text"],
.login-panel-form input[type="password"] {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.login-panel-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(54, 142, 254, 0.05);
    box-shadow: 0 0 0 3px rgba(54, 142, 254, 0.1);
}

.login-panel-form input::placeholder {
    color: var(--text-muted);
}

.login-panel-form .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.login-panel-form .password-toggle:hover {
    color: var(--accent-blue);
}

.login-panel-form .password-toggle svg {
    width: 18px;
    height: 18px;
}

.login-panel-form .password-toggle .eye-closed {
    display: none;
}

.login-panel-form .password-toggle.showing .eye-open {
    display: none;
}

.login-panel-form .password-toggle.showing .eye-closed {
    display: block;
}

.login-panel-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-blue);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(54, 142, 254, 0.2);
    margin-top: 24px;
}

.login-panel-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(54, 142, 254, 0.35);
}

.login-panel-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-panel-submit svg {
    width: 18px;
    height: 18px;
}

.login-panel-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: none;
}

.login-panel-error.show {
    display: block;
}

.login-panel-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-panel-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.login-panel-security svg {
    stroke: var(--text-muted);
}

/* ============================================
   User Menu Styles
   ============================================ */

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-family: inherit;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
}

.user-name-nav {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-trigger svg {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(54, 142, 254, 0.08) 0%, transparent 100%);
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-dropdown-role {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(54, 142, 254, 0.15);
    color: var(--accent-blue);
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0;
}

.user-dropdown-section {
    padding: 12px 16px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.user-dropdown-item svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.user-dropdown-item:hover svg {
    color: var(--accent-blue);
}

.user-dropdown-item.logout-btn {
    color: #ef4444;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.user-dropdown-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.user-dropdown-item.logout-btn svg {
    color: #ef4444;
}

/* Resource item with description */
.resource-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.resource-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.resource-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(54, 142, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-item-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-blue);
}

.resource-item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.resource-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 42px;
}
