:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #141414;
    --card-bg: rgba(255, 255, 255, 0.02);
    --accent-primary: #4a4a4a;
    --accent-secondary: #3a3a3a;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #000000 0%, #0e0e0e 50%, #0f0f0f 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(70, 70, 70, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60, 60, 60, 0.04) 0%, transparent 50%),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDAgTCA2MCAwIEwgNjAgNjAgTCAwIDYwIFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjAyKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIi8+PC9zdmc+');
    pointer-events: none;
    z-index: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--text-dark); border-radius: 4px; }

.glass-nav {
    position: sticky; 
    top: 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 2rem; 
    background: rgba(10, 10, 10, 0.8); 
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle); 
    z-index: 1000;
}

.logo-img { height: 40px; width: auto; } 

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.2s;
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent-primary); }

.discord-btn {
    background: var(--accent-primary); 
    color: white; 
    padding: 0.6rem 1.2rem; 
    border-radius: 6px;
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: 0.2s;
}
.discord-btn:hover { 
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.hero { 
    height: 85vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    position: relative;
    padding: 2rem;
}

.hero h1 { 
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 700; 
    line-height: 1.2; 
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.tagline { 
    font-size: 1.25rem; 
    color: var(--accent-primary); 
    margin-bottom: 0.75rem; 
    font-weight: 600;
}

.sub-tagline { 
    color: var(--text-muted); 
    margin-bottom: 2.5rem; 
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    padding: 1rem 2rem; 
    background: var(--accent-primary);
    border: none;
    color: white; 
    font-weight: 600;
    font-size: 1rem; 
    cursor: pointer;
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    transition: 0.3s;
    border-radius: 6px;
}
.cta-btn:hover { 
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.3);
}

.glitch { position: relative; color: white; }

.ai-console-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.ai-console-head {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.sys-status {
    color: var(--text-muted);
    font-weight: 600;
}

.sys-id {
    color: var(--text-dark);
    font-size: 0.85rem;
}

.ai-console-body {
    padding: 2rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-console-body::-webkit-scrollbar-thumb {
    background: var(--text-dark);
    border-radius: 4px;
}

.typing-text,
.sys-msg {
    color: var(--text-muted);
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.sys-msg {
    font-style: italic;
    font-size: 0.9rem;
}

.theory-log-entry {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.theory-log-entry:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theory-header {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.theory-content {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.theory-footer {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
    margin-top: 1rem;
}

.theory-log-entry {
    cursor: pointer;
    position: relative;
}

.theory-log-entry::after {
    content: 'Click for details →';
    font-size: 0.8rem;
    color: var(--text-dark);
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.theory-log-entry:hover::after {
    opacity: 0.6;
}

.theory-log-entry.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.theory-detail {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    display: none;
}

.theory-detail.loading {
    color: var(--text-dark);
    font-style: italic;
}

.theory-detail.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 2.5rem; 
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem; 
}

.section-header h2 { 
    font-size: 2rem; 
    display: flex; 
    align-items: center; 
    gap: 0.8rem;
    font-weight: 700;
}

.live-indicator { 
    color: var(--text-muted);
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    font-size: 0.9rem;
}

.blink { 
    width: 8px; 
    height: 8px; 
    background: var(--accent-primary);
    border-radius: 50%; 
    animation: blinker 2s ease-in-out infinite; 
}

.loading-container {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    width: 100%; 
    height: 200px; 
    color: var(--text-muted);
    gap: 1rem;
}

.spin-icon { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.grid-layout { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

.skin-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden; 
    backdrop-filter: blur(10px); 
    transition: 0.3s;
}

.card:hover { 
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); 
}

.skin-card { 
    text-align: center; 
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.skin-model { 
    height: 350px; 
    width: 100%; 
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s; 
}

.skin-card:hover .skin-model { transform: scale(1.03); }

.skin-name { 
    font-size: 1.3rem; 
    margin-top: 1rem; 
    font-weight: 600;
}

.yt-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.yt-content { padding: 1.5rem; }

.yt-title { 
    font-size: 1.05rem; 
    margin-bottom: 0.8rem; 
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.yt-meta { 
    font-size: 0.9rem; 
    color: var(--text-dark);
    display: flex; 
    justify-content: space-between; 
}

.new-badge { 
    background: var(--accent-primary);
    color: white; 
    padding: 4px 10px;
    font-size: 0.7rem; 
    border-radius: 4px;
    position: absolute; 
    top: 12px; 
    right: 12px;
    font-weight: 700;
    z-index: 2; 
}

.ai-analysis {
    background: rgba(74, 74, 74, 0.1);
    border: 1px solid rgba(74, 74, 74, 0.3);
    border-radius: 8px; 
    padding: 12px;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.ai-header { 
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 6px;
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.ai-text { color: var(--text-muted); }

.prediction-box {
    margin-top: 0.8rem; 
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.prediction-label { 
    color: var(--text-dark);
    display: block; 
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: normal; 
}

.chaos-grid { gap: 1.5rem; }

.api-card { 
    height: 280px; 
    display: flex; 
    flex-direction: column; 
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.card-header h3 { 
    font-size: 1rem;
    color: var(--text-muted);
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    font-weight: 600;
}

.card-header button { 
    background: none; 
    border: none;
    color: var(--accent-primary);
    cursor: pointer; 
    transition: 0.3s; 
}

.card-header button:hover { 
    transform: rotate(90deg);
    color: white; 
}

.api-content { 
    flex: 1; 
    padding: 1rem;
    overflow: hidden; 
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.api-content.no-padding { padding: 0; }
.api-content img { width: 100%; height: 100%; object-fit: cover; }

.text-sm { 
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: left; 
    width: 100%; 
}

.community-table-wrapper {
    display: grid; 
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px; 
    overflow: hidden;
    height: 500px;
}

.community-list { 
    overflow-y: auto;
    border-right: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.3); 
}

.community-item {
    display: flex; 
    align-items: center; 
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    transition: 0.2s;
}

.community-item:hover, .community-item.active { 
    background: rgba(74, 74, 74, 0.2);
    border-left: 3px solid var(--accent-primary);
}

.comm-avatar img { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
}

.comm-name { font-weight: 600; }

.community-display {
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    position: relative;
}

.community-hero { 
    display: flex; 
    gap: 2rem; 
    align-items: flex-start;
    animation: fadeIn 0.5s ease; 
}

.comm-video-thumb { 
    width: 320px; 
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    position: relative; 
}

.comm-info h3 { 
    font-size: 1.6rem; 
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.comm-stats { 
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.comm-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: white; 
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem;
    transition: 0.2s;
}

.comm-btn:hover {
    background: var(--accent-secondary);
}

.empty-state { 
    text-align: center;
    color: var(--text-dark);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem; 
}

.stable-header h2 { color: var(--accent-primary); }

.stable-wrapper {
    background: rgba(74, 74, 74, 0.05);
    border: 1px solid rgba(74, 74, 74, 0.2);
    border-radius: 12px; 
    padding: 2rem;
    display: flex; 
    justify-content: center;
}

.stable-card { 
    max-width: 600px; 
    width: 100%; 
    display: flex; 
    gap: 1.5rem; 
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem; 
    border-radius: 12px;
    border: 1px solid var(--accent-primary);
}

.stable-card img { width: 200px; border-radius: 8px; }

.stable-info h3 { 
    color: var(--accent-primary);
    font-size: 1.4rem; 
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stable-btn { 
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px; 
    text-decoration: none;
    font-size: 0.9rem; 
    margin-top: 1rem;
    display: inline-block; 
    transition: 0.2s;
    font-weight: 600;
}

.stable-btn:hover { 
    background: var(--accent-primary);
    color: white; 
}

.mega-footer { 
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.6) 20%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 2rem 2rem;
    margin-top: 6rem;
    position: relative;
    z-index: 1;
}

.mega-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.footer-logo { 
    max-height: 50px; 
    margin-bottom: 1.5rem;
    filter: brightness(0.95);
}

.footer-grid { 
    max-width: 1200px; 
    margin: 0 auto;
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; 
    margin-bottom: 4rem; 
}

.footer-col:first-child {
    max-width: 400px;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-col h4 { 
    font-size: 0.95rem;
    color: var(--text-main); 
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links { 
    list-style: none; 
}

.footer-links li { 
    margin-bottom: 0.75rem; 
}

.footer-links a { 
    color: var(--text-muted);
    text-decoration: none; 
    transition: all 0.2s;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover { 
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom { 
    max-width: 1200px; 
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex; 
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.85rem; 
}

.visitor-module {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.visitor-module:hover {
    border-color: var(--accent-primary);
    background: rgba(74, 74, 74, 0.05);
}

.counter-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.counter-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.counter-value {
    font-family: 'Courier New', monospace; /* Tech/Terminal feel */
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }


.footer-bottom .credits {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes blinker { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.3; } 
}

@media (max-width: 768px) {
    .community-table-wrapper { 
        grid-template-columns: 1fr;
        height: auto; 
    }
    .community-list { 
        height: 150px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }
    .stable-card { 
        flex-direction: column;
        text-align: center; 
    }
    .stable-card img { width: 100%; }
    .footer-grid { 
        grid-template-columns: 1fr;
        gap: 2.5rem; 
    }
    .footer-col:first-child {
        max-width: 100%;
    }
}

