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

:root {
    --bg-dark: #0f111a;
    --bg-card: rgba(22, 25, 41, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #14b8a6; /* Teal */
    --primary-hover: #0d9488;
    --primary-glow: rgba(20, 184, 166, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --secondary: #3b82f6; /* Blue */
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    padding-top: 60px; /* Space for sticky header */
    padding-bottom: 70px; /* Space for sticky bottom nav */
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(20, 184, 166, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* --- STICKY TOP BAR --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}

.top-bar .logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
}

.top-bar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 8px var(--danger-glow);
}

/* --- STICKY BOTTOM NAVIGATION --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(15, 17, 26, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    width: 20%;
    height: 100%;
    gap: 4px;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 20px;
    transition: var(--transition);
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* --- STORY ROW --- */
.story-row-container {
    width: 100%;
    padding: 12px 0 12px 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.story-row-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.story-row {
    display: flex;
    gap: 12px;
}

.story-bubble {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 65px;
    cursor: pointer;
}

.story-avatar-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155; /* Default seen */
    transition: var(--transition);
}

.story-bubble.unseen .story-avatar-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-dark);
}

.story-username {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- CARDS & POSTS --- */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 12px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
}

.post-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.post-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.post-card-header .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1.5px solid var(--border-color);
}

/* Post header name+time area — ক্লিক করলে post খুলবে */
a.post-header-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
a.post-header-link:hover .author-name {
    color: var(--primary);
}
a.post-header-link .author-name {
    cursor: pointer;
}
a.post-header-link .author-name:hover {
    text-decoration: underline;
}

.post-meta-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.verified-badge {
    display: inline-block;
    vertical-align: middle;
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.post-time-row {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    gap: 4px;
}

.post-card-options {
    position: relative;
}

.options-trigger-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.options-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.options-dropdown {
    position: absolute;
    top: 36px;
    right: 0;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 0;
    width: 140px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
    display: none;
    z-index: 100;
}

.options-dropdown.show {
    display: block;
}

.options-dropdown a, .options-dropdown button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    gap: 8px;
    font-family: inherit;
}

.options-dropdown a:hover, .options-dropdown button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.options-dropdown button.delete-btn {
    color: var(--danger);
}

.options-dropdown button.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.post-card-body {
    margin-bottom: 12px;
}

.post-content-text {
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.post-media-container, .shared-media-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.post-media-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* --- VIDEO YOUTUBE CONTAINER --- */
.video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    aspect-ratio: 16/9;
}

.video-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 55px;
    color: var(--danger);
    text-shadow: 0 0 15px rgba(0,0,0,0.6);
    transition: var(--transition);
}

.video-thumbnail-placeholder:hover .play-overlay-btn {
    transform: translate(-50%, -50%) scale(1.1);
    color: #ff0000;
}

.video-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 13px;
    font-weight: 500;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- SHARED CARD --- */
.shared-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
}

.shared-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.shared-card-header .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.shared-meta-info {
    flex: 1;
}

.shared-card-deleted {
    border: 1px dashed var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    margin-top: 8px;
    color: var(--text-muted);
}

/* --- ACTIONS --- */
.post-card-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.action-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    padding-bottom: 8px;
}

.stats-item {
    cursor: pointer;
}

.stats-item:hover {
    color: var(--primary);
}

.buttons-row {
    display: flex;
    justify-content: space-between;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.action-btn.liked {
    color: var(--primary);
}

.action-btn.saved {
    color: var(--secondary);
}

/* ── TEXT-ONLY POST PLACEHOLDER (Saved page + feed card) ── */
.post-text-placeholder {
    width: 100%;
    min-height: 80px;
    border-radius: 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, #2d2d3a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.post-text-placeholder-label {
    font-size: 28px;
    font-weight: 800;
    color: rgba(255,255,255,0.18);
    letter-spacing: 2px;
    user-select: none;
}

/* ── SAVED PAGE — ROW CARD ── */
.saved-row-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.saved-row-thumb-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.saved-row-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.saved-row-thumb-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2d2d3a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.saved-row-thumb-placeholder span {
    font-size: 17px;
    font-weight: 800;
    color: rgba(255,255,255,0.25);
    letter-spacing: 1px;
}

.saved-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saved-row-excerpt {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.saved-row-excerpt:hover {
    color: var(--primary);
}

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

.saved-row-unsave-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    white-space: nowrap;
}
.saved-row-unsave-btn:hover {
    background: rgba(229,83,83,0.1);
    color: var(--danger, #e55353);
    border-color: var(--danger, #e55353);
}

/* --- POST CREATOR BOX --- */
.creator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.creator-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.creator-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.creator-privacy-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.creator-body textarea {
    width: 100%;
    height: 80px;
    background: none;
    border: none;
    resize: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.creator-body textarea::placeholder {
    color: var(--text-muted);
}

.creator-image-preview-container {
    width: 100%;
    margin-top: 10px;
    position: relative;
    display: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.creator-image-preview-container img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.remove-preview-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.creator-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
}

/* --- FACEBOOK-STYLE COLLAPSED POST TRIGGER --- */
.creator-trigger-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.creator-trigger-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.creator-trigger-row .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.creator-trigger-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.creator-trigger-row:hover .creator-trigger-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.creator-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.quick-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* --- FULL-SCREEN POST COMPOSER --- */
.post-composer-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 2600;
    display: none;
}

.post-composer-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.post-composer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.post-composer-close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.post-composer-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.post-composer-title {
    font-size: 16px;
    font-weight: 700;
}

.post-composer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.post-composer-body .creator-body textarea {
    min-height: 120px;
}

.post-composer-actions-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-btn {
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.file-input-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(20, 184, 166, 0.02);
}

.file-input-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.submit-post-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: var(--transition);
}

.submit-post-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* --- COMMENTS SECTION --- */
.comments-section {
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 10px;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 4px;
}

.comments-list::-webkit-scrollbar {
    width: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.comment-item {
    margin-bottom: 8px;
}

.comment-bubble-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comment-bubble-row .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-text-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 85%;
}

.comment-author-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-content {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 2px;
    word-break: break-word;
}

.comment-time-row {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    margin-left: 36px;
    display: flex;
    gap: 8px;
}

.comment-time-row button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    font-family: inherit;
}

.comment-time-row button:hover {
    color: var(--primary);
}

.show-replies-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary) !important;
    font-size: 10px !important;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    background: var(--primary-glow);
    border: 1px solid rgba(20,184,166,0.2) !important;
    transition: var(--transition);
    cursor: pointer;
}

.show-replies-btn:hover {
    background: rgba(20,184,166,0.2) !important;
    color: var(--primary) !important;
}

.replies-container {
    margin-top: 4px;
}

.add-comment-row {
    margin-top: 8px;
}

.comment-ajax-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
}

.comment-input-box {
    flex: 1;
    background: none;
    border: none;
    resize: none;
    outline: none;
    height: 24px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    padding-top: 2px;
}

.comment-submit-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    padding-left: 8px;
    transition: var(--transition);
}

.comment-submit-btn:hover {
    transform: scale(1.1);
}

/* --- LOAD MORE --- */
.load-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 24px;
}

.feed-loading-spinner {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    padding: 10px 0;
}

.see-more-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.see-more-link:hover {
    text-decoration: underline;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 32px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: rgba(20, 184, 166, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

/* --- FULLSCREEN STORY OVERLAY --- */
.story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.story-overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 16px 12px 16px;
    background: linear-gradient(rgba(0,0,0,0.8), transparent);
    z-index: 2020;
}

.story-progress-bar-container {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 3px;
    margin-bottom: 12px;
}

.story-progress-segment {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.1s linear;
}

.story-user-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.story-user-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-user-details .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    object-fit: cover;
}

.story-user-name {
    font-size: 14px;
    font-weight: 600;
}

.story-close-btn, .story-delete-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.story-delete-btn {
    margin-right: 12px;
    color: var(--danger);
    font-size: 16px;
}

.story-overlay-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-overlay-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.story-nav-btn {
    position: absolute;
    top: 0;
    height: 100%;
    width: 20%;
    background: none;
    border: none;
    outline: none;
    z-index: 2015;
}

.story-nav-prev {
    left: 0;
}

.story-nav-next {
    right: 0;
}

.story-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* Gradient presets used both by the story viewer and the story creator */
.story-bg-g1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.story-bg-g2 { background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%); }
.story-bg-g3 { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.story-bg-g4 { background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%); }
.story-bg-g5 { background: linear-gradient(135deg, #232526 0%, #414345 100%); }

.story-stage-text {
    max-width: 85%;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-wrap;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.story-pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2018;
    pointer-events: none;
}

.story-views-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-right: 10px;
}

/* --- STORY VIEWERS PANEL (bottom sheet, owner-only "Viewed by" list) --- */
.story-viewers-panel {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 60vh;
    background: #151824;
    border-top: 1px solid var(--border-color);
    border-radius: 18px 18px 0 0;
    z-index: 2100;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.story-viewers-panel.open {
    transform: translateY(0);
}

.story-viewers-panel-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 10px auto 4px auto;
}

.story-viewers-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.story-viewers-list {
    overflow-y: auto;
    padding: 8px 16px 20px 16px;
}

.story-viewers-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 24px 0;
    font-size: 13px;
}

.story-viewer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.story-viewer-row .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.story-viewer-row-info {
    display: flex;
    flex-direction: column;
}

.story-viewer-row-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.story-viewer-row-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- BADGES --- */
.membership-badge {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.membership-badge.plus,
.membership-badge.pro,
.membership-badge.vip {
    /* color variants handled via SVG fill */
}

/* --- STORY CREATOR MODAL --- */
.story-creator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: var(--glass-blur);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: #151824;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    margin-bottom: 16px;
    overflow-y: auto;
}

.story-upload-preview {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: block;
    margin-top: 0;
}

.story-image-preview-wrap {
    position: relative;
    margin-top: 10px;
}

/* --- Story Creator: Photo / Text mode switch --- */
.story-mode-switch {
    display: flex;
    gap: 8px;
    padding: 0 20px 12px 20px;
    flex-shrink: 0;
}

.story-mode-btn {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 9px 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.story-mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.story-creator-content {
    padding: 20px 0 20px 0;
}

.story-creator-content .modal-header,
.story-creator-content .modal-actions {
    padding-left: 20px;
    padding-right: 20px;
}

.story-creator-body {
    padding: 0 20px;
}

.story-mode-panel {
    width: 100%;
}

/* Photo canvas holding the preview image + draggable text */
.story-photo-canvas {
    position: relative;
    width: 100%;
    max-height: 340px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
}

.story-photo-canvas .story-upload-preview {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border: none;
    border-radius: 0;
    margin-top: 0;
}

/* Text card used in Text-only mode preview */
.story-text-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 340px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Draggable / editable text used in both modes */
.story-drag-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    min-width: 40px;
    min-height: 1.4em;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.35;
    word-break: break-word;
    white-space: pre-wrap;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    outline: none;
    cursor: grab;
    padding: 4px 8px;
}

.story-drag-text:active {
    cursor: grabbing;
}

.story-drag-text:empty::before {
    content: attr(data-placeholder);
    opacity: 0.7;
}

.story-text-mode-text {
    position: static;
    transform: none;
    max-width: 100%;
    font-size: 26px;
}

.add-text-btn {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.story-gradient-picker {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.story-gradient-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-block;
}

.story-gradient-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.story-select-zone {
    flex-direction: column;
    min-height: 160px;
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    gap: 8px;
}

.story-select-zone i {
    font-size: 32px;
    color: var(--primary);
}

.story-select-zone span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.story-select-zone small {
    font-size: 11px;
    color: var(--text-muted);
}

.file-input-wrapper:hover .story-select-zone {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.03);
}

.modal-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    outline: none;
}

.modal-input:focus {
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.cancel-modal-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
}

.cancel-modal-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.02);
}

/* --- CUSTOM CONFIRM MODAL (replaces browser's default confirm() popup) --- */
.confirm-modal .confirm-modal-content {
    max-width: 320px;
    padding: 26px 22px 20px 22px;
    text-align: center;
}

.confirm-modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    background: var(--danger-glow);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.confirm-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.confirm-modal-message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.confirm-modal-actions {
    justify-content: center;
    gap: 10px;
}

.confirm-modal-danger-btn {
    background: var(--danger);
    border: 1px solid var(--danger);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.confirm-modal-danger-btn:hover {
    filter: brightness(1.1);
}

/* --- MOBILE MESSENGER STYLING --- */
.msng-header {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.msng-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.msng-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.msng-tabs a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.msng-tabs a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.msng-tabs a.msng-tab-active {
    color: var(--primary);
    background: var(--primary-glow);
    font-weight: 600;
}

.msng-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.msng-subtabs a {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.msng-subtabs a:hover, .msng-subtabs a.msng-subtab-active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
}

.msng-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msng-item {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.msng-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.msng-item:hover {
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-1px);
}

.msng-item-unread {
    border-left: 3px solid var(--primary);
    background: rgba(20, 184, 166, 0.03);
}

.msng-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border-color);
    flex-shrink: 0;
}

.msng-item-body {
    flex: 1;
    min-width: 0;
}

.msng-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.msng-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msng-online-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

.msng-item-time-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.msng-item-time {
    font-size: 11px;
    color: var(--text-muted);
}

.msng-unread-count {
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
}

.msng-seen {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
}

.msng-item-preview {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.msng-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.msng-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.msng-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.msng-btn-danger {
    color: var(--danger);
}

.msng-btn-danger:hover {
    background: var(--danger-glow);
    border-color: var(--danger);
    color: var(--danger);
}

.msng-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.msng-badge-group {
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--secondary);
}

.msng-badge-room {
    border-color: rgba(20, 184, 166, 0.3);
    color: var(--primary);
}

.msng-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.msng-pagination a {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.msng-pagination a:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}

.msng-empty {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.msng-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 12px;
}

.msng-footer a {
    color: var(--text-muted);
    font-weight: 500;
}

.msng-footer a:hover {
    color: var(--primary);
}

.msng-footer-sep {
    color: var(--border-color);
}

/* --- CHAT WINDOW VIEW --- */
.msng-chat-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 4px 10px;
}

.msng-chat-topbar {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msng-back {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.msng-back:hover {
    color: var(--primary);
}

.msng-chat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.msng-member-count {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
}

.msng-settings-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.msng-refresh-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.msng-active-status {
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
}

.msng-load-older {
    text-align: center;
    margin: 4px 0;
}

.msng-load-older a {
    font-size: 12px;
    color: var(--primary);
    background: rgba(20, 184, 166, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.msng-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0;
}

.msng-msg {
    display: flex;
    margin-bottom: 2px;
}

.msng-msg-mine {
    justify-content: flex-end;
}

.msng-msg-theirs {
    justify-content: flex-start;
}

.msng-msg .msng-bubble {
    max-width: 85%;
    border-radius: 16px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.msng-msg-mine .msng-bubble {
    background: var(--primary);
    color: var(--bg-dark);
    border-bottom-right-radius: 4px;
}

.msng-msg-mine .msng-bubble p, .msng-msg-mine .msng-bubble a {
    color: var(--bg-dark);
}

.msng-msg-theirs .msng-bubble {
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.msng-time-mine {
    display: block;
    font-size: 9px;
    color: rgba(15, 17, 26, 0.6);
    margin-bottom: 4px;
    font-weight: 500;
}

.msng-time-theirs {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.msng-sender-name {
    display: block;
    font-weight: 600;
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 2px;
}

.msng-msg-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

.msng-msg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
    font-size: 10px;
}

.msng-action-btn {
    color: var(--text-muted);
    opacity: 0.8;
}

.msng-msg-mine .msng-action-btn {
    color: rgba(15, 17, 26, 0.7);
}

.msng-action-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.msng-action-sep {
    color: var(--border-color);
    opacity: 0.5;
}

.msng-msg-mine .msng-action-sep {
    color: rgba(15, 17, 26, 0.3);
}

.msng-seen-status {
    display: block;
    text-align: right;
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

.msng-sys-msg {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin: 6px 0;
    opacity: 0.8;
}

.msng-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    margin: 8px 0;
}

.msng-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    margin: 8px 0;
}

.msng-compose {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px;
    margin: 8px 0;
}

.msng-input {
    width: 100%;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    resize: none;
    font-family: inherit;
    transition: var(--transition);
}

.msng-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.msng-compose-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 10px;
}

.msng-file-input-visible {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 180px;
    cursor: pointer;
}

.msng-send-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.msng-send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.msng-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 0 4px;
}

.msng-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    backdrop-filter: var(--glass-blur);
}

.msng-form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msng-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.msng-form-group input[type="text"],
.msng-form-group textarea,
.msng-form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.msng-form-group input[type="text"]:focus,
.msng-form-group textarea:focus,
.msng-form-group select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.msng-form-group input[type="file"] {
    font-size: 12px;
    color: var(--text-muted);
}

.msng-form-group input[type="submit"] {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.msng-form-group input[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.msng-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.msng-settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.msng-settings-section h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.msng-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.msng-section-head h4 {
    margin-bottom: 0;
}

.msng-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 10px;
}

.msng-member-name {
    flex: 1;
    font-size: 13.5px;
    color: var(--text-primary);
}

.msng-member-name small {
    font-size: 11px;
    color: var(--text-muted);
}

.msng-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 4px 0;
}

.msng-settings-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.msng-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.msng-search-form input[type="text"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}

.msng-search-form input[type="text"]:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.msng-search-form input[type="submit"] {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.msng-search-form input[type="submit"]:hover {
    background: var(--primary-hover);
}

.msng-already-member {
    font-size: 11px;
    color: var(--text-muted);
}