@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --bg-deep: #0f172a;
    --bg-card: #1e293b;
    --bg-elevated: #334155;
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.3);
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --border: #1e293b;
    --border-light: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── TOP NAVIGATION ────────────────────────────────────── */
.community-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.community-nav .nav-left { display: flex; align-items: center; gap: 12px; }
.community-nav .nav-left img { height: 28px; border-radius: 6px; }
.community-nav .nav-left h1 { font-size: 1.1rem; font-weight: 900; letter-spacing: -0.5px; }
.community-nav .nav-right { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border-light);
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; transition: all 0.2s;
}
.nav-icon-btn:hover { background: var(--bg-elevated); color: white; transform: scale(1.05); }

/* ── PAGE CONTAINER ────────────────────────────────────── */
.page-container {
    max-width: 900px; margin: 0 auto; padding: 0 16px 100px;
}

/* ── COMMUNITY HEADER ──────────────────────────────────── */
.community-hero {
    padding: 30px 0 20px; text-align: center;
    position: relative;
}
.community-logo-wrap {
    position: relative; width: 90px; height: 90px; margin: 0 auto 16px;
}
.community-logo {
    width: 90px; height: 90px; border-radius: 24px;
    object-fit: cover; border: 3px solid var(--accent);
    box-shadow: 0 8px 30px var(--accent-glow);
    background: var(--bg-card);
}
.community-logo-edit {
    position: absolute; bottom: -4px; right: -4px;
    width: 28px; height: 28px; border-radius: 10px;
    background: var(--accent); color: white; border: 2px solid var(--bg-deep);
    display: none; align-items: center; justify-content: center;
    cursor: pointer; font-size: 12px; transition: transform 0.2s;
}
.community-logo-edit:hover { transform: scale(1.1); }
.is-owner .community-logo-edit, .is-mod .community-logo-edit { display: flex; }

.community-title {
    font-size: 1.6rem; font-weight: 900; letter-spacing: -0.5px;
    margin-bottom: 6px; outline: none;
}
.community-title[contenteditable="true"] {
    cursor: text; border-bottom: 2px dashed rgba(79,70,229,0.3);
    padding-bottom: 2px;
}
.community-desc {
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    max-width: 400px; margin: 0 auto; line-height: 1.5; outline: none;
}
.community-desc[contenteditable="true"] {
    cursor: text; border-bottom: 1px dashed rgba(148,163,184,0.3);
}
.community-meta {
    display: flex; gap: 20px; justify-content: center; margin-top: 14px;
    font-size: 0.8rem; color: var(--text-dim);
}
.community-meta span { display: flex; align-items: center; gap: 5px; }
.community-meta i { font-size: 12px; color: var(--accent); }

/* ── ACTION BAR ────────────────────────────────────────── */
.action-bar {
    display: flex; gap: 10px; margin: 16px 0 24px; flex-wrap: wrap;
}
.action-btn {
    flex: 1; min-width: 120px; padding: 12px 16px;
    border-radius: 16px; border: none; font-family: inherit;
    font-weight: 800; font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.25s;
}
.action-btn.primary { background: var(--accent); color: white; box-shadow: 0 4px 15px var(--accent-glow); }
.action-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }
.action-btn.secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-light); }
.action-btn.secondary:hover { background: var(--bg-elevated); }
.action-btn.danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.action-btn.danger:hover { background: rgba(239,68,68,0.2); }

/* ── OWNER PANEL ───────────────────────────────────────── */
.owner-panel {
    background: var(--bg-card); border-radius: 20px; padding: 20px;
    margin-bottom: 24px; border: 1px solid var(--border-light);
    display: none;
}
.owner-panel h3 {
    font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.mod-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mod-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-deep); padding: 10px 14px; border-radius: 12px;
}
.mod-item span { font-weight: 700; font-size: 0.9rem; }
.mod-remove-btn {
    background: rgba(239,68,68,0.1); color: var(--danger); border: none;
    padding: 4px 10px; border-radius: 8px; font-size: 0.75rem;
    font-weight: 700; cursor: pointer; font-family: inherit;
}
.add-mod-row { display: flex; gap: 8px; }
.add-mod-row input {
    flex: 3; background: var(--bg-deep); border: 1px solid var(--border-light);
    border-radius: 12px; padding: 10px 14px; color: white;
    font-family: inherit; font-size: 0.9rem; font-weight: 600; outline: none; width: 100%;
}
.add-mod-row input::placeholder { color: var(--text-dim); }
.add-mod-row button {
    flex: 1; background: var(--accent); color: white; border: none;
    padding: 10px 16px; border-radius: 12px; font-weight: 800;
    font-family: inherit; cursor: pointer; white-space: nowrap; width: 100%;
}

/* ── NGL FEED ──────────────────────────────────────────── */
.feed-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.feed-header h2 { font-size: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.feed-sort {
    background: var(--bg-card); border: 1px solid var(--border-light);
    color: var(--text-secondary); padding: 6px 12px; border-radius: 10px;
    font-family: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer;
}

.ngl-card {
    background: var(--bg-card); border-radius: 20px; padding: 20px;
    margin-bottom: 14px; border: 1px solid var(--border-light);
    transition: all 0.2s; position: relative;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.ngl-card:hover { border-color: rgba(79,70,229,0.3); }
.ngl-card {
    padding-right: 60px; /* Space for vertical votes */
}
.ngl-card .ngl-sender {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.ngl-sender-avatar {
    width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.ngl-sender-info { flex: 1; }
.ngl-sender-info .sender-id { font-weight: 800; font-size: 0.85rem; }
.ngl-sender-info .sender-time { font-size: 0.75rem; color: var(--text-dim); }

.ngl-text {
    font-size: 1.05rem; font-weight: 600; line-height: 1.5;
    color: var(--text-primary); margin-bottom: 12px; word-break: break-word;
}

/* NGL Attachments */
.ngl-attachments {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.ngl-att-thumb {
    width: 80px; height: 80px; border-radius: 14px;
    object-fit: cover; cursor: pointer; border: 1px solid var(--border-light);
    transition: transform 0.2s;
}
.ngl-att-thumb:hover { transform: scale(1.05); }
.ngl-audio-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(79,70,229,0.1); color: #a5b4fc;
    padding: 8px 14px; border-radius: 12px; font-size: 0.8rem;
    font-weight: 700; cursor: pointer; border: 1px solid rgba(79,70,229,0.2);
}

/* NGL Actions */
.ngl-actions {
    display: flex; gap: 8px; align-items: center; padding-top: 10px;
    border-top: 1px solid rgba(51,65,85,0.5);
}
.ngl-action-btn {
    background: none; border: none; color: var(--text-dim);
    font-family: inherit; font-size: 0.8rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 5px;
    padding: 6px 10px; border-radius: 10px; transition: all 0.2s;
}
.ngl-action-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.ngl-action-btn.danger-action:hover { color: var(--danger); background: rgba(239,68,68,0.1); }
.ngl-mod-badge {
    background: rgba(79,70,229,0.15); color: #a5b4fc;
    padding: 3px 8px; border-radius: 8px; font-size: 0.65rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    margin-left: 4px;
}

/* ── VOTE BUTTONS ─────────────────────────────────────── */
.ngl-vote-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 6px 4px;
    position: absolute;
    right: 6px;
    top: 20px;
    width: 38px;
}
.ngl-vote-btn {
    background: none; border: none; color: var(--text-dim);
    font-family: inherit; font-size: 1rem; font-weight: 800;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    padding: 4px; transition: all 0.2s;
    width: 30px; height: 30px; border-radius: 8px;
}
.ngl-vote-btn:hover { background: rgba(255,255,255,0.05); }
.ngl-vote-btn.upvote:hover, .ngl-vote-btn.upvote.active { color: #22c55e; background: rgba(34,197,94,0.1); }
.ngl-vote-btn.downvote:hover, .ngl-vote-btn.downvote.active { color: #ef4444; background: rgba(239,68,68,0.1); }
.ngl-vote-count {
    font-size: 0.85rem; font-weight: 900; text-align: center;
}

/* ── REPLY COUNT BADGE ────────────────────────────────── */
.reply-count-badge {
    background: rgba(79,70,229,0.15); color: #a5b4fc;
    padding: 1px 7px; border-radius: 8px; font-size: 0.7rem;
    font-weight: 800; min-width: 18px; text-align: center;
    line-height: 1.4;
}

/* ── NOTIFICATION BELL ────────────────────────────────── */
.notif-bell-wrap {
    position: relative;
}
.notif-bell-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border-light);
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; transition: all 0.2s;
}
.notif-bell-btn:hover { background: var(--bg-elevated); color: white; transform: scale(1.05); }
.notif-bell-btn.has-notifs { color: #f59e0b; }
.notif-badge {
    position: absolute; top: -2px; right: -2px;
    background: #ef4444; color: white;
    width: 18px; height: 18px; border-radius: 50%;
    font-size: 0.65rem; font-weight: 900;
    display: none; align-items: center; justify-content: center;
    border: 2px solid var(--bg-deep);
    animation: notifPop 0.3s ease-out;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.notif-badge.visible { display: flex; }
@keyframes notifPop {
    from { transform: scale(0); }
    50% { transform: scale(1.3); }
    to { transform: scale(1); }
}

/* ── NOTIFICATION DROPDOWN ────────────────────────────── */
.notif-dropdown {
    position: fixed;
    top: 75px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: 80vh;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    z-index: 1000; display: none; flex-direction: column;
    overflow: hidden;
    animation: dropInFull 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.notif-dropdown.active { display: flex; }
@keyframes dropInFull {
    from { opacity: 0; transform: translateY(-20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.notif-dropdown-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid var(--border-light);
}
.notif-dropdown-header h4 {
    font-size: 0.85rem; font-weight: 900; color: var(--text-primary);
}
.notif-clear-btn {
    background: none; border: none; color: var(--text-dim);
    font-size: 0.7rem; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: color 0.2s;
}
.notif-clear-btn:hover { color: var(--danger); }
.notif-list {
    flex: 1; overflow-y: auto; padding: 6px 0;
    scrollbar-width: thin;
}
.notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item.unread { background: rgba(79,70,229,0.1); }
.notif-item-icon {
    width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
    background: rgba(79,70,229,0.2); color: #a5b4fc;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-body .notif-text {
    font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-item-body .notif-text strong { color: var(--text-primary); font-weight: 800; }
.notif-item-body .notif-time {
    font-size: 0.65rem; color: var(--text-dim); margin-top: 3px;
}
.notif-empty {
    padding: 30px 20px; text-align: center;
    color: var(--text-dim); font-size: 0.85rem;
}
.notif-empty i { font-size: 24px; margin-bottom: 8px; display: block; opacity: 0.4; }

/* ── INBOX BUTTON (redesigned) ────────────────────────── */
.inbox-btn {
    display: flex; align-items: center; gap: 7px;
    background: white; color: var(--bg-deep);
    border: none; border-radius: 12px;
    padding: 8px 16px; font-family: inherit;
    font-weight: 800; font-size: 0.8rem;
    cursor: pointer; transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
    letter-spacing: 0.3px;
}
.inbox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
    background: #f8fafc;
}
.inbox-btn i { font-size: 14px; }

/* ── REPLIES ───────────────────────────────────────────── */
.replies-section { margin-top: 12px; padding-top: 10px; }
.reply-item {
    display: flex; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid rgba(51,65,85,0.3);
}
.reply-item:last-child { border-bottom: none; }
.reply-avatar {
    width: 30px; height: 30px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.reply-body { flex: 1; }
.reply-body .reply-sender { font-weight: 800; font-size: 0.8rem; }
.reply-body .reply-text { font-size: 0.85rem; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; }
.reply-body .reply-time { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }
.reply-like-wrap {
    display: flex; align-items: center; justify-content: center;
    padding-left: 10px;
}
.reply-like-btn {
    background: none; border: none; color: var(--text-dim);
    cursor: pointer; display: flex; flex-direction: column;
    align-items: center; gap: 2px; transition: all 0.2s;
    font-family: inherit;
}
.reply-like-btn i { font-size: 0.9rem; }
.reply-like-btn span { font-size: 0.7rem; font-weight: 800; min-width: 12px; }
.reply-like-btn:hover { color: #ef4444; transform: scale(1.1); }
.reply-like-btn.active { color: #ef4444; }
.reply-like-btn.active i {
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.4));
}

.reply-input-row {
    display: flex; gap: 8px; margin-top: 10px;
}
.reply-input-row input {
    flex: 1; background: var(--bg-deep); border: 1px solid var(--border-light);
    border-radius: 14px; padding: 10px 14px; color: white;
    font-family: inherit; font-size: 0.85rem; outline: none;
}
.reply-input-row input::placeholder { color: var(--text-dim); }
.reply-input-row button {
    background: var(--accent); color: white; border: none;
    padding: 10px 16px; border-radius: 14px; font-weight: 800;
    font-family: inherit; cursor: pointer; font-size: 0.85rem;
}

/* ── EMPTY STATE ───────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-dim);
}
.empty-state .empty-icon { font-size: 50px; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ── BROWSE COMMUNITIES ────────────────────────────────── */
.browse-section { margin-top: 20px; }
.browse-section h2 {
    font-size: 1rem; color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: 1px; margin: 0;
}
.browse-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.add-community-btn {
    background: var(--accent); color: white; border: none;
    border-radius: 12px; padding: 8px 14px; font-weight: 800;
    font-family: inherit; font-size: 0.8rem; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.2s; box-shadow: 0 4px 12px var(--accent-glow);
}
.add-community-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--accent-glow);
    background: #6366f1;
}
.add-community-btn i { font-size: 11px; }

.community-browse-card {
    background: var(--bg-card); border-radius: 20px; padding: 18px;
    margin-bottom: 12px; border: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 14px; cursor: pointer;
    transition: all 0.2s;
}
.community-browse-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.community-browse-card img {
    width: 50px; height: 50px; border-radius: 14px; object-fit: cover;
    background: var(--bg-elevated);
}
.community-browse-info { flex: 1; min-width: 0; }
.community-browse-info h4 { font-size: 1rem; font-weight: 800; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.community-browse-info p { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.community-browse-card .chevron { color: var(--text-dim); font-size: 1.2rem; }

/* ── MODALS ────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(10px);
    z-index: 500; display: none; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-card {
    background: var(--bg-card); border-radius: 24px; padding: 28px;
    width: 100%; max-width: 420px; border: 1px solid var(--border-light);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-card .modal-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }
.modal-input {
    width: 100%; background: var(--bg-deep); border: 1px solid var(--border-light);
    border-radius: 14px; padding: 14px 16px; color: white;
    font-family: inherit; font-size: 1rem; font-weight: 600; outline: none;
    margin-bottom: 12px;
}
.modal-input::placeholder { color: var(--text-dim); }
.modal-input:focus { border-color: var(--accent); }
textarea.modal-input { resize: none; min-height: 80px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-btn {
    flex: 1; padding: 14px; border-radius: 14px; border: none;
    font-family: inherit; font-weight: 800; font-size: 0.95rem;
    cursor: pointer; transition: all 0.2s;
}
.modal-btn.confirm { background: var(--accent); color: white; }
.modal-btn.confirm:hover { background: #6366f1; }
.modal-btn.cancel { background: var(--bg-deep); color: var(--text-secondary); }
.modal-btn.cancel:hover { color: white; }

/* ── IMAGE VIEWER ──────────────────────────────────────── */
.image-viewer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 600; display: none;
    align-items: center; justify-content: center; cursor: pointer;
}
.image-viewer-overlay img {
    max-width: 90%; max-height: 90%; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── TOAST ─────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--bg-card); color: white; padding: 14px 24px;
    border-radius: 16px; font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); border: 1px solid var(--border-light);
    z-index: 700; transition: transform 0.3s ease; display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── SEND NGL CARD ─────────────────────────────────────── */
.send-ngl-card {
    background: var(--bg-card); border-radius: 20px; padding: 20px;
    margin-bottom: 24px; border: 1px solid var(--border-light);
}
.send-ngl-card textarea {
    width: 100%; background: var(--bg-deep); border: 1px solid var(--border-light);
    border-radius: 16px; padding: 16px; color: white;
    font-family: inherit; font-size: 1rem; font-weight: 600;
    outline: none; resize: none; min-height: 100px;
    transition: border-color 0.2s;
}
.send-ngl-card textarea::placeholder { color: var(--text-dim); }
.send-ngl-card textarea:focus { border-color: var(--accent); }
.send-ngl-tools {
    display: flex; align-items: center; gap: 10px; margin-top: 12px;
}
.send-tool-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bg-deep); border: 1px solid var(--border-light);
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; transition: all 0.2s;
}
.send-tool-btn:hover { background: var(--bg-elevated); color: white; }
.send-ngl-btn {
    margin-left: auto; background: var(--accent); color: white;
    border: none; padding: 10px 24px; border-radius: 14px;
    font-weight: 800; font-family: inherit; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 15px var(--accent-glow);
}
.send-ngl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }
.send-ngl-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.send-previews {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.send-preview-thumb {
    position: relative; width: 60px; height: 60px; border-radius: 12px; overflow: hidden;
}
.send-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.send-preview-thumb .remove-preview {
    position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
    background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%;
    font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ── EDIT NGL MODAL ────────────────────────────────────── */
.edit-ngl-modal textarea {
    width: 100%; background: var(--bg-deep); border: 1px solid var(--border-light);
    border-radius: 14px; padding: 14px; color: white;
    font-family: inherit; font-size: 1rem; font-weight: 600;
    outline: none; resize: none; min-height: 120px;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 480px) {
    .community-title { font-size: 1.3rem; }
    .action-bar { flex-direction: column; }
    .action-btn { min-width: 100%; }
}

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.35); }
