/* ═══════════════════════════════════════════════════════════════
   VELVIXIE COMMUNITY v8 - PERFECT SWIPE & MOBILE ALIGNMENT
   ═══════════════════════════════════════════════════════════════ */

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.comm-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 16px 0 120px 0 !important;
    box-sizing: border-box !important;
}

/* ── Hero Banner ── */
.comm-hero {
    background: linear-gradient(135deg, rgba(107, 159, 255, 0.14), rgba(184, 164, 255, 0.20));
    border: 1.5px solid rgba(107, 159, 255, 0.22);
    border-radius: 20px;
    padding: 22px 18px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}
.comm-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E293B;
    margin: 0 0 6px 0;
    line-height: 1.3;
    word-break: break-word;
}
.comm-hero-sub {
    font-size: 0.84rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

/* ── Grid Layout ── */
.comm-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

main {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.comm-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* ── Section Cards ── */
.comm-section {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1.5px solid rgba(107, 159, 255, 0.18);
    box-shadow: 0 4px 18px rgba(107, 159, 255, 0.05);
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 20px;
    box-sizing: border-box !important;
}
.comm-section:last-child {
    margin-bottom: 0;
}

.comm-section-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(107, 159, 255, 0.12);
    background: rgba(107, 159, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.comm-section-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}
.comm-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.comm-section-body {
    padding: 14px 16px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* ── Live Chat Area ── */
.chat-messages {
    height: 280px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 2px 10px 2px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    scrollbar-width: thin;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(107,159,255,0.25); border-radius: 99px; }

.chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
    overflow: hidden;
}
.chat-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-avatar-fallback {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FFB7D5, #8B5CF6);
    color: #fff; font-weight: 800; font-size: 0.9rem;
}
.chat-avatar.frame-admin { box-shadow: 0 0 0 2.5px #EF4444, 0 0 10px rgba(239, 68, 68, 0.4); }
.chat-avatar.frame-creator { box-shadow: 0 0 0 2.5px #EC4899, 0 0 10px rgba(236, 72, 153, 0.4); }

.chat-bubble-wrap {
    flex: 1 1 auto;
    min-width: 0 !important;
    max-width: calc(100% - 46px) !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box !important;
}

.chat-sender-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    flex-wrap: wrap;
    max-width: 100%;
}
.chat-sender-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E293B;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-sender-name.staff-name-super { color: #DC2626; font-weight: 800; }
.chat-sender-name.staff-name { color: #2563EB; font-weight: 800; }
.chat-sender-name.creator-name { color: #9333EA; font-weight: 800; }

.badge-creator {
    background: #FDF2F8;
    color: #DB2777;
    border: 1px solid rgba(219, 39, 119, 0.3);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
}
.verify-check {
    background: #2563EB;
    color: #fff;
    width: 14px;
    height: 14px;
    font-size: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
}
.verify-check.creator-check { background: #EC4899; }

.chat-bubble {
    display: inline-block !important;
    max-width: 100% !important;
    width: auto !important;
    background: linear-gradient(135deg, #6B9FFF, #8B5CF6);
    color: #FFFFFF;
    padding: 9px 13px;
    border-radius: 14px 14px 14px 4px;
    font-size: 0.84rem;
    line-height: 1.45;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(107, 159, 255, 0.2);
}
.chat-msg-mine .chat-bubble {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
}
.chat-time {
    font-size: 0.68rem;
    color: #94A3B8;
    margin-top: 3px;
    padding-left: 2px;
}

/* ── Quick Emojis ── */
.chat-quick-emojis {
    display: flex;
    gap: 6px;
    overflow-x: auto !important;
    padding: 8px 0 6px 0;
    border-top: 1px solid rgba(107, 159, 255, 0.12);
    margin-top: 8px;
    scrollbar-width: none;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.chat-quick-emojis::-webkit-scrollbar { display: none; }
.quick-emoji-btn {
    background: rgba(107, 159, 255, 0.08);
    border: 1px solid rgba(107, 159, 255, 0.25);
    border-radius: 99px;
    padding: 5px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A5568;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.quick-emoji-btn:hover {
    background: linear-gradient(135deg, #6B9FFF, #8B5CF6);
    color: #fff;
    border-color: transparent;
}

/* ── Announcements ── */
#announcementFeed {
    max-height: 480px;
    overflow-y: auto !important;
    padding-right: 4px;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
#announcementFeed::-webkit-scrollbar { width: 4px; }
#announcementFeed::-webkit-scrollbar-track { background: transparent; }
#announcementFeed::-webkit-scrollbar-thumb { background: rgba(107,159,255,0.3); border-radius: 99px; }

.ann-card {
    background: #FAFCFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
}
.ann-card.pinned {
    border-color: rgba(107, 159, 255, 0.5);
    background: linear-gradient(135deg, rgba(107, 159, 255, 0.04), rgba(184, 164, 255, 0.04));
}
.ann-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}
.ann-meta-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ann-type-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.ann-pin { font-size: 0.7rem; font-weight: 700; color: #E67E22; background: rgba(230, 126, 34, 0.12); padding: 2px 8px; border-radius: 99px; }
.ann-time { font-size: 0.72rem; color: #94A3B8; }
.ann-title { font-size: 0.98rem; font-weight: 700; color: #1E293B; margin: 0 0 8px 0; line-height: 1.35; word-break: break-word; }
.ann-author { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.ann-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ann-author-label { font-size: 0.75rem; color: #64748B; }
.ann-body { font-size: 0.84rem; color: #334155; line-height: 1.55; margin-bottom: 10px; word-break: break-word; }
.ann-body p { margin: 0 0 6px 0; }
.ann-image img { max-width: 100%; border-radius: 10px; margin-bottom: 10px; }
.ann-footer { display: flex; align-items: center; gap: 8px; }
.ann-comment-toggle {
    background: none;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
}
.ann-comment-toggle:hover {
    border-color: #6B9FFF;
    color: #4F7DF3;
    background: rgba(107, 159, 255, 0.08);
}

/* ── Announcement Comments Section ── */
.ann-comments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(107, 159, 255, 0.25);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 11px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}
.loading-comments,
.no-comments {
    font-size: 0.78rem;
    color: #64748B;
    margin: 2px 0;
    padding: 4px 2px;
}
.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(107, 159, 255, 0.18);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: #FFFFFF;
    background: linear-gradient(135deg, #6B9FFF, #8B5CF6);
    box-shadow: 0 2px 8px rgba(107, 159, 255, 0.28);
}
.comment-body {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3px 8px;
    margin-bottom: 3px;
}
.comment-meta strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E293B;
    word-break: break-word;
}
.comment-meta span {
    font-size: 0.69rem;
    color: #94A3B8;
    font-weight: 500;
}
.comment-body p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.48;
    color: #334155;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.comment-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.comment-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem;
    line-height: 1.42;
    color: #1E293B;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 9px 12px;
    height: 44px;
    min-height: 44px;
    max-height: 110px;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comment-text:focus {
    border-color: #6B9FFF;
    box-shadow: 0 0 0 3px rgba(107, 159, 255, 0.16);
}
.comment-text::placeholder {
    color: #94A3B8;
}
.btn-comment-send {
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #6B9FFF 0%, #8B5CF6 100%);
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(107, 159, 255, 0.28);
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-comment-send:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(107, 159, 255, 0.36);
}
.btn-comment-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.comment-login-prompt {
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(107, 159, 255, 0.08);
    border: 1px dashed rgba(107, 159, 255, 0.3);
    font-size: 0.78rem;
    color: #64748B;
    box-sizing: border-box;
}
.comment-login-prompt a {
    color: #4F7DF3;
    font-weight: 700;
    text-decoration: none;
}
.comment-login-prompt a:hover {
    text-decoration: underline;
}

/* ── Trending Comics Horizontal Swipe (Fixed & Beautiful) ── */
#trendingComicsGrid {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding: 4px 4px 10px 4px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#trendingComicsGrid::-webkit-scrollbar {
    display: none !important;
}

.comm-comic-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 120px !important;
    max-width: 120px !important;
    width: 120px !important;
    flex: 0 0 120px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}
.comm-comic-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(107, 159, 255, 0.2) !important;
    border-color: #6B9FFF !important;
}

.comm-comic-thumb {
    width: 100% !important;
    aspect-ratio: 3/4 !important;
    height: 155px !important;
    overflow: hidden !important;
    background: #E2E8F0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}
.comm-comic-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.comm-comic-info {
    padding: 8px 8px 10px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
}

.comm-comic-title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    white-space: normal !important;
    height: 2.7em !important;
}

.comm-comic-meta {
    font-size: 0.68rem !important;
    color: #64748B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
}

/* ── Telegram & Social ── */
.telegram-banner-card {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    border-radius: 18px;
    padding: 16px;
    color: #fff;
    width: 100% !important;
    box-sizing: border-box !important;
}
.social-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #FAFCFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (max-width: 900px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .container {
        padding: 0 10px !important;
    }
    .comm-wrap {
        padding: 10px 0 120px 0 !important;
    }
    .comm-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }
    .comm-hero {
        padding: 16px 12px !important;
        margin-bottom: 14px !important;
        border-radius: 14px !important;
    }
    .comm-hero-title {
        font-size: 1.3rem !important;
    }
    .comm-hero-sub {
        font-size: 0.78rem !important;
    }
    .comm-section {
        border-radius: 14px !important;
        margin-bottom: 14px !important;
    }
    .comm-section-header {
        padding: 12px 14px !important;
    }
    .comm-section-body {
        padding: 12px 14px !important;
    }
    .chat-messages {
        height: 250px !important;
        padding: 2px !important;
    }
    .chat-bubble-wrap {
        max-width: calc(100% - 44px) !important;
    }
    .chat-bubble {
        max-width: 100% !important;
        font-size: 0.82rem !important;
        padding: 8px 11px !important;
    }
    #announcementFeed {
        max-height: 360px !important;
    }
}


/* ── Community Page Dark Mode ── */
html.dark-mode,
html.dark-mode body,
body.dark-mode {
    background: #0B0F19 !important;
    background-color: #0B0F19 !important;
    background-image: none !important;
    color: #E2E8F0 !important;
}

/* Hero Banner */
html.dark-mode .comm-hero,
body.dark-mode .comm-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98)) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
html.dark-mode .comm-hero-title,
body.dark-mode .comm-hero-title {
    color: #F8FAFC !important;
    -webkit-text-fill-color: #F8FAFC !important;
}
html.dark-mode .comm-hero-sub,
body.dark-mode .comm-hero-sub {
    color: #94A3B8 !important;
}

/* Sections & Cards */
html.dark-mode .comm-section,
body.dark-mode .comm-section {
    background: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}
html.dark-mode .comm-section-header,
body.dark-mode .comm-section-header {
    background: #0F172A !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark-mode .comm-section-title,
body.dark-mode .comm-section-title {
    color: #F8FAFC !important;
}

/* Announcement Cards (Crystal Clear Typography) */
html.dark-mode .ann-card,
body.dark-mode .ann-card {
    background: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark-mode .ann-card.pinned,
body.dark-mode .ann-card.pinned {
    border-color: rgba(245, 158, 11, 0.35) !important;
}
html.dark-mode .ann-title,
body.dark-mode .ann-title {
    color: #F8FAFC !important;
}
html.dark-mode .ann-author-label,
body.dark-mode .ann-author-label {
    color: #94A3B8 !important;
}
html.dark-mode .ann-author-label strong,
body.dark-mode .ann-author-label strong {
    color: #F8FAFC !important;
}
html.dark-mode .ann-time,
body.dark-mode .ann-time {
    color: #64748B !important;
}
html.dark-mode .ann-body,
body.dark-mode .ann-body,
html.dark-mode .ann-body p,
body.dark-mode .ann-body p {
    color: #E2E8F0 !important;
    line-height: 1.6 !important;
}
html.dark-mode .ann-comment-toggle,
body.dark-mode .ann-comment-toggle {
    background: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #93C5FD !important;
}
html.dark-mode .ann-comment-toggle:hover,
body.dark-mode .ann-comment-toggle:hover {
    background: rgba(107, 159, 255, 0.2) !important;
    color: #FFFFFF !important;
}

/* Telegram Card */
html.dark-mode .telegram-banner-card,
body.dark-mode .telegram-banner-card {
    background: linear-gradient(135deg, #1E293B, #0F172A) !important;
    border: 1.5px solid rgba(42, 171, 238, 0.35) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
html.dark-mode .telegram-banner-card h3,
body.dark-mode .telegram-banner-card h3 {
    color: #38BDF8 !important;
}
html.dark-mode .telegram-banner-card p,
body.dark-mode .telegram-banner-card p {
    color: #94A3B8 !important;
}
html.dark-mode .telegram-banner-card a,
body.dark-mode .telegram-banner-card a {
    background: #0284C7 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

/* Trending Comics in Community */
html.dark-mode .comm-comic-card,
body.dark-mode .comm-comic-card {
    background: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark-mode .comm-comic-card:hover,
body.dark-mode .comm-comic-card:hover {
    border-color: #6B9FFF !important;
}
html.dark-mode .comm-comic-title,
body.dark-mode .comm-comic-title {
    color: #F8FAFC !important;
}
html.dark-mode .comm-comic-meta,
body.dark-mode .comm-comic-meta {
    color: #94A3B8 !important;
}

/* Guidelines Widget */
html.dark-mode .comm-guidelines-card,
body.dark-mode .comm-guidelines-card {
    background: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
html.dark-mode .comm-guidelines-card div,
body.dark-mode .comm-guidelines-card div {
    color: #F8FAFC !important;
}
html.dark-mode .comm-guidelines-card li,
body.dark-mode .comm-guidelines-card li {
    color: #CBD5E1 !important;
}

/* Social Links Widget */
html.dark-mode .social-link-card,
body.dark-mode .social-link-card {
    background: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark-mode .social-link-card:hover,
body.dark-mode .social-link-card:hover {
    background: #1E293B !important;
    border-color: #6B9FFF !important;
}
html.dark-mode .social-link-label,
body.dark-mode .social-link-label {
    color: #F8FAFC !important;
}
html.dark-mode .social-link-platform,
body.dark-mode .social-link-platform {
    color: #94A3B8 !important;
}
html.dark-mode .social-link-arrow,
body.dark-mode .social-link-arrow {
    color: #60A5FA !important;
}

/* Quick Emoji & Chat Area */
html.dark-mode .quick-emoji-btn,
body.dark-mode .quick-emoji-btn {
    background: #0F172A !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}
html.dark-mode .quick-emoji-btn:hover,
body.dark-mode .quick-emoji-btn:hover {
    background: rgba(107, 159, 255, 0.2) !important;
    border-color: #6B9FFF !important;
    color: #FFFFFF !important;
}
html.dark-mode .chat-input-wrap,
body.dark-mode .chat-input-wrap {
    background: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html.dark-mode .chat-input,
body.dark-mode .chat-input {
    color: #F8FAFC !important;
    background: transparent !important;
}
html.dark-mode .chat-sender-name,
body.dark-mode .chat-sender-name {
    color: #F8FAFC !important;
}
html.dark-mode .chat-time,
body.dark-mode .chat-time {
    color: #64748B !important;
}

/* ── Trending Comics in Community (Bulletproof Dark Mode) ── */
html.dark-mode .comm-comic-card,
body.dark-mode .comm-comic-card,
html.dark-mode .comm-comic-info,
body.dark-mode .comm-comic-info {
    background: #0F172A !important;
    background-color: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode .comm-comic-card:hover,
body.dark-mode .comm-comic-card:hover {
    border-color: #6B9FFF !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5) !important;
}

html.dark-mode .comm-comic-thumb,
body.dark-mode .comm-comic-thumb {
    background: #0F172A !important;
}

html.dark-mode .comm-comic-title,
body.dark-mode .comm-comic-title {
    color: #F8FAFC !important;
    -webkit-text-fill-color: #F8FAFC !important;
}

html.dark-mode .comm-comic-meta,
body.dark-mode .comm-comic-meta,
html.dark-mode .comm-comic-meta span,
body.dark-mode .comm-comic-meta span {
    color: #94A3B8 !important;
    -webkit-text-fill-color: #94A3B8 !important;
}

/* Community Chat Reply */
.chat-reply-quote {
    border-left: 3px solid #6B9FFF;
    background: rgba(107, 159, 255, 0.12);
    padding: 5px 9px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.chat-reply-quote:hover {
    opacity: 0.85;
}
.chat-reply-quote-name {
    color: #6B9FFF;
    font-weight: 700;
}
.chat-reply-quote-text {
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}
.chat-action-reply {
    background: none;
    border: none;
    color: #6B9FFF;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.chat-action-reply:hover {
    color: #8B5CF6;
    text-decoration: underline;
}
#chatReplyBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(107, 159, 255, 0.12);
    border-left: 3px solid #6B9FFF;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.78rem;
}
html.dark-mode #chatReplyBar,
body.dark-mode #chatReplyBar {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: #8B5CF6 !important;
}
html.dark-mode #chatReplyText,
body.dark-mode #chatReplyText {
    color: #E2E8F0 !important;
}
html.dark-mode .chat-reply-quote,
body.dark-mode .chat-reply-quote {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #CBD5E1 !important;
}

/* ── Community Chat Emoticon & Sticker Drawer & Reply Fixes ── */
.chat-sticker-drawer {
    background: #FFFFFF;
    border: 1.5px solid rgba(107, 159, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(107, 159, 255, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: chatDrawerSlideDown 0.2s ease-out;
}
@keyframes chatDrawerSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #F8FAFC;
    border-bottom: 1px solid rgba(107, 159, 255, 0.12);
}
.chat-drawer-tabs {
    display: flex;
    gap: 6px;
}
.chat-dtab {
    background: none;
    border: 1px solid transparent;
    padding: 5px 12px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.15s ease;
}
.chat-dtab:hover {
    color: #6B9FFF;
    background: rgba(107, 159, 255, 0.08);
}
.chat-dtab.active {
    background: linear-gradient(135deg, #6B9FFF, #8B5CF6);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(107, 159, 255, 0.25);
}
.chat-drawer-close {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
}
.chat-drawer-close:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}
.chat-drawer-body {
    max-height: 190px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 10px;
}
.chat-drawer-body::-webkit-scrollbar { width: 4px; }
.chat-drawer-body::-webkit-scrollbar-thumb { background: rgba(107, 159, 255, 0.3); border-radius: 99px; }

.chat-emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 6px;
}
.chat-emoji-item {
    background: #F8FAFC;
    border: 1px solid rgba(107, 159, 255, 0.1);
    border-radius: 8px;
    font-size: 1.28rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.15s ease;
}
.chat-emoji-item:hover {
    background: rgba(107, 159, 255, 0.15);
    transform: scale(1.15);
}

.chat-sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
}
.chat-sticker-item {
    background: #F8FAFC;
    border: 1px solid rgba(107, 159, 255, 0.12);
    border-radius: 12px;
    padding: 8px 4px 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.chat-sticker-item:hover {
    background: rgba(107, 159, 255, 0.1);
    border-color: #6B9FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 159, 255, 0.2);
}
.chat-sticker-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}
.chat-sticker-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748B;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.chat-emote-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid rgba(107, 159, 255, 0.3);
    background: #FFFFFF;
    color: #6B9FFF;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.chat-emote-toggle-btn:hover {
    border-color: #6B9FFF;
    background: rgba(107, 159, 255, 0.08);
    transform: scale(1.05);
}

.chat-bubble-sticker {
    background: transparent !important;
    box-shadow: none !important;
    padding: 2px 4px !important;
}
.comm-chat-sticker-img {
    max-width: 115px;
    max-height: 115px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    border-radius: 8px;
}

@keyframes chatMsgPulse {
    0% { background: rgba(107, 159, 255, 0.35); border-radius: 12px; }
    50% { background: rgba(107, 159, 255, 0.18); }
    100% { background: transparent; }
}
.chat-msg-highlight {
    animation: chatMsgPulse 1.6s ease-out;
}

/* Dark Mode Overrides for Drawer */
html.dark-mode .chat-sticker-drawer,
body.dark-mode .chat-sticker-drawer {
    background: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
html.dark-mode .chat-drawer-header,
body.dark-mode .chat-drawer-header {
    background: #0F172A !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark-mode .chat-dtab,
body.dark-mode .chat-dtab {
    color: #94A3B8 !important;
}
html.dark-mode .chat-dtab.active,
body.dark-mode .chat-dtab.active {
    color: #FFFFFF !important;
}
html.dark-mode .chat-emoji-item,
body.dark-mode .chat-emoji-item,
html.dark-mode .chat-sticker-item,
body.dark-mode .chat-sticker-item {
    background: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark-mode .chat-sticker-name,
body.dark-mode .chat-sticker-name {
    color: #CBD5E1 !important;
}
html.dark-mode .chat-emote-toggle-btn,
body.dark-mode .chat-emote-toggle-btn {
    background: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #A5B4FC !important;
}
html.dark-mode .chat-textarea,
body.dark-mode .chat-textarea {
    background: #1E293B !important;
    color: #F8FAFC !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
/* Dark Mode Announcement Comments */
html.dark-mode .ann-comments,
body.dark-mode .ann-comments {
    border-top-color: rgba(125, 173, 255, 0.18) !important;
}
html.dark-mode .loading-comments,
body.dark-mode .loading-comments,
html.dark-mode .no-comments,
body.dark-mode .no-comments {
    color: #94A3B8 !important;
}
html.dark-mode .comment-item,
body.dark-mode .comment-item {
    background: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
html.dark-mode .comment-meta strong,
body.dark-mode .comment-meta strong {
    color: #F8FAFC !important;
}
html.dark-mode .comment-meta span,
body.dark-mode .comment-meta span {
    color: #64748B !important;
}
html.dark-mode .comment-body p,
body.dark-mode .comment-body p {
    color: #CBD5E1 !important;
}
html.dark-mode .comment-text,
body.dark-mode .comment-text {
    background: #0F172A !important;
    color: #F8FAFC !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
html.dark-mode .comment-text:focus,
body.dark-mode .comment-text:focus {
    border-color: #60A5FA !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18) !important;
}
html.dark-mode .comment-text::placeholder,
body.dark-mode .comment-text::placeholder {
    color: #64748B !important;
}
html.dark-mode .comment-login-prompt,
body.dark-mode .comment-login-prompt {
    background: rgba(107, 159, 255, 0.07) !important;
    border-color: rgba(107, 159, 255, 0.22) !important;
    color: #94A3B8 !important;
}
html.dark-mode .comment-login-prompt a,
body.dark-mode .comment-login-prompt a {
    color: #93C5FD !important;
}
@media (max-width: 768px) {
    .chat-textarea,
    .comment-text {
        font-size: 16px !important;
    }
    .comment-item {
        padding: 9px 10px;
        gap: 9px;
    }
    .comment-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }
    .btn-comment-send {
        height: 40px;
        padding: 0 14px;
        font-size: 0.78rem;
    }
}
