/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:      #000;
    --surface: #0d0d0d;
    --border:  #222;
    --text:    #c8c8c8;
    --link:    #4a9eff;
    --admin:   #ff4444;
    --muted:   #555;
    --mono:    'Courier New', Courier, monospace;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ── */
.navbar {
    background: #080808;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 38px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}

.brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    margin-right: 24px;
    text-decoration: none !important;
    white-space: nowrap;
}
.brand-bracket { color: var(--link); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.nav-links a {
    color: var(--muted);
    font-size: 12px;
    padding: 0 12px;
    height: 38px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.nav-links a:first-child { border-left: 1px solid var(--border); }
.nav-links a:hover { color: #fff; background: #111; text-decoration: none; }

.nav-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0;
}

.nav-search input {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-right: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    padding: 4px 10px;
    height: 26px;
    width: 200px;
    outline: none;
}
.nav-search input:focus { border-color: #444; }

.nav-search button {
    background: #111;
    border: 1px solid var(--border);
    color: var(--muted);
    height: 26px;
    width: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.nav-search button:hover { background: #1e1e1e; color: #fff; }

/* ── Page wrap ── */
.page-wrap {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    flex: 1;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 10px 20px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 28px 0 32px;
}

.ascii-art {
    color: #3a3a3a;
    font-size: 10px;
    line-height: 1.25;
    display: inline-block;
    margin-bottom: 14px;
}

.hero-title {
    color: var(--link);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.hero-sub {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-link {
    display: inline-block;
    color: var(--link);
    font-size: 12px;
    margin-bottom: 18px;
}

.hero-search-label {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-search {
    display: inline-flex;
}

.hero-search input {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-right: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    padding: 6px 12px;
    width: 260px;
    outline: none;
}
.hero-search input:focus { border-color: #444; }

.hero-search button {
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.hero-search button:hover { background: #252525; }

/* ── Paste Tables ── */
.paste-tables { margin-top: 8px; }
.paste-section { margin-bottom: 28px; }

.section-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 0 6px 2px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

thead tr { background: #0d0d0d; }

th {
    color: var(--muted);
    text-align: left;
    padding: 7px 12px;
    border-bottom: 1px solid var(--border);
    font-weight: normal;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr { background: var(--bg); }
tbody tr:nth-child(even) { background: #080808; }
tbody tr:hover { background: #0f0f0f; }

td {
    padding: 6px 12px;
    border-bottom: 1px solid #141414;
    color: var(--text);
}

td a { color: var(--link); }
td a:hover { text-decoration: underline; }

.author-admin { color: var(--admin) !important; }
.empty-row { color: var(--muted); text-align: center; padding: 16px; font-style: italic; }

/* ── Back to top ── */
.back-top {
    text-align: center;
    padding: 20px 0 4px;
    font-size: 11px;
    color: var(--muted);
}
.back-top a { color: var(--muted); }
.back-top a:hover { color: var(--link); }

/* ── Paste View Layout ── */
.paste-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.paste-main {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
}

.paste-body {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
    padding: 16px;
}

/* ── Sidebar ── */
.paste-sidebar {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-logo {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 10px;
    text-align: center;
}

.sidebar-ascii {
    color: #333;
    font-size: 8.5px;
    line-height: 1.2;
    white-space: pre;
}

.sidebar-title {
    color: var(--link);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 6px;
}

.sidebar-meta {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-meta p { color: var(--text); }
.sidebar-meta strong { color: #999; font-weight: normal; }

.sidebar-btn {
    display: block;
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    text-align: center;
    padding: 7px;
    font-family: var(--mono);
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.sidebar-btn:hover { background: #1a1a1a; text-decoration: none; }
.sidebar-btn-danger { border-color: #5a1a1a; color: #e05555; width: 100%; }
.sidebar-btn-danger:hover { background: #2a0a0a; }

.sidebar-notice {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    padding: 8px 0 0;
}
.sidebar-notice a { color: var(--link); }

/* ── Comment form (sidebar) ── */
.comment-form {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.comment-form p { color: var(--muted); }
.comment-form a { color: var(--link); }

.comment-form textarea {
    background: #080808;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    padding: 6px 8px;
    width: 100%;
    resize: vertical;
    outline: none;
}
.comment-form textarea:focus { border-color: #444; }

.comment-form button {
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}
.comment-form button:hover { background: #1a1a1a; }

/* ── Comments section ── */
.comments-section {
    margin-top: 20px;
}

.comments-section h3 {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: normal;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.comment-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    padding: 8px 12px;
    font-size: 12px;
}
.comment-item:first-of-type { border-top: 1px solid var(--border); }

.comment-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
}
.comment-meta strong { color: var(--link); font-weight: normal; }

.comment-body {
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
}

/* ── Forms ── */
.form-wrap { max-width: 680px; }

.form-wrap h2 {
    font-size: 13px;
    color: var(--muted);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.dox-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dox-form label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: -4px;
}

.dox-form input[type="text"],
.dox-form textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12.5px;
    padding: 8px 10px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s;
}
.dox-form input:focus,
.dox-form textarea:focus { border-color: #444; }

.dox-form textarea { resize: vertical; }

.dox-form button {
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    padding: 8px 22px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 4px;
    transition: background 0.15s;
}
.dox-form button:hover { background: #1a1a1a; }

.muted { color: var(--muted); }

.alert {
    background: #110000;
    border: 1px solid #3a0000;
    color: #ff7070;
    padding: 7px 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

/* ── TOS ── */
.tos-body { font-size: 12px; line-height: 1.9; color: var(--text); }
.tos-body ul { padding-left: 20px; margin-top: 8px; }
.tos-body li { margin-bottom: 5px; }
