:root {
    --bg-0: #06070a;
    --bg-1: #0b0f14;
    --bg-2: #101722;
    --panel: rgba(13, 18, 27, 0.72);
    --panel-strong: rgba(15, 21, 31, 0.86);
    --panel-soft: rgba(255, 255, 255, 0.03);
    --border: rgba(160, 196, 255, 0.12);
    --border-strong: rgba(165, 203, 255, 0.22);
    --line: rgba(255, 255, 255, 0.08);
    --text-main: #edf3ff;
    --text-muted: #97a5bd;
    --text-secondary: #7f8ca3;
    --white-soft: rgba(255, 255, 255, 0.8);
    --accent: #d47cff;
    --accent-2: #7368ff;
    --danger: #eb5a96;
    --success: #c8bdd8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.28);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-hover-bg: rgba(255, 255, 255, 0.055);
    --glass-hover-border: rgba(122, 226, 255, 0.25);
    --bg-pure: var(--bg-0);
    --color-admin: #eef4ff;
    --color-mod: #8dd8ff;
    --color-success: var(--success);
    --border-subtle: var(--line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 18% 10%, rgba(235, 90, 150, 0.07), transparent 30%),
        radial-gradient(circle at 82% 0%, rgba(115, 104, 255, 0.09), transparent 24%),
        linear-gradient(180deg, #07080b 0%, #0a0c10 34%, #050608 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
}

body::before {
    background:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
}

body::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 18%, transparent 82%, rgba(255,255,255,0.02));
    opacity: 0.55;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.8;
}

a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

img { max-width: 100%; display: block; }

::selection {
    background: rgba(122, 226, 255, 0.22);
    color: #fff;
}

@keyframes zrx-animation {
    0%   { text-shadow: -2px -1px 0 #eb055a, 2px 1px 0 #4632f0; }
    12%  { text-shadow: 1.5px -1.8px 0 #eb055a, -1.5px 1.8px 0 #4632f0; }
    25%  { text-shadow: 2px 1.2px 0 #eb055a, -2px -1.2px 0 #4632f0; }
    37%  { text-shadow: -1.2px 1.9px 0 #eb055a, 1.2px -1.9px 0 #4632f0; }
    50%  { text-shadow: 1.8px 1.5px 0 #eb055a, -1.8px -1.5px 0 #4632f0; }
    62%  { text-shadow: -2px -1px 0 #eb055a, 2px 1px 0 #4632f0; }
    75%  { text-shadow: -1.5px 2px 0 #eb055a, 1.5px -2px 0 #4632f0; }
    87%  { text-shadow: 1.9px -1.2px 0 #eb055a, -1.9px 1.2px 0 #4632f0; }
    100% { text-shadow: -2px -1px 0 #eb055a, 2px 1px 0 #4632f0; }
}

.glitch-fx {
    position: relative;
    display: inline-block;
    z-index: 1;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    white-space: nowrap;
}

.glitch-fx::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    animation: zrx-animation 2s linear infinite;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    white-space: nowrap;
    text-align: inherit;
    z-index: -1;
}

.glitch-fx.glitch-left::after {
    text-align: left;
}

.main-logo:hover .glitch-fx::after,
.main-logo:focus-visible .glitch-fx::after,
a.glass-panel:hover .glitch-fx::after,
.thread-title:hover .glitch-fx::after,
.profile-name:hover .glitch-fx::after,
.profile-card:hover .profile-name .glitch-fx::after {
    opacity: 1;
}

.profile-name .glitch-fx::after {
  opacity: 1;
}

header {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(6, 8, 12, 0.58);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.header-content {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 16px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-controls:last-child {
    justify-content: flex-end;
}

.main-logo {
    position: relative;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 380px;
    padding: 14px 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        rgba(12, 14, 20, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        var(--shadow-soft);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 1.55rem;
    color: #f8fbff;
    text-align: center;
}

.main-logo::before {
    content: none;
}

.main-logo-text {
    display: inline-block;
    width: max-content;
    margin: 0 auto;
    text-align: center;
    line-height: 1;
}

.main-logo-text.glitch-fx::after {
    inset: 0;
    text-align: center;
}

.main-logo:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}


.nav-link,
.status-chip {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

main {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 84px;
}

.container-center {
    width: min(100%, 560px);
    margin: 0 auto;
}

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.m-0 { margin: 0 !important; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }

.dashboard-hero {
    margin-bottom: 28px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        linear-gradient(180deg, rgba(12,14,20,0.96), rgba(8,9,14,0.94));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 104, 255, 0.12), transparent 65%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #c7b3df;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker::before {
    content: "01";
    color: rgba(255,255,255,0.35);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.page-title {
    font-size: clamp(1.5rem, 3.35vw, 2.15rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #f7fbff;
    white-space: nowrap;
}

.page-subtitle {
    margin-top: 12px;
    max-width: 720px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.72;
}

.title-glow-cyan { text-shadow: 0 0 20px rgba(122, 226, 255, 0.12); }
.title-glow-red { text-shadow: 0 0 20px rgba(255, 91, 126, 0.10); }

.quick-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.metric-pill {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(16, 18, 27, 0.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.metric-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.metric-value.is-status {
    color: #f0e6ff;
}

.metric-value.is-empty {
    color: var(--text-secondary);
}

.glass-panel {
    position: relative;
    display: block;
    padding: 24px;
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        rgba(12, 14, 20, 0.96);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(8px) saturate(112%);
    -webkit-backdrop-filter: blur(8px) saturate(112%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), var(--shadow-soft);
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.018), transparent 28%, transparent 72%, rgba(115,104,255,0.025));
    opacity: 0.5;
    pointer-events: none;
}

.glass-panel.no-hover:hover {
    transform: none;
}

a.glass-panel:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
        rgba(14, 16, 24, 0.98);
    border-color: rgba(255,255,255,0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 22px 50px rgba(0, 0, 0, 0.42);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        rgba(12, 14, 20, 0.96);
    color: var(--text-main);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px) saturate(112%);
    -webkit-backdrop-filter: blur(8px) saturate(112%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.16);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
        rgba(14, 16, 24, 0.98);
}

.btn-primary,
.btn-accent-cyan,
.btn-accent-red {
    color: #edf2fb;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        rgba(12, 14, 20, 0.96);
    border-color: rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), var(--shadow-soft);
}

.btn-primary:hover,
.btn-accent-cyan:hover,
.btn-accent-red:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
        rgba(14, 16, 24, 0.98);
}

.btn-block { width: 100%; }

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.input-glass,
textarea,
select,
input[type="text"],
input[type="password"] {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    background: rgba(2, 7, 13, 0.48);
    color: var(--text-main);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 18px;
    outline: none;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.input-glass:focus,
textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: rgba(122, 226, 255, 0.34);
    background: rgba(10, 16, 25, 0.78);
    box-shadow: 0 0 0 4px rgba(122, 226, 255, 0.08);
}

.input-glass::placeholder,
textarea::placeholder,
input::placeholder {
    color: rgba(151, 165, 189, 0.6);
}

select option {
    background: #0c1119;
    color: var(--text-main);
}

.alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: #f6fbff;
}

.alert-error {
    background: rgba(255, 91, 126, 0.10);
    border-color: rgba(255, 91, 126, 0.28);
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.file-upload-wrapper input[type="file"] { display: none; }
.file-name-display { color: var(--text-secondary); font-size: 0.84rem; }

.thread-list {
    display: grid;
    gap: 14px;
}

.thread-card {
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateZ(0) scale(1);
    transition: transform 0.18s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    will-change: transform;
}

.thread-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 70%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.02) 32%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.02) 68%, transparent 100%);
    opacity: 0;
    transform: skewX(-18deg);
    pointer-events: none;
}

.thread-card.shine-once::after {
    opacity: 1;
    animation: thread-shine 0.95s ease forwards;
}

@keyframes thread-shine {
    0% { left: -130%; opacity: 0; }
    15% { opacity: 0.95; }
    100% { left: 150%; opacity: 0; }
}

.thread-card__inner {
    position: relative;
    z-index: 1;
    transform: translateZ(18px);
    pointer-events: none;
}

.thread-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.thread-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.thread-title {
    margin-bottom: 12px;
    color: #f7fbff;
    font-size: clamp(1.08rem, 1.6vw, 1.26rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.thread-excerpt {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thread-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.thread-statline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand-chip,
.role-chip,
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.role-chip {
    color: var(--white-soft);
}

.meta-chip.is-pinned {
    color: #d5dbe6;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.role-zrx { color: var(--color-admin); text-shadow: 0 0 12px rgba(255,255,255,0.18); }
.role-mdr { color: var(--color-mod); text-shadow: 0 0 12px rgba(122,226,255,0.16); }
.role-usr { color: #d9e3f5; }

.pagination-wrap {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-status {
    min-width: 102px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.03);
    text-align: center;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.content-shell {
    max-width: 920px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.back-link:hover { color: var(--text-main); }

.op-card,
.reply-card {
    border-radius: 22px;
}

.section-label {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.section-rule {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.post-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.post-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #f9fbff;
}

.author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
}

.post-content {
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.82;
    white-space: pre-wrap;
}

.post-image-wrap {
    margin-top: 18px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.post-image {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    object-fit: cover;
    max-height: 440px;
    width: auto;
}

.reaction-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.reaction-btn {
    min-width: 72px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.reaction-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255,255,255,0.07);
}

.btn-like.active {
    color: #f4f7fd;
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.22);
}

.btn-dislike.active {
    color: #f4f7fd;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

.rating-label {
    margin-left: auto;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reply-stack {
    display: grid;
    gap: 14px;
}

.reply-card {
    padding: 20px;
}

.reply-card .post-content {
    font-size: 0.94rem;
    line-height: 1.72;
}

.empty-state {
    padding: 30px 20px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 16px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(255,255,255,0.02);
}

.divider-section {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.form-card {
    padding: 22px;
}

.form-helper {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.icon-btn {
    color: var(--danger);
    font-size: 1rem;
    line-height: 1;
}

.icon-btn:hover {
    color: #ff7f9c;
}

@media (max-width: 900px) {
    .header-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 14px 0;
    }

    .main-logo {
        order: 1;
        justify-self: center;
        min-width: 0;
        width: 100%;
        max-width: 420px;
    }

    .header-controls,
    .header-controls:last-child,
    .header-controls-left,
    .header-controls-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-controls-left {
        order: 2;
    }

    .header-controls-right {
        order: 3;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid > div:first-child {
        width: 100%;
        min-width: 0;
    }

    .quick-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .page-title,
    .page-subtitle {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }
}

@media (max-width: 680px) {
    main,
    .header-content {
        width: calc(100% - 18px);
    }

    .dashboard-hero,
    .glass-panel,
    .reply-card,
    .form-card {
        padding: 18px;
        border-radius: 18px;
    }

    .thread-card__top,
    .author-row,
    .post-header,
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
    }

    .thread-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
    }

    .header-controls .btn,
    .header-controls .nav-link {
        width: auto;
        flex: 0 0 auto;
    }

    .main-logo {
        font-size: 0.98rem;
        letter-spacing: 0.12em;
        padding: 12px 16px;
    }

    .page-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
        line-height: 1.1;
    }

    .page-subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .quick-stats .metric-pill {
        min-width: calc(50% - 6px);
    }

    .thread-card__inner {
        pointer-events: auto;
    }

    .reaction-container {
        align-items: stretch;
    }

    .rating-label {
        margin-left: 0;
    }
}


.profile-shell {
    max-width: 920px;
    margin: 0 auto;
}

.profile-card {
    padding: 28px;
}

.profile-name {
    font-size: clamp(2.3rem, 6vw, 3.2rem);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.02;
    text-align: center;
}

.profile-name .glitch-fx {
    display: inline-block;
    text-align: center;
}

.profile-name .glitch-fx::after {
    inset: 0;
    text-align: center;
}

.profile-role-label,
.profile-meta-line,
.profile-section-title,
.profile-stat-label,
.invite-row,
.activity-meta {
    font-family: 'JetBrains Mono', monospace;
}

.profile-role-label {
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: var(--text-secondary);
}

.profile-meta-line {
    margin-bottom: 28px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.9;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.profile-stat-box {
    min-width: 150px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        rgba(12, 14, 20, 0.96);
}

.profile-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.profile-stat-label {
    margin-top: 6px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.profile-section-title {
    margin-bottom: 14px;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.invites-panel,
.activity-card {
    padding: 20px;
}

.invite-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.10);
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.invite-row:last-child {
    border-bottom: 0;
}

.activity-card {
    display: block;
}

.activity-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 8px;
}

@media (max-width: 680px) {
    .profile-card,
    .invites-panel,
    .activity-card {
        padding: 18px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-stats {
        gap: 14px;
    }

    .profile-stat-box {
        width: 100%;
    }
}


@media (max-width: 680px) {
    .main-logo {
        min-width: 0;
        width: 100%;
        max-width: 420px;
        font-size: 0.98rem;
        letter-spacing: 0.16em;
        padding: 12px 18px;
    }

    .profile-name {
        font-size: 2rem;
    }
}

.post-header > form {
    margin-left: auto;
    flex: 0 0 auto;
}

.reaction-container {
    align-items: center;
}

.rating-label {
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 900px) {
    .header-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .main-logo {
        order: 1;
        justify-self: center;
        min-width: 0;
        width: 100%;
        max-width: 420px;
    }

    .header-controls {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-controls.header-controls-guest {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .btn {
        width: 100%;
    }

    .header-controls .btn,
    .header-controls .nav-link {
        width: auto;
        flex: 0 0 auto;
    }

    .post-header {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .reaction-container {
        align-items: center;
        gap: 10px;
    }

    .rating-label {
        margin-left: auto;
    }
}


.post-header-left {
    min-width: 0;
    flex: 1 1 auto;
}

.post-title,
.post-content {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-content {
    white-space: pre-wrap;
}

