@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Unbounded:wght@500;700&display=swap");

:root {
    --bg: #0b0f16;
    --bg-soft: #101625;
    --panel: rgba(22, 28, 40, 0.92);
    --panel-2: rgba(29, 37, 53, 0.86);
    --stroke: rgba(170, 200, 255, 0.17);
    --stroke-strong: rgba(151, 188, 255, 0.42);
    --text: #e8f0ff;
    --muted: #9fb3cf;
    --accent: #62a0ff;
    --accent-2: #4e6dcc;
    --danger: #ff7c7c;
    --success: #7ef0bb;
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    --radius-xl: 18px;
    --radius-lg: 13px;
    --radius-md: 12px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(900px 480px at 8% -8%, rgba(79, 110, 181, 0.32), transparent 68%),
        radial-gradient(680px 420px at 95% 2%, rgba(48, 145, 169, 0.2), transparent 65%),
        linear-gradient(165deg, #0a0e15, var(--bg-soft) 52%, #0c111d);
}

a {
    color: #d4e6ff;
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

textarea,
input,
select {
    border: 1px solid rgba(162, 192, 236, 0.32);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
}

textarea:focus,
input:focus,
select:focus {
    border-color: rgba(145, 191, 255, 0.68);
    box-shadow: 0 0 0 3px rgba(97, 153, 245, 0.16);
}

.wrap {
    max-width: 1080px;
    margin: 36px auto 48px;
    padding: 0 18px;
}

.container {
    max-width: 760px;
    margin: 36px auto 48px;
    padding: 0 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.hint {
    color: var(--muted);
}

.btn,
.btn2,
button.like-button,
.like-btn {
    border-radius: 11px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
}

.btn {
    border: 1px solid var(--stroke-strong);
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(68, 112, 194, 0.28);
}

.btn2,
button.like-button,
.like-btn {
    border: 1px solid rgba(151, 188, 255, 0.3);
    color: #d9e8ff;
    background: rgba(255, 255, 255, 0.04);
}

.btn2:hover,
button.like-button:hover,
.like-btn:hover {
    border-color: rgba(185, 214, 255, 0.52);
    transform: translateY(-1px);
}

/* Header */
.vf-header {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: linear-gradient(160deg, rgba(28, 37, 55, 0.96), rgba(18, 23, 34, 0.96));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vf-logo {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #edf4ff;
}

.vf-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vf-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(152, 184, 234, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: #cfe2ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.vf-menu a:hover {
    transform: translateY(-1px);
    border-color: rgba(182, 207, 247, 0.5);
    color: #ffffff;
}

.vf-menu a.logout {
    border-color: rgba(255, 150, 150, 0.28);
    background: rgba(200, 80, 80, 0.2);
}

.vf-menu svg {
    width: 16px;
    height: 16px;
}

/* Landing / auth / 404 cards */
.login-card {
    width: min(420px, calc(100vw - 28px));
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 30px 24px;
    text-align: center;
}

.login-card h1,
.card h1 {
    margin: 0 0 22px;
    font-family: "Unbounded", sans-serif;
    font-size: 24px;
    line-height: 1.3;
    color: #eef5ff;
}

.login-card form {
    display: grid;
    gap: 10px;
}

.login-card input {
    width: 100%;
}

.login-card button,
.card button {
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid var(--stroke-strong);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.login-card button:hover,
.card button:hover {
    transform: translateY(-1px);
}

.login-card .links {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: center;
}

.error-message {
    color: #ffb0b0;
    background: rgba(255, 100, 100, 0.13);
    border: 1px solid rgba(255, 120, 120, 0.4);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Feed */
.feed-container {
    max-width: 640px;
    margin: 30px auto 48px;
    padding: 0 16px;
}

.post-card {
    background: var(--panel-2);
    border: 1px solid rgba(160, 186, 223, 0.18);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
}

.post-card .author {
    font-weight: 700;
    color: #d6e8ff;
    text-decoration: none;
}

.post-card .date {
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0;
}

.post-card .content {
    white-space: pre-wrap;
    line-height: 1.5;
}

.post-card .post-image {
    margin: 10px 0 14px;
    border-radius: 11px;
    max-height: 430px;
    object-fit: cover;
    border: 1px solid rgba(170, 200, 255, 0.22);
}

.like-count {
    margin-left: 8px;
    color: var(--muted);
    font-size: 13px;
}

.profile-avatar {
    border-radius: 50%;
    border: 1px solid rgba(192, 215, 255, 0.42);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1000;
}

.modal:target {
    display: block;
}

.modal-content {
    background: var(--panel);
    color: var(--text);
    width: 440px;
    max-width: calc(100vw - 30px);
    margin: 10% auto;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    text-decoration: none;
    font-size: 24px;
    color: var(--muted);
}

/* Post page */
.post {
    margin-top: 10px;
    background: var(--panel-2);
    border: 1px solid rgba(160, 186, 223, 0.18);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.post-author a {
    font-weight: 700;
    color: #d6e8ff;
    text-decoration: none;
}

.post-time {
    color: var(--muted);
    font-size: 12px;
}

.post-text {
    margin-top: 8px;
    white-space: pre-wrap;
    line-height: 1.45;
    word-break: break-word;
}

.post-image {
    margin-top: 10px;
    width: 100%;
    border-radius: 11px;
    max-height: 430px;
    object-fit: cover;
    border: 1px solid rgba(170, 200, 255, 0.22);
}

.post-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comments-section {
    margin-top: 18px;
}

.comments-section h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-family: "Unbounded", sans-serif;
}

.comment {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(160, 186, 223, 0.18);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.comment-header,
.comment-time {
    font-size: 12px;
    color: var(--muted);
}

.comment-text {
    margin-top: 6px;
    line-height: 1.5;
}

.comment-form textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    margin-top: 10px;
}

.comment-form button {
    margin-top: 8px;
}

/* Profile page */
.hero {
    padding: 22px;
    background: linear-gradient(160deg, rgba(28, 37, 55, 0.96), rgba(18, 23, 34, 0.96));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -160px -60px auto auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 163, 255, 0.23), transparent 68%);
}

.top {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.ava {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(192, 215, 255, 0.42);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.identity h1 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 28px;
}

.meta {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.badges {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.badge {
    border: 1px solid rgba(130, 171, 235, 0.37);
    background: rgba(63, 90, 142, 0.25);
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    font-size: 12px;
}

.stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.metric {
    background: var(--panel-2);
    border: 1px solid rgba(162, 192, 236, 0.17);
    border-radius: var(--radius-md);
    padding: 10px 10px 12px;
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 5px;
}

.metric span {
    font-size: 12px;
    color: var(--muted);
}

.actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tabs {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid rgba(152, 184, 234, 0.22);
    background: rgba(255, 255, 255, 0.02);
    color: #cfe2ff;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 14px;
    transition: 0.2s ease;
}

.tab:hover {
    transform: translateY(-1px);
    border-color: rgba(182, 207, 247, 0.5);
}

.tab.active {
    background: linear-gradient(135deg, rgba(88, 135, 220, 0.55), rgba(64, 90, 174, 0.58));
    border-color: rgba(169, 202, 255, 0.58);
    color: #ffffff;
}

.section {
    margin-top: 16px;
    padding: 16px;
}

.section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-family: "Unbounded", sans-serif;
}

.grid2 {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
    background: var(--panel-2);
    border: 1px solid rgba(158, 186, 224, 0.18);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.tile small {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.bio {
    margin-top: 10px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.phead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pcontent {
    margin-top: 8px;
    white-space: pre-wrap;
    line-height: 1.45;
    word-break: break-word;
}

.pimg {
    margin-top: 10px;
    width: 100%;
    border-radius: 11px;
    max-height: 430px;
    object-fit: cover;
    border: 1px solid rgba(170, 200, 255, 0.22);
}

.pactions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pinned {
    color: #ffe7b0;
    border: 1px solid rgba(255, 220, 143, 0.33);
    background: rgba(255, 197, 83, 0.12);
    border-radius: var(--radius-pill);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.media {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media a {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(157, 190, 239, 0.24);
}

.media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.media a:hover img {
    transform: scale(1.03);
}

.timeline {
    margin-top: 9px;
    background: var(--panel-2);
    border: 1px solid rgba(160, 186, 223, 0.18);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.timeline b {
    display: block;
    margin-bottom: 4px;
}

.ach.done {
    border-color: rgba(116, 214, 163, 0.55);
    background: rgba(92, 170, 124, 0.12);
}

.progress {
    margin-top: 7px;
    height: 7px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.13);
    overflow: hidden;
}

.progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #62a0ff, #62d5ff);
}

ul.links {
    margin: 8px 0 0;
    padding-left: 18px;
}

ul.links li {
    margin-bottom: 6px;
}

a.user {
    color: #d4e6ff;
    text-decoration: none;
}

a.user:hover {
    text-decoration: underline;
}

/* Messages */
.messages-layout {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.sidebar {
    padding: 14px;
}

.panel-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 10px;
}

.quick-form {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.quick-form textarea {
    min-height: 66px;
    resize: vertical;
}

.quick-form button {
    border-radius: 10px;
}

.chat-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.chat-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.chat-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

.chat-link.active {
    border-color: #5e7698;
    background: rgba(94, 118, 152, 0.2);
}

.chat-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.chat-meta {
    font-size: 12px;
    color: var(--muted);
}

.chat-main {
    min-height: 720px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.chat-header h2 {
    margin: 0;
    font-size: 20px;
}

.chat-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-actions form {
    display: flex;
    gap: 8px;
}

.chat-actions input,
.chat-actions button {
    border-radius: 10px;
    padding: 8px 10px;
}

.chat-actions button {
    cursor: pointer;
}

.messages-scroll {
    padding: 16px;
    overflow-y: auto;
    max-height: 560px;
    display: grid;
    gap: 10px;
}

.bubble {
    max-width: 76%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-self: start;
    height: fit-content;
}

.bubble.mine {
    justify-self: end;
    background: rgba(74, 100, 143, 0.33);
    border-color: rgba(125, 164, 226, 0.35);
}

.bubble.system {
    justify-self: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 12px;
}

.bubble-head {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.bubble-text {
    white-space: pre-wrap;
    line-height: 1.5;
}

.chat-compose {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-compose form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.chat-compose textarea {
    min-height: 52px;
    max-height: 160px;
    resize: vertical;
}

.chat-compose button {
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
}

.notice {
    margin: 0 20px 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.notice.error {
    background: rgba(255, 100, 100, 0.13);
    border: 1px solid rgba(255, 120, 120, 0.4);
    color: #ffb0b0;
}

.notice.success {
    background: rgba(120, 255, 170, 0.12);
    border: 1px solid rgba(120, 255, 170, 0.3);
    color: #baffd0;
}

.empty-state {
    padding: 36px 20px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .vf-header {
        margin: 10px 10px 0;
    }

    .messages-layout {
        grid-template-columns: 1fr;
    }

    .chat-main {
        min-height: 620px;
    }

    .bubble {
        max-width: 92%;
    }
}

@media (max-width: 960px) {
    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid2 {
        grid-template-columns: 1fr;
    }

    .media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wrap {
        margin-top: 22px;
        padding: 0 12px 22px;
    }

    .hero {
        padding: 16px;
    }

    .identity h1 {
        font-size: 23px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media {
        grid-template-columns: 1fr;
    }

    .vf-logo {
        font-size: 19px;
    }

    .vf-menu a {
        width: 100%;
        justify-content: center;
    }

    .vf-menu {
        width: 100%;
    }
}

/* Enhanced chat UI */
.transient-notice {
    margin-top: 10px;
}

.ws-indicator {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.ws-indicator[data-status="online"] {
    color: #9af5bf;
}

.ws-indicator[data-status="error"],
.ws-indicator[data-status="offline"] {
    color: #ffb0b0;
}

.chat-link {
    position: relative;
    padding-right: 42px;
}

.chat-link .chat-open {
    display: block;
    color: inherit;
    text-decoration: none;
}

.chat-link.pinned {
    border-color: rgba(255, 220, 143, 0.4);
    background: rgba(255, 197, 83, 0.08);
}

.chat-pin-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(151, 188, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #d9e8ff;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
}

.typing-indicator {
    min-height: 20px;
    padding: 2px 16px 0;
    font-size: 12px;
    color: var(--muted);
}

.reply-compose {
    margin: 0 14px 10px;
    border: 1px solid rgba(151, 188, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 8px 12px;
    position: relative;
}

.reply-compose-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.reply-compose-text {
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 18px;
}

.reply-compose-close {
    position: absolute;
    top: 5px;
    right: 7px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
}

.is-hidden {
    display: none !important;
}

.compose-attachments {
    margin: 0 14px 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.attachment-item {
    border: 1px solid rgba(151, 188, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 6px;
}

.attachment-preview-image,
.attachment-preview-video {
    width: 100%;
    height: 88px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.2);
}

.attachment-name {
    margin-top: 5px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
}

.attachment-remove-btn {
    margin-top: 4px;
    width: 100%;
    border: 1px solid rgba(255, 150, 150, 0.28);
    background: rgba(200, 80, 80, 0.2);
    color: #ffd4d4;
    border-radius: 8px;
    font-size: 12px;
    padding: 4px 6px;
    cursor: pointer;
}

.chat-compose .compose-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-state {
    font-size: 12px;
}

.reply-snippet {
    border-left: 3px solid rgba(120, 163, 255, 0.55);
    padding: 5px 8px;
    margin: 6px 0 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
}

.reply-snippet-user {
    font-size: 12px;
    color: #cfe2ff;
    margin-bottom: 2px;
}

.reply-snippet-text {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bubble-meta {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
}

.delivery-flag {
    color: #b9d3ff;
}

.edited-flag {
    color: #9fc4ff;
}

.deleted-text {
    color: #ffccd0;
    opacity: 0.9;
}

.message-media {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.message-image,
.message-video {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(151, 188, 255, 0.24);
    max-height: 340px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.message-reactions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.reaction-chip {
    border: 1px solid rgba(151, 188, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #e4efff;
    font-size: 12px;
    padding: 3px 8px;
    cursor: pointer;
}

.reaction-chip.active {
    border-color: rgba(255, 220, 143, 0.5);
    background: rgba(255, 197, 83, 0.16);
}

.message-controls {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.msg-action-btn {
    border: 1px solid rgba(151, 188, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #d9e8ff;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
}

.msg-action-btn:hover {
    border-color: rgba(185, 214, 255, 0.52);
}

.msg-action-btn.danger {
    border-color: rgba(255, 150, 150, 0.28);
    color: #ffd4d4;
    background: rgba(200, 80, 80, 0.18);
}

.msg-action-btn.emoji-btn {
    min-width: 34px;
    padding: 4px 6px;
}

.mention {
    color: #b8d2ff;
    font-weight: 700;
}

.mention-self {
    color: #ffd994;
}
