/* =====================================================
   Community Page — Full Redesign
   ===================================================== */

/* ── Hero ─────────────────────────────────────────── */
.comm-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(102,126,234,.06), rgba(118,75,162,.06));
    border-radius: 24px;
    margin: 1.5rem 0 2rem;
}
.comm-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}
.comm-hero-sub {
    color: var(--light-text);
    font-size: .95rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Main Grid ────────────────────────────────────── */
.comm-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
    padding: 0 0 4rem;
}
.comm-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}

/* ── Section card ─────────────────────────────────── */
.comm-section {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border: 1.5px solid rgba(107,159,255,.1);
    overflow: hidden;
}
.comm-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(102,126,234,.06), rgba(118,75,162,.04));
    border-bottom: 1.5px solid rgba(107,159,255,.1);
}
.comm-section-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.comm-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
    flex: 1;
}
.comm-section-body {
    padding: 20px;
}

/* Announcements feed */
#announcementFeed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Loading spinner ─────────────────────────────── */
.feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: var(--light-text);
}
.spinner {
    width: 38px; height: 38px;
    border: 3px solid rgba(107,159,255,.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
.spinner-sm { width: 24px; height: 24px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ─────────────────────────────────── */
#emptyState {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 1rem;
    color: var(--light-text);
    text-align: center;
}
#emptyState .empty-icon { font-size: 3rem; }
#emptyState h3 { font-size: 1.1rem; font-weight: 600; color: var(--dark-text); margin: 0; }
#emptyState p  { font-size: .88rem; margin: 0; }

/* ── Announcement card ───────────────────────────── */
.ann-card {
    background: #fafbff;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1.5px solid rgba(107,159,255,.1);
    transition: box-shadow .2s, transform .2s;
}
.ann-card:hover {
    box-shadow: 0 6px 28px rgba(107,159,255,.15);
    transform: translateY(-2px);
}
.ann-card.pinned {
    border-color: rgba(107,159,255,.35);
    background: linear-gradient(to bottom right, #fff, rgba(107,159,255,.04));
}
.ann-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .7rem;
}
.ann-meta-left { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ann-type-badge {
    font-size: .7rem; font-weight: 700;
    padding: 3px 9px; border-radius: 20px; letter-spacing: .3px;
}
.ann-pin {
    font-size: .7rem; font-weight: 600;
    color: var(--primary-blue);
    background: rgba(107,159,255,.1);
    padding: 3px 9px; border-radius: 20px;
}
.ann-time { font-size: .75rem; color: var(--light-text); white-space: nowrap; }
.ann-title {
    font-size: 1.05rem; font-weight: 700;
    color: var(--dark-text); margin: 0 0 .45rem; line-height: 1.4;
}
.ann-author {
    display: flex; align-items: center; gap: 7px;
    font-size: .8rem; color: var(--light-text); margin-bottom: .85rem;
}
.ann-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; flex-shrink: 0;
}
.ann-author-label strong { color: var(--dark-text); }
.ann-body {
    font-size: .9rem; color: #4a5568; line-height: 1.7;
    margin-bottom: .9rem; word-break: break-word;
}
.ann-body p { margin: 0 0 .55rem; }
.ann-body p:last-child { margin-bottom: 0; }
.ann-image { margin: .4rem 0 .9rem; border-radius: 10px; overflow: hidden; }
.ann-image img { width: 100%; height: auto; display: block; }
.ann-footer {
    border-top: 1px solid rgba(0,0,0,.06);
    padding-top: .8rem; margin-top: .4rem;
}
.ann-comment-toggle {
    background: none; border: none;
    font-family: 'Poppins', sans-serif;
    font-size: .83rem; font-weight: 600;
    color: var(--light-text); cursor: pointer;
    padding: 5px 11px; border-radius: 8px;
    transition: background .15s, color .15s;
}
.ann-comment-toggle:hover {
    background: rgba(107,159,255,.08);
    color: var(--primary-blue);
}

/* ── Comments ─────────────────────────────────────── */
.ann-comments {
    margin-top: 1.1rem;
    border-top: 1px solid rgba(0,0,0,.06);
    padding-top: 1.1rem;
}
.comments-list {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 1.1rem;
    max-height: 360px; overflow-y: auto; padding-right: 4px;
}
.loading-comments, .no-comments {
    font-size: .83rem; color: var(--light-text);
    text-align: center; padding: .8rem 0;
}
.comment-item { display: flex; gap: 9px; align-items: flex-start; }
.comment-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(107,159,255,.22), rgba(184,164,255,.3));
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; color: var(--primary-blue); flex-shrink: 0;
}
.comment-body {
    flex: 1; background: rgba(107,159,255,.05);
    border-radius: 10px; padding: 9px 12px; min-width: 0;
}
.comment-meta {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px;
}
.comment-meta strong { font-size: .8rem; color: var(--dark-text); }
.comment-meta span   { font-size: .72rem; color: var(--light-text); }
.comment-body p {
    font-size: .85rem; color: #4a5568; line-height: 1.6; margin: 0; word-break: break-word;
}
.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comment-text {
    width: 100%; padding: 9px 13px;
    border: 1.5px solid rgba(107,159,255,.25); border-radius: 10px;
    font-family: 'Poppins', sans-serif; font-size: .875rem;
    color: var(--dark-text); background: #fff; outline: none;
    transition: border-color .2s; resize: vertical; box-sizing: border-box;
}
.comment-text:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(107,159,255,.1);
}
.btn-comment-send {
    align-self: flex-end; padding: 7px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: #fff; border: none; border-radius: 10px;
    font-family: 'Poppins', sans-serif; font-size: .875rem; font-weight: 600;
    cursor: pointer; transition: opacity .2s, transform .2s;
}
.btn-comment-send:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-comment-send:disabled { opacity: .5; cursor: not-allowed; }
.comment-login-prompt {
    font-size: .85rem; color: var(--light-text);
    text-align: center; padding: .9rem;
    background: rgba(107,159,255,.05);
    border-radius: 10px; border: 1px dashed rgba(107,159,255,.25);
}
.comment-login-prompt a { color: var(--primary-blue); font-weight: 600; text-decoration: none; }

/* ── LIVE CHAT ────────────────────────────────────── */
.comm-chat .comm-section-body { padding: 0; }
.chat-section-body {
    display: flex; flex-direction: column; height: 420px;
}
.chat-online-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #38a169;
    box-shadow: 0 0 6px rgba(56,161,105,.6);
    animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
    0%,100% { opacity: 1; }
    50%      { opacity: .4; }
}
.chat-messages {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 14px 16px; display: flex;
    flex-direction: column; gap: 10px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(107,159,255,.25); border-radius: 4px; }
.chat-loading { display: flex; justify-content: center; padding: 2rem; }
.chat-empty {
    text-align: center; font-size: .83rem;
    color: var(--light-text); padding: 1.5rem;
    margin: auto;
}

/* Chat message bubble */
.chat-msg {
    display: flex; gap: 8px; align-items: flex-start;
    max-width: 90%; animation: msgIn .18s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg-mine {
    align-self: flex-start;
}
.chat-bubble-wrap { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }

/* Avatar */
.chat-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    flex-shrink: 0; overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(107,159,255,.2), rgba(184,164,255,.3));
}
.chat-avatar.role-admin,
.chat-avatar.role-super_admin {
    box-shadow: 0 0 0 2px #667eea, 0 0 8px rgba(102,126,234,.5);
}
.chat-avatar-fallback {
    width: 100%; height: 100%;
    align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; color: var(--primary-blue);
}

/* Sender name row */
.chat-sender-row {
    display: flex; align-items: center; gap: 5px;
    margin-bottom: 3px; flex-wrap: wrap;
}
.chat-sender-row-mine {
    justify-content: flex-start;
}
.chat-sender-name {
    font-size: .78rem; font-weight: 700; color: #4a5568;
}
.staff-name {
    color: #667eea;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(102,126,234,.5);
    animation: staffGlow 2.5s ease infinite alternate;
}
@keyframes staffGlow {
    from { text-shadow: 0 0 6px rgba(102,126,234,.4); }
    to   { text-shadow: 0 0 14px rgba(102,126,234,.9), 0 0 22px rgba(118,75,162,.5); }
}

/* SuperAdmin rainbow flash */
.staff-name-super {
    font-weight: 800;
    animation: rainbowFlash 1.8s linear infinite;
}
@keyframes rainbowFlash {
    0%   { color: #ff6b6b; text-shadow: 0 0 8px #ff6b6b, 0 0 18px #ff6b6b88; }
    16%  { color: #ffaa40; text-shadow: 0 0 8px #ffaa40, 0 0 18px #ffaa4088; }
    33%  { color: #ffd700; text-shadow: 0 0 8px #ffd700, 0 0 18px #ffd70088; }
    50%  { color: #4ade80; text-shadow: 0 0 8px #4ade80, 0 0 18px #4ade8088; }
    66%  { color: #38bdf8; text-shadow: 0 0 8px #38bdf8, 0 0 18px #38bdf888; }
    83%  { color: #c084fc; text-shadow: 0 0 8px #c084fc, 0 0 18px #c084fc88; }
    100% { color: #ff6b6b; text-shadow: 0 0 8px #ff6b6b, 0 0 18px #ff6b6b88; }
}

/* Role badges */
.role-badge {
    font-size: .6rem; font-weight: 700; padding: 1px 6px;
    border-radius: 10px; letter-spacing: .3px;
}
.badge-admin {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.badge-super {
    background: linear-gradient(135deg, #f6ad55, #e53e3e);
    color: #fff;
}
.role-crown { font-size: .75rem; }

/* Blue verification checkmark */
.verify-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px; height: 14px;
    background: #1DA1F2;
    color: #fff;
    border-radius: 50%;
    font-size: .55rem;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1;
}

/* Bubble — all purple gradient, position differentiates sender */
.chat-bubble {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px 14px 14px 4px;
    padding: 8px 12px;
    font-size: .85rem; color: #fff;
    line-height: 1.5; word-break: break-word;
    border: none;
    max-width: 100%;
}
.chat-msg-mine .chat-bubble {
    border-radius: 14px 14px 14px 4px;
    background: linear-gradient(135deg, #5a6fd8, #6b3fa0);
}
.chat-msg-staff .chat-bubble {
    box-shadow: 0 0 12px rgba(102,126,234,.35);
}
.chat-time {
    font-size: .67rem; color: var(--light-text); margin-top: 2px;
    padding: 0 4px;
}

/* Chat input */
.chat-input-area {
    border-top: 1.5px solid rgba(107,159,255,.1);
    padding: 12px 14px;
    background: rgba(107,159,255,.03);
}
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-textarea {
    flex: 1; padding: 9px 13px;
    border: 1.5px solid rgba(107,159,255,.25); border-radius: 12px;
    font-family: 'Poppins', sans-serif; font-size: .875rem;
    color: var(--dark-text); background: #fff; outline: none;
    resize: none; transition: border-color .2s;
    min-height: 38px; max-height: 100px;
    line-height: 1.4;
    box-sizing: border-box;
}
.chat-textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(107,159,255,.1);
}
.chat-send-btn {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border: none; font-size: 1rem;
    cursor: pointer; transition: opacity .15s, transform .15s;
    display: flex; align-items: center; justify-content: center;
}
.chat-send-btn:hover { opacity: .85; transform: scale(1.06); }
.chat-login-prompt {
    text-align: center; font-size: .85rem;
    color: var(--light-text); padding: .6rem;
}
.chat-login-prompt a { color: var(--primary-blue); font-weight: 600; text-decoration: none; }

/* ── SOCIAL LINKS ─────────────────────────────────── */
.social-links-list { display: flex; flex-direction: column; gap: 10px; }
.social-link-card {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border-radius: 14px;
    background: rgba(107,159,255,.05);
    border: 1.5px solid rgba(107,159,255,.12);
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, background .18s;
}
.social-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    background: color-mix(in srgb, var(--sc-color) 10%, white);
    border-color: var(--sc-color, #667eea);
}
.social-link-icon { font-size: 1.5rem; flex-shrink: 0; }
.social-link-info { flex: 1; min-width: 0; }
.social-link-label {
    display: block; font-size: .88rem; font-weight: 700;
    color: var(--dark-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.social-link-platform {
    font-size: .72rem; color: var(--light-text);
    text-transform: capitalize;
}
.social-link-arrow {
    font-size: .9rem; color: var(--light-text);
    transition: transform .15s;
}
.social-link-card:hover .social-link-arrow { transform: translateX(4px); }
.social-empty { font-size: .85rem; color: var(--light-text); text-align: center; padding: 1rem; }

/* ── Admin community mobile ──────────────────────── */
.comm-admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 700px) {
    .comm-admin-form-row { grid-template-columns: 1fr; }
    .social-admin-item .sai-url { max-width: 140px; }
    .comm-admin-grid { grid-template-columns: 1fr !important; }
    .comm-right-col  { position: static !important; }
    .chat-section-body { height: 300px !important; }
    .admin-chat-wrap { min-height: 300px; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .comm-grid {
        grid-template-columns: 1fr;
    }
    .comm-right-col {
        position: static;
    }
    .chat-section-body { height: 360px; }
}
@media (max-width: 600px) {
    .comm-hero { padding: 2rem 1rem 1.5rem; margin: 1rem 0 1.5rem; }
    .comm-grid { gap: 16px; }
    .comm-section-body { padding: 14px; }
    .ann-card { padding: 1rem; border-radius: 14px; }
    .ann-title { font-size: .98rem; }
    .ann-body  { font-size: .85rem; }
    .chat-section-body { height: 320px; }
}

/* Legacy - keep for page-header if still used */
.community-page-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.community-page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.community-page-header p {
    color: var(--light-text);
    font-size: 1rem;
}

/* ── Feed layout ─────────────────────────────────── */
.announcement-feed-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

#announcementFeed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Loading spinner ─────────────────────────────── */
.feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 1rem;
    color: var(--light-text);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(107, 159, 255, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ─────────────────────────────────── */
#emptyState {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 5rem 1rem;
    color: var(--light-text);
    text-align: center;
}

#emptyState .empty-icon { font-size: 3.5rem; }
#emptyState h3 { font-size: 1.25rem; font-weight: 600; color: var(--dark-text); }

/* ── Announcement card ───────────────────────────── */
.ann-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1.5px solid transparent;
}

.ann-card:hover {
    box-shadow: 0 8px 32px rgba(107, 159, 255, 0.15);
    transform: translateY(-2px);
}

.ann-card.pinned {
    border-color: rgba(107, 159, 255, 0.35);
    background: linear-gradient(to bottom right, #fff, rgba(107, 159, 255, 0.04));
}

/* Header row */
.ann-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.ann-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ann-type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.ann-pin {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(107, 159, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.ann-time {
    font-size: 0.78rem;
    color: var(--light-text);
    white-space: nowrap;
}

/* Title */
.ann-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

/* Author */
.ann-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--light-text);
    margin-bottom: 0.9rem;
}

.ann-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Body content */
.ann-body {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
    word-break: break-word;
}

.ann-body p {
    margin: 0 0 0.6rem;
}

.ann-body p:last-child {
    margin-bottom: 0;
}

/* Image */
.ann-image {
    margin: 0.5rem 0 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.ann-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.ann-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 0.9rem;
    margin-top: 0.5rem;
}

.ann-comment-toggle {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.ann-comment-toggle:hover {
    background: rgba(107, 159, 255, 0.08);
    color: var(--primary-blue);
}

/* ── Comments section ────────────────────────────── */
.ann-comments {
    margin-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1.25rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.loading-comments,
.no-comments {
    font-size: 0.85rem;
    color: var(--light-text);
    text-align: center;
    padding: 1rem 0;
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(107,159,255,0.25), rgba(184,164,255,0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    background: rgba(107, 159, 255, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.comment-meta strong {
    font-size: 0.82rem;
    color: var(--dark-text);
}

.comment-meta span {
    font-size: 0.75rem;
    color: var(--light-text);
}

.comment-body p {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

/* Comment form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-name,
.comment-text {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(107, 159, 255, 0.25);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: var(--dark-text);
    background: white;
    outline: none;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.comment-name:focus,
.comment-text:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(107, 159, 255, 0.1);
}

.btn-comment-send {
    align-self: flex-end;
    padding: 8px 22px;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-comment-send:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-comment-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
    .ann-card {
        padding: 1.1rem;
        border-radius: 16px;
    }

    .ann-title {
        font-size: 1rem;
    }

    .ann-body {
        font-size: 0.875rem;
    }

    .comment-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}
