/* ============================================
   EXPLORE QUOTES - COMPLETE STYLESHEET
   Version: 2.0.0 (Stories Removed)
   Includes: Feed, Modals, Profile, Activity, Messages, Settings
   ============================================ */

/* ========== ROOT VARIABLES ========== */
:root {
    /* Brand Colors */
    --brand-purple: #833AB4;
    --brand-pink: #E4405F;
    --brand-orange: #F56040;
    --brand-yellow: #FCAF45;
    --brand-red: #ED4956;
    --brand-blue: #0095f6;
    --brand-green: #28a745;
    --brand-primary: #F86D2A;
    --accent-hover: #e05a1e;
    
    /* Gradients */
    --gradient-brand: linear-gradient(45deg, #833AB4, #E4405F, #F56040, #FCAF45);
    --gradient-primary: linear-gradient(135deg, #F86D2A 0%, #e05a1e 100%);
    
    /* Light Mode */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #EFEFEF;
    --text-primary: #262626;
    --text-secondary: #8E8E8E;
    --text-tertiary: #C7C7C7;
    --border-color: #DBDBDB;
    --border-light: #EFEFEF;
    
    /* Shadows */
    --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);
    --shadow-modal: 0 10px 40px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-modal: 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

/* ========== RTL SUPPORT ========== */
body.rtl {
    direction: rtl;
}

body.rtl .post-actions,
body.rtl .post-header,
body.rtl .comment {
    direction: rtl;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 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 CONTAINER ========== */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER ========== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
}

.header-container {
    max-width: 975px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    transition: color var(--transition-fast);
}

.menu-button:hover {
    color: var(--brand-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-icon {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-icon:hover {
    color: var(--brand-primary);
}

/* ========== NOTIFICATION BADGES ========== */
.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--brand-red);
    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;
    box-shadow: 0 0 0 2px var(--bg-primary);
}

.badge.hide {
    display: none;
}

/* ========== MOBILE NAV DRAWER ========== */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    transition: left var(--transition-slow);
    box-shadow: var(--shadow-large);
}

.nav-drawer.open {
    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: 20px;
    font-weight: 600;
}

.drawer-logo i {
    color: var(--brand-primary);
}

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

.drawer-close:hover {
    color: var(--brand-primary);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    transition: background var(--transition-fast);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

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

.drawer-link i {
    width: 24px;
    font-size: 20px;
}

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

.admin-link {
    background: rgba(248, 109, 42, 0.1);
    margin: 4px 8px;
    border-radius: 8px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

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

/* ========== MAIN CONTENT AREA ========== */
#main-content {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background: var(--bg-primary);
    min-height: calc(100vh - 60px);
}

/* ========== FEED VIEW ========== */
#feed-view {
    width: 100%;
}

.main-feed {
    width: 100%;
    padding-bottom: 80px;
}

.feed-container {
    width: 100%;
}

/* ========== FEED TABS ========== */
.feed-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

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

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

/* ========== POSTS FEED ========== */
.posts-feed {
    display: flex;
    flex-direction: column;
}

/* Post Card */
.post-card {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.post-card:active {
    transform: scale(0.99);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

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

.post-avatar-link {
    display: block;
    line-height: 0;
}

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

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

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

.post-name a {
    color: inherit;
    text-decoration: none;
}

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

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    color: var(--brand-blue);
    font-size: 14px;
}

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

.post-menu {
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.post-menu:hover {
    color: var(--brand-primary);
}

/* Follow Button on Posts */
.follow-btn-small {
    background: #0095f6;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
    transition: all var(--transition-fast);
}

.follow-btn-small:hover {
    background: #0081d6;
    transform: scale(1.02);
}

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

.follow-btn-small.following:hover {
    background: var(--border-color);
}

/* Post Image */
.post-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

.post-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Skeleton Loader */
.skeleton-card {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}

.skeleton-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
    height: 14px;
    background: var(--bg-tertiary);
    border-radius: 7px;
    margin: 8px 0;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-tertiary);
    margin: 12px 0;
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

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

.actions-right {
    display: flex;
}

.action-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform var(--transition-fast);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:active {
    transform: scale(0.92);
}

.like-btn.liked {
    color: var(--brand-red);
    animation: likeBurst 0.3s ease-out;
}

@keyframes likeBurst {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

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

/* Double Tap Heart Animation */
.double-tap-heart {
    position: fixed;
    pointer-events: none;
    z-index: 3000;
    font-size: 80px;
    color: var(--brand-red);
    animation: doubleTapFloat 0.6s ease-out forwards;
}

@keyframes doubleTapFloat {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -80px) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150px) scale(0.8);
        opacity: 0;
    }
}

/* Likes Count */
.likes-count {
    padding: 0 16px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Liked By Section */
.liked-by-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.liked-by-avatars {
    display: flex;
    align-items: center;
}

.liked-by-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: -6px;
    border: 2px solid var(--bg-primary);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.liked-by-avatar:hover {
    transform: translateY(-2px);
}

.liked-by-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.liked-by-text {
    font-size: 12px;
    font-weight: 500;
}

/* Post Caption */
.post-caption {
    padding: 0 16px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.caption-author {
    font-weight: 600;
    text-decoration: none;
    margin-right: 6px;
}

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

/* Comments Section */
.view-comments {
    padding: 0 16px 8px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.post-comments-section {
    padding: 0 16px 16px;
    display: none;
}

.comments-list {
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
}

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

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

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

.comment-author {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.comment-author a {
    text-decoration: none;
}

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

.comment-text {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.comment-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.comment-input-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    resize: none;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

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

.post-comment-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.post-comment-btn:active {
    transform: scale(0.95);
}

/* Feed End */
.feed-end {
    text-align: center;
    padding: 40px 20px 60px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

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

.feed-end p {
    font-size: 14px;
}

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

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

/* ========== QUOTE MODAL V2 ========== */
.quote-modal-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    animation: modalFadeIn 0.2s ease;
}

.quote-modal-v2.active {
    display: flex;
}

.quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.quote-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

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

.quote-modal-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-left: -8px;
}

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

.modal-author-name {
    font-weight: 600;
    font-size: 15px;
}

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

.quote-modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-loading {
    text-align: center;
}

.modal-quote-text-display {
    font-size: 28px;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 20px;
}

.modal-quote-image {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 20px;
}

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

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

.modal-action-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    transition: transform var(--transition-fast);
}

.modal-action-btn:active {
    transform: scale(0.92);
}

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

.modal-caption {
    font-size: 14px;
    padding: 0 16px 12px 16px;
    line-height: 1.4;
}

.modal-comments-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.modal-comments-list {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
    padding: 0 16px;
}

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

.modal-comment-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

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

.modal-post-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

/* ========== UPLOAD MODAL ========== */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.upload-modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.upload-modal-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.upload-modal-body {
    padding: 20px;
}

.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    text-align: center;
    padding: 30px;
    cursor: pointer;
    margin-bottom: 16px;
}

.image-upload-area i {
    font-size: 40px;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.modal-image-preview {
    position: relative;
    margin-bottom: 16px;
}

.modal-image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.modal-quote-text {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

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

.modal-category-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 12px 0;
}

.modal-tags-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 12px 0;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-size: 13px;
}

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

.modal-submit-btn:active {
    transform: scale(0.98);
}

/* ========== FULL SCREEN MODALS ========== */
.modal-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

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

.modal-fullscreen-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

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

.modal-fullscreen-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-fullscreen-header h3 i {
    color: var(--brand-primary);
}

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

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

.modal-fullscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

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

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

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

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

.category-card-modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

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

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

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

.category-card-modal h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.category-card-modal p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.category-count {
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 500;
}

/* Quotes List Modal */
.quotes-list-modal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.quote-card-modal:hover {
    transform: translateX(4px);
    border-color: var(--brand-primary);
}

.quote-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

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

.quote-card-author {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.quote-card-text {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-style: italic;
}

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

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

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

.author-card-modal:hover {
    transform: translateX(4px);
    border-color: var(--brand-primary);
}

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

.author-card-info {
    flex: 1;
}

.author-card-name {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

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

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

/* About Modal */
.about-hero {
    text-align: center;
    padding: 40px 20px;
    background: var(--gradient-primary);
    border-radius: 24px;
    color: white;
    margin-bottom: 32px;
}

.about-hero i {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.about-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

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

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

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

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

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

.founder-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 16px;
}

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

.founder-info h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.founder-title {
    font-size: 14px;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.founder-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Contact Modal */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.contact-card {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

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

.contact-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.form-footer {
    margin-top: 8px;
}

.btn-primary {
    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 var(--transition-fast);
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* How It Works Modal */
.howitworks-hero {
    text-align: center;
    padding: 40px 20px;
    background: var(--gradient-primary);
    border-radius: 24px;
    color: white;
    margin-bottom: 40px;
}

.howitworks-hero i {
    font-size: 48px;
    margin-bottom: 16px;
}

.howitworks-hero h1 {
    font-size: 28px;
    font-weight: 700;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.step-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.step-card:hover {
    transform: translateX(8px);
    border-color: var(--brand-primary);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--brand-primary);
}

.step-content p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Settings Modal */
.settings-content {
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

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

.setting-info {
    flex: 1;
}

.setting-label {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
}

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

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

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

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

/* Select Dropdown */
.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;
}

/* Danger Button */
.setting-danger-btn {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
}

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

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

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--brand-primary);
}

.legal-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-date {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Help Modal */
.help-search {
    position: relative;
    margin-bottom: 24px;
}

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

.help-search input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.help-category {
    margin-bottom: 24px;
}

.help-category h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.help-question {
    padding: 16px 20px;
    background: var(--bg-secondary);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.help-question:hover {
    background: var(--bg-tertiary);
}

.help-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.help-item.open .help-question::after {
    transform: rotate(180deg);
}

.help-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.help-item.open .help-answer {
    padding: 16px 20px;
    max-height: 300px;
}

.help-contact {
    text-align: center;
    padding: 24px;
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
}

.help-contact p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Change Password/Email Forms */
#change-password-form .form-group,
#delete-account-form .form-group {
    margin-bottom: 20px;
}

#change-password-form label,
#delete-account-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

#change-password-form input,
#delete-account-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

#change-password-form input:focus,
#delete-account-form input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* Password Strength */
#password-strength {
    font-size: 12px;
    margin-top: 8px;
    padding: 6px 0;
}

/* Warning Box */
.warning-box {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.warning-box i {
    color: #dc3545;
    font-size: 20px;
}

.warning-box p {
    font-size: 14px;
    color: var(--text-primary);
}

.btn-danger {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-danger:hover {
    background: #c82333;
}

/* Messages Panel */
.messages-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 20000 !important;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.messages-panel.open {
    right: 0;
    display: flex !important;
}

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

.messages-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-left: -8px;
}

.new-message-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--brand-primary);
    padding: 8px;
}

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

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

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

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

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

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

.conversation-last-message {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Chat View */
.chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-primary);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.chat-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-left: -8px;
}

.chat-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.chat-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.sent .message-bubble {
    background: var(--brand-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-bubble {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-left: 8px;
    margin-right: 8px;
}

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

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    resize: none;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    max-height: 100px;
}

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

#send-btn {
    background: var(--brand-primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Profile Panel */
.profile-container {
    background: var(--bg-primary);
    min-height: 100vh;
}

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

.profile-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-left: -8px;
}

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

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

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

.profile-info-section {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 24px;
}

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

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

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

.profile-stat-number {
    font-weight: 700;
    font-size: 18px;
}

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

.profile-bio-section {
    margin-bottom: 20px;
}

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

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

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

.profile-action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.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 var(--transition-fast);
}

.profile-action-btn.follow-btn {
    background: var(--brand-blue);
    color: white;
}

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

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

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

.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-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: var(--gradient-primary);
    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 var(--transition-fast);
}

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

/* Activity Panel */
.activity-container {
    background: var(--bg-primary);
    min-height: 100vh;
}

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

.activity-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-left: -8px;
}

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

.activity-settings {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
}

.activity-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.activity-stat {
    text-align: center;
}

.activity-stat-number {
    font-weight: 700;
    font-size: 22px;
    color: var(--brand-primary);
}

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

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

.activity-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.activity-tab.active {
    background: var(--brand-primary);
    color: white;
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

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

.activity-item.unread {
    background: rgba(248, 109, 42, 0.05);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 20px;
}

.activity-icon.like i {
    color: var(--brand-red);
}

.activity-icon.comment i {
    color: var(--brand-primary);
}

.activity-icon.follow i {
    color: var(--brand-blue);
}

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

.activity-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

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

.quote-preview {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

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

.activity-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Search Panel */
.search-container {
    background: var(--bg-primary);
    min-height: 100vh;
}

.search-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-left: -8px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 16px;
}

#search-input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    display: none;
}

.search-ai-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--brand-primary);
    padding: 8px;
}

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

.search-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 30px;
    transition: all var(--transition-fast);
}

.search-tab.active {
    background: var(--brand-primary);
    color: white;
}

.search-results {
    display: flex;
    flex-direction: column;
}

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

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.recent-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.clear-recent {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--brand-primary);
    cursor: pointer;
}

.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recent-item:hover {
    background: var(--border-color);
}

.remove-recent {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 12px;
}

.trending-section {
    padding: 16px;
}

.trending-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.trending-header i {
    color: var(--brand-primary);
    margin-right: 8px;
}

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

.trending-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.trending-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.trending-rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
    width: 32px;
    text-align: center;
}

.trending-content {
    flex: 1;
}

.trending-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

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

.trending-stats {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 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: 100;
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

/* Loading States */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--brand-primary);
    opacity: 0.6;
}

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

.empty-state p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #262626;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all var(--transition-slow);
    white-space: nowrap;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--brand-green);
}

.toast.error {
    background: var(--brand-red);
}

.toast.info {
    background: var(--brand-primary);
}

.toast.warning {
    background: var(--brand-yellow);
    color: var(--text-primary);
}

/* 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: 20000 !important;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

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

.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;
    font-size: 16px;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .categories-grid-modal {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .founder-card {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-avatar {
        margin: 0 auto;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-info-section {
        gap: 20px;
    }
    
    .profile-avatar-large {
        width: 70px;
        height: 70px;
    }
    
    .activity-stats {
        padding: 16px;
    }
    
    .activity-stat-number {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .profile-info-section {
        gap: 16px;
    }
    
    .profile-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .profile-stat-number {
        font-size: 14px;
    }
    
    .toast {
        bottom: 70px;
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}
/* Hide search button in header */
#search-header-btn {
    display: none !important;
}
/* ========== FULL SCREEN MODALS - FIXED ========== */

/* Modal Base - Full screen */
.modal-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-fullscreen-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Modal Header - Fixed at top */
.modal-fullscreen-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    flex-shrink: 0;
}

.modal-fullscreen-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-fullscreen-header h3 i {
    color: var(--brand-primary);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    line-height: 1;
}

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

/* Modal Body - Scrollable */
.modal-fullscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    height: calc(100% - 60px);
}

/* ========== SETTINGS MODAL - FULL SCREEN FIX ========== */

#settings-modal .modal-fullscreen-body {
    padding: 20px;
}

.settings-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

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

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

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

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

.setting-info {
    flex: 1;
    padding-right: 16px;
}

.setting-label {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
}

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

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

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

/* Select Dropdown */
.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;
}

/* Danger Button */
.setting-danger-btn {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
}

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

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

/* ========== RESPONSIVE FIXES ========== */

@media (max-width: 768px) {
    .modal-fullscreen-body {
        padding: 16px;
    }
    
    .settings-section {
        padding: 16px;
    }
    
    .setting-label {
        font-size: 15px;
    }
    
    .setting-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .setting-info {
        padding-right: 0;
    }
    
    .toggle-switch {
        align-self: flex-start;
    }
    
    .setting-item select {
        width: 100%;
    }
    
    .modal-fullscreen-header {
        padding: 14px 16px;
    }
    
    .modal-fullscreen-header h3 {
        font-size: 16px;
    }
    
    .modal-fullscreen-body {
        padding: 12px;
    }
}

/* ========== OTHER MODALS - FULL SCREEN FIX ========== */

/* Categories, Quotes, Authors Modals */
#categories-modal .modal-fullscreen-body,
#quotes-modal .modal-fullscreen-body,
#authors-modal .modal-fullscreen-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Search Box inside modals */
#categories-modal .search-box,
#authors-modal .search-box {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
    margin: 0;
}

/* Sort Bar */
#quotes-modal .sort-bar {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* Scrollable lists */
#categories-grid,
#quotes-list,
#authors-list-modal {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* About Modal */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Contact Modal */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* How It Works Modal */
.howitworks-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Help Content */
.help-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
/* ========== REPORT MODAL STYLES ========== */

.report-reason {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.report-reason:hover {
    background: var(--bg-tertiary);
}

.report-reason.selected {
    border-color: #F86D2A;
    background: rgba(248, 109, 42, 0.1);
}

.report-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    position: relative;
    flex-shrink: 0;
}

.report-reason.selected .report-radio {
    border-color: #F86D2A;
}

.report-reason.selected .report-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #F86D2A;
}

.report-reason strong {
    font-size: 14px;
}

.report-reason small {
    font-size: 11px;
    color: var(--text-secondary);
}

#report-preview {
    word-break: break-word;
    font-size: 14px;
    line-height: 1.5;
}
/* ========== PROFILE PANEL - ENSURE VISIBILITY ========== */

#profile-panel {
    position: relative;
    background: var(--bg-primary);
    min-height: 100vh;
    z-index: 100;
}

/* Make sure profile panel shows above feed */
#profile-panel[style*="display: block"] {
    display: block !important;
}

#feed-view[style*="display: none"] {
    display: none !important;
}

/* Profile container */
.profile-container {
    background: var(--bg-primary);
    min-height: 100vh;
    width: 100%;
}

/* Profile header sticky */
.profile-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;
}

/* Profile content */
.profile-content {
    padding: 20px 16px;
    padding-bottom: 80px;
}
/* ========== SINGLE CATEGORY MODAL ========== */

#single-category-modal .modal-fullscreen-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;
}

.modal-back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#single-category-modal .modal-fullscreen-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-info {
    flex-shrink: 0;
}

.category-quotes-list {
    flex: 1;
    overflow-y: auto;
}

.category-quote-card:hover {
    transform: translateX(4px);
    border-color: var(--brand-primary);
}

/* Scrollbar */
.category-quotes-list::-webkit-scrollbar {
    width: 4px;
}

.category-quotes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.category-quotes-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
/* ========== COMMENT INPUT FIELD STYLES ========== */

/* Comment input wrapper */
.comment-input-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: flex-end;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.comment-input-wrapper:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(248, 109, 42, 0.1);
}

/* Comment input field */
.comment-input-field {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 24px;
    resize: none;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    max-height: 80px;
    min-height: 38px;
    line-height: 1.4;
    outline: none;
}

.comment-input-field::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.comment-input-field:focus {
    outline: none;
}

/* Post comment button */
.post-comment-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 38px;
}

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

.post-comment-btn:active {
    transform: scale(0.98);
}

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

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

.modal-comment-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.modal-comment-input input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(248, 109, 42, 0.1);
}

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

.modal-post-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

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

/* Dark mode adjustments */
body.dark-mode .comment-input-field {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

body.dark-mode .comment-input-wrapper {
    background: var(--bg-tertiary);
}

body.dark-mode .modal-comment-input input {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

/* Comments list styles */
.comments-list {
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment:last-child {
    border-bottom: none;
}

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

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

.comment-author {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.comment-author a {
    color: var(--text-primary);
    text-decoration: none;
}

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

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

.comment-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.delete-comment-btn:hover {
    opacity: 0.8;
}

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

/* Loading spinner small */
.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Responsive */
@media (max-width: 480px) {
    .comment-input-field {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .post-comment-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .comment-text {
        font-size: 12px;
    }
    
    .comment-author {
        font-size: 12px;
    }
}