/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #0066ff;
    --background-dark: #0a0a0a;
    --background-secondary: #111111;
    --background-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #888888;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #0066ff 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    /* Remove 300ms click delay on mobile */
    touch-action: manipulation;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fast click response for all interactive elements */
button, a, [role="button"], .nav-link, .btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.nullora-logo {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--background-card);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    touch-action: manipulation; /* Remove 300ms click delay on mobile */
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-card);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease; /* Faster transition for quicker feedback */
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:active {
    transform: scale(0.95);
    color: var(--primary-color);
}

/* Faster click response */
.nav-link:active::after {
    width: 100%;
    background: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-text {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    animation: slideIn 1s ease-out 0.8s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease; /* Faster transition */
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease; /* Very fast active response */
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-accent {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: var(--text-primary);
    border: 2px solid transparent;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s forwards;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--primary-color);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* About Section */
.about {
    background: var(--background-secondary);
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.feature-icon {
    color: var(--primary-color);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.visual-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
    animation: rotate 8s linear infinite;
}

.floating-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
    border-radius: 20px;
}

.floating-card:hover::before {
    opacity: 0.3;
}

.floating-card:hover::after {
    opacity: 0.03;
}

.floating-card:hover {
    border-color: var(--primary-color);
    box-shadow: 
        var(--shadow-glow),
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg) scale(1.05);
}

.floating-card * {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.floating-card:hover .card-content {
    transform: translateZ(20px);
}

.floating-card:hover .card-icon {
    transform: translateZ(30px) rotateY(180deg) scale(1.2);
}

.floating-card:hover .card-content h4 {
    transform: translateZ(25px);
    color: var(--primary-color);
}

.floating-card:hover .card-content p {
    transform: translateZ(20px);
    color: var(--text-primary);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        filter: brightness(1);
    }
    25% { 
        transform: translateY(-15px) rotate(1deg);
        filter: brightness(1.05);
    }
    50% { 
        transform: translateY(-25px) rotate(2deg);
        filter: brightness(1.1);
    }
    75% { 
        transform: translateY(-15px) rotate(1deg);
        filter: brightness(1.05);
    }
}

.card-content {
    text-align: center;
}

.card-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.card-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(50px) rotateX(-15deg);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
    transform: scale(0);
    border-radius: 20px;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: all 0.8s ease;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

.feature-card:hover::before {
    opacity: 0.08;
    transform: scale(1);
}

.feature-card:hover::after {
    opacity: 0.3;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 
        var(--shadow-glow),
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card * {
    position: relative;
    z-index: 1;
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: translateZ(30px) scale(1.1);
}

.feature-card .feature-icon {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    color: var(--primary-color);
}

.feature-card .feature-icon svg {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: rotateY(180deg) scale(1.1);
    filter: drop-shadow(0 0 20px var(--primary-color));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    transform: translateZ(20px);
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    transform: translateZ(5px);
    transition: all 0.3s ease;
}

.feature-card:hover p {
    transform: translateZ(15px);
    color: var(--text-primary);
}

/* Technology Section */
.technology {
    background: var(--background-secondary);
    padding: 6rem 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tech-category {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.tech-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--background-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--background-dark);
    color: var(--primary-color);
}

.tech-icon {
    color: var(--primary-color);
}

.tech-icon svg {
    width: 24px;
    height: 24px;
}

.tech-visualization {
    height: 300px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.tech-network {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Mechanisms Section */
.mechanisms {
    padding: 6rem 0;
    background: var(--background-dark);
}

.mechanisms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.mechanism-item {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateX(-100px) rotateY(-15deg);
}

.mechanism-item.animate-in {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.mechanism-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
    transform: skewX(-45deg) translateX(-100%);
}

.mechanism-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.mechanism-item:hover::before {
    opacity: 0.05;
    transform: skewX(-45deg) translateX(100%);
}

.mechanism-item:hover::after {
    opacity: 1;
}

.mechanism-item:hover {
    border-color: var(--primary-color);
    box-shadow: 
        var(--shadow-glow),
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
}

.mechanism-item * {
    position: relative;
    z-index: 1;
}

.mechanism-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.mechanism-item:hover .mechanism-header {
    transform: translateZ(30px);
}

.mechanism-icon {
    background: var(--gradient-primary);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    transition: all 0.4s ease;
    transform: translateZ(10px);
    position: relative;
    overflow: hidden;
    color: var(--background-dark);
}

.mechanism-icon svg {
    width: 64px;
    height: 64px;
    transition: all 0.3s ease;
}

.mechanism-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.mechanism-item:hover .mechanism-icon {
    transform: translateZ(20px) rotateY(10deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.mechanism-item:hover .mechanism-icon::before {
    width: 120%;
    height: 120%;
}

.mechanism-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    transform: translateZ(15px);
    transition: all 0.3s ease;
}

.mechanism-item:hover .mechanism-header h3 {
    transform: translateZ(25px);
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.mechanism-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.mechanism-item:hover .mechanism-content p {
    transform: translateZ(20px);
    color: var(--text-primary);
}

.mechanism-features {
    list-style: none;
    padding: 0;
}

.mechanism-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mechanism-features li:last-child {
    border-bottom: none;
}

.mechanism-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Platform Section */
.platform {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.platform-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.ecosystem-diagram {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.ecosystem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.center-node {
    background: var(--gradient-primary);
    color: var(--background-dark);
    padding: 1.5rem 2rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
    animation: pulse 3s infinite;
}

.ecosystem-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    opacity: 0.7;
}

.ring-2 {
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    opacity: 0.5;
    animation-duration: 30s;
    animation-direction: reverse;
}

.ring-3 {
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    opacity: 0.3;
    animation-duration: 40s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ecosystem-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.eco-node {
    position: absolute;
    background: var(--background-card);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.eco-node:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: scale(1.1);
}

.node-1 { top: 10%; left: 40%; }
.node-2 { top: 20%; right: 10%; }
.node-3 { bottom: 20%; right: 15%; }
.node-4 { bottom: 10%; left: 35%; }
.node-5 { bottom: 25%; left: 5%; }
.node-6 { top: 25%; left: 5%; }

.platform-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    padding: 1.5rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.detail-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.detail-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.platform-advantages {
    text-align: center;
}

.platform-advantages h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 800px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.advantage-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: all 0.6s ease;
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.advantage-card:hover::before {
    left: 100%;
}

.advantage-card:hover::after {
    width: 200%;
    height: 200%;
}

.advantage-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.advantage-card * {
    position: relative;
    z-index: 1;
}

.advantage-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    transform: translateZ(15px);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    color: var(--primary-color);
}

.advantage-icon svg {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon svg {
    transform: translateZ(25px) rotateY(360deg) scale(1.2);
    filter: drop-shadow(0 0 20px var(--primary-color));
}

.advantage-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.advantage-card:hover h4 {
    transform: translateZ(20px);
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    transform: translateZ(5px);
    transition: all 0.3s ease;
}

.advantage-card:hover p {
    transform: translateZ(15px);
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    background: var(--background-secondary);
    padding: 6rem 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--background-card);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 
        var(--shadow-glow),
        0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 2rem;
}

.success-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header h3 {
    font-size: 2rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-email-display {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: var(--font-mono);
}

.modal-email-display span:first-child {
    color: var(--text-accent);
}

.modal-email-display span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-footer {
    margin-top: 2rem;
}

.modal-footer .btn {
    min-width: 200px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    /* Remove default link styles */
    text-decoration: none;
    color: inherit;
}

.contact-method:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    color: inherit;
    text-decoration: none;
}

.contact-method:visited,
.contact-method:focus,
.contact-method:active {
    color: inherit;
    text-decoration: none;
}

.method-icon {
    color: var(--primary-color);
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--background-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-image {
    width: 28px;
    height: 28px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-logo .logo-image:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-accent);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mechanisms-grid {
        grid-template-columns: 1fr;
    }
    
    .mechanism-item {
        padding: 2rem;
    }
    
    .mechanism-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .platform-overview {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ecosystem-diagram {
        width: 300px;
        height: 300px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .mechanisms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mechanism-item {
        padding: 1.5rem;
    }
    
    .mechanism-icon {
        font-size: 2rem;
        min-width: 60px;
        height: 60px;
    }
    
    .ecosystem-diagram {
        width: 250px;
        height: 250px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantage-card {
        padding: 1.5rem 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes flipIn {
    0% {
        transform: perspective(400px) rotateY(-90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateY(-10deg);
    }
    70% {
        transform: perspective(400px) rotateY(10deg);
    }
    100% {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(100px) rotateX(-90deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) rotateX(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) rotateZ(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotateZ(5deg);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9) rotateZ(-2deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotateZ(0deg);
        opacity: 1;
    }
}

@keyframes morphIn {
    0% {
        transform: scale(0) rotateZ(180deg);
        border-radius: 50%;
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotateZ(90deg);
        border-radius: 30%;
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotateZ(0deg);
        border-radius: 20px;
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.4);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.fade-in { animation: fadeIn 1s ease-out; }
.slide-in-left { animation: slideInLeft 1s ease-out; }
.slide-in-right { animation: slideInRight 1s ease-out; }
.scale-in { animation: scaleIn 1s ease-out; }
.flip-in { animation: flipIn 0.8s ease-out; }
.slide-in-up { animation: slideInUp 0.8s ease-out; }
.bounce-in { animation: bounceIn 0.8s ease-out; }
.morph-in { animation: morphIn 1s ease-out; }
.glow-pulse { animation: glowPulse 2s ease-in-out infinite; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* =============================================================================
   INTERACTIVE EXPERIENCE STYLES
   ============================================================================= */

/* Hero Identity Display */
.hero-identity-display {
    margin: 30px auto;
    padding: 25px;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.hero-identity-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.identity-preview {
    text-align: center;
}

.identity-preview-content {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    position: relative;
}

.identity-preview-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.identity-preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Enhanced avatar styling */
.hero-identity-display img {
    transition: all 0.3s ease;
}

.hero-identity-display img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Section Base Styles */
.username-section,
.privacy-section,

.wallet-section,
.beta-section,

.identity-studio-section {
    padding: 100px 0;
    position: relative;
}

.username-section {
    background: var(--background-dark);
}

.privacy-section {
    background: var(--background-secondary);
}



.wallet-section {
    background: var(--background-secondary);
}

.beta-section {
    background: var(--background-dark);
}



.identity-studio-section {
    background: var(--background-dark);
}

/* Section Background Effects */
.username-section::before,
.privacy-section::before,

.wallet-section::before,
.beta-section::before,

.identity-studio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Card Containers */
.username-reservation,
.privacy-test-container,

.wallet-integration,
.beta-access,
.identity-studio {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.username-card,
.privacy-card,

.wallet-card,
.beta-card,
.studio-card {
    background: var(--background-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
}

.username-card::before,
.privacy-card::before,

.wallet-card::before,
.beta-card::before,
.studio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.username-card:hover::before,
.privacy-card:hover::before,

.wallet-card:hover::before,
.beta-card:hover::before,
.studio-card:hover::before {
    transform: translateX(0);
}

.username-card:hover,
.privacy-card:hover,

.wallet-card:hover,
.beta-card:hover,
.studio-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Identity Generator Styles */
.identity-display {
    min-height: 200px;
    background: var(--background-secondary);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
}

.identity-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.identity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.identity-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.identity-info {
    margin-bottom: 20px;
}

.identity-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.identity-hash,
.identity-key {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.identity-actions {
    display: flex;
    gap: 10px;
}

.identity-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.identity-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 500;
}

/* Username Reservation Styles */
.username-form {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    background: var(--background-secondary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.input-prefix {
    background: var(--primary-color);
    color: var(--background-dark);
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-accent);
}

.input-group .btn {
    border-radius: 0;
    margin: 0;
}

.username-status {
    margin-bottom: 15px;
    min-height: 25px;
    display: flex;
    align-items: center;
}

.status-available {
    color: var(--primary-color);
    font-weight: 500;
}

.status-taken {
    color: #ff4444;
    font-weight: 500;
}

.status-error {
    color: #ff6666;
    font-size: 0.9rem;
}

.status-checking {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.status-checking::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.username-suggestions {
    margin-bottom: 15px;
}

.suggestions-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: var(--primary-color);
    color: var(--background-dark);
}

.username-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Privacy Test Styles */
.privacy-test {
    margin-bottom: 20px;
}

.question {
    display: none;
}

.question.active {
    display: block;
}

.question p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

.option-btn.selected {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
}

.test-progress {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.privacy-score {
    text-align: center;
    padding: 20px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.score-max {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.score-recommendation {
    font-size: 1rem;
    color: var(--text-primary);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
}



/* Beta Form Styles */
.beta-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.beta-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Wallet Demo Styles */
.wallet-demo {
    margin-bottom: 20px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.wallet-btn {
    display: flex;
    align-items: center;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.wallet-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

.wallet-btn img,
.wallet-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.wallet-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-connected {
    text-align: center;
}

.wallet-address {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.wallet-balance {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.wallet-balance strong {
    color: var(--primary-color);
}

.wallet-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wallet-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}



/* Button Styles */
.btn-small {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
}

.btn-secondary {
    background: var(--background-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.btn-secondary:hover {
    background: var(--border-color) !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    z-index: 10000;
    max-width: 400px;
    box-shadow: var(--shadow-card);
}

.notification-success {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

.notification-error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.notification-loading {
    border-color: var(--secondary-color);
    background: rgba(0, 102, 255, 0.1);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--secondary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .interactive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .interactive-card {
        padding: 20px;
    }
    

    
    .wallet-actions {
        flex-direction: column;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .interactive-card {
        padding: 15px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .identity-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-prefix {
        border-radius: 10px 10px 0 0;
    }
    
    .suggestions-list {
        flex-direction: column;
    }
    
    .suggestion-btn {
        text-align: center;
    }
}

/* =============================================================================
   CHAT INTERFACE STYLES
   ============================================================================= */

.user-info-section {
    padding: 100px 0;
    background: var(--background-dark);
    position: relative;
    overflow: hidden;
}

.user-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(800px circle at 30% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(600px circle at 70% 80%, rgba(0, 102, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.chat-interface {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Waiting State - Chat Style */
.chat-waiting {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 24px;
    padding: 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.chat-waiting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.chat-waiting-content {
    text-align: center;
    padding: 50px 40px;
}

.waiting-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-accent);
    border: 2px solid rgba(0, 255, 136, 0.2);
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
}

.chat-waiting h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.chat-waiting p {
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 1rem;
    line-height: 1.5;
}

.waiting-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Chat Buttons */
.chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.chat-btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.chat-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 255, 136, 0.4);
}

.chat-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chat-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Chat Profile - When Logged In */
.chat-profile {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 24px;
    padding: 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.chat-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

/* Chat Header */
.chat-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.chat-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    position: relative;
}

.chat-avatar-fallback {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.chat-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #00ff88;
    border: 2px solid var(--background-card);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.chat-user-info {
    flex: 1;
    min-width: 0;
}

.chat-username {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.chat-status-text {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Chat Content */
.chat-content {
    padding: 30px;
}

.chat-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-detail-row:last-child {
    border-bottom: none;
}

.chat-detail-label {
    color: var(--text-accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.chat-detail-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    text-align: right;
    max-width: 200px;
    word-break: break-all;
}

.chat-detail-value.highlight {
    color: var(--primary-color);
    font-weight: 500;
}

/* Chat Actions */
.chat-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.chat-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.chat-action-btn.primary {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--primary-color);
}

.chat-action-btn.primary:hover {
    background: rgba(0, 255, 136, 0.2);
}

/* Add Friend Section */
.add-friend-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
}

.add-friend-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.friend-hash-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.friend-hash-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.friend-hash-input::placeholder {
    color: var(--text-accent);
}

.add-friend-btn {
    padding: 12px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-friend-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.add-friend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Chat Stats */
.chat-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.chat-stat {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.chat-stat-label {
    font-size: 0.75rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Updating animation */
.chat-interface.updating {
    animation: chatPulse 0.6s ease-out;
}

@keyframes chatPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-info-section {
        padding: 60px 0;
    }
    
    .chat-interface {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .chat-waiting-content {
        padding: 40px 30px;
    }
    
    .chat-header {
        padding: 20px 25px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .chat-content {
        padding: 25px 20px;
    }
    
    .chat-actions {
        grid-template-columns: 1fr;
    }
    
    .friend-input-group {
        flex-direction: column;
    }
    
    .chat-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .waiting-actions {
        width: 100%;
    }
    
    .chat-btn {
        width: 100%;
        min-width: auto;
    }
}

/* =============================================================================
   ONLINE USERS SECTION STYLES
   ============================================================================= */

.online-users-section-fullwidth {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 24px;
    margin: 20px 40px 0 40px;
    padding: 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.1);
    position: relative;
    width: calc(100vw - 80px);
    margin-left: calc(-50vw + 50% + 40px);
    max-width: calc(100vw - 80px);
}

.online-users-section-fullwidth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #0066ff 100%);
}

.online-users-header {
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.online-count {
    background: var(--gradient-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    transform: rotate(180deg);
}

.online-users-list {
    padding: 20px 40px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.3) rgba(255, 255, 255, 0.1);
}

.online-users-list::-webkit-scrollbar {
    height: 6px;
}

.online-users-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

.online-user-item {
    flex: 0 0 auto;
    width: 140px;
    height: 190px; /* Increased height to prevent overlap */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    justify-content: flex-start; /* Start from top */
}

.online-user-item:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.online-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.3);
    position: relative;
    flex-shrink: 0;
}

.online-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-avatar-fallback {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.online-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border: 2px solid var(--background-card);
    border-radius: 50%;
    animation: onlineStatusPulse 2s ease-in-out infinite;
}

@keyframes onlineStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.online-user-info {
    text-align: center;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    gap: 12px; /* Increased space between content and button */
}

.online-user-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    justify-content: flex-start;
    margin-bottom: 8px; /* Add margin before button */
}

.online-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent name from shrinking */
}

.online-user-status {
    font-size: 0.7rem;
    color: var(--text-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.2;
    flex-shrink: 0; /* Prevent status from shrinking */
}

.online-user-location {
    font-size: 0.65rem;
    color: var(--text-accent);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0; /* Prevent location from shrinking */
    margin-bottom: 4px; /* Add space below location */
}

.add-user-btn {
    width: 100%;
    height: 28px; /* Fixed height for consistency */
    padding: 0 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0; /* Prevent button from shrinking */
    margin-top: auto; /* Push button to bottom */
}

.add-user-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-1px);
}

.add-user-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.add-user-btn.loading {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.online-users-pagination {
    padding: 15px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* Loading animation for online users */
.online-users-list.loading {
    position: relative;
    overflow: hidden;
}

.online-users-list.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* User appearance animation */
.online-user-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple users */
.online-user-item:nth-child(1) { animation-delay: 0.1s; }
.online-user-item:nth-child(2) { animation-delay: 0.2s; }
.online-user-item:nth-child(3) { animation-delay: 0.3s; }
.online-user-item:nth-child(4) { animation-delay: 0.4s; }
.online-user-item:nth-child(5) { animation-delay: 0.5s; }
.online-user-item:nth-child(6) { animation-delay: 0.6s; }
.online-user-item:nth-child(7) { animation-delay: 0.7s; }
.online-user-item:nth-child(8) { animation-delay: 0.8s; }

/* Large screen margins */
@media (min-width: 1200px) {
    .online-users-section-fullwidth {
        margin: 20px 60px 0 60px;
        margin-left: calc(-50vw + 50% + 60px);
        width: calc(100vw - 120px);
        max-width: calc(100vw - 120px);
    }
}

/* Medium screen margins */
@media (min-width: 769px) and (max-width: 1199px) {
    .online-users-section-fullwidth {
        margin: 20px 50px 0 50px;
        margin-left: calc(-50vw + 50% + 50px);
        width: calc(100vw - 100px);
        max-width: calc(100vw - 100px);
    }
}

/* Responsive design for online users */
@media (max-width: 768px) {
    .online-users-section-fullwidth {
        border-radius: 12px;
        margin: 20px 20px 0 20px;
        margin-left: calc(-50vw + 50% + 20px);
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }
    
    .online-users-header {
        padding: 15px 20px;
    }
    
    .online-users-list {
        padding: 15px 20px;
        gap: 12px;
    }
    
    .online-users-pagination {
        padding: 12px 20px;
    }
    
    .online-user-item {
        width: 120px;
        height: 170px; /* Increased height for mobile to prevent overlap */
        padding: 12px 8px 12px;
    }
    
    .online-user-avatar,
    .online-avatar-fallback {
        width: 40px;
        height: 40px;
    }
    
    .online-user-name {
        font-size: 0.8rem;
    }
    
    .online-user-status {
        font-size: 0.65rem;
    }
    
    .online-user-location {
        font-size: 0.6rem;
        padding: 1px 4px;
        margin-bottom: 6px; /* More space on mobile */
    }
    
    .add-user-btn {
        font-size: 0.65rem;
        height: 24px; /* Fixed height for mobile */
        padding: 0 6px;
    }
} 