
.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: 16px;
    padding-top: 16px;
    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 {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
    padding: 0;
    color: var(--text-muted);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-btn.btn-pin:hover {
    color: #c8bdd8;
    box-shadow: 0 0 12px rgba(200, 189, 216, 0.2);
}

.icon-btn.btn-edit:hover {
    color: var(--accent-2);
    box-shadow: 0 0 12px rgba(115, 104, 255, 0.2);
}

.icon-btn.btn-delete:hover {
    color: var(--danger);
    box-shadow: 0 0 12px rgba(235, 90, 150, 0.2);
}

.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;
    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;
    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;
    color: var(--text-secondary);
}

.profile-section-title {
    margin-bottom: 14px;
    font-size: 1rem;
    letter-spacing: 0.16em;
}

.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;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
    background: rgba(151, 165, 189, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 226, 255, 0.4);
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 22px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone.dragover {
    border-color: rgba(122, 226, 255, 0.5);
    background: rgba(122, 226, 255, 0.05);
}

.avatar-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.file-attachment-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.file-attachment-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(122, 226, 255, 0.3);
}

.post-pinned {
    border: 1px solid rgba(122, 226, 255, 0.3) !important;
    background: linear-gradient(180deg, rgba(122, 226, 255, 0.03), rgba(0, 0, 0, 0)) !important;
}

.badge-private {
    color: #ff7f9c;
    border-color: rgba(255, 127, 156, 0.3);
    background: rgba(255, 127, 156, 0.05);
}

.badge-admin {
    color: var(--color-admin);
    border-color: rgba(255, 190, 223, 0.3);
    background: rgba(255, 190, 223, 0.05);
}

.post-title .glitch-fx,
.post-title .glitch-fx::after {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.new-profile-card {
    padding: 25px;
    background: rgba(14, 16, 22, 0.96);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.npc-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.npc-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.npc-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.npc-name {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.npc-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 2px;
}

.npc-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.npc-bottom-bar {
    display: grid;
    grid-template-columns: 170px auto 170px;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.02);
}

.npc-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 15px;
}

.npc-left.has-border {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.npc-right.has-border {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.npc-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 10px 25px;
}

.npc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.npc-stat-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.npc-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.npc-action-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin: 0;
    line-height: 1;
}

.npc-action-text:hover {
    opacity: 0.7;
    transform: scale(0.98);
}

.npc-icon-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 5px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.npc-icon-btn:hover {
    color: #fff;
}

.npc-icon-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}


@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;
    }

    .header-controls.header-controls-guest {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    main, .header-content {
        width: calc(100% - 18px);
    }

    .dashboard-hero, .glass-panel, .reply-card, .form-card, .profile-card, .invites-panel, .activity-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.16em;
        padding: 12px 18px;
        min-width: 0;
        width: 100%;
        max-width: 420px;
    }

    .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;
        gap: 10px;
    }

    .rating-label {
        margin-left: 0;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-stats {
        gap: 14px;
    }

    .profile-stat-box {
        width: 100%;
    }

    .post-header {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .npc-header {
        flex-direction: column;
        text-align: center;
    }

    .npc-info {
        align-items: center;
        text-align: center;
    }

    .glitch-fx.glitch-left::after {
        text-align: center;
    }

    .npc-bottom-bar {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 10px 0;
    }

    .npc-actions {
        justify-content: center;
        padding: 15px;
    }

    .npc-left.has-border {
        padding: 0 0 15px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .npc-right.has-border {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .npc-stats {
        gap: 20px;
    }
}