:root {
    --bitcoin-orange: #f7931a;
    --bitcoin-dark: #e8841a;
    --purple-accent: #8b5cf6;
    --purple-primary: #a855f7;
    --purple-dark: #7c3aed;
    --purple-light: #c084fc;
    --pink-accent: #ec4899;
    --bg-dark: #0f0f1e;
    --bg-mid: #1a1a2e;
    --bg-purple: #2d1b4e;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
    --success-green: #10b981;
    --error-red: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-purple) 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Main page scrollbar styling */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--pink-accent), var(--purple-primary));
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--purple-primary) rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--pink-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2em;
}

.navbar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--purple-primary) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.btn-bitcoin {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    color: white;
    border: none;
}

.btn-bitcoin:hover {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 100%);
    color: white;
    transform: translateY(-2px);
}

.btn-profile {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-profile:hover {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%) !important;
    border-color: var(--purple-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.profile-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.feed-container {
    max-height: 600px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

/* NSFW Content Filter */
.nsfw-wrapper {
    position: relative;
    min-height: 200px;
}

.nsfw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nsfw-warning {
    text-align: center;
    padding: 30px;
}

.nsfw-warning i {
    font-size: 3rem;
    color: var(--purple-primary);
    margin-bottom: 15px;
}

.nsfw-warning h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.nsfw-warning p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.nsfw-content {
    transition: filter 0.3s ease;
}

.feed-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--purple-primary);
}

.feed-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feed-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.feed-author-name {
    font-weight: bold;
    color: var(--purple-primary);
}

.feed-time {
    color: #999;
    font-size: 0.85em;
}

.feed-content {
    color: #fff;
    line-height: 1.6;
    word-break: break-word;
    margin-bottom: 10px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.feed-content:hover {
    background: rgba(168, 85, 247, 0.1);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}

.feed-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-icon {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.1em;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    gap: 6px;
    position: relative;
}

.action-icon:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--purple-primary);
    transform: scale(1.1);
}

.action-icon.active {
    color: var(--purple-primary);
}

.action-icon.interaction-active {
    color: var(--bitcoin-orange);
    background: rgba(247, 147, 26, 0.1);
}

.action-icon.interaction-active:hover {
    background: rgba(247, 147, 26, 0.2);
    color: var(--bitcoin-orange);
}

.action-count {
    font-size: 0.8em;
    color: #999;
    font-weight: 500;
}

/* Icon-only buttons for conversation modal */
.action-icon-compact {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.1em;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    gap: 6px;
    position: relative;
}

.action-icon-compact:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--purple-primary);
    transform: scale(1.1);
}

.action-icon-compact.active {
    color: var(--purple-primary);
}

.reply-box {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: none;
}

.reply-box.show {
    display: block;
}

.emoji-picker {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.emoji-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background: rgba(168, 85, 247, 0.3);
    transform: scale(1.1);
}

.stats-badge {
    background: rgba(168, 85, 247, 0.2);
    color: var(--purple-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.profile-picture-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--purple-primary);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--purple-primary);
    animation: spin 1s ease-in-out infinite;
}

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

.feed-container::-webkit-scrollbar {
    width: 8px;
}

.feed-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.feed-container::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 10px;
}

/* Reply textarea scrollbar styling */
textarea::-webkit-scrollbar {
    width: 6px;
}

textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: var(--pink-accent);
}

/* Firefox scrollbar for textareas */
textarea {
    scrollbar-width: thin;
    scrollbar-color: var(--purple-primary) rgba(0, 0, 0, 0.2);
}

.feed-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.feed-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.feed-tab.active {
    background: var(--purple-primary);
    border-color: var(--purple-primary);
    color: white;
}

.feed-tab:hover:not(.active) {
    background: rgba(168, 85, 247, 0.2);
}

@media (max-width: 768px) {
    .feed-switcher {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .feed-tab {
        flex: 1 1 auto;
        min-width: 0;
        padding: 8px 6px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .feed-tab i {
        font-size: 0.9rem;
    }
}

.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        display: none;
    }
}

/* Image rendering styles */
.feed-image {
    max-width: 100%;
    max-height: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    object-fit: contain;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.feed-image:hover {
    border-color: var(--purple-primary);
}

.feed-video {
    max-width: 100%;
    max-height: 500px;
    width: 100%;
    border-radius: 8px;
    margin: 10px 0;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.feed-video:hover {
    border-color: var(--purple-primary);
}

/* Link styles */
.feed-link {
    color: var(--purple-primary);
    text-decoration: none;
    word-break: break-all;
}

.feed-link:hover {
    text-decoration: underline;
    color: var(--purple-light);
}

/* Quoted note styles */
.quoted-note {
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--purple-primary);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Profile reference styles */
.profile-reference {
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--purple-accent);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.profile-reference-header {
    color: var(--purple-accent);
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-reference-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.quoted-note-header {
    color: var(--purple-primary);
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quoted-note-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.quoted-note-author {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--purple-primary);
    font-size: 0.95em;
}

.quoted-note-author img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.quoted-note-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.quoted-note-actions {
    display: flex;
    justify-content: flex-end;
}

.quoted-note-actions .btn {
    font-size: 0.85em;
    padding: 4px 12px;
}

.quoted-note-footer {
    margin-top: 8px;
    text-align: right;
}

/* Conversation Modal Styles */
#conversationModal img {
    max-width: 100% !important;
    max-height: 300px !important;
    height: auto !important;
    object-fit: contain !important;
}

#conversationModal .conversation-avatar {
    max-width: 40px !important;
    max-height: 40px !important;
}

.conversation-content .feed-image {
    display: block !important;
    max-width: 100% !important;
    max-height: 300px !important;
    width: auto !important;
    height: auto !important;
    margin: 10px 0 !important;
    border-radius: 8px !important;
}

.conversation-content .feed-video {
    display: block !important;
    max-width: 100% !important;
    max-height: 400px !important;
    width: 100% !important;
    margin: 10px 0 !important;
    border-radius: 8px !important;
}

.conversation-note {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.conversation-note:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
}

.conversation-note.highlighted {
    background: rgba(168, 85, 247, 0.15);
    border: 2px solid var(--purple-primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.conversation-note .conversation-avatar,
#conversationModal .conversation-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-block !important;
}

.conversation-note .conversation-avatar:hover {
    transform: scale(1.05);
}

.conversation-author {
    color: var(--purple-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.conversation-author:hover {
    color: var(--purple-light);
    text-decoration: underline;
}

.conversation-content {
    color: var(--text-primary);
    line-height: 1.6;
    word-break: break-word;
    font-size: 0.95rem;
    margin-top: 8px;
}

.conversation-note:not(.highlighted) .conversation-content {
    cursor: pointer;
    transition: background 0.2s ease;
}

.conversation-note:not(.highlighted) .conversation-content:hover {
    background: rgba(168, 85, 247, 0.1);
    border-radius: 4px;
    padding: 4px;
    margin: 4px -4px;
}

.conversation-context {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid rgba(168, 85, 247, 0.5);
    margin-bottom: 20px;
}

.conversation-context > div:first-child {
    color: var(--purple-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversation-replies {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid rgba(59, 130, 246, 0.5);
    margin-top: 20px;
}

.conversation-replies > div:first-child {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#conversationThread {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Hide the modal-body scrollbar, use #conversationThread scrollbar only */
#conversationModal .modal-body::-webkit-scrollbar {
    display: none;
}

#conversationModal .modal-body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#conversationThread::-webkit-scrollbar {
    width: 8px;
}

#conversationThread::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#conversationThread::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 10px;
}

#conversationThread::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

.conversation-note .d-flex.align-items-start {
    gap: 12px;
}

.conversation-note .flex-grow-1 {
    min-width: 0;
    flex: 1;
}

.conversation-note .text-muted {
    font-size: 0.85rem;
    opacity: 0.7;
}

.conversation-note .badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    font-weight: 600;
}

/* Follow Packs Styles (No Modal Version) */
#followPacksContainer {
    padding: 20px 0;
}

.follow-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.follow-pack-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pack-cover-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pack-cover-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.pack-author-avatar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1;
    object-fit: cover;
}

.pack-card-content {
    padding: 16px;
}

.pack-description {
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4em;
}

.pack-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.follow-pack-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.follow-pack-card.selected {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--purple-primary);
}

.follow-pack-card .form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0;
    cursor: pointer;
}

.follow-pack-card .form-check-input:checked {
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
}

.follow-packs-grid::-webkit-scrollbar {
    width: 8px;
}

.follow-packs-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.follow-packs-grid::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 10px;
}

.follow-packs-grid::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}

#otherProfileActions .btn {
    width: 100%;
}

/* ADD THESE STYLES TO THE END OF YOUR styles.css */

/* Pack user container */
.pack-users-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pack-users-container::-webkit-scrollbar {
    width: 6px;
}

.pack-users-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.pack-users-container::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 10px;
}

/* Individual user card */
.pack-user-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pack-user-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(168, 85, 247, 0.3);
}

.pack-user-card.selected {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--purple-primary);
}

.pack-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pack-user-name {
    font-weight: 600;
    color: var(--purple-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pack-user-bio {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Expand/collapse arrow */
.follow-pack-card h5 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge adjustments */
.follow-pack-card .badge {
    font-size: 0.75em;
}

.badge.bg-success {
    background-color: var(--success-green) !important;
}

.badge.bg-primary {
    background-color: #3b82f6 !important;
}/* ADD THESE STYLES TO THE END OF YOUR styles.css */

/* Pack user container */
.pack-users-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pack-users-container::-webkit-scrollbar {
    width: 6px;
}

.pack-users-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.pack-users-container::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 10px;
}

/* Individual user card */
.pack-user-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pack-user-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(168, 85, 247, 0.3);
}

.pack-user-card.selected {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--purple-primary);
}

.pack-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pack-user-name {
    font-weight: 600;
    color: var(--purple-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pack-user-bio {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Expand/collapse arrow */
.follow-pack-card h5 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge adjustments */
.follow-pack-card .badge {
    font-size: 0.75em;
}

.badge.bg-success {
    background-color: var(--success-green) !important;
}

.badge.bg-primary {
    background-color: #3b82f6 !important;
}
/* Profile View Styles - Display profiles in feed area */
#profileViewContainer {
    display: none;
}

.profile-view-header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 100%;
}

.profile-banner {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-mid);
}

.profile-info-section {
    padding: 20px;
    margin-top: -60px;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.profile-info-wrapper {
    display: block;
    margin-bottom: 20px;
}

.profile-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-details {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.profile-view-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.profile-feed-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.text-purple {
    color: var(--purple-primary);
}

@media (max-width: 768px) {
    .profile-banner {
        height: 150px;
    }
    
    #profileViewContainer {
        max-width: 100%;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }
    
    .profile-info-section {
        padding: 15px;
        margin-top: -40px;
    }
    
    .profile-info-wrapper {
        margin-bottom: 15px;
    }
    
    .profile-avatar-container {
        margin-bottom: 15px;
    }
    
    .profile-details {
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .profile-details h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 10px;
    }
    
    .profile-details p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        margin-left: 0;
        margin-right: 0;
    }
    
    .profile-details a {
        word-break: break-all;
        overflow-wrap: anywhere;
        display: inline;
    }
    
    .profile-view-picture {
        width: 80px;
        height: 80px;
    }
    
    .stats-badge {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
    
    .profile-view-header .btn-sm {
        font-size: 0.85rem;
        padding: 6px 12px;
        flex: 1 1 auto;
        min-width: 120px;
        max-width: calc(50% - 4px);
    }
}

/* Hero Section Styles */
.hero-section {
    text-align: center;
    padding: 40px 20px 40px;
    animation: fadeIn 1.5s ease-in;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--pink-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: slideDown 1s ease-out;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--purple-light);
    margin-bottom: 30px;
    animation: slideUp 1s ease-out;
}

.login-button {
    font-size: 1.2rem;
    color: #e9d5ff;
    padding: 15px 50px;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid var(--purple-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.login-button:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.8); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1.2rem;
    }
    .login-button {
        font-size: 1rem;
        padding: 12px 30px;
    }
}

/* MOBILE COMPOSE - Simple and bulletproof */

/* Step 1: Hide by default everywhere */
#floatingComposeBtn,
#composeOverlay {
    display: none !important;
}

/* Step 2: Only show on mobile when user is logged in */
@media (max-width: 768px) {
    body.user-logged-in #floatingComposeBtn {
        display: flex !important;
        position: fixed;
        bottom: 30px;
        left: 30px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
        cursor: pointer;
        z-index: 1000;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    body.user-logged-in #composeOverlay {
        display: none !important; /* Still hidden until clicked */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 1001;
        align-items: flex-end;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    body.user-logged-in #composeOverlay.show {
        display: flex !important;
        opacity: 1;
    }
    
    body.user-logged-in .compose-slide-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 20px 20px;
    }
    
    body.user-logged-in #composeOverlay.show .compose-slide-container {
        transform: translateY(0);
    }
    
    body.user-logged-in .compose-slide-container .card {
        border-radius: 20px 20px 0 0;
        border: 2px solid var(--purple-accent);
        box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.3);
    }
    
    /* Hide desktop compose card on mobile */
    #desktopComposeCard {
        display: none !important;
    }
}

/* Step 3: Force hide on desktop always */
@media (min-width: 769px) {
    #floatingComposeBtn,
    #composeOverlay,
    #composeOverlay.show {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Image size */
#floatingComposeBtn img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: cover !important;
    filter: brightness(1.1);
}


/* ========================================
   MOBILE SIDEBAR - MOBILE ONLY
   ======================================== */

@media (max-width: 991px) {
    /* Mobile menu bar - hidden by default */
    .mobile-menu-bar {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background: transparent;
        display: none !important;
        align-items: center;
        justify-content: space-between;
        padding: 8px 20px;
    }
    
    /* Only show when logged in on mobile */
    body.user-logged-in .mobile-menu-bar {
        display: flex !important;
    }
    
    /* Hide main navbar on mobile when logged in */
    body.user-logged-in #mainNavbar {
        display: none !important;
    }
    
    .mobile-menu-btn {
        background: transparent;
        border: none;
        color: var(--purple-accent);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-btn:hover {
        color: var(--purple-light);
    }
    
    .mobile-menu-btn i {
        font-size: 1.3rem;
    }
    
    .mobile-menu-icons {
        display: flex;
        gap: 15px;
        align-items: center;
    }
    
    .mobile-icon-btn {
        background: transparent;
        border: none;
        color: var(--purple-accent);
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        display: flex;
        align-items: center;
    }
    
    .mobile-icon-btn:hover {
        color: var(--purple-light);
    }
    
    .mobile-icon-btn i {
        font-size: 1.2rem;
    }
    
    /* Sidebar hidden off-screen on mobile */
    .mobile-sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 85% !important;
        max-width: 350px !important;
        height: 100vh !important;
        background: rgba(15, 15, 15, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        z-index: 1050 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5) !important;
        padding: 20px 15px 100px 15px !important;
    }
    
    /* Hide scrollbar on mobile */
    .mobile-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-sidebar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .mobile-sidebar.open {
        left: 0 !important;
    }
    
    /* Fix text overflow in mobile sidebar */
    .mobile-sidebar #nip05 {
        word-break: break-all;
        overflow-wrap: break-word;
        font-size: 0.75rem;
    }
    
    .mobile-sidebar .stats-badge {
        font-size: 0.85rem;
        padding: 4px 12px;
    }
    
    .mobile-sidebar .d-flex.gap-3 {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    /* Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Close button in sidebar on mobile */
    .sidebar-close-btn {
        display: flex !important;
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(139, 92, 246, 0.2);
        border: 1px solid var(--purple-accent);
        color: white;
        font-size: 1.3rem;
        cursor: pointer;
        z-index: 10;
        padding: 5px;
        line-height: 1;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-close-btn:hover {
        background: var(--purple-accent);
    }
}

/* Desktop - only hide mobile-specific elements */
@media (min-width: 992px) {
    .mobile-menu-bar,
    .mobile-menu-btn,
    .mobile-icon-btn,
    .sidebar-overlay,
    .sidebar-close-btn {
        display: none !important;
    }
}

/* Search Bar Styles */
.search-container {
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

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

.search-result-item:hover {
    background: rgba(168, 85, 247, 0.2);
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.search-result-name {
    color: var(--purple-primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-npub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: monospace;
}

.search-loading {
    padding: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.search-error {
    padding: 12px;
    text-align: center;
    color: var(--error-red);
    font-size: 0.9rem;
}

/* Hashtag Styles */
.hashtag-link {
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hashtag-link:hover {
    color: var(--purple-light);
    text-decoration: underline;
}

.hashtag-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--purple-primary);
    border-radius: 8px;
    margin-bottom: 15px;
}

.hashtag-text {
    color: var(--purple-primary);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hashtag-text i {
    font-size: 1.2rem;
}

.hashtag-indicator .btn {
    font-size: 0.9rem;
    padding: 5px 12px;
}

@media (max-width: 768px) {
    .hashtag-indicator {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hashtag-text {
        font-size: 1rem;
    }
    
    .hashtag-indicator .btn {
        width: 100%;
    }
}

/* ========================================
   MARKETPLACE STYLES
   ======================================== */

.marketplace-container {
    padding: 20px 0;
}

.marketplace-header {
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple-primary);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    max-width: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.product-image img {
    display: none;
}

.product-info {
    padding: 15px;
}

.product-info img {
    max-width: 100%;
}

.product-name {
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    color: var(--purple-primary);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h6 {
    color: white;
    margin-bottom: 5px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls span {
    color: white;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary h5 {
    color: var(--purple-primary);
    margin-bottom: 20px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.product-merchant {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
    margin: -6px -6px 8px -6px;
}

.product-merchant:hover {
    background: rgba(168, 85, 247, 0.2);
}

.product-merchant-avatar {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.product-merchant-name {
    font-size: 0.85rem;
    color: var(--purple-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Photography Grid Styles */
.photography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.photo-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photo-card:hover {
    transform: scale(1.05);
}

.photo-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-mid);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: white;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .photography-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* Music/Audio Grid Styles */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

.audio-card {
    background: var(--bg-mid);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.audio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

.audio-artwork {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.audio-artwork .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.audio-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 3rem;
    color: white;
}

.audio-info {
    padding: 12px;
}

.audio-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* Global Photography Feed Styles */
.global-photo-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-mid);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.photo-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.photo-author:hover {
    background: rgba(168, 85, 247, 0.2);
}

.photo-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.photo-author-name {
    color: var(--purple-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.global-photo-card .photo-image {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
    cursor: pointer;
    position: relative;
}


/* Mobile responsive for follow packs */
@media (max-width: 768px) {
    .follow-packs-grid {
        padding-right: 0;
    }
    
    .follow-pack-card {
        margin-bottom: 10px;
    }
    
    .pack-card-content {
        padding: 12px;
    }
    
    .pack-description {
        font-size: 0.85rem;
    }
}


/* Ensure follow packs container displays properly */
#followPacksContainer {
    min-height: 400px;
}

#followPacksContent {
    width: 100%;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.plume-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 0.95rem;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.plume-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.plume-toast.fade-out {
    transform: translateX(120%);
    opacity: 0;
}

.plume-toast-success {
    border-image: linear-gradient(135deg, var(--purple-primary), var(--pink-accent)) 1;
    border-radius: 16px;
}

.plume-toast-error {
    border-color: var(--error-red);
}

.plume-toast-warning {
    border-color: #f59e0b;
}

.plume-toast-info {
    border-image: linear-gradient(135deg, var(--purple-primary), var(--pink-accent)) 1;
    border-radius: 16px;
}

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

.plume-toast-success .toast-icon {
    color: var(--success-green);
}

.plume-toast-error .toast-icon {
    color: var(--error-red);
}

.plume-toast-warning .toast-icon {
    color: #f59e0b;
}

.plume-toast-info .toast-icon {
    color: var(--purple-primary);
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .plume-toast {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
}

/* Mention Autocomplete Dropdown */
.mention-dropdown {
    display: none;
    position: absolute;
    z-index: 1050;
    background: var(--bg-mid);
    border: 1px solid var(--purple-primary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mention-dropdown .mention-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 10px !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

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

.mention-dropdown .mention-item:hover,
.mention-dropdown .mention-item.selected {
    background: rgba(168, 85, 247, 0.2);
}

.mention-dropdown .mention-item img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.mention-dropdown .mention-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
    overflow: hidden;
}

.mention-dropdown .mention-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mention-dropdown .mention-nip05 {
    font-size: 0.75rem;
    color: var(--purple-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mention-dropdown .mention-item.loading .mention-name {
    color: var(--text-secondary);
}

.mention-dropdown .mention-loading-icon {
    color: var(--purple-primary);
    animation: pulse 1s infinite;
    flex-shrink: 0;
}

.mention-dropdown .mention-item.mention-loading {
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 10px 12px;
}

.mention-dropdown .mention-item.mention-loading i {
    margin-right: 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile adjustments for mention dropdown */
@media (max-width: 768px) {
    .mention-dropdown {
        max-height: 180px;
    }
    
    .mention-dropdown .mention-item {
        padding: 10px 12px !important;
    }
    
    .mention-dropdown .mention-item img {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
}
    
    .mention-item img {
        width: 32px;
        height: 32px;
    }
}

/* Video/Shorts Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.video-card {
    background: var(--bg-mid);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
    border-color: var(--purple-primary);
}

.video-thumb-container {
    position: relative;
    width: 100%;
    background: #000;
    cursor: pointer;
}

.video-poster {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-poster-horizontal {
    aspect-ratio: 16/9;
    max-height: 500px;
}

.video-play-btn {
    width: 70px;
    height: 70px;
    background: rgba(168, 85, 247, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-btn i {
    font-size: 2rem;
    color: white;
    margin-left: 4px;
}

.video-thumb-container:hover .video-play-btn {
    transform: scale(1.1);
    background: rgba(168, 85, 247, 1);
}

.video-player {
    width: 100%;
    max-height: 400px;
    display: block;
    background: #000;
}

.video-player-horizontal {
    max-height: 500px;
    aspect-ratio: 16/9;
    object-fit: contain;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
}

.video-info {
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.video-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.video-author-avatar:hover {
    opacity: 0.8;
}

.video-meta {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.video-author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-player {
        max-height: 70vh;
    }
    
    .video-info {
        padding: 10px;
    }
    
    .video-author-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Horizontal video grid (longer-form) */
.video-grid-horizontal {
    grid-template-columns: 1fr;
    max-width: 900px;
}

/* Pack Modal Styles */
.pack-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pack-modal-overlay.visible {
    opacity: 1;
}

.pack-modal-content {
    background: linear-gradient(135deg, #1a1025 0%, #2d1f3d 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.1);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.pack-modal-content.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pack-modal-header {
    position: relative;
    padding: 60px 20px 20px;
    background-size: cover;
    background-position: center;
    min-height: 120px;
}

.pack-modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(26, 16, 37, 0.95) 100%);
}

.pack-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pack-modal-close:hover {
    background: rgba(168, 85, 247, 0.6);
}

.pack-modal-title {
    position: relative;
    z-index: 1;
}

.pack-modal-title h4 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pack-modal-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.pack-modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.pack-modal-controls .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pack-modal-controls .form-check-input {
    margin: 0;
}

.pack-modal-controls .form-check-input:checked {
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
}

.pack-modal-controls .selected-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.pack-modal-users {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.pack-modal-users::-webkit-scrollbar {
    width: 8px;
}

.pack-modal-users::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.pack-modal-users::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 4px;
}

.pack-modal-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pack-modal-user:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.pack-modal-user.selected {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--purple-primary);
}

.pack-modal-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pack-modal-user-info {
    flex: 1;
    min-width: 0;
}

.pack-modal-user-name {
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.pack-modal-user-bio {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pack-modal-user .form-check-input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.pack-modal-user .form-check-input:checked {
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
}

.pack-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

@media (max-width: 768px) {
    .follow-packs-grid {
        grid-template-columns: 1fr;
    }
    
    .pack-modal-content {
        max-height: 90vh;
        margin: 10px;
    }
    
    .pack-modal-header {
        padding: 50px 16px 16px;
        min-height: 100px;
    }
    
    .pack-modal-title h4 {
        font-size: 1.25rem;
    }
}

/* Media Upload Styles */
.bg-purple {
    background: linear-gradient(90deg, var(--purple-primary), var(--pink-accent)) !important;
}

.media-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-preview {
    animation: fadeIn 0.2s ease;
}

.media-preview-thumb {
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#uploadProgress, #uploadProgressMobile {
    border-radius: 4px;
}

#uploadProgress .progress, #uploadProgressMobile .progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

#uploadMediaBtn, #uploadMediaBtnMobile {
    cursor: pointer;
    transition: all 0.2s ease;
}

#uploadMediaBtn:hover, #uploadMediaBtnMobile:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--purple-primary);
    color: var(--purple-primary);
}

/* Feed Navigation Buttons */
.feed-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-feed-nav {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #fff;
    transition: all 0.2s ease;
}

.btn-feed-nav:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: var(--purple-primary);
    color: #fff;
}

.btn-feed-nav.active {
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    border-color: var(--pink-accent);
    color: #fff;
}

.btn-feed-nav i {
    margin-right: 4px;
}

@media (max-width: 576px) {
    .feed-nav-buttons {
        gap: 6px;
    }
    
    .feed-nav-buttons .btn {
        padding: 6px 10px;
        font-size: 1rem;
    }
    
    .feed-nav-buttons .nav-label {
        display: none;
    }
}

/* Notifications Overlay */
.notifications-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 15px 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    overflow-y: auto;
}

.notifications-overlay.show {
    opacity: 1;
    visibility: visible;
}

.notifications-overlay-content {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.notifications-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notifications-overlay-header h5 {
    margin: 0;
    color: var(--text-primary);
}

#notificationsOverlayContent {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
}

#notificationsOverlayContent .notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#notificationsOverlayContent .notification-item {
    overflow: hidden;
    word-break: break-word;
}

@media (max-width: 576px) {
    .notifications-overlay {
        padding: 50px 10px 10px;
    }
    
    .notifications-overlay-content {
        max-height: calc(100vh - 70px);
        border-radius: 12px;
    }
}

/* ===== PUBLIC PROFILE PREVIEW ===== */

/* Search Section in Hero */
.public-search-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    animation: fadeIn 1.5s ease-in;
}

.public-search-title {
    color: var(--purple-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.public-search-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.public-search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.public-search-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 25px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.public-search-input:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.public-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.public-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 30, 0.98);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    margin-top: 8px;
    padding: 8px;
    z-index: 100;
    display: none;
    backdrop-filter: blur(10px);
}

.public-search-results.show {
    display: block;
}

.public-search-result {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.public-search-result:hover {
    background: rgba(168, 85, 247, 0.2);
}

.public-result-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(168, 85, 247, 0.5);
}

.public-result-info {
    flex: 1;
    text-align: left;
}

.public-result-name {
    color: var(--purple-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.public-result-npub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: monospace;
}

.public-result-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.public-search-loading,
.public-search-hint,
.public-search-error {
    padding: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.public-search-error {
    color: var(--error-red);
}

.public-search-hint i {
    margin-right: 6px;
    color: var(--purple-light);
}

/* Profile Overlay */
.public-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.public-profile-overlay.show {
    display: flex;
}

.public-profile-modal {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.public-profile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.public-profile-close:hover {
    background: rgba(168, 85, 247, 0.6);
    border-color: var(--purple-primary);
}

.public-profile-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.public-profile-scroll::-webkit-scrollbar {
    width: 8px;
}

.public-profile-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.public-profile-scroll::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 4px;
}

.public-profile-footer {
    padding: 12px 20px;
    background: rgba(168, 85, 247, 0.1);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
}

.public-profile-footer i {
    color: var(--purple-light);
    margin-right: 6px;
}

/* Profile Header */
.public-profile-loading {
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.public-profile-header {
    position: relative;
}

.public-profile-banner {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-purple);
}

.public-profile-info {
    padding: 0 20px 20px;
    text-align: center;
    margin-top: -50px;
    position: relative;
}

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

.public-profile-name {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 12px 0 5px;
}

.public-profile-nip05 {
    color: var(--purple-primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.public-profile-nip05 i {
    color: var(--success-green);
}

.public-profile-website,
.public-profile-ln {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.public-profile-website {
    color: var(--purple-light);
}

.public-profile-ln {
    color: #f7931a;
}

.public-profile-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 12px 0;
    line-height: 1.5;
}

.public-profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.public-stat {
    background: rgba(168, 85, 247, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--purple-light);
    font-size: 0.85rem;
}

.public-stat span {
    font-weight: 600;
    color: #fff;
}

/* Profile Tabs */
.public-profile-tabs {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    flex-wrap: nowrap;
}

.public-profile-tabs::-webkit-scrollbar {
    height: 4px;
}

.public-profile-tabs::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 2px;
}

.public-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.public-tab:hover {
    background: rgba(168, 85, 247, 0.2);
}

.public-tab.active {
    background: var(--purple-primary);
    border-color: var(--purple-primary);
    color: #fff;
}

.public-tab i {
    margin-right: 5px;
}

/* Profile Content */
.public-profile-content {
    padding: 15px;
}

.public-loading {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.public-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 30px;
}

/* Posts */
.public-post {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
}

.public-post-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.public-post-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.public-link {
    color: var(--purple-light);
    word-break: break-all;
}

.public-hashtag {
    color: var(--purple-primary);
    font-weight: 500;
}

/* Grid layouts */
.public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.public-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.public-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.public-card-placeholder {
    width: 100%;
    height: 120px;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    font-size: 2rem;
}

.public-card-body {
    padding: 10px;
}

.public-card-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-card-price {
    color: #f7931a;
    font-size: 0.8rem;
    margin: 5px 0 0;
}

/* Photo Grid */
.public-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.public-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.public-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Audio Items */
.public-audio-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 10px;
}

.public-audio-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
}

.public-audio-icon {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--purple-light);
    font-size: 1.4rem;
}

.public-audio-info {
    flex: 1;
    min-width: 0;
}

.public-audio-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-audio-artist,
.public-audio-duration {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 3px;
}

/* Video Grid */
.public-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.public-video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.public-video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.5);
}

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

.public-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    font-size: 2rem;
}

.public-video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.public-video-title {
    padding: 10px;
    color: #fff;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Shorts Grid */
.public-shorts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.public-short-card {
    aspect-ratio: 9/16;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.public-short-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-short-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .public-search-section {
        margin-top: 30px;
        padding: 20px 10px 0;
    }
    
    .public-search-container {
        max-width: 100%;
    }
    
    .public-profile-overlay {
        padding: 10px;
    }
    
    .public-profile-modal {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .public-profile-banner {
        height: 120px;
    }
    
    .public-profile-info {
        margin-top: -40px;
        padding: 0 15px 15px;
    }
    
    .public-profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .public-profile-name {
        font-size: 1.2rem;
    }
    
    .public-profile-tabs {
        padding: 8px 10px;
    }
    
    .public-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .public-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    
    .public-video-grid {
        grid-template-columns: 1fr;
    }
    
    .public-shorts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
}

/* ========================================
   MUSIC & PODCAST ITEM CARDS
   ======================================== */

.media-item-card {
    background: #000 !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    background-image: linear-gradient(#000, #000), linear-gradient(135deg, #9b59b6, #e91e63) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    margin-bottom: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-item-card:hover {
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.4);
}
