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

/* ========== ROOT VARIABLES - LIGHT THEME (DEFAULT) ========== */
:root {
    --brand-primary: #F86D2A;
    --accent-hover: #e05a1e;
    --brand-red: #ED4956;
    --brand-blue: #0095f6;
    --brand-green: #28a745;
    --brand-warning: #ffc107;
    
    --gradient-primary: linear-gradient(135deg, #F86D2A 0%, #e05a1e 100%);
    
    /* Light Theme (Default) - Improved contrast */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #EFEFEF;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-tertiary: #999999;
    --border-color: #D4D4D4;
    --border-light: #E8E8E8;
    
    --shadow-small: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-medium: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-large: 0 4px 16px rgba(0,0,0,0.12);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ========== DARK MODE ========== */
body.dark-mode {
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #1A1A1A;
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0A0;
    --text-tertiary: #666666;
    --border-color: #262626;
    --border-light: #1A1A1A;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    width: 100%;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
}

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

.menu-btn, .header-action {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover, .header-action:hover {
    background: var(--bg-tertiary);
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-title i {
    color: var(--brand-primary);
}

.view-container {
    flex: 1;
    background: var(--bg-primary);
}

.bottom-nav {
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px;
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
}

.nav-item i {
    font-size: 24px;
}

.nav-item.active {
    color: var(--brand-primary);
}

.feed-view {
    background: var(--bg-primary);
}

.feed-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

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

.tab-btn i {
    font-size: 14px;
}

.tab-btn.active {
    color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.08);
}

.posts-feed {
    display: flex;
    flex-direction: column;
}

/* ========== POST CARD ========== */
.post-card {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.post-avatar-wrapper {
    cursor: pointer;
}

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

.post-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-name {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.author-name {
    cursor: pointer;
}

.author-name:hover {
    color: var(--brand-primary);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    color: var(--brand-blue);
    font-size: 10px;
}

.post-time {
    font-size: 10px;
    color: var(--text-secondary);
}

.post-menu {
    cursor: pointer;
    padding: 6px;
    color: var(--text-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-menu:hover {
    background: var(--bg-tertiary);
}

.follow-btn-small {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 6px;
}

.follow-btn-small.following {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.post-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #F86D2A, #e05a1e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image-placeholder i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.6);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
}

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

.actions-right {
    display: flex;
}

.action-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 50%;
}

.action-btn:hover {
    background: var(--bg-tertiary);
}

.like-btn.liked {
    color: var(--brand-red);
}

.save-btn.saved {
    color: var(--brand-primary);
}

.likes-count {
    padding: 0 12px;
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 4px;
}

.post-caption {
    padding: 0 12px 8px;
    font-size: 13px;
    line-height: 1.4;
}

.caption-author {
    font-weight: 600;
    margin-right: 4px;
    cursor: pointer;
}

.caption-text {
    color: var(--text-secondary);
}

.view-comments {
    padding: 0 12px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Loading States */
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--brand-primary);
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-secondary);
}

.feed-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 90%;
    width: auto;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #262626;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hide {
    transform: translateY(-100px);
    opacity: 0;
}

.toast i {
    font-size: 18px;
}

.toast span {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: white;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-warning {
    background: #ffc107;
    color: #000;
}

.toast-info {
    background: #0095f6;
}

/* ========== MOBILE DRAWER ========== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
}

.mobile-drawer.open {
    pointer-events: auto;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer.open .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-primary);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.mobile-drawer.open .drawer-content {
    left: 0;
}

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

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.drawer-logo i {
    color: var(--brand-primary);
    font-size: 24px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    background: var(--bg-tertiary);
}

.drawer-profile {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.drawer-user:hover {
    background: var(--bg-secondary);
}

.drawer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-primary);
}

.drawer-user-info {
    flex: 1;
}

.drawer-user-name {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.drawer-user-name .verified {
    color: var(--brand-blue);
    font-size: 14px;
}

.drawer-user-stats {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.drawer-login-prompt {
    text-align: center;
    padding: 8px;
}

.drawer-login-prompt p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.drawer-auth-buttons {
    display: flex;
    gap: 8px;
}

.drawer-auth-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.btn-signin {
    background: var(--brand-primary);
    color: white;
}

.btn-signup {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.drawer-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    transition: background 0.2s;
}

.drawer-link:hover {
    background: var(--bg-secondary);
}

.drawer-link i {
    width: 24px;
    font-size: 20px;
    color: var(--text-secondary);
}

.drawer-link.admin-link {
    color: var(--brand-primary);
}

.drawer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 16px;
}

.logout-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--brand-red) !important;
}

.logout-btn i {
    color: var(--brand-red) !important;
}

.drawer-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.app-version {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ========== QUOTE MODAL - FIXED Z-INDEX ========== */
.quote-modal-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

.quote-modal-v2[style*="display: flex"],
.quote-modal-v2[style*="display:flex"] {
    display: flex !important;
}

.quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.quote-modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

.quote-modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    flex-shrink: 0;
}

.quote-modal-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-back:hover {
    background: var(--bg-tertiary);
}

.quote-modal-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 8px;
}

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

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

.modal-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.quote-modal-menu {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quote-modal-menu:hover {
    background: var(--bg-tertiary);
}

.quote-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    min-height: 300px;
}

.quote-modal-actions {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-actions-left {
    display: flex;
    gap: 20px;
}

.modal-action-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 6px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-action-btn:hover {
    background: var(--bg-tertiary);
}

.modal-action-btn.liked {
    color: var(--brand-red);
}

.modal-action-btn.saved {
    color: var(--brand-primary);
}

.modal-likes-count {
    font-weight: 600;
    font-size: 14px;
    padding: 12px 16px 4px;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-caption {
    font-size: 14px;
    padding: 0 16px 12px;
    line-height: 1.4;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-comments-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    max-height: 350px;
    background: var(--bg-primary);
}

.modal-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}

.modal-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
}

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

.modal-comment-input {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-comment-input input {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.modal-comment-input input::placeholder {
    color: var(--text-secondary);
}

.modal-post-btn {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-post-btn:hover {
    opacity: 1;
}

.modal-post-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-comments {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

/* Post Menu Modal */
.post-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.post-menu-modal.active {
    display: flex;
}

.post-menu-container {
    background: var(--bg-primary);
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.post-menu-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.post-menu-item {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s;
}

.post-menu-item:hover {
    background: var(--bg-secondary);
}

.post-menu-item.danger {
    color: var(--brand-red);
}

.post-menu-cancel {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    background: var(--bg-secondary);
}

/* Heart Animation */
.heart-animation {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .action-btn {
        font-size: 20px;
        padding: 4px;
    }
    
    .post-avatar {
        width: 28px;
        height: 28px;
    }
    
    .post-name {
        font-size: 12px;
    }
    
    .post-caption {
        font-size: 12px;
    }
    
    .comment-text {
        font-size: 11px;
    }
    
    .toast {
        white-space: normal;
        text-align: left;
        max-width: 320px;
    }
    
    .quote-modal-container {
        max-width: 100%;
    }
    
    .modal-action-btn {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
}
/* ========== QUOTE MODAL - FULLSCREEN OVERLAY ========== */
.quote-modal-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    display: none;
    background: var(--bg-primary);
}

.quote-modal-v2[style*="display: flex"],
.quote-modal-v2[style*="display:flex"] {
    display: flex !important;
}

.quote-modal-overlay {
    display: none;
}

.quote-modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

.quote-modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    flex-shrink: 0;
}

.quote-modal-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-back:hover {
    background: var(--bg-tertiary);
}

.quote-modal-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 8px;
}

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

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

.modal-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.quote-modal-menu {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quote-modal-menu:hover {
    background: var(--bg-tertiary);
}

.quote-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    min-height: 300px;
}

.quote-modal-actions {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-actions-left {
    display: flex;
    gap: 20px;
}

.modal-action-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 6px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-action-btn:hover {
    background: var(--bg-tertiary);
}

.modal-action-btn.liked {
    color: var(--brand-red);
}

.modal-action-btn.saved {
    color: var(--brand-primary);
}

.modal-likes-count {
    font-weight: 600;
    font-size: 14px;
    padding: 12px 16px 4px;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-caption {
    font-size: 14px;
    padding: 0 16px 12px;
    line-height: 1.4;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-comments-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    background: var(--bg-primary);
}

.modal-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}

.modal-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
}

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

.modal-comment-input {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-comment-input input {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.modal-comment-input input::placeholder {
    color: var(--text-secondary);
}

.modal-post-btn {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-post-btn:hover {
    opacity: 1;
}

.modal-post-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-comments {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

/* Post Menu Modal */
.post-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.post-menu-modal.active {
    display: flex;
}

.post-menu-container {
    background: var(--bg-primary);
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.post-menu-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.post-menu-item {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s;
}

.post-menu-item:hover {
    background: var(--bg-secondary);
}

.post-menu-item.danger {
    color: var(--brand-red);
}

.post-menu-cancel {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    background: var(--bg-secondary);
}
/* ========== QUOTE MODAL - FULLSCREEN OVERLAY ========== */
.quote-modal-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    display: none;
    background: var(--bg-primary);
}

.quote-modal-v2[style*="display: flex"],
.quote-modal-v2[style*="display:flex"] {
    display: flex !important;
}

.quote-modal-overlay {
    display: none;
}

.quote-modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

.quote-modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    flex-shrink: 0;
}

.quote-modal-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-back:hover {
    background: var(--bg-tertiary);
}

.quote-modal-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 8px;
}

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

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

.modal-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.quote-modal-menu {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quote-modal-menu:hover {
    background: var(--bg-tertiary);
}

/* ========== MODAL CONTENT - SCROLLABLE AREA ========== */
.quote-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    min-height: 300px;
}

/* Quote Image in Modal */
.quote-modal-content img {
    max-width: 100%;
    max-height: 50vh;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Quote Text in Modal */
.quote-modal-content .quote-text-display {
    padding: 20px 16px;
    font-size: 20px;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.quote-modal-content .quote-author-display {
    text-align: center;
    color: var(--text-secondary);
    padding: 0 16px 16px;
    font-size: 15px;
}

/* ========== MODAL ACTIONS ========== */
.quote-modal-actions {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-actions-left {
    display: flex;
    gap: 20px;
}

.modal-action-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 6px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-action-btn:hover {
    background: var(--bg-tertiary);
}

.modal-action-btn.liked {
    color: var(--brand-red);
}

.modal-action-btn.saved {
    color: var(--brand-primary);
}

/* ========== MODAL LIKES COUNT ========== */
.modal-likes-count {
    font-weight: 600;
    font-size: 14px;
    padding: 12px 16px 4px;
    flex-shrink: 0;
    background: var(--bg-primary);
}

/* ========== MODAL CAPTION ========== */
.modal-caption {
    font-size: 14px;
    padding: 0 16px 12px;
    line-height: 1.4;
    flex-shrink: 0;
    background: var(--bg-primary);
}

/* ========== MODAL COMMENTS SECTION - FIXED HEIGHT ========== */
.modal-comments-section {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    max-height: 300px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.modal-comments-list {
    overflow-y: auto;
    padding: 8px 16px;
    max-height: 240px;
}

.modal-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 4px 0;
}

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

.modal-comment > div {
    flex: 1;
}

.modal-comment-input {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.modal-comment-input input {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.modal-comment-input input::placeholder {
    color: var(--text-secondary);
}

.modal-post-btn {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-post-btn:hover {
    opacity: 1;
}

.modal-post-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Post Menu Modal */
.post-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.post-menu-modal.active {
    display: flex;
}

.post-menu-container {
    background: var(--bg-primary);
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.post-menu-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.post-menu-item {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s;
}

.post-menu-item:hover {
    background: var(--bg-secondary);
}

.post-menu-item.danger {
    color: var(--brand-red);
}

.post-menu-cancel {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    background: var(--bg-secondary);
}
/* ========== EXPLORE VIEW ========== */
.explore-view {
    background: var(--bg-primary);
    min-height: 100%;
}

.page-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-box {
    position: relative;
    padding: 12px 16px;
}

.search-box i {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 30px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

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

.explore-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.explore-tab i {
    font-size: 14px;
}

.explore-tab.active {
    color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.1);
}

.explore-content {
    padding: 16px;
}

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

.category-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.category-icon i {
    font-size: 24px;
}

.category-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.category-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-count {
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 600;
    background: rgba(248, 109, 42, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

/* Authors List */
.authors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.author-card:hover {
    border-color: var(--brand-primary);
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.author-bio {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.author-stats {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-secondary);
}

.author-stats i {
    margin-right: 4px;
}

/* Search Results */
.search-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-section-title i {
    color: var(--brand-primary);
}

.search-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.search-author-card {
    text-align: center;
    cursor: pointer;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all 0.2s;
}

.search-author-card:hover {
    background: var(--bg-secondary);
}

.search-author-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.search-author-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.search-author-stats {
    font-size: 11px;
    color: var(--text-secondary);
}

.search-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.search-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-category-card:hover {
    background: var(--bg-secondary);
}

.search-category-card i {
    font-size: 24px;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.search-category-card span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-category-card small {
    font-size: 11px;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .search-authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========== AUTH VIEWS ========== */
.auth-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F86D2A, #e05a1e);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.auth-logo i {
    color: var(--brand-primary);
    font-size: 28px;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.google-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.google-btn:hover {
    background: var(--bg-tertiary);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    margin: 0 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.form-group input.error {
    border-color: var(--brand-red);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
}

.toggle-password:hover {
    color: var(--brand-primary);
}

.error-message {
    color: var(--brand-red);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.forgot-link {
    font-size: 13px;
    color: var(--brand-primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.back-home a:hover {
    opacity: 1;
}
/* Password Strength */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-bar.weak {
    width: 33%;
    background: var(--brand-red);
}

.strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.strength-bar.strong {
    width: 100%;
    background: var(--brand-green);
}

.strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: var(--text-secondary);
}
/* ========== PROFILE VIEW ========== */
.profile-view {
    background: var(--bg-primary);
    min-height: 100%;
}

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

.profile-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-back:hover {
    background: var(--bg-tertiary);
}

.profile-title {
    font-weight: 600;
    font-size: 16px;
}

.profile-menu {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-primary);
}

.profile-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.profile-stat {
    text-align: center;
    cursor: pointer;
}

.stat-number {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-bio {
    padding: 0 16px 16px;
}

.profile-name {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.profile-username {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-bio-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.profile-website {
    font-size: 13px;
    color: var(--brand-blue);
    text-decoration: none;
}

.profile-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.profile-action-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

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

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

.profile-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

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

.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.profile-empty {
    grid-column: span 3;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.profile-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Followers/Following Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: var(--bg-primary);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    max-height: 80vh;
    overflow: hidden;
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.followers-list,
.following-list {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.follower-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.follower-item:hover {
    background: var(--bg-secondary);
}

.follower-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.follower-info {
    flex: 1;
}

.follower-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.follower-username {
    font-size: 11px;
    color: var(--text-secondary);
}

.verified-badge {
    color: var(--brand-blue);
    font-size: 12px;
}
/* Skeleton Loading */
.skeleton {
    pointer-events: none;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

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

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #262626;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1A1A1A;
}

.skeleton-line {
    height: 12px;
    background: #262626;
    border-radius: 4px;
}
/* ========== SKELETON LOADING ========== */
.skeleton {
    pointer-events: none;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

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

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #262626;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1A1A1A;
}

.skeleton-line {
    height: 12px;
    background: #262626;
    border-radius: 4px;
}

/* ========== FEED END ========== */
.feed-end {
    text-align: center;
    padding: 30px 20px 50px;
}

.end-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.end-divider-line {
    width: 40px;
    height: 1px;
    background: var(--border-color);
}

.end-divider i {
    color: var(--brand-primary);
    font-size: 12px;
}

.feed-end p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.feed-end small {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== FEED LOADING ========== */
.feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 8px;
}

.feed-loading p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== EMPTY STATE ========== */
.empty-state .btn-primary {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
/* ========== CREATE VIEW ========== */
.create-view {
    background: var(--bg-primary);
    min-height: 100%;
}

.create-form {
    padding: 20px;
}

.image-upload-area {
    border: 2px dashed #262626;
    border-radius: 20px;
    text-align: center;
    padding: 40px 20px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
    background: var(--bg-secondary);
}

.image-upload-area:hover {
    border-color: #F86D2A;
    background: rgba(248, 109, 42, 0.05);
}

.image-upload-area i {
    font-size: 48px;
    color: #F86D2A;
    margin-bottom: 12px;
}

.image-upload-area p {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.image-upload-area small {
    font-size: 12px;
    color: var(--text-secondary);
}

.image-preview {
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-image-btn:hover {
    background: #dc3545;
}

.create-form .form-group {
    margin-bottom: 20px;
}

.create-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.create-form textarea,
.create-form input,
.create-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #262626;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.create-form textarea {
    resize: vertical;
    min-height: 120px;
}

.create-form textarea:focus,
.create-form input:focus,
.create-form select:focus {
    outline: none;
    border-color: #F86D2A;
}

.create-form select {
    cursor: pointer;
}

.create-form small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #F86D2A;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #F86D2A;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #e05a1e;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
/* ========== EDIT PROFILE VIEW ========== */
.edit-profile-view {
    background: var(--bg-primary);
    min-height: 100vh;
}

.edit-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.edit-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-back:hover {
    background: var(--bg-tertiary);
}

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

.edit-save {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
}

.edit-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.edit-content {
    padding: 20px;
}

.avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-primary);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--brand-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.change-avatar-btn:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
}

.avatar-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.social-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.social-section h3 i {
    color: var(--brand-primary);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.input-with-icon i.fa-facebook {
    color: #1877F2;
}

.input-with-icon i.fa-twitter {
    color: #1DA1F2;
}

.input-with-icon i.fa-instagram {
    color: #E4405F;
}

.input-with-icon input {
    padding-left: 42px;
}
/* ========== SAVED & MY QUOTES VIEWS ========== */
.saved-view,
.my-quotes-view {
    background: var(--bg-primary);
    min-height: 100vh;
}

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

.page-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover {
    background: var(--bg-tertiary);
}

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

.quotes-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.quotes-tab i {
    font-size: 14px;
}

.quotes-tab.active {
    color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.1);
}

.quotes-tab:hover {
    background: var(--bg-tertiary);
}
/* ========== DASHBOARD VIEW ========== */
.dashboard-view {
    background: var(--bg-primary);
    min-height: 100vh;
}

.dashboard-content {
    padding: 16px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stat-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.stat-icon {
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dashboard-section {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 16px;
}

.dashboard-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.dashboard-section h3 i {
    color: var(--brand-primary);
}

.weekly-chart {
    padding: 10px 0;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}

.chart-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 150px;
}

.chart-bar {
    width: 14px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
    min-height: 2px;
}

.likes-bar {
    background: #dc3545;
}

.comments-bar {
    background: #F86D2A;
}

.chart-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
}

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

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
}

.top-quotes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-quote-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.top-quote-item:hover {
    transform: translateX(4px);
}

.top-quote-rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
    width: 30px;
}

.top-quote-content {
    flex: 1;
}

.top-quote-text {
    font-size: 13px;
    font-style: italic;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.top-quote-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

.top-quote-stats i {
    margin-right: 4px;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
}

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

.activity-details {
    flex: 1;
}

.activity-user {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.activity-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.achievement-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.achievement-info {
    flex: 1;
}

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

.achievement-item.locked {
    opacity: 0.5;
}

.earned-check {
    color: #28a745;
    font-size: 18px;
}

.empty-state-small {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.empty-state-small i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========== CATEGORIES & AUTHORS VIEWS ========== */
.categories-view,
.authors-view {
    background: var(--bg-primary);
    min-height: 100vh;
}

.categories-content,
.authors-content {
    padding: 16px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.category-icon i {
    font-size: 24px;
}

.category-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.category-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-count {
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 600;
    background: rgba(248, 109, 42, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

.category-header {
    padding: 0 0 16px 0;
}

.category-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.author-card:hover {
    border-color: var(--brand-primary);
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.author-bio {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.author-stats {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-secondary);
}

.author-stats i {
    margin-right: 4px;
}

.verified-badge {
    color: var(--brand-blue);
    font-size: 12px;
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
/* ========== ABOUT VIEW ========== */
.about-view {
    background: var(--bg-primary);
    min-height: 100vh;
}

.about-content {
    padding: 20px;
}

.about-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.1), rgba(248, 109, 42, 0.05));
    border-radius: 24px;
    margin-bottom: 30px;
}

.about-hero i {
    font-size: 56px;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.about-hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.about-hero p {
    font-size: 16px;
    color: var(--text-secondary);
}

.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.feature-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.feature-card i {
    font-size: 32px;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.quote-block {
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.08), rgba(248, 109, 42, 0.03));
    border-left: 4px solid var(--brand-primary);
    padding: 24px;
    border-radius: 16px;
    margin: 30px 0;
    text-align: center;
}

.quote-block i {
    font-size: 32px;
    color: var(--brand-primary);
    opacity: 0.5;
    margin-bottom: 12px;
}

.quote-block p {
    font-size: 20px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.about-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.about-footer p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}

/* ========== CONTACT VIEW ========== */
.contact-view {
    background: var(--bg-primary);
    min-height: 100vh;
}

.contact-content {
    padding: 20px;
}

.contact-hero {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.contact-hero i {
    font-size: 48px;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.contact-hero h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-hero p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form {
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
}

.contact-info-section {
    margin-top: 30px;
}

.contact-info-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.contact-info-card i {
    font-size: 32px;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.contact-info-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-info-card span {
    font-size: 12px;
    color: var(--brand-primary);
}

.contact-footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 13px;
    
}/* ========== SETTINGS VIEW ========== */
.settings-view {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 20px;
}

.settings-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.settings-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.settings-back:hover {
    background: var(--bg-tertiary);
}

.settings-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.settings-content {
    padding: 20px 16px;
}

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

.settings-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-primary);
}

.settings-section h3 i {
    font-size: 18px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s;
}

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

.setting-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -8px;
    padding: 14px 8px;
    border-radius: 8px;
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.setting-description {
    font-size: 12px;
    color: var(--text-secondary);
}

.setting-item i.fa-chevron-right {
    color: var(--text-secondary);
    font-size: 14px;
    margin-left: 12px;
}

.setting-item i.fa-trash-alt {
    color: #dc3545;
    font-size: 16px;
    margin-left: 12px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg-tertiary);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--brand-primary);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

/* Select Input */
.setting-item select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 120px;
}

.setting-item select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* Color Picker */
.setting-item input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.setting-item input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.setting-item input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

/* Danger Button */
.setting-danger-btn {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.setting-danger-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.setting-danger-btn:active {
    transform: translateY(0);
}

/* Version Info */
.version-info {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: var(--bg-primary);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 8px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Form Styles in Modal */
.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.modal-content input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border 0.2s;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.modal-content .submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-content .submit-btn:hover {
    background: var(--accent-hover);
}

/* Storage Usage */
#storage-usage {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 480px) {
    .settings-content {
        padding: 16px 12px;
    }
    
    .settings-section {
        padding: 16px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .toggle-switch {
        align-self: flex-start;
    }
    
    .setting-item select {
        width: 100%;
    }
    
    .setting-item i.fa-chevron-right,
    .setting-item i.fa-trash-alt {
        align-self: flex-end;
        margin-top: -30px;
    }
    
    .modal-content {
        width: 95%;
        margin: 16px;
    }
}

/* Animation for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .toggle-slider,
    .setting-danger-btn,
    .modal-content {
        transition: none;
        animation: none;
    }
}
/* ========== LIGHT MODE CONTRAST FIXES ========== */

/* Author names and post text */
.post-name,
.author-name,
.caption-author {
    color: var(--text-primary);
    font-weight: 600;
}

.post-time,
.view-comments,
.caption-text {
    color: var(--text-secondary);
}

/* Profile page */
.profile-name,
.stat-number {
    color: var(--text-primary);
    font-weight: 700;
}

.profile-username,
.stat-label,
.profile-bio-text {
    color: var(--text-secondary);
}

/* Settings page */
.setting-label {
    color: var(--text-primary);
    font-weight: 500;
}

.setting-description {
    color: var(--text-secondary);
}

/* Drawer menu */
.drawer-link {
    color: var(--text-primary);
}

.drawer-link i {
    color: var(--text-secondary);
}

.drawer-user-name {
    color: var(--text-primary);
}

.drawer-user-stats {
    color: var(--text-secondary);
}

/* Buttons */
.action-btn {
    color: var(--text-primary);
}

.like-btn.liked {
    color: #ED4956 !important;
}

.save-btn.saved {
    color: var(--brand-primary) !important;
}

/* Tabs */
.tab-btn {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--brand-primary);
}

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

/* Search box */
.search-box i {
    color: var(--text-secondary);
}

.search-box input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

/* Form inputs */
input, textarea, select {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

input::placeholder, textarea::placeholder {
    color: var(--text-tertiary);
}

/* Cards and sections */
.post-card,
.category-card,
.author-card,
.settings-section,
.dashboard-section {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

/* Empty states */
.empty-state h3 {
    color: var(--text-primary);
}

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

/* Modal */
.modal-content {
    background: var(--bg-primary);
}

.modal-header h3 {
    color: var(--text-primary);
}

/* Toast notifications */
.toast {
    background: #333333;
    color: #FFFFFF;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-warning {
    background: #ffc107;
    color: #000000;
}

/* Bottom navigation */
.nav-item {
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--brand-primary);
}

/* Header */
.app-title {
    color: var(--text-primary);
}

.menu-btn, .header-action {
    color: var(--text-primary);
}

/* Loading spinner */
.loading-spinner {
    border-color: var(--border-color);
    border-top-color: var(--brand-primary);
}

/* Auth pages */
.auth-card {
    background: var(--bg-primary);
}

.auth-header h1 {
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-footer p {
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--brand-primary);
}
/* ========== DRAWER LOGO FIX ========== */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-primary);
}

.drawer-logo i {
    color: var(--brand-primary) !important;
    font-size: 26px;
}

.drawer-logo span {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    font-weight: 700;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.drawer-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Light mode specific */
.drawer-logo i {
    text-shadow: none;
}

/* Dark mode keeps the same but ensures visibility */
body.dark-mode .drawer-logo i {
    color: var(--brand-primary) !important;
}

body.dark-mode .drawer-logo span {
    color: var(--text-primary);
}
/* ========== POST MENU MODAL FIX ========== */
.post-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.post-menu-modal.active {
    display: flex;
}

.post-menu-container {
    background: var(--bg-primary);
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.post-menu-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.post-menu-item {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.post-menu-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.post-menu-item i {
    width: 20px;
    color: var(--text-secondary);
}

.post-menu-item.danger {
    color: #dc3545 !important;
}

.post-menu-item.danger i {
    color: #dc3545 !important;
}

.post-menu-cancel {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.post-menu-cancel:hover {
    background: var(--bg-tertiary);
}

/* Light mode specific */
.post-menu-container {
    background: #FFFFFF;
}

body.dark-mode .post-menu-container {
    background: #1A1A1A;
}

body.dark-mode .post-menu-header {
    background: #1A1A1A;
    border-bottom-color: #262626;
}

body.dark-mode .post-menu-item {
    background: #1A1A1A;
    border-bottom-color: #262626;
    color: #F5F5F5;
}

body.dark-mode .post-menu-item:hover {
    background: #0A0A0A;
}

body.dark-mode .post-menu-cancel {
    background: #0A0A0A;
    border-top-color: #262626;
    color: #F5F5F5;
}

/* Light mode */
body:not(.dark-mode) .post-menu-container {
    background: #FFFFFF;
}

body:not(.dark-mode) .post-menu-header {
    background: #FFFFFF;
    border-bottom-color: #E8E8E8;
}

body:not(.dark-mode) .post-menu-item {
    background: #FFFFFF;
    border-bottom-color: #E8E8E8;
    color: #111111;
}

body:not(.dark-mode) .post-menu-item:hover {
    background: #FAFAFA;
}

body:not(.dark-mode) .post-menu-cancel {
    background: #FAFAFA;
    border-top-color: #E8E8E8;
    color: #111111;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
/* ========== PROFILE VIEW STYLES ========== */
.profile-info-section {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 16px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-primary);
}

.profile-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.profile-stat {
    text-align: center;
    cursor: pointer;
}

.profile-stat-number {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-bio-section {
    padding: 0 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--text-primary);
}

.profile-username {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    white-space: pre-line;
    color: var(--text-primary);
}

.profile-website {
    font-size: 13px;
    color: var(--brand-blue);
    text-decoration: none;
}

.profile-social-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 16px 0;
    flex-wrap: wrap;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(248, 109, 42, 0.1);
    color: var(--brand-primary);
    font-size: 20px;
    transition: all 0.2s;
    text-decoration: none;
}

.profile-action-buttons {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-action-btn {
    flex: 1;
    background: var(--bg-tertiary);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.profile-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

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

.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 4px;
}

.profile-grid-item {
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: var(--bg-secondary);
}

.profile-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-grid-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F86D2A, #e05a1e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-grid-placeholder i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-grid-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;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-grid-item:hover .profile-grid-overlay {
    opacity: 1;
}

.profile-grid-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-empty-state {
    grid-column: span 3;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.profile-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.profile-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}
/* ========== NOTIFICATIONS PANEL ========== */
.notifications-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.notifications-panel.open {
    right: 0;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.notifications-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-back:hover {
    background: var(--bg-tertiary);
}

.notifications-header span {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.notifications-mark-read {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: rgba(248, 109, 42, 0.05);
    border-left: 3px solid var(--brand-primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-icon.like {
    background: rgba(237, 73, 86, 0.1);
    color: #ED4956;
}

.notification-icon.comment {
    background: rgba(248, 109, 42, 0.1);
    color: #F86D2A;
}

.notification-icon.follow {
    background: rgba(0, 149, 246, 0.1);
    color: #0095f6;
}

.notification-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-text strong {
    font-weight: 600;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ED4956;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-badge.hide {
    display: none;
}

.header-action {
    position: relative;
}
/* ========== LIGHT MODE POST CARD FIXES ========== */

/* Post card text */
.post-card {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

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

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

.post-time {
    color: var(--text-secondary);
}

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

.caption-author {
    color: var(--text-primary);
    font-weight: 600;
}

.caption-text {
    color: var(--text-secondary);
}

.likes-count {
    color: var(--text-primary);
    font-weight: 600;
}

.view-comments {
    color: var(--text-secondary);
}

/* Action buttons */
.action-btn {
    color: var(--text-primary);
}

.like-btn.liked {
    color: #ED4956 !important;
}

.save-btn.saved {
    color: var(--brand-primary) !important;
}

/* Empty states */
.empty-state h3 {
    color: var(--text-primary);
}

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

/* Loading spinner */
.loading-spinner {
    border-color: var(--border-color);
    border-top-color: var(--brand-primary);
}

/* Light mode specific overrides */
body:not(.dark-mode) .post-name {
    color: #111111;
}

body:not(.dark-mode) .author-name {
    color: #111111;
}

body:not(.dark-mode) .post-time {
    color: #555555;
}

body:not(.dark-mode) .caption-author {
    color: #111111;
}

body:not(.dark-mode) .caption-text {
    color: #444444;
}

body:not(.dark-mode) .likes-count {
    color: #111111;
}

body:not(.dark-mode) .view-comments {
    color: #555555;
}

body:not(.dark-mode) .action-btn {
    color: #111111;
}

body:not(.dark-mode) .action-btn:hover {
    background: #EFEFEF;
}

body:not(.dark-mode) .empty-state h3 {
    color: #111111;
}

body:not(.dark-mode) .empty-state p {
    color: #555555;
}

/* Feed tabs */
body:not(.dark-mode) .tab-btn {
    color: #555555;
}

body:not(.dark-mode) .tab-btn.active {
    color: #F86D2A;
    background: rgba(248, 109, 42, 0.08);
}

body:not(.dark-mode) .tab-btn:hover {
    color: #111111;
    background: #EFEFEF;
}

/* Post image placeholder */
body:not(.dark-mode) .post-image-placeholder {
    background: linear-gradient(135deg, #F86D2A, #e05a1e);
}

body:not(.dark-mode) .post-image-placeholder i {
    color: rgba(255, 255, 255, 0.8);
}

/* Follow button */
body:not(.dark-mode) .follow-btn-small {
    background: #0095f6;
    color: white;
}

body:not(.dark-mode) .follow-btn-small.following {
    background: #EFEFEF;
    color: #111111;
    border: 1px solid #D4D4D4;
}

/* Verified badge */
body:not(.dark-mode) .verified-badge {
    color: #0095f6;
}

/* Post menu */
body:not(.dark-mode) .post-menu {
    color: #555555;
}

body:not(.dark-mode) .post-menu:hover {
    background: #EFEFEF;
    color: #111111;
}
/* Comments Section */
.post-comments-section {
    padding: 0 12px 12px;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
}

.comments-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 0;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

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

.comment-content {
    flex: 1;
}

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

.comment-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
}

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

.delete-comment-btn {
    background: none;
    border: none;
    color: var(--brand-red);
    font-size: 10px;
    cursor: pointer;
    padding: 0;
}

.comment-input-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.comment-input-field {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    resize: none;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 36px;
    max-height: 80px;
}

.comment-input-field:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.post-comment-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s;
}

.post-comment-btn:hover {
    background: var(--accent-hover);
}

.post-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}