@font-face {
    font-family: 'Geist Pixel Circle';
    src: url('GeistPixel/ttf/GeistPixel-Circle.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #000000;
    --accents-1: #111111;
    --accents-2: #333333;
    --accents-3: #444444;
    --accents-4: #666666;
    --accents-5: #888888;
    --accents-6: #999999;
    --accents-7: #eaeaea;
    --accents-8: #fafafa;
    --geist-foreground: #fff;
    --geist-success: #0070f3;
    --geist-error: #ee0000;
    --geist-warning: #f5a623;
    --selection: #f81ce5;

    --radius: 0px;
    --font-sans: 'Geist Pixel Circle', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --font-mono: 'Geist Pixel Circle', monospace;
}

#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--geist-success);
    z-index: 10000;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--geist-success);
}

.locked {
    pointer-events: none !important;
    user-select: none !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    color: var(--accents-4);
    font-family: var(--font-mono);
    text-align: center;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--bg-color);
    color: var(--geist-foreground);
    font-family: var(--font-sans);
    margin: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand,
.title-font {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--bg-color);
    padding: 64px 0 0 0;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.logo {
    height: 48px;
}

.brand {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.header-nav-container {
    border-top: 1px solid var(--accents-1);
    padding: 16px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
}

.breadcrumb,
.main-nav {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accents-4);
    display: flex;
    gap: 16px;
    align-items: center;
}

.breadcrumb span,
.nav-item {
    cursor: pointer;
    transition: color 0.15s ease;
    text-transform: uppercase;
}

.breadcrumb span:hover,
.nav-item:hover {
    color: var(--geist-foreground);
}

.staff-only {
    display: none;
    color: var(--geist-warning);
}

.auth-only {
    display: none;
}

/* Layout Components */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    border-bottom: 1px solid var(--accents-1);
    padding-bottom: 32px;
}

.view-header h1 {
    font-size: 3rem;
    margin: 0;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--accents-1);
    padding-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.content-card {
    border: 1px solid var(--accents-1);
    padding: 40px;
    background: #020202;
    height: 100%;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

/* Forum Index */
.forum-section {
    margin-top: 64px;
}

.section-header {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--geist-success);
    padding: 16px 20px;
    background: #0d1117;
    border-left: 2px solid var(--geist-success);
    margin-bottom: 2px;
}

.section-header.secondary {
    margin-top: 48px;
    color: var(--accents-4);
    border-left-color: var(--accents-3);
}

.forum-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px 300px;
    background: #050505;
    border-bottom: 1px solid var(--accents-1);
    align-items: center;
    padding: 24px 0;
    transition: background 0.15s ease;
}

.forum-row:hover {
    background: #0a0a0a;
    cursor: pointer;
}

.forum-icon {
    display: flex;
    justify-content: center;
    color: var(--geist-success);
    font-size: 1.5rem;
}

.forum-info {
    padding: 0 24px;
}

.forum-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-stats {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accents-4);
}

.forum-latest {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.9rem;
    padding-right: 24px;
    border-left: 1px solid var(--accents-1);
    padding-left: 24px;
}

.latest-avatar {
    width: 40px;
    height: 40px;
    background: var(--accents-1);
    border: 1px solid var(--accents-2);
    background-size: cover;
    background-position: center;
}

.latest-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.latest-title {
    color: var(--accents-7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-mono);
}

.latest-meta {
    font-size: 0.8rem;
    color: var(--accents-4);
}

/* Conversation / Posts */
.forum-post {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    padding: 40px;
    border: 1px solid var(--accents-1);
    background: #020202;
    margin-bottom: 24px;
}

.user-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-large {
    width: 100px;
    height: 100px;
    background: var(--accents-1);
    border: 1px solid var(--accents-2);
    background-size: cover;
    background-position: center;
}

.username-central {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-top: 16px;
    text-align: center;
    color: #fff;
}

.username-central.big {
    font-size: 2rem;
}

.post-content {
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    justify-content: flex-end;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accents-4);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--accents-1);
    padding-bottom: 12px;
}

.post-body {
    color: var(--accents-7);
    line-height: 1.8;
    font-size: 1.15rem;
}

.reply-editor {
    margin-top: 80px;
    border-top: 1px solid var(--accents-1);
    padding-top: 48px;
}

.editor-label {
    font-size: 1.5rem;
}

/* Dashboard & Minibar */
.user-minibar {
    display: flex;
    gap: 48px;
    background: #020202;
    border: 1px solid var(--accents-1);
    padding: 24px 40px;
    margin-bottom: 64px;
}

.minibar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minibar-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accents-4);
    text-transform: uppercase;
}

.minibar-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #fff;
}

.minibar-value.success {
    color: var(--geist-success);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    background: var(--accents-1);
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--accents-2);
}

.stat-card {
    background: #020202;
    border: 1px solid var(--accents-1);
    padding: 32px;
}

.stat-card.large {
    padding: 48px;
}

.card-header {
    margin-top: 0;
    font-size: 1.5rem;
}

.admin-grid {
    display: flex;
    gap: 32px;
}

.admin-main {
    flex: 1;
}

.admin-sidebar {
    width: 350px;
}

.report-list {
    border: 1px solid var(--accents-1);
    display: flex;
    flex-direction: column;
}

.key-display {
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--geist-success);
    word-break: break-all;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accents-4);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: #050505;
    border: 1px solid var(--accents-2);
    color: #fff;
    padding: 12px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.15s ease;
}

.form-input:focus {
    border-color: var(--accents-4);
}

.bio-editor {
    height: 100px;
    resize: none;
}

.auth-form {
    max-width: 400px;
    margin: 100px auto;
    padding: 48px;
    border: 1px solid var(--accents-1);
    background: #020202;
}

.center-text {
    text-align: center;
    margin-bottom: 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--bg-color);
    color: var(--geist-foreground);
    border: 1px solid var(--accents-2);
}

.btn-primary:hover {
    background: #0a0a0a;
    border-color: var(--geist-foreground);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

/* Crash Dumps */
.crash-code-block {
    background: #0d1117;
    border: 1px solid var(--accents-1);
    padding: 24px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--accents-7);
    line-height: 1.6;
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 4px;
}

/* Transitions & Loading */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#loading-overlay.active {
    display: flex;
    opacity: 1;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accents-2);
    border-top-color: var(--geist-foreground);
    border-radius: 50%;
    animation: geist-spin 0.6s linear infinite;
}

@keyframes geist-spin {
    to {
        transform: rotate(360deg);
    }
}

.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
}

/* Footer */
footer {
    padding: 32px 0;
    margin-top: 80px;
    border-top: 1px solid var(--accents-1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 32px;
    opacity: 0.3;
}

.privacy-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accents-4);
    text-decoration: none;
    transition: color 0.15s ease;
}

.privacy-link:hover {
    color: var(--geist-foreground);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

.modal-card {
    background: #050505;
    border: 1px solid var(--accents-2);
    width: calc(100% - 48px);
    max-width: 500px;
    padding: 40px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accents-1);
    padding-bottom: 20px;
}

#modal-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--geist-error);
}

.modal-close {
    cursor: pointer;
    font-size: 2rem;
    line-height: 0.5;
    color: var(--accents-4);
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--accents-6);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.cf-turnstile {
    min-height: 65px;
    display: flex;
    justify-content: center;
}

.link-success:hover {
    color: var(--geist-foreground) !important;
    text-decoration: underline;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accents-1);
    border-top-color: var(--geist-success);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
}

.toast {
    background: #0a0a0a;
    border: 1px solid var(--accents-1);
    padding: 16px 24px;
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    animation: toast-slide 0.3s ease forwards;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accents-4);
    text-transform: uppercase;
}

.toast-message {
    color: var(--accents-7);
    font-size: 0.95rem;
}

.toast-success {
    border-left: 3px solid var(--geist-success);
}

.toast-error {
    border-left: 3px solid var(--geist-error);
}

.toast-warning {
    border-left: 3px solid var(--geist-warning);
}

@keyframes toast-slide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    animation: toast-fade 0.3s ease forwards;
}

@keyframes toast-fade {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

textarea {
    font-family: var(--font-sans);
    resize: vertical;
}

.comment-box-large {
    width: 100%;
    min-height: 160px;
    background: #050505;
    border: 1px solid var(--accents-1);
    border-radius: 4px;
    padding: 16px;
    color: var(--accents-6);
    line-height: 1.6;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.comment-box-large:focus {
    border-color: var(--accents-2);
    box-shadow: 0 0 0 1px var(--accents-1);
}