/* ============================================
   QUOTESNOVA - COMPLETE STYLESHEET v3.0
   Includes: Feed, Modals, Profile, Activity, Messages, Settings, SEO
   ============================================ */

/* ========== ROOT VARIABLES ========== */
:root {
    --brand-primary: #F86D2A;
    --accent-hover: #e05a1e;
    --brand-red: #ED4956;
    --brand-blue: #0095f6;
    --brand-green: #28a745;
    
    --gradient-primary: linear-gradient(135deg, #F86D2A 0%, #e05a1e 100%);
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #EFEFEF;
    --text-primary: #262626;
    --text-secondary: #8E8E8E;
    --border-color: #DBDBDB;
    --border-light: #EFEFEF;
    
    --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: #8E8E8E;
    --border-color: #262626;
    --border-light: #1A1A1A;
}

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

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

/* ========== LOGO STYLES ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    background: none;
    border: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

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

.logo span {
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Logo variations for different contexts */
.drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

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

.drawer-logo span {
    font-weight: 700;
}

/* ========== HEADER RIGHT ICONS ========== */
.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-icon {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    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-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
}

.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;
    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 ========== */
#main-content {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background: var(--bg-primary);
    min-height: calc(100vh - 60px);
}

/* ========== DESKTOP NAVIGATION (SEO) ========== */
.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.desktop-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--brand-primary);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* ========== SEO CONTENT BLOCK ========== */
.seo-content-block {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.seo-content-block h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.seo-content-block p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.seo-content-block h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 15px;
}

.seo-content-block ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-content-block li {
    margin-bottom: 8px;
}

.seo-content-block li a {
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 16px;
}

.seo-content-block li a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .seo-content-block {
        padding: 20px 16px;
    }
    .seo-content-block h1 {
        font-size: 24px;
    }
    .seo-content-block h2 {
        font-size: 20px;
    }
}

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

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

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

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

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .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 {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}
/* ========== LOGO STYLES ========== */

/* Main logo in header */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    background: none;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Playfair Display', serif;
}

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

.logo span {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Logo in drawer menu */
.drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
}

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

.drawer-logo span {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Logo text highlight */
.logo .highlight,
.drawer-logo .highlight {
    color: var(--brand-primary);
}

/* Logo variants for dark mode */
body.dark-mode .logo,
body.dark-mode .drawer-logo {
    color: var(--text-primary);
}
/* LOGO CONTAINER */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

/* ICON */
.logo-icon {
    font-size: 20px;
    color: #F86D2A;
    transition: transform 0.3s ease;
}

/* TEXT */
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.3px;
}

/* HOVER EFFECT (Apple style subtle) */
.logo:hover .logo-icon {
    transform: translateY(-2px) scale(1.05);
}

.logo:hover .logo-text {
    opacity: 0.85;
}
.logo-text {
    background: linear-gradient(90deg, #111, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* ========== FEED STYLES ========== */

/* Feed Container */
.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: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.tab-btn:hover:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* 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: background 0.2s ease;
}

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

/* 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 {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

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

.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 {
    display: inline-flex;
    align-items: center;
    color: var(--brand-blue);
    font-size: 12px;
}

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

/* Post Menu */
.post-menu {
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    border-radius: 50%;
}

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

/* Follow Button */
.follow-btn-small {
    background: var(--brand-blue);
    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;
    background: var(--bg-tertiary);
}

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

.post-image:hover {
    transform: scale(1.02);
}

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

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    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: all var(--transition-fast);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 50%;
}

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

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

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

.like-btn.liked i {
    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);
}

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

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

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

.liked-by-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.caption-author {
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    margin-right: 6px;
}

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

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

/* 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 Item */
.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;
    cursor: pointer;
}

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

.delete-comment-btn:hover {
    text-decoration: underline;
}

/* Comment Input */
.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 {
    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;
}

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

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

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

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

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

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

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

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

/* Load More Button */
.load-more-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 20px auto;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.load-more-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

/* Empty State */
.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;
    color: var(--text-primary);
}

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

.empty-state .btn-primary {
    width: auto;
    padding: 10px 24px;
    display: inline-block;
}

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

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

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

body.dark-mode .post-card:hover {
    background: var(--bg-secondary);
}

/* Responsive Feed */
@media (max-width: 768px) {
    .action-btn {
        font-size: 22px;
    }
    
    .post-name {
        font-size: 13px;
    }
    
    .post-caption {
        font-size: 13px;
    }
    
    .comments-list {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .actions-left {
        gap: 12px;
    }
    
    .action-btn {
        font-size: 20px;
        padding: 6px;
    }
    
    .post-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-input-field {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .post-comment-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}
/* ============================================
   QUOTESNOVA - ADVANCED MODAL STYLES
   Elite animations & effects
   Version: 3.0
   ============================================ */

/* ========== MODAL BASE ========== */
.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;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 0.3s ease;
}

.modal-fullscreen.active,
.modal-fullscreen[style*="display: flex"] {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ========== MODAL HEADER ========== */
.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;
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-primary-rgb), 0.95);
}

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

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

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

.modal-close-btn:hover {
    color: var(--brand-primary);
    background: var(--bg-tertiary);
    transform: rotate(90deg);
}

/* ========== MODAL BODY ========== */
.modal-fullscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    animation: fadeInUp 0.3s ease;
}

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

.quote-modal-v2.active {
    display: flex;
    animation: modalZoomIn 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

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

.quote-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        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;
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-primary-rgb), 0.95);
}

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

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

.quote-modal-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.quote-modal-user-info:hover {
    opacity: 0.8;
}

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

.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;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

.modal-quote-image {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 20px;
    animation: imagePop 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

.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);
    animation: slideUp 0.3s ease;
}

.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: all 0.2s ease;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.modal-action-btn.liked {
    color: var(--brand-red);
    animation: heartBeat 0.3s ease;
}

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

.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;
    animation: fadeInUp 0.3s ease;
}

.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);
    animation: slideUp 0.2s ease;
}

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

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

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

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

.modal-post-btn:active {
    transform: translateY(0);
}

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

.upload-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.upload-modal-content {
    background: var(--bg-primary);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

.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);
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.upload-modal-close:hover {
    background: var(--bg-tertiary);
    transform: rotate(90deg);
}

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

.image-upload-area:hover {
    border-color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.05);
    transform: scale(1.02);
}

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

.modal-image-preview {
    position: relative;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.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;
    transition: all 0.2s ease;
}

.remove-image-btn:hover {
    background: var(--brand-red);
    transform: scale(1.1);
}

.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;
    transition: all 0.2s ease;
}

.modal-quote-text:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(248, 109, 42, 0.1);
}

.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;
    transition: all 0.2s ease;
}

.modal-submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

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

.post-menu-modal.active {
    display: flex !important;
    animation: fadeIn 0.2s ease;
}

.post-menu-container {
    background: var(--bg-primary);
    width: 100%;
    max-width: 500px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    animation: slideUpMenu 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes slideUpMenu {
    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: all 0.2s ease;
    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);
    transform: translateX(4px);
}

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

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

/* ========== SETTINGS MODAL ========== */
.settings-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

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

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.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;
    transition: all 0.2s ease;
}

.setting-item:hover {
    padding-left: 8px;
}

.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 Animation */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg-tertiary);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s 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.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

/* 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;
    transition: all 0.2s ease;
}

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

/* ========== CATEGORIES, QUOTES, AUTHORS MODALS ========== */
#categories-grid,
#quotes-list,
#authors-list-modal {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.category-card-modal,
.quote-card-modal,
.author-card-modal {
    animation: fadeInUp 0.3s ease;
    transition: all 0.2s ease;
}

.category-card-modal:hover,
.quote-card-modal:hover,
.author-card-modal:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ========== HOW IT WORKS MODAL ========== */
.step-card {
    animation: fadeInRight 0.3s ease;
    transition: all 0.2s ease;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== ANIMATION KEYFRAMES ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== SCROLLBAR STYLES ========== */
.modal-fullscreen-body::-webkit-scrollbar,
.modal-comments-list::-webkit-scrollbar,
.comments-list::-webkit-scrollbar {
    width: 4px;
}

.modal-fullscreen-body::-webkit-scrollbar-track,
.modal-comments-list::-webkit-scrollbar-track,
.comments-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.modal-fullscreen-body::-webkit-scrollbar-thumb,
.modal-comments-list::-webkit-scrollbar-thumb,
.comments-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-fullscreen-body::-webkit-scrollbar-thumb:hover,
.modal-comments-list::-webkit-scrollbar-thumb:hover,
.comments-list::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ========== RESPONSIVE MODALS ========== */
@media (max-width: 768px) {
    .modal-fullscreen-header {
        padding: 12px 16px;
    }
    
    .modal-fullscreen-header h3 {
        font-size: 16px;
    }
    
    .modal-fullscreen-body {
        padding: 16px;
    }
    
    .quote-modal-content {
        padding: 16px;
    }
    
    .modal-quote-text-display {
        font-size: 22px;
    }
    
    .upload-modal-content {
        margin: 16px;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .modal-actions-left {
        gap: 16px;
    }
    
    .modal-action-btn {
        font-size: 22px;
        width: 36px;
        height: 36px;
    }
    
    .modal-avatar {
        width: 32px;
        height: 32px;
    }
    
    .settings-section {
        padding: 16px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .toggle-switch {
        align-self: flex-start;
    }
}

/* ========== DARK MODE SPECIFIC ========== */
body.dark-mode .modal-fullscreen-header {
    background: rgba(0, 0, 0, 0.95);
}

body.dark-mode .quote-modal-header {
    background: rgba(0, 0, 0, 0.95);
}

body.dark-mode .settings-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ========== REDUCED MOTION PREFERENCE ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* ============================================
   QUOTESNOVA - QUOTES, AUTHORS, CATEGORIES, CONTACT MODALS
   Advanced styles with animations
   Version: 3.0
   ============================================ */

/* ========== CATEGORIES MODAL ========== */
#categories-modal .modal-fullscreen-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#categories-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;
}

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

#categories-modal .search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

#categories-modal .search-box input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(248, 109, 42, 0.1);
}

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

.category-card-modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.category-card-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 109, 42, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card-modal:hover::before {
    left: 100%;
}

.category-card-modal:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.15), rgba(248, 109, 42, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: transform 0.3s ease;
}

.category-card-modal:hover .category-icon {
    transform: scale(1.1);
}

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

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

.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: 600;
    background: rgba(248, 109, 42, 0.1);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
}

/* ========== QUOTES MODAL ========== */
#quotes-modal .modal-fullscreen-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

#quotes-modal .sort-bar span {
    font-size: 13px;
    color: var(--text-secondary);
}

#quotes-modal .sort-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#quotes-modal .sort-bar select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

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

.quote-card-modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.3s ease;
}

.quote-card-modal:hover {
    transform: translateX(6px);
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.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;
    border: 2px solid var(--brand-primary);
}

.quote-card-author {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--text-primary);
}

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

.quote-card-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-style: italic;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.quote-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========== AUTHORS MODAL ========== */
#authors-modal .modal-fullscreen-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

#authors-modal .search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

#authors-modal .search-box input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(248, 109, 42, 0.1);
}

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

.author-card-modal {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--border-color);
    animation: fadeInLeft 0.3s ease;
}

.author-card-modal:hover {
    transform: translateX(6px);
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-primary);
    transition: transform 0.3s ease;
}

.author-card-modal:hover .author-card-avatar {
    transform: scale(1.05);
}

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

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

.author-card-bio {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* ========== 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;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.modal-back-btn:hover {
    background: var(--bg-tertiary);
    transform: translateX(-2px);
}

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

.category-info {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

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

.category-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.category-stats i {
    color: var(--brand-primary);
    margin-right: 4px;
}

.category-quotes-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.category-quote-card:hover {
    transform: translateX(4px);
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-quote-text {
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.category-quote-author {
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-primary);
}

/* ========== CONTACT MODAL ========== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

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

.contact-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 36px;
    color: var(--brand-primary);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.1);
}

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

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

.contact-card span {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    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);
    box-shadow: 0 0 0 3px rgba(248, 109, 42, 0.1);
}

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

.contact-form .form-footer {
    text-align: center;
    margin-top: 8px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-form .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 109, 42, 0.3);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
}

.contact-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

/* Form Status Messages */
.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-status.success {
    display: block;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 3px solid #28a745;
}

.form-status.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

.form-status i {
    margin-right: 8px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .categories-grid-modal {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-card {
        padding: 20px 16px;
    }
    
    .author-card-modal {
        padding: 12px;
    }
    
    .author-card-avatar {
        width: 48px;
        height: 48px;
    }
    
    .quote-card-modal {
        padding: 12px;
    }
    
    .category-card-modal {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .categories-grid-modal {
        gap: 8px;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
    }
    
    .category-icon i {
        font-size: 24px;
    }
    
    .category-card-modal h4 {
        font-size: 14px;
    }
    
    .author-card-name {
        font-size: 14px;
    }
    
    .author-card-bio {
        font-size: 11px;
    }
    
    .quote-card-text {
        font-size: 13px;
    }
    
    .contact-card i {
        font-size: 28px;
    }
    
    .contact-card h4 {
        font-size: 14px;
    }
}

/* ========== DARK MODE ADJUSTMENTS ========== */
body.dark-mode .category-card-modal:hover,
body.dark-mode .quote-card-modal:hover,
body.dark-mode .author-card-modal:hover,
body.dark-mode .contact-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .category-icon {
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.2), rgba(248, 109, 42, 0.05));
}

/* ========== SCROLLBAR ========== */
.categories-grid-modal::-webkit-scrollbar,
.quotes-list-modal::-webkit-scrollbar,
.authors-list-modal::-webkit-scrollbar,
.category-quotes-list::-webkit-scrollbar {
    width: 4px;
}

.categories-grid-modal::-webkit-scrollbar-track,
.quotes-list-modal::-webkit-scrollbar-track,
.authors-list-modal::-webkit-scrollbar-track,
.category-quotes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.categories-grid-modal::-webkit-scrollbar-thumb,
.quotes-list-modal::-webkit-scrollbar-thumb,
.authors-list-modal::-webkit-scrollbar-thumb,
.category-quotes-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.categories-grid-modal::-webkit-scrollbar-thumb:hover,
.quotes-list-modal::-webkit-scrollbar-thumb:hover,
.authors-list-modal::-webkit-scrollbar-thumb:hover,
.category-quotes-list::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}
/* ============================================
   CATEGORIES MODAL - PROFESSIONAL STYLES
   ============================================ */

/* Categories Modal Container */
#categories-modal .modal-fullscreen-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-primary);
}

/* Search Box */
#categories-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;
}

#categories-modal .search-box i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
}

#categories-modal .search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

#categories-modal .search-box input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(248, 109, 42, 0.1);
}

#categories-modal .search-box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Categories Grid */
.categories-grid-modal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* Category Card */
.category-card-modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.category-card-modal:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Category Icon */
.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.15), rgba(248, 109, 42, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
}

.category-card-modal:hover .category-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.25), rgba(248, 109, 42, 0.1));
}

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

/* Category Name */
.category-card-modal h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Description */
.category-card-modal p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Quote Count Badge */
.category-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.1);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.category-card-modal:hover .category-count {
    background: var(--brand-primary);
    color: white;
}

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

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

.categories-empty p {
    font-size: 14px;
}

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

.categories-loading .loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .categories-grid-modal {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .category-card-modal {
        padding: 16px 12px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .category-icon i {
        font-size: 24px;
    }
    
    .category-card-modal h4 {
        white-space: normal;
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .category-card-modal p {
        font-size: 11px;
        margin-bottom: 4px;
        -webkit-line-clamp: 1;
    }
    
    .category-count {
        font-size: 10px;
        padding: 2px 10px;
    }
}

@media (max-width: 480px) {
    .categories-grid-modal {
        padding: 12px;
    }
    
    .category-card-modal {
        padding: 12px;
    }
    
    .category-icon {
        width: 44px;
        height: 44px;
    }
    
    .category-icon i {
        font-size: 22px;
    }
    
    .category-card-modal h4 {
        font-size: 13px;
    }
}

/* ========== DARK MODE ========== */
body.dark-mode .category-card-modal:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .category-icon {
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.2), rgba(248, 109, 42, 0.05));
}

body.dark-mode .category-card-modal:hover .category-icon {
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.3), rgba(248, 109, 42, 0.1));
}

/* ========== ANIMATIONS ========== */
.category-card-modal {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

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

/* Stagger animation for cards */
.category-card-modal:nth-child(1) { animation-delay: 0.02s; }
.category-card-modal:nth-child(2) { animation-delay: 0.04s; }
.category-card-modal:nth-child(3) { animation-delay: 0.06s; }
.category-card-modal:nth-child(4) { animation-delay: 0.08s; }
.category-card-modal:nth-child(5) { animation-delay: 0.10s; }
.category-card-modal:nth-child(6) { animation-delay: 0.12s; }
.category-card-modal:nth-child(7) { animation-delay: 0.14s; }
.category-card-modal:nth-child(8) { animation-delay: 0.16s; }
.category-card-modal:nth-child(9) { animation-delay: 0.18s; }
.category-card-modal:nth-child(10) { animation-delay: 0.20s; }
/* ============================================
   QUOTESNOVA - ALL PANELS CSS
   Profile, Activity, Messages, Settings, Dashboard, Explore
   Version: 3.0
   ============================================ */

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

.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-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-left: -8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
}

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

.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;
    padding-bottom: 80px;
}

.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 0.2s ease;
}

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

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

/* ========== PROFESSIONAL DASHBOARD ========== */
.profile-dashboard {
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

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

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

.dashboard-stat-card .stat-icon {
    font-size: 28px;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

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

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

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

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

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

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

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

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

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

.top-quote-text {
    font-size: 13px;
    margin-bottom: 4px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* ========== 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;
    z-index: 10;
}

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

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

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

.activity-settings {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

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

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

/* ========== 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 cubic-bezier(0.2, 0.9, 0.4, 1.1);
    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;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

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

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

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

.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;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

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

.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-user-info .chat-user-name {
    font-weight: 600;
    font-size: 15px;
}

.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%;
    animation: fadeInUp 0.2s ease;
}

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

/* ========== SETTINGS PANEL ========== */
.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%;
    transition: all 0.2s ease;
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.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%;
    transition: all 0.2s ease;
}

.setting-item:hover {
    padding-left: 8px;
}

.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.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    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.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

/* ========== EXPLORE PAGE STYLES ========== */
.explore-container {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 70px;
}

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

.explore-search-bar {
    position: relative;
    width: 100%;
}

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

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

.explore-search-bar input:focus {
    background: var(--bg-primary);
    border: 1px solid var(--brand-primary);
}

.explore-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.explore-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explore-section h2 i {
    color: var(--brand-primary);
}

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

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

.trending-item:hover {
    transform: translateX(4px);
    border-color: var(--brand-primary);
}

.trending-rank {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
    width: 40px;
}

.trending-content {
    flex: 1;
}

.trending-text {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 4px;
}

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

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

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

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

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

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

.explore-category-card span {
    font-size: 14px;
    font-weight: 500;
}

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

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

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

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

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

.explore-author-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

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

.search-results-section {
    padding: 20px;
}

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

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

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

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    font-size: 14px;
}

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

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .profile-info-section {
        gap: 20px;
    }
    
    .profile-avatar-large {
        width: 70px;
        height: 70px;
    }
    
    .activity-stats {
        padding: 16px;
    }
    
    .activity-stat-number {
        font-size: 18px;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-info-section {
        gap: 16px;
    }
    
    .profile-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .profile-stat-number {
        font-size: 14px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .setting-info {
        padding-right: 0;
    }
    
    .toggle-switch {
        align-self: flex-start;
    }
    
    .message {
        max-width: 85%;
    }
    
    .conversation-avatar {
        width: 44px;
        height: 44px;
    }
}

/* ========== SCROLLBAR ========== */
.profile-container::-webkit-scrollbar,
.activity-container::-webkit-scrollbar,
.conversations-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.profile-container::-webkit-scrollbar-track,
.activity-container::-webkit-scrollbar-track,
.conversations-list::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.profile-container::-webkit-scrollbar-thumb,
.activity-container::-webkit-scrollbar-thumb,
.conversations-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.profile-container::-webkit-scrollbar-thumb:hover,
.activity-container::-webkit-scrollbar-thumb:hover,
.conversations-list::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ========== DARK MODE ADJUSTMENTS ========== */
body.dark-mode .dashboard-stat-card:hover,
body.dark-mode .settings-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .explore-search-bar input:focus {
    background: var(--bg-secondary);
}

body.dark-mode .trending-item:hover,
body.dark-mode .explore-category-card:hover,
body.dark-mode .explore-author-card:hover {
    background: var(--bg-tertiary);
}
/* ============================================
   QUOTESNOVA - UPLOAD MODAL CSS
   Instagram-style create post modal
   Version: 3.0
   ============================================ */

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

.upload-modal.active {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

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

/* ========== UPLOAD MODAL CONTENT ========== */
.upload-modal-content {
    background: var(--bg-primary);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

/* ========== UPLOAD MODAL HEADER ========== */
.upload-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.upload-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.upload-modal-header h3 i {
    color: var(--brand-primary);
    font-size: 20px;
}

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

.upload-modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--brand-primary);
    transform: rotate(90deg);
}

/* ========== UPLOAD MODAL BODY ========== */
.upload-modal-body {
    padding: 20px;
}

/* ========== IMAGE UPLOAD AREA ========== */
.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    text-align: center;
    padding: 40px 20px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.image-upload-area:hover {
    border-color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.05);
    transform: scale(1.02);
}

.image-upload-area i {
    font-size: 48px;
    color: var(--brand-primary);
    margin-bottom: 12px;
    display: block;
}

.image-upload-area p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

/* ========== IMAGE PREVIEW ========== */
.modal-image-preview {
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    animation: fadeIn 0.3s ease;
}

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

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

.remove-image-btn:hover {
    background: var(--brand-red);
    transform: scale(1.1);
}

.remove-image-btn i {
    font-size: 16px;
}

/* ========== FORM FIELDS ========== */
.modal-quote-text {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.modal-quote-text:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(248, 109, 42, 0.1);
}

.modal-quote-text::placeholder {
    color: var(--text-tertiary);
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Author Input */
.modal-author-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

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

.modal-author-input::placeholder {
    color: var(--text-tertiary);
}

/* Category Select */
.modal-category-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Tags Input */
.modal-tags-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

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

.modal-tags-input::placeholder {
    color: var(--text-tertiary);
}

/* ========== CHECKBOX GROUP ========== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand-primary);
}

.checkbox-group label {
    cursor: pointer;
    color: var(--text-secondary);
}

/* ========== SUBMIT BUTTON ========== */
.modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 109, 42, 0.3);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-submit-btn i {
    font-size: 16px;
}

/* ========== LOADING STATE ========== */
.modal-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modal-submit-btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* ========== SUCCESS/ERROR MESSAGES ========== */
.upload-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
    display: none;
}

.upload-status.success {
    display: block;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 3px solid #28a745;
}

.upload-status.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

.upload-status i {
    margin-right: 8px;
}

/* ========== DARK MODE ADJUSTMENTS ========== */
body.dark-mode .image-upload-area {
    background: var(--bg-tertiary);
}

body.dark-mode .image-upload-area:hover {
    background: rgba(248, 109, 42, 0.1);
}

body.dark-mode .modal-quote-text,
body.dark-mode .modal-author-input,
body.dark-mode .modal-category-select,
body.dark-mode .modal-tags-input {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

body.dark-mode .modal-quote-text:focus,
body.dark-mode .modal-author-input:focus,
body.dark-mode .modal-category-select:focus,
body.dark-mode .modal-tags-input:focus {
    border-color: var(--brand-primary);
    background: var(--bg-primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .upload-modal {
        padding: 12px;
    }
    
    .upload-modal-content {
        max-width: 100%;
        max-height: 85vh;
    }
    
    .upload-modal-header {
        padding: 14px 16px;
    }
    
    .upload-modal-header h3 {
        font-size: 16px;
    }
    
    .upload-modal-body {
        padding: 16px;
    }
    
    .image-upload-area {
        padding: 30px 20px;
    }
    
    .image-upload-area i {
        font-size: 40px;
    }
    
    .modal-quote-text,
    .modal-author-input,
    .modal-category-select,
    .modal-tags-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .modal-submit-btn {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .upload-modal-body {
        padding: 12px;
    }
    
    .image-upload-area {
        padding: 24px 16px;
    }
    
    .image-upload-area i {
        font-size: 36px;
    }
    
    .checkbox-group {
        font-size: 12px;
    }
    
    .modal-submit-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* ========== SCROLLBAR ========== */
.upload-modal-content::-webkit-scrollbar {
    width: 4px;
}

.upload-modal-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.upload-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.upload-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .upload-modal-content,
    .image-upload-area,
    .modal-submit-btn,
    .remove-image-btn {
        animation: none;
        transition: none;
    }
}