/* NS Community Stylesheet */

/* ==================== 1. CSS VARIABLES & THEMES ==================== */
:root {
    --transition-speed: 0.3s;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
    --gradient-glow: 0 0 20px rgba(236, 72, 153, 0.3);
    
    /* Background presets for text-only posts */
    --post-gradient-1: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    --post-gradient-2: linear-gradient(135deg, #062f4f 0%, #000000 100%);
    --post-gradient-3: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    --post-gradient-4: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    --post-gradient-5: linear-gradient(135deg, #3c0919 0%, #1c050e 100%);
}

.dark-theme {
    --bg-app: #08080d;
    --bg-panel: rgba(20, 20, 32, 0.65);
    --bg-panel-hover: rgba(35, 35, 55, 0.8);
    --bg-input: #12121e;
    --bg-modal: rgba(8, 8, 14, 0.96);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-accent: #ec4899;
    --text-link: #38bdf8;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(255, 255, 255, 0.2);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glass: inset 0 1px 1px rgba(255, 255, 255, 0.04), 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.light-theme {
    --bg-app: #f1f3f9;
    --bg-panel: rgba(255, 255, 255, 0.85);
    --bg-panel-hover: rgba(230, 235, 245, 0.9);
    --bg-input: #e2e8f0;
    --bg-modal: rgba(255, 255, 255, 0.98);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-accent: #db2777;
    --text-link: #0284c7;
    
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-active: rgba(15, 23, 42, 0.2);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-glass: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 8px 32px 0 rgba(15, 23, 42, 0.04);
    
    /* Overwrite post gradients for light theme readability */
    --post-gradient-1: linear-gradient(135deg, #e0e7ff 0%, #e879f9 100%);
    --post-gradient-2: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    --post-gradient-3: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    --post-gradient-4: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    --post-gradient-5: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
}

/* ==================== 2. GLOBAL RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #1b3b6f #050914;
}

/* Custom navy dark blue scrollbar styling for webkit engines */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #050914; /* Dark navy black */
}

::-webkit-scrollbar-thumb {
    background: #1b3b6f; /* Navy dark blue */
    border-radius: 5px;
    border: 2px solid #050914;
}

::-webkit-scrollbar-thumb:hover {
    background: #224a8a;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #050914;
}
::-webkit-scrollbar-thumb {
    background: #1b3b6f;
    border-radius: 5px;
    border: 2px solid #050914;
}
::-webkit-scrollbar-thumb:hover {
    background: #224a8a;
}

/* ==================== 3. APP CONTAINER & LAYOUT ==================== */
#app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
    border-radius: var(--border-radius-md);
}

/* ==================== 4. SIDEBAR NAVIGATION ==================== */
#sidebar {
    width: 245px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 12px 20px 12px;
    border-right: 1px solid var(--border-color);
    z-index: 100;
    background: var(--bg-app);
    transition: width var(--transition-speed), background-color var(--transition-speed);
}

.logo-container {
    padding: 0 12px 35px 12px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: lowercase;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.nav-item:hover {
    background-color: var(--bg-panel-hover);
    transform: translateX(4px);
}

.nav-item.active {
    font-weight: 700;
}

.nav-item.active svg {
    stroke-width: 2.5px;
    stroke: var(--text-accent);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    transition: stroke 0.2s;
}

.avatar-nav {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border-color);
}

.badge-container {
    position: relative;
}
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.sidebar-footer {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-align: left;
    transition: background-color 0.2s;
}

.theme-btn:hover {
    background-color: var(--bg-panel-hover);
}

.theme-btn svg {
    width: 24px;
    height: 24px;
}

.dark-theme .sun-icon { display: block; }
.dark-theme .moon-icon { display: none; }
.light-theme .sun-icon { display: none; }
.light-theme .moon-icon { display: block; }

/* Bottom Nav (Mobile Only) */
#bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: var(--bg-app);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.bottom-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.bottom-nav-item.active svg {
    stroke: var(--text-accent);
}

/* ==================== 5. GLOBAL HEADER ==================== */
#main-header {
    width: 100%;
    max-width: 935px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin-bottom: 24px;
    z-index: 10;
}

.header-logo-mobile {
    display: none;
}

.logo-text-mobile {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: lowercase;
}

/* Auth Header Google button styling */
.google-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color-active);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.google-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-accent);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.2);
}

.google-login-btn.primary-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
}
.google-login-btn.primary-gradient:hover {
    opacity: 0.9;
    box-shadow: var(--gradient-glow);
}

.user-header-widget {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-header-widget img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.user-header-widget .username {
    font-weight: 600;
    font-size: 0.85rem;
}

.logout-btn {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: color 0.2s, background-color 0.2s;
}

.logout-btn:hover {
    color: var(--text-accent);
    background-color: rgba(236, 72, 153, 0.05);
}

/* Simulation banner styling */
.sim-banner {
    width: 100%;
    max-width: 935px;
    background-color: rgba(234, 179, 8, 0.1);
    border: 1px dashed rgba(234, 179, 8, 0.4);
    color: #eab308;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 20px;
}

/* ==================== 6. MAIN CONTENT AREA ==================== */
#main-content {
    flex-grow: 1;
    margin-left: 245px;
    padding: 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: margin-left var(--transition-speed), padding var(--transition-speed);
}

.content-pane {
    display: none;
    width: 100%;
    max-width: 935px;
    animation: fadeIn 0.4s ease;
}

.content-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-header {
    margin-bottom: 25px;
}
.pane-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

/* ==================== 7. FEED LAYOUT (HOME) ==================== */
.feed-layout {
    display: grid;
    grid-template-columns: 600px 290px;
    gap: 45px;
    width: 100%;
}

.feed-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Guest Lock warning banner */
.auth-banner {
    padding: 20px;
    border-left: 4px solid var(--text-accent);
}

.auth-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-banner-text h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-banner-text p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Feed Posts (Text-Only Design) */
.post-card {
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    transition: border-color var(--transition-speed);
}

.post-card-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.post-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid var(--border-color);
}

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

.post-header-info .username {
    font-weight: 600;
    color: var(--text-primary);
}

.post-header-info .location {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.post-options-btn {
    padding: 8px;
    font-size: 1rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.post-options-btn:hover {
    color: var(--text-primary);
}

/* Text-Only Post Body Setup */
.post-text-body {
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-primary);
    word-break: break-word;
    font-family: var(--font-body);
    position: relative;
    cursor: pointer;
    text-align: left;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}

.light-theme .post-text-body {
    color: var(--text-primary);
}

/* Gradients rotation presets */
.post-bg-0 { background: var(--post-gradient-1); }
.post-bg-1 { background: var(--post-gradient-2); }
.post-bg-2 { background: var(--post-gradient-3); }
.post-bg-3 { background: var(--post-gradient-4); }
.post-bg-4 { background: var(--post-gradient-5); }

/* Double tap heart overlay */
.post-overlay-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: rgba(255, 255, 255, 0.85);
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
}

.post-overlay-heart.pop {
    animation: heartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(0.8) translateY(-50px); opacity: 0; }
}

/* Post Actions Footer */
.post-actions-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px 6px 16px;
}

.left-actions, .right-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

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

.action-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
}

.action-btn svg.heart-filled {
    color: var(--text-accent);
}

.action-btn svg.bookmark-filled {
    color: var(--text-primary);
}

.post-stats-details {
    padding: 0 16px 12px 16px;
}

.likes-count {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.comments-summary-btn {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
}

.time-ago {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* Suggestions Sidebar (Desktop right side) */
.suggestions-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.user-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 160px;
}

.user-info .username {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info .fullname {
    color: var(--text-secondary);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.switch-profile-btn, .follow-action-btn {
    color: var(--text-link);
    font-size: 0.78rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.switch-profile-btn:hover, .follow-action-btn:hover {
    opacity: 0.8;
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestions-header h3 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.suggestions-header a {
    font-size: 0.78rem;
    font-weight: 600;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suggestion-item-profile {
    display: flex;
    align-items: center;
}

.user-avatar-medium {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid var(--border-color);
}

.side-footer {
    margin-top: 30px;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    line-height: 1.4;
}

/* ==================== 8. EXPLORE PANE ==================== */
.explore-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.explore-list-card {
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    padding: 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.explore-list-card:hover {
    transform: translateY(-2px);
    background-color: var(--bg-panel-hover);
}

.explore-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.explore-author-row img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.explore-author-row .username {
    font-weight: 600;
    font-size: 0.85rem;
}

.explore-text {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.explore-footer {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.explore-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.explore-footer svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* ==================== 9. DIRECT MESSAGES PANE ==================== */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 170px);
    width: 100%;
    overflow: hidden;
}

.inbox-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.inbox-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.inbox-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.new-message-btn {
    color: var(--text-primary);
    padding: 4px;
}

.new-message-btn svg {
    width: 20px;
    height: 20px;
}

.inbox-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.inbox-tab {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    text-align: center;
}

.inbox-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.chat-list {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-item:hover {
    background-color: var(--bg-panel-hover);
}

.chat-item.active {
    background-color: var(--bg-panel-hover);
}

.avatar-container {
    position: relative;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-tertiary);
    border: 2px solid var(--bg-app);
}

.status-indicator.online {
    background-color: #22c55e;
}

.chat-item-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 180px;
}

.chat-item-details .username {
    font-weight: 600;
}

.chat-item-details .last-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-details .last-msg.unread {
    font-weight: 700;
    color: var(--text-primary);
}

.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-unselected-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.chat-unselected-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 320px;
}

.icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle svg {
    width: 48px;
    height: 48px;
}

.chat-unselected-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.chat-unselected-content p {
    color: var(--text-secondary);
}

.start-chat-btn, .change-photo-btn {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--border-radius-xl);
    transition: opacity 0.2s;
}

.start-chat-btn:hover, .change-photo-btn:hover {
    opacity: 0.9;
}

.chat-active-state {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-user {
    display: flex;
    align-items: center;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-header-info .username {
    font-weight: 600;
}

.chat-header-info .active-status {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.chat-header-actions {
    display: flex;
    gap: 16px;
}

.chat-action-btn {
    padding: 6px;
    color: var(--text-primary);
}

.chat-action-btn svg {
    width: 22px;
    height: 22px;
}

.chat-messages-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: rgba(0,0,0,0.02);
}

/* Chat message bubbles */
.message-bubble {
    display: flex;
    align-items: flex-end;
    max-width: 70%;
}

.message-bubble.incoming {
    align-self: flex-start;
}

.message-bubble.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bubble img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid var(--border-color);
}

.message-bubble.outgoing img {
    margin-right: 0;
    margin-left: 8px;
}

.msg-content {
    background-color: var(--bg-input);
    padding: 10px 16px;
    border-radius: 18px;
    word-break: break-word;
    border: 1px solid var(--border-color);
}

.message-bubble.outgoing .msg-content {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
}

.chat-input-area {
    padding: 16px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    gap: 12px;
}

.chat-input-area input {
    flex-grow: 1;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 24px;
}

.emoji-btn {
    padding: 6px;
    color: var(--text-secondary);
}

.emoji-btn svg {
    width: 24px;
    height: 24px;
}

.chat-send-btn {
    color: var(--text-link);
    font-weight: 600;
    padding: 6px 12px;
    transition: opacity 0.2s;
}

.chat-send-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ==================== 10. SEARCH PANE ==================== */
.search-box {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 24px;
    gap: 12px;
}

.search-box-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-box input {
    flex-grow: 1;
    font-size: 1rem;
}

#search-clear-btn {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
}

.search-results-container {
    width: 100%;
}

.recent-searches-header {
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.search-result-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-info .username {
    font-weight: 600;
}

.search-result-info .sub-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-result-remove-btn {
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 4px;
}

/* ==================== 11. NOTIFICATIONS PANE ==================== */
.notifications-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.notif-section-title {
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-item-body {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin-right: 12px;
}

.notif-text {
    line-height: 1.4;
}

.notif-text strong {
    font-weight: 600;
    color: var(--text-primary);
}

.notif-text .time {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-left: 6px;
}

.notif-post-preview {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.notif-follow-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.notif-follow-btn.active {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

/* ==================== 12. PROFILE PANE ==================== */
.profile-container {
    width: 100%;
}

.profile-header {
    display: flex;
    padding: 30px 40px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-container {
    width: 250px;
    display: flex;
    justify-content: center;
    margin-right: 30px;
}

.avatar-gradient-border {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-primary);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-app);
    background-color: var(--bg-input);
}

.profile-info-section {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 20px;
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-username {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
}

.profile-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-btn {
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

.profile-btn.secondary-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.profile-btn.secondary-btn:hover {
    background-color: var(--bg-panel-hover);
}

.profile-settings-btn {
    padding: 6px;
    color: var(--text-primary);
}

.profile-settings-btn svg {
    width: 24px;
    height: 24px;
}

.profile-stats {
    display: flex;
    gap: 40px;
    list-style: none;
}

.profile-stats li {
    font-size: 1rem;
}

.profile-stats li strong {
    font-weight: 600;
}

.profile-bio-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-fullname {
    font-weight: 700;
}

.profile-bio {
    white-space: pre-wrap;
    line-height: 1.4;
}

.profile-link {
    color: var(--text-link);
    font-weight: 600;
}

/* Profile tabs switches */
.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid transparent;
}

.profile-tab {
    padding: 16px 0;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid transparent;
    margin-top: -1px;
    transition: color 0.2s;
}

.profile-tab.active {
    color: var(--text-primary);
    border-top: 1px solid var(--text-primary);
}

.tab-icon {
    width: 16px;
    height: 16px;
}

.profile-tab-content {
    padding: 24px 0;
    display: flex;
    justify-content: center;
}

.profile-list-updates {
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.profile-list-updates.show {
    display: flex;
}

.profile-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    gap: 16px;
    width: 100%;
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon-circle svg {
    width: 32px;
    height: 32px;
}

.profile-empty-state h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-empty-state p {
    color: var(--text-secondary);
}

/* ==================== 13. GENERAL MODAL OVERLAYS ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    width: 100%;
    background: var(--bg-panel);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    flex-grow: 1;
}

.modal-close-btn {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-primary);
    padding: 4px;
}

.modal-action-btn {
    color: var(--text-link);
    font-weight: 600;
}

/* Circular SVG Character Progress bar styles */
circle {
    transition: stroke-dashoffset 0.15s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* ==================== 14. MODAL: EDIT PROFILE ==================== */
.edit-profile-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
}

.form-group input, .form-group textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

.form-group textarea {
    height: 90px;
    resize: none;
}

/* ==================== 15. MODAL: COMMENTS DETAILS ==================== */
.comments-modal-details {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.comments-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.comments-header-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.comments-header-info .username {
    font-weight: 700;
}

.comments-header-info .location {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comments-list-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-row {
    display: flex;
    align-items: flex-start;
}

.comment-row img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid var(--border-color);
}

.comment-content {
    flex-grow: 1;
    word-break: break-word;
}

.comment-content .username {
    font-weight: 700;
    margin-right: 8px;
}

.comment-content .comment-text {
    line-height: 1.4;
}

.comment-meta {
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    display: flex;
    gap: 12px;
}

.comment-meta button {
    font-weight: 600;
}

.comment-like-btn {
    padding: 4px;
    color: var(--text-secondary);
}

.comment-like-btn svg {
    width: 14px;
    height: 14px;
}

.comments-footer-stats {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.comments-actions-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comments-input-row {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-input-row input {
    flex-grow: 1;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 24px;
}

.comment-post-btn {
    color: var(--text-link);
    font-weight: 600;
    transition: opacity 0.2s;
}

.comment-post-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.comments-close-btn {
    position: absolute;
    top: 10px;
    right: -45px;
    color: white;
    font-size: 2.2rem;
}

/* ==================== 16. RESPONSIVE MEDIA QUERIES ==================== */

@media (max-width: 1100px) {
    #main-content {
        padding: 20px;
    }
}

@media (max-width: 991px) {
    #sidebar {
        width: 72px;
        padding: 25px 0 20px 0;
        align-items: center;
    }
    
    .logo-container {
        padding: 0 0 30px 0;
    }
    
    .logo-text {
        width: 32px;
        overflow: hidden;
        white-space: nowrap;
    }

    .nav-label {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        transform: none !important;
    }
    
    #main-content {
        margin-left: 72px;
    }
    
    .feed-layout {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .suggestions-column {
        display: none;
    }
}

@media (max-width: 767px) {
    #sidebar {
        display: none;
    }
    
    #bottom-nav {
        display: flex;
    }
    
    #main-content {
        margin-left: 0;
        padding: 12px 12px 75px 12px;
    }
    
    .header-logo-mobile {
        display: block;
    }
    
    .feed-layout {
        max-width: 100%;
    }
    
    .profile-header {
        padding: 20px 10px;
        margin-bottom: 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar-container {
        margin-right: 0;
        margin-bottom: 16px;
        width: 100px;
    }
    
    .avatar-gradient-border {
        width: 100px;
        height: 100px;
    }
    
    .profile-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .profile-title-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .profile-tabs {
        gap: 30px;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 150px);
    }
    
    .messages-container.chat-open .inbox-sidebar {
        display: none;
    }
    .messages-container.chat-open .chat-area {
        display: flex;
    }
    
    .comments-close-btn {
        right: 10px;
        top: 10px;
        color: var(--text-primary);
    }
}

/* ==================== PROFILE SETUP MODAL ==================== */
.profile-setup-modal {
    max-width: 420px;
    width: 90%;
    padding: 36px 32px;
    text-align: center;
    border-radius: var(--border-radius-lg) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.setup-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
}

.setup-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text-accent);
    position: relative;
    z-index: 1;
}

.setup-avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.35;
    filter: blur(10px);
    z-index: 0;
}

.setup-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.setup-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.setup-subtitle strong {
    color: var(--text-accent);
}

.setup-field-group {
    width: 100%;
    text-align: left;
    margin-bottom: 24px;
}

.setup-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 8px;
}

.setup-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.25s;
    box-sizing: border-box;
}

.setup-input:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.setup-hint {
    font-size: 0.78rem;
    color: var(--text-muted, var(--text-secondary));
    margin-top: 6px;
    opacity: 0.7;
}

.setup-continue-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}

.setup-continue-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
#toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ns-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-primary);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    max-width: 340px;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: auto;
}

.ns-toast.toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ns-toast-success {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.ns-toast-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.ns-toast-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-msg {
    line-height: 1.4;
}

/* ==================== ENHANCED SETUP MODAL ADDITIONS ==================== */
.setup-fields-scroll {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 20px;
}

.setup-fields-scroll::-webkit-scrollbar { width: 6px; }
.setup-fields-scroll::-webkit-scrollbar-thumb { background: #1b3b6f; border-radius: 4px; }

.setup-fields-scroll .setup-field-group {
    margin-bottom: 16px;
}

.setup-textarea {
    resize: vertical;
    min-height: 72px;
    font-family: var(--font-body);
    line-height: 1.5;
}

.required-star {
    color: #ef4444;
    font-weight: 700;
}

.optional-tag {
    font-size: 0.73rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.75;
    text-transform: none;
    letter-spacing: 0;
}

/* ==================== HEADER USER INFO ==================== */
.header-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-email {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.75;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== CLICKABLE AUTHORS ==================== */
.clickable-author {
    cursor: pointer;
}

.clickable-author:hover {
    opacity: 0.8;
    text-decoration: underline;
}

img.clickable-author:hover {
    opacity: 0.85;
    text-decoration: none;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* ==================== USER PROFILE SIDE PANEL ==================== */
.user-profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.user-profile-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.user-profile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 95vw;
    height: 100vh;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
    border-right: none;
    padding: 0;
}

.user-profile-panel.open {
    transform: translateX(0);
}

.user-profile-panel::-webkit-scrollbar { width: 6px; }
.user-profile-panel::-webkit-scrollbar-thumb { background: #1b3b6f; border-radius: 4px; }

.up-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    z-index: 1;
}

.up-panel-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
}

.up-close-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.up-close-btn:hover { background: var(--bg-panel-hover); }
.up-close-btn svg { width: 18px; height: 18px; }

.up-edit-action-btn {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.up-edit-action-btn:hover { opacity: 0.85; }

.up-profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px 16px;
}

.up-avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

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

.up-identity { flex: 1; min-width: 0; }

.up-display-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
    word-break: break-word;
}

.up-email-badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-all;
}

.up-bio-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    padding: 0 20px 16px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.up-phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(168, 85, 247, 0.06);
    border-bottom: 1px solid var(--border-color);
}

.up-private-lock {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-accent);
    background: rgba(168, 85, 247, 0.12);
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

.up-phone-num {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.up-stats-row {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.up-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.up-stat strong {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.up-stat span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.up-posts-section {
    flex: 1;
    padding: 16px 20px;
}

.up-section-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin: 0 0 14px;
}

.up-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.up-post-card {
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.up-post-card p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
}

.up-post-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Post Options Dropdown Menu */
.post-card-header {
    position: relative;
}

.post-options-dropdown {
    position: absolute;
    right: 16px;
    top: 48px;
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    width: 170px;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: background-color 0.2s, color 0.2s;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--bg-panel-hover);
}

.dropdown-item.danger {
    color: #ef4444;
}

.dropdown-item.danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Archived Post Card inside Archive Modal */
.archived-post-card {
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.archived-post-card:hover {
    border-color: var(--border-color-active);
    transform: translateY(-2px);
}

.archived-post-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
}

.archived-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.archived-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.archived-btn.unarchive {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.archived-btn.unarchive:hover {
    background-color: var(--bg-panel-hover);
    border-color: var(--border-color-active);
}

.archived-btn.delete {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.archived-btn.delete:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

/* Background Video and Overlay Styles */
html {
    background-color: #050508 !important;
}

body.dark-theme, body.light-theme {
    background-color: transparent !important;
}

#bg-video {
    position: fixed;
    top: 50%;
    right: 0;
    left: auto;
    width: auto;
    height: 100vh;
    z-index: -2;
    transform: translateY(-50%);
    object-fit: contain; /* Fit fully without zoom or cropping */
    filter: brightness(0.65) contrast(1.1); /* Increased brightness */
    pointer-events: none;
}

/* Dark ambient royal blue overlay for dark theme */
body.dark-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 11, 25, 0.41); /* 50% less dark overlay */
    backdrop-filter: blur(2px); /* Soft blend */
    -webkit-backdrop-filter: blur(2px);
    z-index: -1;
    pointer-events: none;
}

/* Light ambient royal blue overlay for light theme */
body.light-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(224, 235, 255, 0.7); /* Ambient light royal blue tint */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: -1;
    pointer-events: none;
}




