/* Socioverse Premium Neo-Brutalist & Glassmorphic Login System */

:root {
    --primary-neon: #00e5ff;
    --secondary-neon: #a855f7;
    --dark-bg: #0b0c10;
    --card-bg: rgba(15, 17, 26, 0.7);
    --border-glow: rgba(0, 229, 255, 0.2);
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
}

html {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--dark-bg) !important;
    color: var(--text-main) !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    height: auto !important;
    max-height: none !important;
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

#login_wrap, .page-login, .back_login, #out_content, .out_page, .out_content, #wrap_page, #main_wrapper, .main_wrapper {
    min-height: 100vh !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Background Blobs & Canvas Safety */
.bg_glow_blob, #login_particles {
    pointer-events: none !important;
}

/* Background Blobs */
.bg_glow_blob {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none !important;
}
.blob_cyan {
    top: -10%;
    left: -10%;
    background: var(--primary-neon);
}
.blob_purple {
    bottom: -10%;
    right: -10%;
    background: var(--secondary-neon);
}
.blob_pink {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ec4899;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}
.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--primary-neon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header & Nav */
.header {
    width: 100%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 10;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
}
.logo i {
    font-size: 26px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--primary-neon);
}
.nav-actions {
    display: flex;
    gap: 12px;
}
.btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-outline {
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    background: transparent;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-neon);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: #000;
    border: none;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

/* Nav Toggle for Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}
.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Layout Grid */
main {
    flex: 1;
    position: relative;
    z-index: 1;
}
.clay-wrap {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.clay-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

/* Clay Cards */
.clay-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.clay-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
}

.clay-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
.clay-brand-icon i {
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.clay-brand-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.clay-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Stats Grid */
.clay-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.clay-stat-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}
.clay-stat-item:hover {
    background: rgba(0, 229, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.15);
}
.clay-stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, var(--primary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.clay-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Feature Badges */
.clay-feature-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.clay-feature-badge {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.clay-feature-badge i {
    color: var(--primary-neon);
    font-size: 13px;
}

/* Auth Cards & Forms */
.clay-auth-card {
    padding: 35px 30px;
}
.ws-status {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: #ff4757;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}
.clay-tabs {
    display: flex;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 25px;
}
.clay-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.clay-tab.active {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.2);
}

.clay-panel {
    display: none;
    animation: panelFadeIn 0.4s ease forwards;
}
.clay-panel.active {
    display: block;
}
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.clay-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.clay-input, .clay-select {
    width: 100%;
    height: 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0 15px;
    color: #fff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.clay-input:focus, .clay-select:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    background: rgba(255,255,255,0.05);
}
.clay-pw {
    position: relative;
    width: 100%;
}
.clay-pw .clay-input {
    padding-right: 45px;
}
.clay-eye {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}
.clay-eye:hover {
    color: #fff;
}
.clay-row-flex {
    display: flex;
    gap: 15px;
}
.clay-col {
    flex: 1;
}

.clay-error {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.25);
    color: #ff4757;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.clay-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.clay-check input {
    accent-color: var(--primary-neon);
    width: 16px;
    height: 16px;
}

.clay-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
}
.clay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}
.clay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.clay-link {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    margin: 15px auto 0;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}
.clay-link:hover {
    color: var(--primary-neon);
}
.clay-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.clay-captcha {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

/* Explicit option styles for dark theme dropdown visibility */
.clay-select option {
    background-color: #12141c !important;
    color: #ffffff !important;
}

/* Page sections / How It Works */
.clay-section {
    background: rgba(15, 17, 26, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(15px);
}
.clay-section-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.clay-section-title i {
    color: var(--primary-neon);
    font-size: 24px;
}

.clay-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.clay-how-step {
    text-align: center;
    position: relative;
    padding: 20px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 15px;
    transition: transform 0.3s;
}
.clay-how-step:hover {
    transform: translateY(-5px);
}
.clay-step-number {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 24px;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
}
.clay-step-icon {
    font-size: 36px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.clay-how-step strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.clay-how-step p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Features Strip */
.clay-features-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), rgba(168, 85, 247, 0.05));
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    padding: 20px;
    border-radius: 12px;
}
.clay-feature-item {
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.clay-feature-item i {
    color: var(--primary-neon);
    font-size: 16px;
}

/* Values Grid */
.clay-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.clay-value-card {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 15px;
    transition: border-color 0.3s;
}
.clay-value-card:hover {
    border-color: rgba(168, 85, 247, 0.2);
}
.clay-value-icon i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.clay-value-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.clay-value-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Accordion */
.clay-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.clay-faq-item {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
}
.clay-faq-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
.clay-faq-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Footer styling */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #060709;
    padding: 40px 0 20px;
    margin-top: 40px;
    overflow: hidden;
    max-width: 100%;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.footer-logo i {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-description {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary-neon);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* Responsiveness */
@media (max-width: 900px) {
    .clay-row {
        grid-template-columns: 1fr;
    }
    .clay-how-grid {
        grid-template-columns: 1fr;
    }
    .clay-value-grid {
        grid-template-columns: 1fr;
    }
    .clay-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0d0e13;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 20px;
        box-sizing: border-box;
        gap: 20px;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    .nav-toggle {
        display: flex;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Floating 3D Graphic Animation */
.floating-3d-graphic {
    animation: float3D 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(0, 229, 255, 0.3));
    mix-blend-mode: screen !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.floating-3d-graphic:hover {
    transform: scale(1.08) rotate(4deg) !important;
    filter: drop-shadow(0 20px 40px rgba(0, 229, 255, 0.45));
}
@keyframes float3D {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

/* Live Stack of Avatars Styles */
.avatar-item {
    position: relative;
    display: inline-block;
    margin-left: -8px;
    z-index: 1;
}
.avatar-item:first-child {
    margin-left: 0;
}
.avatar-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #0f111a;
    display: block;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.avatar-item:hover {
    z-index: 10;
}
.avatar-item:hover img {
    transform: translateY(-4px) scale(1.15);
    border-color: var(--primary-neon);
    box-shadow: 0 6px 15px rgba(0, 229, 255, 0.4);
}

/* Premium Tooltip styling */
.avatar-item::after {
    content: attr(data-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    background: rgba(11, 12, 16, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}
.avatar-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}
.live-indicator-pulse {
    width: 8px;
    height: 8px;
    background-color: #00ff66;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00ff66;
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 255, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0);
    }
}

/* Header Status Indicator pulse rules */
.status-dot-pulse {
    animation: statusPulse 2s infinite ease-in-out;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.9); }
}
