* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: #0a0a0a;
    color: var(--primary);
    font-family: var(--font-display);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: #0a0a0a;
    opacity: 0.4;
    background-image: linear-gradient(#161616 1px, transparent 1px), linear-gradient(to right, #0c0c0c 1px, #0a0a0a 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}
.ambient-light {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.light-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}
.one { width: 500px; height: 500px; background: #1a1a2e; top: -100px; left: -100px; }
.two { width: 400px; height: 400px; background: #0f1c2e; bottom: -50px; right: -50px; animation-delay: -5s; }
.three { width: 300px; height: 300px; background: rgba(59, 130, 246, 0.1); top: 40%; left: 40%; animation-delay: -10s; }
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
}
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3),
        transparent,
        rgba(255, 255, 255, 0.1)
    );
}
.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    height: 100%;
    min-height: 200px;
}
#stable-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#stable-video {
    width: 100%;
    max-width: 600px;
    margin-bottom: 3rem;
    text-align: center;
}
#stable-message-section {
    width: 100%;
    max-width: 800px;
}
#stable-message-display,
#stable-message-editor {
    width: 100%;
}
#stable-no-message {
    text-align: center;
    color: var(--secondary);
    font-style: italic;
    margin: 2rem 0;
}
.stable-like-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.stable-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.stable-like-btn svg {
    width: 18px;
    height: 18px;
}
.stable-like-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}
.stable-like-btn.liked {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}
.stable-like-count {
    font-family: var(--font-mono);
    color: var(--secondary);
    font-size: 0.9rem;
}
.cyber-loader {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
#user-panel .glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
#logout-btn:hover {
    color: var(--primary);
}
.admin-message-editor {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.admin-message-editor h4 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}
.admin-message-editor .editor-controls {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}
.admin-message-editor textarea {
    flex: 1;
    min-height: 200px;
    background: rgba(10, 10, 20, 0.7);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    color: var(--text);
    font-size: 1.1rem;
    resize: vertical;
    font-family: inherit;
}
.admin-message-editor .send-btn {
    background: var(--accent);
    color: black;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}
.admin-message-editor .send-btn:hover {
    transform: scale(1.15);
}
.admin-message-editor .send-btn i {
    width: 32px;
    height: 32px;
}
#reddit-feed {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.theory-post {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid var(--secondary, #64748b);
    padding: 1.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.theory-post:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary, #3b82f6);
    border-left-color: var(--primary, #3b82f6);
    box-shadow: -5px 0 20px -5px rgba(59, 130, 246, 0.2);
}
.replies-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 0;
}
.theory-post.expanded .replies-container {
    max-height: 2000px;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.reply-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.reply-item:last-child {
    border-bottom: none;
}
.reply-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.reply-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.reply-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}
.reply-date {
    font-size: 0.7rem;
    color: var(--secondary);
    margin-left: auto;
}
.reply-body {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    padding-left: 36px;
    opacity: 0.9;
}
.theory-content {
    max-height: 80px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 60%, transparent 100%);
    transition: max-height 0.5s ease;
}
.theory-post.expanded .theory-content {
    max-height: 1000px;
    mask-image: none;
    -webkit-mask-image: none;
}
.expand-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}
.theory-post.expanded .expand-icon {
    transform: rotate(180deg);
}
.theory-actions {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
}
.theory-post.expanded .theory-actions {
    max-height: 60px;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}
.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}
.discord-btn:hover {
    background: #4752c4;
}
.expand-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--secondary);
    transition: transform 0.3s;
}
.theory-post.expanded .expand-icon {
    transform: rotate(180deg);
}
.theory-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.theory-title {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0;
}
.theory-title a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}
.theory-title a:hover {
    color: var(--accent, #10b981);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.theory-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.75rem;
    color: var(--secondary, #94a3b8);
}
.theory-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primary, #3b82f6);
}
.meta-divider {
    color: rgba(255, 255, 255, 0.2);
}
.theory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tag {
    font-size: 0.7rem;
    font-family: var(--font-mono, monospace);
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary, #3b82f6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.theory-content {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.theory-content::-webkit-scrollbar { width: 4px; }
.theory-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.theory-images {
    margin-top: 1rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.theory-images img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.theory-images img:hover {
    transform: scale(1.02);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.theory-post {
    animation: slideIn 0.4s ease-out forwards;
}

#editor {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.editor-workspace {
    display: flex;
    gap: 2rem;
}
.editor-pane, .preview-pane {
    flex: 1;
    min-width: 0;
}

.card-admin-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.admin-edit-btn,
.admin-delete-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.admin-edit-btn {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.admin-edit-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.admin-delete-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.admin-delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.editor-canvas-wrapper,
#overlay-layer {
    overflow-x: hidden !important;
}

.status-glitched {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.status-mia {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.4);
}

#editor-container .close-editor-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#editor-container .close-editor-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.category-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.category-item:hover::before {
    opacity: 1;
}

.category-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    flex: 1;
}

.category-delete-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modern-input {
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
}

.modern-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modern-input::placeholder {
    color: var(--secondary);
    opacity: 0.6;
}

.primary-btn {
    background: var(--accent);
    color: black;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: #0dd489;
}

.primary-btn:active {
    transform: translateY(0);
}
.nav-items .cyber-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.9rem 1.5rem;
    color: #ffffff !important;  
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-items .cyber-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: #ffffff !important;  
}
.admin-category-manager {
    position: relative;
}

.admin-category-manager .section-header {
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.85rem;
}

.editor-main-container {
    padding: 2.5rem;
}

@media (max-width: 1200px) {
    .editor-main-container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .meta-inputs {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .category-input-wrapper {
        flex-direction: column !important;
    }
    
    #categories-list {
        grid-template-columns: 1fr !important;
    }
    
    .primary-btn,
    .cyber-btn {
        width: 100%;
        justify-content: center;
    }
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.theory-search-bar {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    width: 20px;
    height: 20px;
}

#theory-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#theory-search:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

#theory-search::placeholder {
    color: var(--secondary);
}

.theory-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

.theories-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theory-post {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theory-post:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.theory-post.expanded {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.theory-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.theory-left {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.theory-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    object-fit: cover;
}

.theory-info {
    flex: 1;
    min-width: 0;
}

.theory-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.theory-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary);
    flex-wrap: wrap;
}

.theory-author {
    font-weight: 500;
    color: var(--accent);
}

.meta-divider {
    opacity: 0.5;
}

.theory-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.theory-actions {
    display: flex;
    gap: 0.5rem;
}

.expand-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    transform: scale(1.1);
}

.theory-body {
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.theory-preview,
.theory-full {
    word-wrap: break-word;
}

.theory-full {
    margin-top: 1rem;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    padding: 0;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--text);
    text-decoration: underline;
}

.theory-images {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.theory-images img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.theory-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.reply-toggle-btn i {
    width: 18px;
    height: 18px;
}

.replies-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.replies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.replies-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}

.close-replies-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.close-replies-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
}

.replies-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--secondary);
    font-size: 0.9rem;
}

.cyber-loader-small {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reply-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.reply-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.reply-content-wrapper {
    display: flex;
    gap: 1rem;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    object-fit: cover;
}

.reply-content {
    flex: 1;
    min-width: 0;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.infobox-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain; 
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.glass-card > div[style*="height:180px"] {
    height: 180px !important;
    background-size: contain !important; 
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #111 !important;
    border-radius: 16px 16px 0 0 !important;
}

.theory-images img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain; 
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: block;
}

.reply-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0.75rem;
    max-height: 300px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

img {
    max-width: 100%;
    height: auto;
}

.infobox img[src*="visage.surgeplay.com"],
.infobox img[src*="minecraft"],
.glass-card > div[style*="background"][style*="visage.surgeplay.com"] {
    object-fit: contain !important;
    background-size: contain !important;
}

.reply-author {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

.reply-date {
    color: var(--secondary);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.reply-body {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.reply-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0.75rem;
    max-height: 300px;
    object-fit: cover;
}

.no-replies,
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--secondary);
    font-style: italic;
    font-size: 0.9rem;
}

.error-message {
    color: #ff6b6b;
}

.nav-items a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-items a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}


.server-hero {
    padding: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.server-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.server-ip-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ip-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

.ip-display {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    letter-spacing: 2px;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--accent);
    border-radius: 16px;
    position: relative;
}

.ip-display::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    opacity: 0.3;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.ip-copy-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.ip-copy-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.ip-copy-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.ip-copy-btn.copied {
    background: #10b981;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.server-info-grid {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.info-pill i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.info-pill.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.info-pill.warning i {
    color: #ef4444;
}

.gamemodes-section {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.gamemode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gamemode-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gamemode-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamemode-icon i {
    width: 40px;
    height: 40px;
    color: #000;
}

.gamemode-card h5 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gamemode-card p {
    color: var(--secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.characters-section {
    margin-bottom: 2rem;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.character-card {
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.character-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.character-card:hover::after {
    opacity: 1;
}

.character-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.character-image {
    height: 280px;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.character-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.character-card:hover .character-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.character-info {
    padding: 1.75rem;
    background: rgba(0, 0, 0, 0.3);
}

.character-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.character-abilities {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ability-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--accent);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.character-desc {
    color: var(--secondary);
    line-height: 1.7;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .gamemode-cards {
        grid-template-columns: 1fr;
    }
    
    .characters-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .ip-display {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }
    
    .server-hero {
        padding: 2rem 1.5rem;
    }
    
    .ip-copy-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
    }
    
    .character-image {
        height: 220px;
    }
    
    .character-name {
        font-size: 1.2rem;
    }
    
    .server-info-grid {
        gap: 1rem;
    }
    
    .info-pill {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .theory-post {
        padding: 1rem;
    }
    
    .theory-card-header {
        flex-direction: column;
    }
    
    .theory-title {
        font-size: 1.1rem;
    }
    
    .theory-left {
        width: 100%;
    }
    
    .theory-actions {
        align-self: flex-end;
    }
    
    .theory-filters {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}






