: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;
}

.navbar-about-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-about-link:hover {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.1);
}

.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;
}

/* Thread wrapper and nested replies */
.thread-wrapper {
    position: relative;
}

.thread-children {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid rgba(168, 85, 247, 0.3);
    margin-top: 10px;
}

.thread-children .conversation-note {
    background: rgba(255, 255, 255, 0.03);
}

.thread-children .thread-children {
    border-left-color: rgba(59, 130, 246, 0.3);
}

.thread-children .thread-children .thread-children {
    border-left-color: rgba(236, 72, 153, 0.3);
}

/* Small loading spinner for progressive loading */
.loading-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--purple-primary);
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* Thread toggle button styling */
[data-toggle-thread] {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

[data-toggle-thread]:hover {
    opacity: 1;
    text-decoration: none;
}

/* Parent and replies headers */
.parent-header,
.replies-header {
    color: var(--purple-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.replies-header {
    color: #3b82f6;
}

/* 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);
    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);
    border-radius: 15px 15px 0 0;
}

.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;
}

/* Shorts-specific grid: 3 columns on desktop, portrait format */
.video-grid-shorts {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 280px));
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

@media (max-width: 992px) {
    .video-grid-shorts {
        grid-template-columns: repeat(2, minmax(200px, 280px));
    }
}

.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);
}

/* Shorts card maintains portrait aspect */
.shorts-card {
    width: 100%;
}

.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;
}

/* Shorts thumbnail container */
.shorts-thumb-container {
    aspect-ratio: 9/16;
    width: 100%;
}

.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;
}

/* Shorts poster - portrait format */
.shorts-poster {
    width: 100%;
    aspect-ratio: 9/16;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Placeholder for shorts without thumbnail */
.shorts-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

.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;
    position: relative;
    z-index: 2;
}

.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;
}

/* Shorts video player - maintains portrait aspect */
.shorts-video-player {
    width: 100%;
    aspect-ratio: 9/16;
    display: block;
    background: #000;
    object-fit: contain;
}

.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;
    }
    
    /* Shorts on mobile: single column, portrait */
    .video-grid-shorts {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .shorts-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .shorts-thumb-container {
        max-height: 70vh;
    }
    
    .shorts-video-player {
        max-height: 70vh;
    }
    
    .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-post-content img.public-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.public-post-content video.public-video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
    background: #000;
}

.public-mention {
    color: var(--purple-primary);
    font-weight: 500;
    font-size: 0.85em;
    word-break: break-all;
}

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

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

/* Quoted notes in public profile */
.public-quoted-notes {
    margin-top: 12px;
}

.public-quoted-note {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

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

.public-quoted-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.public-quoted-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.public-quoted-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.public-quoted-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.public-quoted-content img.public-image {
    max-height: 200px;
}

.public-quoted-content video.public-video {
    max-height: 200px;
}

/* 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);
}

/* ========================================
   DISCOVERY CAROUSEL
   ======================================== */

.discovery-wrapper {
    margin: 16px 0;
}

.discovery-carousel {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.6) 0%, rgba(26, 16, 37, 0.8) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    overflow: hidden;
}

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

.discovery-title {
    color: var(--purple-light);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discovery-title i {
    font-size: 1.1rem;
}

.discovery-block {
    color: rgba(247, 147, 26, 0.7);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.discovery-block i {
    color: var(--bitcoin-orange);
}

.discovery-scroll {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--purple-primary) rgba(0, 0, 0, 0.2);
}

.discovery-scroll::-webkit-scrollbar {
    height: 6px;
}

.discovery-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.discovery-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--purple-primary), var(--pink-accent));
    border-radius: 3px;
}

.discovery-card {
    flex: 0 0 auto;
    width: 140px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discovery-card:hover {
    transform: translateY(-4px);
}

.discovery-card:hover .discovery-card-image {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.discovery-card-image {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.2s ease;
}

.discovery-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.discovery-card[data-category="marketplace"] .discovery-card-badge {
    background: linear-gradient(135deg, var(--bitcoin-orange), #f59e0b);
}

.discovery-card[data-category="music"] .discovery-card-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.discovery-card[data-category="podcasts"] .discovery-card-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.discovery-card[data-category="videos"] .discovery-card-badge,
.discovery-card[data-category="shorts"] .discovery-card-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.discovery-card[data-category="articles"] .discovery-card-badge {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.discovery-card-info {
    padding: 8px 4px;
    text-align: center;
}

.discovery-card-title {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.discovery-card-price {
    display: block;
    color: var(--bitcoin-orange);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

.discovery-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(168, 85, 247, 0.3);
}

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

.discovery-author-name:hover {
    color: var(--purple-primary);
    text-decoration: underline;
}

.discovery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.discovery-card-image {
    position: relative;
}

/* ===========================================
   PUBLIC DISCOVERY CAROUSEL (Logged-out view)
   =========================================== */

.public-discovery-section {
    margin-top: 30px;
    padding: 20px 0;
}

.public-discovery-title {
    color: var(--purple-light);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-discovery-carousel {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.public-discovery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.public-discovery-scroll::-webkit-scrollbar {
    height: 6px;
}

.public-discovery-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.public-discovery-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    border-radius: 3px;
}

.public-discovery-card {
    flex-shrink: 0;
    width: 130px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.public-discovery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.public-discovery-card-image {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
}

.public-discovery-card-info {
    padding: 8px;
    text-align: center;
}

.public-discovery-card-title {
    color: #e0e0e0;
    font-size: 0.75rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Public discovery badge colors - match logged-in carousel */
.public-discovery-card[data-category="photography"] .discovery-card-badge {
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
}

.public-discovery-card[data-category="marketplace"] .discovery-card-badge {
    background: linear-gradient(135deg, var(--bitcoin-orange), #f59e0b);
}

.public-discovery-card[data-category="music"] .discovery-card-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.public-discovery-card[data-category="podcasts"] .discovery-card-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.public-discovery-card[data-category="videos"] .discovery-card-badge,
.public-discovery-card[data-category="shorts"] .discovery-card-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.public-discovery-card[data-category="articles"] .discovery-card-badge {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.public-discovery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: var(--purple-light);
}

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

/* Mobile adjustments for public discovery */
@media (max-width: 768px) {
    .public-discovery-section {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .public-discovery-card {
        width: 110px;
    }
    
    .public-discovery-card-image {
        height: 85px;
    }
    
    .public-discovery-card-title {
        font-size: 0.7rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .discovery-carousel {
        border-radius: 8px;
        margin: 12px -8px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .discovery-header {
        padding: 10px 12px;
    }
    
    .discovery-title {
        font-size: 0.85rem;
    }
    
    .discovery-scroll {
        padding: 12px;
        gap: 10px;
    }
    
    .discovery-card {
        width: 120px;
    }
    
    .discovery-card-image {
        width: 120px;
        height: 120px;
    }
    
    .discovery-card-badge {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .discovery-card-title {
        font-size: 0.75rem;
    }
}

/* ===========================================
   SHARE PROFILE & QR CODE STYLES
   =========================================== */

#shareProfileModal {
    z-index: 10000 !important;
}

#shareProfileModal .modal-backdrop {
    z-index: 9999 !important;
}

.qr-container {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.qr-container canvas,
.qr-container img {
    max-width: 200px;
    height: auto;
}

.share-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-option input {
    font-size: 0.85rem;
    cursor: pointer;
}

.share-option input:focus {
    outline: none;
    box-shadow: none;
}

.share-option .btn {
    min-width: 70px;
}

#shareProfileModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Nostr Apps & Resources */
.nostr-apps-section {
    padding: 20px;
}

.apps-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--purple-primary);
    transform: translateY(-2px);
}

.app-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.app-card-content {
    flex: 1;
    min-width: 0;
}

.app-card-title {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #fff;
}

.app-card-desc {
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.app-card-url {
    font-size: 0.75rem;
    color: var(--purple-light);
}

.app-card-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    flex-shrink: 0;
}

.app-card:hover .app-card-arrow {
    color: var(--purple-primary);
}

.apps-footer {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .nostr-apps-section {
        padding: 15px;
    }
    
    .app-card {
        padding: 12px;
    }
    
    .app-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .app-card-desc {
        font-size: 0.8rem;
    }
}

/* ===========================================
   ARTICLES / LONG-FORM CONTENT STYLES (NIP-23)
   =========================================== */

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

.profile-articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Article Card */
.article-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.article-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: rgba(139, 92, 246, 0.1);
}

.article-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
}

.article-card-no-image i {
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.5);
}

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

.article-card-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-summary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-author-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-name {
    color: var(--purple-light);
    font-size: 0.85rem;
    cursor: pointer;
}

.article-author-name:hover {
    text-decoration: underline;
}

.article-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-left: auto;
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.article-tag {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Article Detail View */
.article-detail-view {
    max-width: 800px;
    margin: 0 auto;
}

.article-full {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.article-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-pic-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-name-lg {
    color: white;
    font-weight: 500;
    display: block;
}

.article-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Article Body / Rendered Markdown */
.article-body {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    color: white;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-body h1 { font-size: 1.8rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }

.article-body p {
    margin-bottom: 1.2em;
}

.article-body a {
    color: var(--purple-light);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--purple-primary);
}

.article-body img.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.article-body code {
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-body blockquote {
    border-left: 3px solid var(--purple-primary);
    padding-left: 16px;
    margin: 1em 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.article-body ul,
.article-body ol {
    margin: 1em 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 0.5em;
}

/* Article Actions */
.article-actions .feed-actions {
    display: flex;
    gap: 20px;
}

/* Article Comments */
.article-comments {
    margin-top: 30px;
}

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

.article-comment {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.comment-author-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.comment-author {
    color: var(--purple-light);
    font-weight: 500;
    cursor: pointer;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.comment-text {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-full {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-card-image {
        height: 140px;
    }
}

/* Public Profile Articles Styles */
.public-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.public-article-card {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: row;
}

.public-article-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.public-article-image {
    width: 120px;
    min-height: 100px;
    background-size: cover;
    background-position: center;
    background-color: rgba(139, 92, 246, 0.1);
    flex-shrink: 0;
}

.public-article-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-article-no-image i {
    font-size: 2rem;
    color: rgba(139, 92, 246, 0.4);
}

.public-article-content {
    padding: 12px;
    flex: 1;
    min-width: 0;
}

.public-article-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.public-article-summary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.public-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-article-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.public-article-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.public-article-tag {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Public Article Detail View */
.public-article-detail {
    padding: 10px 0;
}

.public-article-full {
    background: rgba(26, 26, 46, 0.4);
    border-radius: 12px;
    padding: 20px;
}

.public-article-full-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.public-article-full-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.public-article-body {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.public-article-body h1,
.public-article-body h2,
.public-article-body h3 {
    color: white;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

.public-article-body p {
    margin-bottom: 1em;
}

.public-article-body a {
    color: var(--purple-light);
}

.public-article-body code {
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

.public-article-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
}

.public-article-body blockquote {
    border-left: 3px solid var(--purple-primary);
    padding-left: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.public-article-cta {
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Article Embedded Content Styles */
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.article-image:hover {
    opacity: 0.9;
}

.article-video {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
    background: #000;
}

.article-youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 1em 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nostr-profile-link {
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 500;
}

.nostr-profile-link:hover {
    color: var(--purple-primary);
    text-decoration: underline;
}

.article-embedded-note,
.article-embedded-article {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 1em 0;
}

.embedded-note-link,
.embedded-article-link {
    color: var(--purple-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.embedded-note-link:hover,
.embedded-article-link:hover {
    color: var(--purple-primary);
}

.embedded-note-link i,
.embedded-article-link i {
    font-size: 1.1em;
}

.embedded-article-external {
    margin-left: auto;
}

.embedded-article-external a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85em;
}

.embedded-article-external a:hover {
    color: var(--purple-light);
}

.article-embedded-article {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== NIP-68 IMAGES (KIND 20) ===== */

.image-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.image-gallery.single-image {
    grid-template-columns: 1fr;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    aspect-ratio: 1;
}

.image-item.image-landscape {
    aspect-ratio: 16/9;
}

.image-item.image-portrait {
    aspect-ratio: 3/4;
}

.image-item.image-square {
    aspect-ratio: 1;
}

.image-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-content:hover {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 12px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item:hover .image-caption {
    opacity: 1;
}

.image-card {
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: border-color 0.2s ease;
}

.image-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
}

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

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

.comments-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.comment-item {
    animation: fadeIn 0.3s ease;
}

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

.image-modal {
    animation: fadeIn 0.2s ease;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .image-item {
        aspect-ratio: 4/3;
    }
}

/* App Recommendations in Feed */
.app-recommendation-wrapper {
    margin: 16px 0;
}

.app-recommendation {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.app-recommendation:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.app-rec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-rec-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.app-rec-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.app-rec-info {
    flex: 1;
    min-width: 0;
}

.app-rec-name {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.app-rec-desc {
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-rec-category {
    font-size: 0.75rem;
    font-weight: 500;
}

.app-rec-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    padding-right: 4px;
}

.app-recommendation:hover .app-rec-arrow {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile adjustments for app recommendations */
@media (max-width: 768px) {
    .app-recommendation-wrapper {
        margin: 12px -8px;
    }
    
    .app-recommendation {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .app-rec-content {
        padding: 12px;
        gap: 12px;
    }
    
    .app-rec-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .app-rec-name {
        font-size: 0.95rem;
    }
    
    .app-rec-desc {
        font-size: 0.8rem;
    }
}

/* ========================================
   LIVESTREAM STYLES - NIP-53
   ======================================== */

.livestream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.livestream-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.livestream-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.livestream-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.livestream-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

.livestream-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.livestream-thumb:hover .livestream-play-btn {
    opacity: 1;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse-live 2s infinite;
}

.live-badge i {
    font-size: 0.5rem;
}

.room-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse-live 2s infinite;
}

/* Audio room modal adjustments */
.audioroom-modal .livestream-player-container {
    min-height: 500px;
    background: #0d0d1a;
}

.audioroom-modal .livestream-player-container iframe {
    border-radius: 8px;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.scheduled-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(168, 85, 247, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.ended-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(108, 117, 125, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.livestream-card.livestream-ended {
    opacity: 0.7;
}

.livestream-card.livestream-ended:hover {
    opacity: 1;
}

.viewer-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.livestream-info {
    padding: 12px;
    display: flex;
    gap: 12px;
}

.livestream-host-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

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

.livestream-title {
    font-weight: 500;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.livestream-host-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
}

.livestream-host-name:hover {
    color: rgba(168, 85, 247, 0.9);
}

/* Livestream Modal/Player */
.livestream-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Ensure zap modals appear above livestream modal when it's open */
body.livestream-open #zapAmountModal,
body.livestream-open #zapMessageModal,
body.livestream-open #zapInvoiceModal {
    z-index: 10001 !important;
}

body.livestream-open .modal-backdrop {
    z-index: 10000 !important;
}

.livestream-modal-content {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.livestream-modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.livestream-modal-header h5 {
    margin: 0;
    color: white;
    font-size: 1rem;
}

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

.livestream-header-actions .btn {
    padding: 4px 8px;
}

/* Minimized state - hide the modal */
.livestream-modal.livestream-minimized {
    display: none;
}

/* Mini player bar at bottom of screen */
.livestream-mini-bar {
    position: fixed;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(30, 20, 50, 0.98));
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 9998;
    transition: bottom 0.3s ease;
    backdrop-filter: blur(10px);
}

.livestream-mini-bar.show {
    bottom: 0;
}

.mini-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.mini-bar-info:hover {
    opacity: 0.8;
}

.mini-bar-title {
    color: white;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-bar-live-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse-live 2s infinite;
}

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

.mini-bar-actions .btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
}

.mini-bar-actions .btn:hover {
    background: rgba(168, 85, 247, 0.3);
}

.livestream-player-container {
    flex: 1;
    background: black;
    min-height: 300px;
}

.livestream-player-container video {
    width: 100%;
    height: 100%;
    max-height: 60vh;
}

.livestream-chat-container {
    height: 250px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.livestream-chat-header {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 0.9rem;
}

.livestream-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

.live-chat-msg {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.chat-author {
    color: rgba(168, 85, 247, 0.9);
    font-weight: 500;
    cursor: pointer;
    margin-right: 8px;
}

.chat-author:hover {
    text-decoration: underline;
}

.chat-text {
    color: rgba(255, 255, 255, 0.9);
}

.livestream-chat-input {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
}

.livestream-chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 0.9rem;
}

.livestream-chat-input input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
}

.livestream-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Livestream Mobile Responsive */
@media (max-width: 768px) {
    .livestream-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .livestream-modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .livestream-chat-container {
        height: 200px;
    }
}

/* Livestream Actions Bar */
.livestream-actions {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.livestream-action-buttons {
    display: flex;
    gap: 15px;
}

.btn-livestream-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
}

.btn-livestream-action:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    color: white;
}

.btn-livestream-action .action-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

.livestream-zap-messages {
    margin-top: 10px;
    max-height: 80px;
    overflow-y: auto;
}

.zap-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.zap-message .zap-amount {
    color: #f7931a;
    font-weight: 600;
}

.zap-message .zap-text {
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
