@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Vazirmatn:wght@100..900&display=swap');

.post-image, 
.post-detail-image img, 
.viewer-image-container img,
.user-avatar img,
.user-avatar-sm img,
.comment-avatar img,
.menu-user-avatar img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.viewer-image-container img {
    pointer-events: auto;
}

:root {
    --font-en: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-fa: 'Vazirmatn', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --bg-primary: #050505;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-primary: #00ff88;
    --accent-secondary: #00cc6a;
    --accent-gradient: linear-gradient(135deg, #00ff88, #00cc6a);
    --accent-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-lg: 28px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 20%);
}

.header {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--accent-gradient);
    border-radius: 12px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.logo:hover::before {
    opacity: 0.1;
}

.logo-icon {
    width: 150px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.search-container {
    position: relative;
    flex: 0 1 500px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--accent-glow);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

#searchInput:focus + .search-icon {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-top: 0.75rem;
    padding: 0.75rem;
    display: none;
    z-index: 1001;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateX(5px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow), 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary:hover::before {
    opacity: 0.1;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-upload {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.btn-upload:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow), 0 12px 35px rgba(0, 255, 136, 0.4);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-glow);
}

.user-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.user-avatar:hover::before {
    opacity: 1;
}

.user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    min-width: 240px;
    display: none;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    animation: slideDown 0.3s ease;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.75rem;
}

.dropdown-header strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.dropdown-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    transition: var(--transition);
}

.dropdown-item:hover::before {
    left: 0;
}

.dropdown-item:hover {
    transform: translateX(8px);
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 0;
}

.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 160px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.content-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
}

.page-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.6), 0 0 70px rgba(0, 255, 136, 0.4);
    }
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.filter-tab.active,
.filter-tab:hover {
    color: #000;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.filter-tab.active::before,
.filter-tab:hover::before {
    opacity: 1;
}

.posts-masonry {
    margin: 0 auto;
    width: 100%;
    column-count: 4;
    column-gap: 20px;
}

.post-card-sizer {
    width: 100%;
    break-inside: avoid;
    margin-bottom: 20px;
}

.post-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: cardAppear 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    page-break-inside: avoid;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(0, 255, 136, 0.3);
}

.post-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
    max-width: 100%;
    object-fit: cover;
}

.post-card:hover .post-image {
    transform: scale(1.1);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.post-card:hover .post-overlay {
    opacity: 1;
}

.post-actions {
    display: flex;
    gap: 0.25rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.post-card:hover .post-actions {
    transform: translateY(0);
}

.post-action {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-action:hover {
    background: var(--accent-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

.post-content {
    padding: 1rem;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.post-user:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.post-user:hover .user-avatar-sm {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.user-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-weight: 500;
}

.load-more-container {
    text-align: center;
    margin: 4rem 0;
}

.btn-load-more {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 2.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-load-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    transition: var(--transition-slow);
}

.btn-load-more:hover::before {
    left: 100%;
}

.btn-load-more:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    z-index: 2000;
    backdrop-filter: blur(15px);
    animation: modalAppear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalContentAppear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

@keyframes modalContentAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-large {
    max-width: 650px;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-primary);
    color: #000;
    transform: scale(1.1) rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.auth-form,
.upload-form,
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.125rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--accent-glow);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.auth-footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-3px);
}

.upload-area.dragover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.02);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    transition: var(--transition);
}

.upload-area:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.upload-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.upload-placeholder p {
    color: var(--text-muted);
    font-size: 1rem;
}

#imageInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 1rem 0;
    animation: previewAppear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes previewAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#previewImage {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.btn-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: var(--accent-primary);
    color: #000;
    transform: scale(1.1) rotate(90deg);
}

.settings-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-tab {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
}

.settings-tab.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    border-bottom: 3px solid var(--accent-primary);
}

.settings-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.settings-form label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.98);
    z-index: 3000;
    backdrop-filter: blur(25px);
    animation: viewerAppear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes viewerAppear {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(25px);
    }
}

.viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.viewer-close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 3001;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.viewer-close:hover {
    background: var(--accent-primary);
    color: #000;
    transform: scale(1.1) rotate(90deg);
}

.viewer-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

#viewerImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: imageZoom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes imageZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.viewer-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
}

.viewer-action {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.viewer-action:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer {
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    overflow: hidden;
}

.footer-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-copyright strong {
    color: var(--accent-primary);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

.footer-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-element-1,
.bg-element-2,
.bg-element-3 {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.03;
    filter: blur(40px);
}

.bg-element-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.bg-element-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
}

.bg-element-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 20%;
}

.btn-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.post-card {
    animation: cardSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-card:nth-child(odd) { animation-delay: 0.1s; }
.post-card:nth-child(even) { animation-delay: 0.2s; }

.post-detail {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: detailAppear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes detailAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.post-detail-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-detail-image img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    transition: var(--transition-slow);
    cursor: pointer;
}

.post-detail-image img:hover {
    transform: scale(1.02);
}

.post-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.post-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-tag {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid transparent;
}

.post-tag:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--accent-primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.post-user:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.post-stats {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.post-detail-loading {
    text-align: center;
    padding: 6rem 4rem;
}

.loading-spinner {
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: spin 1.5s linear infinite;
    color: var(--accent-primary);
}

.error-state {
    text-align: center;
    padding: 6rem 3rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.error-state h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.related-posts {
    margin-top: 4rem;
}

.related-posts .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.related-posts .posts-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-insights {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: insightsAppear 0.6s ease;
}

@keyframes insightsAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-insights h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.post-insights p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.followers-list {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.followers-list h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.follower-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.follower-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.follower-item:last-child {
    border-bottom: none;
}

.profile-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glow);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-username {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.profile-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    gap: 3rem;
    margin-top: 1rem;
}

.profile-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-actions {
    margin-top: 1rem;
}

.profile-posts-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.fallback-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
}

.fallback-grid .post-card {
    width: 100%;
    margin-bottom: 0;
}

.posts-masonry {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.posts-masonry.masonry-loading {
    opacity: 0.5;
}

.post-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.post-image {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.post-card-sizer {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

select,
.dropdown,
.dropdown-content,
.dropdown-menu,
.select-box,
.selector,
.menu-list,
.context-menu {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--border-radius) !important;
}

select option,
.dropdown-item,
.menu-item,
.context-menu-item {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    padding: 12px 16px !important;
    border: none !important;
}

select:hover,
.dropdown:hover,
.dropdown-item:hover,
.menu-item:hover,
.context-menu-item:hover {
    background-color: rgba(0, 255, 136, 0.1) !important;
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

select:focus,
.dropdown:focus,
.select-box:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: var(--accent-glow) !important;
}

select option:checked,
.dropdown-item:active,
.menu-item.active {
    background-color: var(--accent-primary) !important;
    color: #000 !important;
}

.dropdown-content::-webkit-scrollbar,
.menu-list::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-track,
.menu-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb,
.menu-list::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover,
.menu-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2300ff88' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

select:disabled,
.dropdown:disabled,
.dropdown-item:disabled {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

#userDropdown,
.user-menu .dropdown {
    background-color: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--shadow-lg) !important;
}

#searchResults,
.search-results {
    background-color: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--shadow-lg) !important;
}

.search-result-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.search-result-item:hover {
    background-color: rgba(0, 255, 136, 0.1) !important;
    color: var(--accent-primary) !important;
}

.filter-tab {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.filter-tab.active,
.filter-tab:hover {
    background-color: var(--accent-primary) !important;
    color: #000 !important;
    border-color: var(--accent-primary) !important;
}

.modal select,
.modal .dropdown {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.settings-tab-content select,
.settings-tab-content .dropdown {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

select::placeholder,
.dropdown::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

select::-webkit-input-placeholder {
    color: var(--text-muted) !important;
}

select::-moz-placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.dropdown-item {
    transition: var(--transition) !important;
}

.dropdown-item:hover {
    transform: translateX(5px) !important;
}

select,
.dropdown {
    transition: var(--transition) !important;
}

select:hover,
.dropdown:hover {
    transform: translateY(-2px) !important;
}

::-webkit-scrollbar {
    width: 9px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar {
    width: 4px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.dropdown-content {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.comments-section {
    margin-top: 4rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comments-count {
    background: var(--accent-primary);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
}

.comment-form {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    transition: var(--transition);
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--accent-glow);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.comment-item:hover {
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-user-info {
    display: flex;
    flex-direction: column;
}

.comment-username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-actions {
    display: flex;
    gap: 0.75rem;
}

.comment-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.comment-action:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.comment-replies {
    margin-left: 3rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reply-form {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
}

.reply-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.reply-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.no-comments {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-comments-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.loading-comments {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

